question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

crash on react native android after upgrading to v3

See original GitHub issue

After migrating to socket.io-client 3.0.3 (from v2) I get a crash on my android client (ios client works fine with this version) The crash seems to be native implementation related: Attempt to invoke virtual method ‘boolean java.lang.Boolean.booleanValue()’ on a null object reference

I init the socket through socket manager this way:

this.socketManager = new Manager(urlConnection, {
reconnectionDelay: 500,
reconnectionDelayMax: 500,
timeout: 4000,
});

this.socket = this.socketManager.socket('/');

Was anyone able to use v3 client on android?

Env: socket.io: 3.0.3 socket.io-client: 3.0.3 socket.io-redis: 6.0.1 react-native: 0.63.3

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
yanushcommented, Nov 26, 2020

Thanks! Uninstalling and reinstalling socket.io-client updated all the dependencies to the latest versions and solved the issue for me

0reactions
yanushcommented, Dec 7, 2020

then please open another issue since this one was dealing with android crash

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Android] [Reanimated] Crash when upgrade react native from ...
Description Hi, the Android crash with me at start when I've upgraded react native from 0.69.2 to 0.70 Working normally on IOS Here...
Read more >
My React Native App Crash After Update Target Sdk Version 31
The app crashes on Android 12 version devices. It works on android 10 or 11. My package.json file: { "name": "app", ...
Read more >
Fixing React-Native android release build - wesionaryTEAM
Android release build crashes on launch but works fine in development mode. After months of research and development, your app is finally ready...
Read more >
Using Hermes - React Native
npx react-native run-android --variant release ... After upgrading the app, make sure everything works before trying to switch to Hermes.
Read more >
App Center Crashes for React Native - Microsoft Learn
The log is first written to the device's storage and when the user starts the app again, the crash report will be sent...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found