Titanium JIRA Archive
Appcelerator Modules (MOD)

[MOD-2548] Android: Black screen and app crash when Multi Maps feature on Ti.map module example is clicked

GitHub Issuen/a
TypeBug
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 8.2.0, Release 8.3.0
Fix Version/sn/a
ComponentsMap
Labelsn/a
ReporterEbenezer Boateng
AssigneeUnknown
Created2019-10-10T10:20:24.000+0000
Updated2019-10-10T10:20:24.000+0000

Description

Multi Maps feature along with all other features works fine on SDK version 8.0.0 but only multi map fails on SDK version 8.2.0.GA, 8_2_X and 8_3_X. A black screen shows and app crashes when it's clicked on first after the app launches but when the app is launched and other features are clicked on a couple of times before the Multi Maps is clicked on it works fine. Error shown in console:
[ERROR] :  TiExceptionHandler: (main) [9783,15238] com.google.maps.api.android.lib6.impl.an cannot be cast to android.view.ViewGroup
[ERROR] :  TiExceptionHandler:
[ERROR] :  TiExceptionHandler:     android.support.v4.app.FragmentTransition.configureTransitionsOrdered(FragmentTransition.java:310)
[ERROR] :  TiExceptionHandler:     android.support.v4.app.FragmentTransition.startTransitions(FragmentTransition.java:134)
[ERROR] :  TiExceptionHandler:     android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2380)
[ERROR] :  TiExceptionHandler:     android.support.v4.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2338)
[ERROR] :  TiExceptionHandler:     android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2245)
[ERROR] :  TiExceptionHandler:     android.support.v4.app.FragmentManagerImpl.dispatchStateChange(FragmentManager.java:3248)
[ERROR] :  TiExceptionHandler:     android.support.v4.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:3200)
[ERROR] :  TiExceptionHandler:     android.support.v4.app.FragmentController.dispatchActivityCreated(FragmentController.java:195)
[ERROR] :  TiExceptionHandler:     android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:597)
[ERROR] :  TiExceptionHandler:     android.support.v7.app.AppCompatActivity.onStart(AppCompatActivity.java:177)
[ERROR] :  TiExceptionHandler:     org.appcelerator.titanium.TiBaseActivity.onStart(TiBaseActivity.java:1412)
[ERROR] :  TiExceptionHandler:     android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1425)
[ERROR] :  TiExceptionHandler:     android.app.Activity.performStart(Activity.java:7825)
[ERROR] :  TiExceptionHandler:     android.app.ActivityThread.handleStartActivity(ActivityThread.java:3294)
[ERROR] :  TiExceptionHandler:     android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221)
[ERROR] :  TiExceptionHandler:     android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201)
[ERROR] :  TiExceptionHandler:     android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173)
[ERROR] :  TiExceptionHandler:     android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
[ERROR] :  TiExceptionHandler:     android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)
[ERROR] :  TiExceptionHandler:     android.os.Handler.dispatchMessage(Handler.java:107)
[ERROR] :  TiExceptionHandler:     android.os.Looper.loop(Looper.java:214)
[ERROR] :  TiExceptionHandler:     android.app.ActivityThread.main(ActivityThread.java:7356)
[ERROR] :  TiExceptionHandler:     java.lang.reflect.Method.invoke(Native Method)
[ERROR] :  TiExceptionHandler:     com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
[ERROR] :  TiExceptionHandler:     com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
*To produce this behavior:* 1. Launch the app. (example can be found from: https://github.com/appcelerator-modules/ti.map/tree/master/android/example) 2. Click on Multi Maps (you'll see the black screen at this stage). 3. Kill the app and open the app on the android emulator again. 4. After the app launches, select any of the other features other than the Multi Maps. 5. Go back and choose Multi Maps after step 4 (you'll see it working fine at this stage). *Actual result:* Black screen and app crashes. *Expected result:* Should see 4 maps.

Comments

No comments

JSON Source