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

flash exit on android #1

Open
c445352742 opened this issue Jun 10, 2024 · 6 comments
Open

flash exit on android #1

c445352742 opened this issue Jun 10, 2024 · 6 comments

Comments

@c445352742
Copy link

1 when i get in vue , connected to ws,and then call App.exit(), it's fine.
2 when i get in my app again later, it just flash exit.
And android keep repeat these two steps, even in emulator.

Android error is:
Trace:
java.lang.NullPointerException:
Attempt to invoke virtual method 'void
com.getcapacitor.PluginCall.successCallback(com.getcapacitor.PluginResult)'on a nulobject reference
at
cn.holmescraft.capacitor.plugins.websocket.client.WebSocket$createConnect$wsClient$1.onFailure(WebSocket.kt:65)

my fix is annotate the code in line 65 : // bridge.getSavedCall(failureCallId[id]).successCallback(PluginResult(ret))

Can i get a good fix about it?

@OrdinarySF
Copy link
Owner

Can you provide a minimum demo? This will be very helpful for analyzing the problem.

@c445352742
Copy link
Author

https://github.com/c445352742/bugdemo
tell me if it's not crash on your device

@c445352742
Copy link
Author

no ws server in my code, and address is in .env.production

@OrdinarySF
Copy link
Owner

fine i will be check later

@Dexus
Copy link

Dexus commented Sep 25, 2024

@OrdinarySF any news on a fix?

@OrdinarySF
Copy link
Owner

@Dexus I will be trying to fix it.

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

3 participants