You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all: I'm not entirely sure if this is a netty problem or not.
I'm developing an android app that uses netty as its network library. On one of the phones I use for testing (LG Optimus L5 a.k.a. LG E610, Android 4.0.3) I get an exception whenever a UDP packet is received:
02-22 15:10:44.241: W/System.err(10342): java.lang.IndexOutOfBoundsException: length=2, offset=0, buffer size=0
02-22 15:10:44.241: W/System.err(10342): at java.net.DatagramPacket.setLengthOnly(DatagramPacket.java:237)
02-22 15:10:44.251: W/System.err(10342): at libcore.io.IoBridge.postRecvfrom(IoBridge.java:529)
02-22 15:10:44.251: W/System.err(10342): at libcore.io.IoBridge.recvfrom(IoBridge.java:516)
02-22 15:10:44.251: W/System.err(10342): at java.nio.DatagramChannelImpl.receiveDirectImpl(DatagramChannelImpl.java:232)
02-22 15:10:44.261: W/System.err(10342): at java.nio.DatagramChannelImpl.receive(DatagramChannelImpl.java:185)
02-22 15:10:44.261: W/System.err(10342): at org.jboss.netty.channel.socket.nio.NioDatagramWorker.read(NioDatagramWorker.java:73)
02-22 15:10:44.271: W/System.err(10342): at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:107)
02-22 15:10:44.271: W/System.err(10342): at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)
02-22 15:10:44.271: W/System.err(10342): at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:88)
02-22 15:10:44.271: W/System.err(10342): at org.jboss.netty.channel.socket.nio.NioDatagramWorker.run(NioDatagramWorker.java:343)
02-22 15:10:44.271: W/System.err(10342): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
02-22 15:10:44.281: W/System.err(10342): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
02-22 15:10:44.281: W/System.err(10342): at java.lang.Thread.run(Thread.java:856)
It looks as if somewhere deep inside the standard library the packet length is set to something longer than the available data. I'm not sure if this is a bug in the standard library, some mistake made by netty or a combination of both.
I've successfully tested the app on an HTC Desire C (Android 4.0.3), Samsung Galaxy S3 (Android 4.2.0) and several older Samsungs with Android 2, so it's not a general Android problem.
The text was updated successfully, but these errors were encountered:
First of all: I'm not entirely sure if this is a netty problem or not.
I'm developing an android app that uses netty as its network library. On one of the phones I use for testing (LG Optimus L5 a.k.a. LG E610, Android 4.0.3) I get an exception whenever a UDP packet is received:
It looks as if somewhere deep inside the standard library the packet length is set to something longer than the available data. I'm not sure if this is a bug in the standard library, some mistake made by netty or a combination of both.
I've successfully tested the app on an HTC Desire C (Android 4.0.3), Samsung Galaxy S3 (Android 4.2.0) and several older Samsungs with Android 2, so it's not a general Android problem.
The text was updated successfully, but these errors were encountered: