Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app crash sometimes when closing map (android) #53

Open
ghost opened this issue Sep 19, 2014 · 1 comment
Open

app crash sometimes when closing map (android) #53

ghost opened this issue Sep 19, 2014 · 1 comment

Comments

@ghost
Copy link

ghost commented Sep 19, 2014

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)

@imhotep
Copy link
Owner

imhotep commented Sep 19, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant