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

Android: Wikitude causing app crashes onPause #135

Open
robwebdev opened this issue Aug 13, 2018 · 1 comment
Open

Android: Wikitude causing app crashes onPause #135

robwebdev opened this issue Aug 13, 2018 · 1 comment

Comments

@robwebdev
Copy link

robwebdev commented Aug 13, 2018

With version 8.0.0 of this plugin, sending the app to the background with the wikitude architect world loaded can cause my app to crash with the following stack trace:

E/AndroidRuntime: FATAL EXCEPTION: main
                  Process: com.skyjacker, PID: 4887
                  java.lang.NullPointerException: Attempt to invoke virtual method 'void com.wikitude.phonegap.WikitudePlugin$ArchitectViewPhoneGap.onPause()' on a null object reference
                      at com.wikitude.phonegap.WikitudePlugin$3.run(WikitudePlugin.java:316)
                      at android.os.Handler.handleCallback(Handler.java:739)
                      at android.os.Handler.dispatchMessage(Handler.java:95)
                      at android.os.Looper.loop(Looper.java:152)
                      at android.app.ActivityThread.main(ActivityThread.java:5497)
                      at java.lang.reflect.Method.invoke(Native Method)
                      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
@alexbendl
Copy link

I was unable to reproduce this crash with the wikitude cordova example app.
There is however a dangerous piece of code in the plugin that seems to be responsible for this crash. Could you add a snippet of how you use the plugin for us to understand how it was caused in your case?

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

2 participants