Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Map crash in Android application

$
0
0

Hello,

We're developping a mobile application for Android and iOS platforms, using the Alloy Framework.

When loading the map just after the login process, the map crashes pretty often, producing the following error: "Unfortunately, AppName has stopped". This intermittent crash occurs while adding the map component to its parent's view.

Some more information about the application:

  • We had the same issue with the previous Titanium SDK version 3.2.3, Alloy 1.3. Updating to the newest version - SDK 3.3.0 and Alloy 1.4.1 didn't fix it.
  • There is only one "heavy window" in the application (only one activity at once). The map is loaded on a view.
  • The application window is fully loaded and displayed when loading the map component.
  • The parent view is already a part of the views' hierarchy when loading the map component.
  • There is only one map component in the application.

Please find below the log of the error:

[ERROR] :  TiApplication: (main) [10692,10692] Sending event: exception
on thread: main msg:java.lang.RuntimeException: Unable to pause activity
{com.ourapplication/org.appcelerator.titanium.TiTranslucentActivity}:
java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState; Titanium 3.2.3,2014/04/22 10:17,b958a70
[ERROR] :  TiApplication: java.lang.RuntimeException: Unable to pause activity 
{com.ourapplication/org.appcelerator.titanium.TiTranslucentActivity}:
java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
[ERROR] :  TiApplication:     at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3196)
[ERROR] :  TiApplication:     at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3151)
[ERROR] :  TiApplication:     at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:3129)
[ERROR] :  TiApplication:     at android.app.ActivityThread.access$900(ActivityThread.java:159)
[ERROR] :  TiApplication:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1333)
[ERROR] :  TiApplication:     at android.os.Handler.dispatchMessage(Handler.java:99)
[ERROR] :  TiApplication:     at android.os.Looper.loop(Looper.java:176)
[ERROR] :  TiApplication:     at android.app.ActivityThread.main(ActivityThread.java:5419)
[ERROR] :  TiApplication:     at java.lang.reflect.Method.invokeNative(Native Method)
[ERROR] :  TiApplication:     at java.lang.reflect.Method.invoke(Method.java:525)
[ERROR] :  TiApplication:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046)
[ERROR] :  TiApplication:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862)
[ERROR] :  TiApplication:     at dalvik.system.NativeStart.main(Native Method)
[ERROR] :  TiApplication: Caused by: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
[ERROR] :  TiApplication:     at android.support.v4.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1343)
[ERROR] :  TiApplication:     at android.support.v4.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1361)
[ERROR] :  TiApplication:     at android.support.v4.app.BackStackRecord.commitInternal(BackStackRecord.java:595)
[ERROR] :  TiApplication:     at android.support.v4.app.BackStackRecord.commit(BackStackRecord.java:574)
[ERROR] :  TiApplication:     at org.appcelerator.titanium.view.TiUIFragment.<init>(TiUIFragment.java:49)
[ERROR] :  TiApplication:     at ti.map.TiUIMapView.<init>(TiUIMapView.java:59)
[ERROR] :  TiApplication:     at ti.map.ViewProxy.createView(ViewProxy.java:68)
[ERROR] :  TiApplication:     at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:463)
[ERROR] :  TiApplication:     at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:449)
[ERROR] :  TiApplication:     at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:487)
[ERROR] :  TiApplication:     at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:471)
[ERROR] :  TiApplication:     at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:449)
[ERROR] :  TiApplication:     at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:487)
[ERROR] :  TiApplication:     at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:471)
[ERROR] :  TiApplication:     at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:449)
[ERROR] :  TiApplication:     at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:566)
[ERROR] :  TiApplication:     at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:218)
[ERROR] :  TiApplication:     at android.os.Handler.dispatchMessage(Handler.java:95)
[ERROR] :  TiApplication:     at org.appcelerator.kroll.common.TiMessenger.dispatchMessage(TiMessenger.java:389)
[ERROR] :  TiApplication:     at org.appcelerator.kroll.common.TiMessenger.dispatchPendingMessages(TiMessenger.java:374)
[ERROR] :  TiApplication:     at org.appcelerator.kroll.common.TiMessenger$2.getResult(TiMessenger.java:252)
[ERROR] :  TiApplication:     at org.appcelerato
[ERROR] :  TiApplication:     at org.appcelerator.kroll.common.TiMessenger.sendBlockingRuntimeMessage(TiMessenger.java:186)
[ERROR] :  TiApplication:     at org.appcelerator.kroll.KrollProxy.fireSyncEvent(KrollProxy.java:763)
[ERROR] :  TiApplication:     at org.appcelerator.titanium.TiBaseActivity.onPause(TiBaseActivity.java:975)
[ERROR] :  TiApplication:     at org.appcelerator.titanium.TiActivity.onPause(TiActivity.java:44)
[ERROR] :  TiApplication:     at android.app.Activity.performPause(Activity.java:5474)
[ERROR] :  TiApplication:     at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1250)
[ERROR] :  TiApplication:     at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3182)
[ERROR] :  TiApplication:     ... 12 more
Do you know how to fix it out? Any help would be greatly appreciated.

Thanks in advance.

Anna Tchevardov


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>