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

Crash on startup on some android devices #140

Open
andreabadesso opened this issue Oct 6, 2020 · 0 comments
Open

Crash on startup on some android devices #140

andreabadesso opened this issue Oct 6, 2020 · 0 comments

Comments

@andreabadesso
Copy link

The crash happens after I start listening:

const client = new Zeroconf()

client.scan('hubot', 'tcp', 'local.')

Here is a crash log from an Asus ZenPhone3 (ASUS_Z017DC):

Fatal Exception: java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference
       at android.os.Parcel.readException(Parcel.java:1949)
       at android.os.Parcel.readException(Parcel.java:1889)
       at android.net.wifi.IWifiManager$Stub$Proxy.acquireMulticastLock(IWifiManager.java:1588)
       at android.net.wifi.WifiManager$MulticastLock.acquire(WifiManager.java:3315)
       at com.balthazargronon.RCTZeroconf.ZeroconfModule.scan(ZeroconfModule.java:90)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
       at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:151)
       at com.facebook.react.bridge.queue.NativeRunnable.run(NativeRunnable.java)
       at android.os.Handler.handleCallback(Handler.java:789)
       at android.os.Handler.dispatchMessage(Handler.java:98)
       at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
       at android.os.Looper.loop(Looper.java:169)
       at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:226)
       at java.lang.Thread.run(Thread.java:764)
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