nasirovsh / spydroid-ipcamera

Automatically exported from code.google.com/p/spydroid-ipcamera
GNU General Public License v3.0
0 stars 0 forks source link

ArrayIndexOutOfBoundsException on H264Packetizer2 #42

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install spydroid
2. edit the ip
3. start stream
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
What is the expected output? What do you see instead?

。E/AndroidRuntime(8137): FATAL EXCEPTION: Thread-855
。E/AndroidRuntime(8137): java.lang.ArrayIndexOutOfBoundsException
。E/AndroidRuntime(8137):  at 
android.net.LocalSocketImpl$SocketInputStream.read(LocalSocketImpl.jav。E/Andro
idRuntime(8137):    at 
net.majorkernelpanic.librtp.H264Packetizer2.fillFifo(H264Packetizer2.java:208)
。E/AndroidRuntime(8137):  at 
net.majorkernelpanic.librtp.H264Packetizer2.run(H264Packetizer2.java:96)

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
What version of the product are you using? On what operating system?

。HTC One V for Android 4.0.3

。Work fine on Glaxy tab 10.1 for Android 3.1

Please provide any additional information below.
。 It seems all happened on HTC devices?

Original issue reported on code.google.com by ktasl.kt...@gmail.com on 25 May 2012 at 2:44

GoogleCodeExporter commented 8 years ago
You should try a more recent version of spydroid and  post some logs :)

Original comment by FyHertz on 31 May 2012 at 9:13

GoogleCodeExporter commented 8 years ago
It seems that there's a problem with the NAL-Unit length. I get the same Error 
on my HTC Sensation. I displayed the NAL-Unit size and the first lenght is 
always 4144959, but should be about 14k max. Then I displayed the buffer Array 
and after the mdat there are several 63's. --> 63 + 63*256 + 63*65536 = 4144959 
. Do you have any idea where the lenght is set on HTC devices? 

Original comment by langeol1...@googlemail.com on 31 May 2012 at 1:28

GoogleCodeExporter commented 8 years ago
Try a more recent version of spydroid, i have fixed (or at least tried) to fix 
this kind of issues
Could you tell me if this happens with spydroid 3.3 ? And show me some logs

Original comment by FyHertz on 1 Jun 2012 at 12:09

GoogleCodeExporter commented 8 years ago
Hi, 
I try on my HTC one V, and seems it worked! I can see the stream video on VLC.

If I try something error, I'll upload the log files.
Thank you!

BTW, the AAC stream didn't release in source code, but called by StreamManager 
at version 3.3. :)

Original comment by ktasl.kt...@gmail.com on 1 Jun 2012 at 6:14

GoogleCodeExporter commented 8 years ago
It works great with version 3.3. 

Original comment by langeol1...@googlemail.com on 1 Jun 2012 at 7:04

GoogleCodeExporter commented 8 years ago
After streaming a few minutes, it will occurred send fail.

As the log file.

Original comment by ktasl.kt...@gmail.com on 1 Jun 2012 at 9:15

Attachments: