senthil777 / ipcamera-for-android

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

Streaming Kernel/fillBuffer() raises ArrayOutofBound Exception on Samsung Galaxy s 2.2 #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I've been testing your source code on my Galaxy S i9000 and as reported before 
it craches, after troubleshooting the code, I've found that it raises 
ArrayOutofBound Exception.

Now is the size of "buffer" array crusia (1024*64), because the target_size =  
6578176 which is too much! 

Original issue reported on code.google.com by salah.gh...@gmail.com on 18 May 2011 at 6:36

GoogleCodeExporter commented 9 years ago
I can confirm this.The package_size calculated in StreamingKernel.java, line 
185, is 6578176.Phone is the same Galaxy S i9000.Simply increasing the buffer 
size doesnt seem to work.Can you give any hints on what may be happenning so i 
can try to fix it myself?

Original comment by dash...@gmail.com on 26 May 2011 at 12:14

GoogleCodeExporter commented 9 years ago
I was testing same code in Galaxys captivate, and have same issue.
Any idea or hints whats going wrong.

Original comment by paragpat...@gmail.com on 9 Aug 2011 at 8:03

GoogleCodeExporter commented 9 years ago
I never found a solution for the bug, and I believe the project is dead, so 
good luck digging deeper if you feel like it

Original comment by salah.gh...@gmail.com on 9 Aug 2011 at 3:34

GoogleCodeExporter commented 9 years ago
You need to set the buffer size in many different places. Another solution 
would be to reduce the camera resolution. That would reduce also the size of 
data produced by camera and the current buffer size would be sufficient.

Original comment by Prze.Ma...@gmail.com on 6 Sep 2011 at 11:22