[TIMOB-26982] Android: java.lang.ClassCastException: ti.modules.titanium.ui.widget.TiUILabel$1 cannot be cast to android.view.ViewGroup;
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2019-04-12T01:09:26.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | android |
Reporter | Felipe Mathies |
Assignee | Joshua Quick |
Created | 2019-01-09T11:43:23.000+0000 |
Updated | 2019-04-12T01:09:26.000+0000 |
Hello, Was this an app built on the previous SDK, CLI and now having the issue with the latest SDK? Please share your environment details with "appc info" command log. Thanks.
Hello Sharif, I work with Felipe, our App was created using earlier SDK versions, some years ago, then since last month we are updating to most recent SDK version, the last SDK we used was 7.1.1. Officially now we are using SDK 7.5.0.GA, but we already test some nightly builds of 7.5.1, without success to solve this problem. appc info result: {noformat} Operating System Name = Mac OS X Version = 10.13.6 Architecture = 64bit # CPUs = 4 Memory = 8.0GB Node.js Node.js Version = 8.11.3 npm Version = 6.4.0 Appcelerator CLI Installer = 4.2.13 Core Package = 7.0.6 Titanium CLI CLI Version = 5.1.1 node-appc Version = 0.2.44 {noformat}
Hello, Try with the latest CLI 7.0.9. Run "appc setup" to install the latest CLI. Thanks.
Yes, very hard to reproduce but it happens even in the latest SDK. Have that in some apps, too. But can't reproduce it in examples.
[~sdarda] btw: I gave Yordan a full app of mine that suffers from this bug, too.
SDK 7.5.1.v20181210141225 So he might be able to run some internal tests
Michael, I found another App (that was not made with Titanium) with this crash: https://github.com/wordpress-mobile/WordPress-Android/issues/7973 The stacktrace is almost the same. I already removed all my labels from screen to test (desperate test), crash still happens... Everybody that uses SDK 7.5.0.GA or later are experiencing this problem?
not everybody has that error and it was in earlier SDKs too (see the old ticket mentioned in the description). The last line that is mentioned in the error is pointing to: https://android.googlesource.com/platform/frameworks/support/+/oreo-release/fragment/java/android/support/v4/app/FragmentTransition.java#293 The interesting part for me is: why does it work most of the time (is it not trying to run the transition on the elements or do they work?) and what is causing the problem that it can't convert them.
Is there any way that we can recompile this source to debug and use it? Maybe a try catch to show us the name of component that is causing the exception... Our App have at least 20 different screens, this crash occur only in 4 or 5 screens and its completely random, I already built a version then I repeated the same operation more than 300 times and had no crashs, then 10 minutes later the crash occured in third action.
Michael, are you using Ti.Map in your project? I think that Ti.Map can be related with this crashs in my scenario...
Yes, [~ybanev] was investigating in that direction too. I had a Label placed on the Map, removing that was promising at first but after a few tests the error still appeared.
Hello [~michael], Can you please follow up here? Whats the current status of your issue?
I don't have any updates regarding the investigations on your side. The error still appears in my app (which Yordan has a copy of) and I'm not sure what he found out. So at the moment I'm waiting for his feedback :)
I was able to reproduce this issue with [~michael]'s project. The fix for [TIMOB-17089] resolves this issue. Closing as duplicate.