MapKit icon indicating copy to clipboard operation
MapKit copied to clipboard

app crash sometimes when closing map (android)

Open ghost opened this issue 11 years ago • 1 comments

Sometimes the app crashes when doing mapHide()

W/dalvikvm( 6250): threadid=1: thread exiting with uncaught exception (group=0x4184cda0) E/AndroidRuntime( 6250): FATAL EXCEPTION: main E/AndroidRuntime( 6250): Process: com.superapp.SuperApp, PID: 6250 E/AndroidRuntime( 6250): java.lang.NullPointerException E/AndroidRuntime( 6250): at com.phonegap.plugins.mapkit.MapKit$4.run(MapKit.java:369) E/AndroidRuntime( 6250): at android.os.Handler.handleCallback(Handler.java:733) E/AndroidRuntime( 6250): at android.os.Handler.dispatchMessage(Handler.java:95) E/AndroidRuntime( 6250): at android.os.Looper.loop(Looper.java:157) E/AndroidRuntime( 6250): at android.app.ActivityThread.main(ActivityThread.java:5356) E/AndroidRuntime( 6250): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 6250): at java.lang.reflect.Method.invoke(Method.java:515) E/AndroidRuntime( 6250): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265) E/AndroidRuntime( 6250): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081) E/AndroidRuntime( 6250): at dalvik.system.NativeStart.main(Native Method)

ghost avatar Sep 19 '14 21:09 ghost

What is "sometimes"? Can you say how many times you have to show/hide before it crashes or do you have steps to reproduce? Generally, it is a bad idea to hide the map after it's shown. We're hacking the layout on Android to allow the plugin to work so messing around with the views is not recommended.

imhotep avatar Sep 19 '14 22:09 imhotep