qiminl / spydroid-ipcamera

Automatically exported from code.google.com/p/spydroid-ipcamera
0 stars 0 forks source link

Getting array out of bounds exception #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Using build 1.0.1 on Nexus One running Android 2.3.6

When starting the stream, the program closes unexpectedly.
Here's the dump from LogCat:

<code>
10-04 02:27:10.893: INFO/ActivityManager(96): Starting: Intent { 
cmp=net.mkp.spydroid/.SecondActivity (has extras) } from pid 22434
10-04 02:27:10.903: INFO/WindowManager(96): Setting rotation to 1, animFlags=1
10-04 02:27:10.923: INFO/ActivityManager(96): Config changed: { scale=1.0 
imsi=505/2 loc=en_GB touch=3 keys=1/1/2 nav=3/1 orien=2 layout=34 uiMode=17 
seq=160}
10-04 02:27:11.063: DEBUG/dalvikvm(167): GC_EXTERNAL_ALLOC freed 459K, 47% free 
4587K/8519K, external 12058K/12107K, paused 126ms
10-04 02:27:11.083: INFO/ActivityManager(96): Displayed 
net.mkp.spydroid/.SecondActivity: +179ms
10-04 02:27:11.163: INFO/MediaRecorderJNI(22434): prepare: surface=0x2d3508 
(identity=1596)
10-04 02:27:11.163: INFO/AudioHardwareQSD(68): Routing audio to Speakerphone
10-04 02:27:11.163: INFO/AudioHardwareQSD(68): do input routing device 800000
10-04 02:27:11.163: INFO/AudioHardwareQSD(68): Routing audio to Speakerphone 
with back mic
10-04 02:27:11.353: DEBUG/AudioHardwareQSD(68): Switching audio device to 
10-04 02:27:11.353: DEBUG/AudioHardwareQSD(68): Speakerphone
10-04 02:27:11.512: INFO/RealTimeChat(22365): Sending create user request
10-04 02:27:11.553: WARN/StagefrightRecorder(68): Intended video encoding frame 
rate (15 fps) is too small and will be set to (27 fps)
10-04 02:27:11.583: INFO/RealTimeChat(22365): Keep-alive thread starting
10-04 02:27:11.583: INFO/RealTimeChat(22365): Sending ping to bunch
10-04 02:27:11.763: INFO/StagefrightPlayer(68): 
setDataSource('/system/media/audio/ui/camera_click.ogg')
10-04 02:27:11.773: INFO/StagefrightPlayer(68): 
setDataSource('/system/media/audio/ui/VideoRecord.ogg')
10-04 02:27:11.793: ERROR/VENC_ENC(68): Bitrate 192000
10-04 02:27:11.793: INFO/MPEG4Writer(68): limits: 2147483647/0 bytes/us, bit 
rate: 192000 bps and the estimated moov size 3072 bytes
10-04 02:27:11.983: INFO/OMXCodec(68): [OMX.qcom.video.encoder.avc] allocating 
6 buffers of size 460800 on input port
10-04 02:27:11.983: INFO/OMXCodec(68): [OMX.qcom.video.encoder.avc] allocating 
6 buffers of size 230400 on output port
10-04 02:27:12.033: WARN/dalvikvm(22434): threadid=10: thread exiting with 
uncaught exception (group=0x40015560)
10-04 02:27:12.033: ERROR/AndroidRuntime(22434): FATAL EXCEPTION: Thread-11
10-04 02:27:12.033: ERROR/AndroidRuntime(22434): 
java.lang.ArrayIndexOutOfBoundsException
10-04 02:27:12.033: ERROR/AndroidRuntime(22434):     at 
android.net.LocalSocketImpl$SocketInputStream.read(LocalSocketImpl.java:89)
10-04 02:27:12.033: ERROR/AndroidRuntime(22434):     at 
net.mkp.spydroid.librtp.H264Packetizer.fill(H264Packetizer.java:137)
10-04 02:27:12.033: ERROR/AndroidRuntime(22434):     at 
net.mkp.spydroid.librtp.H264Packetizer.run(H264Packetizer.java:63)
10-04 02:27:12.083: WARN/ActivityManager(96):   Force finishing activity 
net.mkp.spydroid/.SecondActivity
</code>

I've been playing with the trunk code in Eclipse and haven't had this problem.  
It only started when I downloaded the 1.0.1 apk and installed it.

Original issue reported on code.google.com by MRPFis...@gmail.com on 3 Oct 2011 at 3:47

GoogleCodeExporter commented 9 years ago
Never mind, it looks like this is the issue that was fixed in r30.

Original comment by MRPFis...@gmail.com on 6 Oct 2011 at 6:03