-
Notifications
You must be signed in to change notification settings - Fork 1k
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
bug: Capacitor crashing when Webview Version is "Developer Build" #6144
Comments
Do you get any other information about the devices where the app crashed? |
Yes i do have some more information. It seems to only happen on a specific device right now: Android: 8.1.0 |
I saw the same error Device Operating system |
I have the same error:
Device: vivo S1 |
I had the same error as @RRGT19 and on the same device. Capacitor CLI : 4.6.1 |
This comment was marked as abuse.
This comment was marked as abuse.
Same issue in Android 8.1.0 systems |
This comment was marked as abuse.
This comment was marked as abuse.
Same here:
|
I am still facing this error with @capacitor/android@5.4.1 FATAL EXCEPTION: main
Process: com.myapp.app, PID: 21013
java.lang.RuntimeException: Unable to stop activity {com.myapp.app/com.myapp.app.MainActivity}: java.lang.NullPointerException
at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:4062)
at android.app.ActivityThread.handleStopActivity(ActivityThread.java:4111)
at android.app.ActivityThread.-wrap24(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1646)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6523)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:865)
Caused by: java.lang.NullPointerException
at com.onesignal.session.internal.session.impl.SessionService.getScheduleBackgroundRunIn(SessionService.kt:44)
at com.onesignal.core.internal.background.impl.BackgroundManager.scheduleBackground(BackgroundManager.kt:96)
at com.onesignal.core.internal.background.impl.BackgroundManager.onUnfocused(BackgroundManager.kt:88)
at com.onesignal.core.internal.application.impl.ApplicationService$handleLostFocus$1.invoke(ApplicationService.kt:325)
at com.onesignal.core.internal.application.impl.ApplicationService$handleLostFocus$1.invoke(ApplicationService.kt:325)
at com.onesignal.common.events.EventProducer.fire(EventProducer.kt:43)
at com.onesignal.core.internal.application.impl.ApplicationService.handleLostFocus(ApplicationService.kt:325)
at com.onesignal.core.internal.application.impl.ApplicationService.onActivityStopped(ApplicationService.kt:184)
at android.app.Application.dispatchActivityStopped(Application.java:234)
at android.app.Activity.onStop(Activity.java:1862)
at androidx.fragment.app.FragmentActivity.onStop(FragmentActivity.java:369)
at androidx.appcompat.app.AppCompatActivity.onStop(AppCompatActivity.java:257)
at com.getcapacitor.BridgeActivity.onStop(BridgeActivity.java:98)
at android.app.Instrumentation.callActivityOnStop(Instrumentation.java:1375)
at android.app.Activity.performStop(Activity.java:7205)
at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:4059)
at android.app.ActivityThread.handleStopActivity(ActivityThread.java:4111)
at android.app.ActivityThread.-wrap24(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1646)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6523)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:865)
|
That's a totally different issue, the problem on this issue was a |
the fix was added in 5.4.1, you are in 5.4.0 |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out. |
Bug Report
Capacitor Version
Platform(s)
Android
Current Behavior
Recently I noticed some crashes in our error tracking tool. It seems like that some Webviews return "Developer Build" for their Build Version, which causes a crash when it's converted to an Integer in Bridge.java
Expected Behavior
This error should be catched.
The text was updated successfully, but these errors were encountered: