niteshmourya / app-inventor-for-android

Automatically exported from code.google.com/p/app-inventor-for-android
Apache License 2.0
1 stars 0 forks source link

Webviewer crashes when viewing video stream from IP webcam #2213

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi Appinventor contributors,

This is a robot racing software designed for kids to test out robot features. 
It is a fun and exciting way to engage young people into IT.

However, there is a critical error in appinventor webviewer component. It will 
crash after sometime for viewing video streaming from IP webcam android app on 
another phone attached to the robot. The whole controller application 
ControlMonashRobot on the Samsung Galaxy Tab 10.1 crashed and went back to the 
home menu. There are two android devices, Samsung Galaxy Tab 10.1 is the 
controller, Samsung Galaxy Mini is the phone act like a camera attached to a 
Lego NXT robot.

Steps to simulate the problem (in the simulation robot is not required)
1. Install ControlMonashRobot.apk on the controller android. (e.g., Samsung 
Galaxy Tab 10.1)
2. Install "IP Webcam" from Google Play on the android phone attached on the 
LEGO NXT robot (e.g., Samsung Galaxy Mini)
3. Enable Wifi connection on both of the android devices. (required a wifi 
router) Connect both devices to the wifi. Then Start ControlMonashRobot.
4. Change the IP (next to refresh button) on the ControlMonashRobot application 
to map the IP on the phone attached to the robot. Click the refresh button to 
view the video streaming.
5. If you can see the video streaming, then configuration is correctly done.
6. Wait for some time 5-8 mins, the whole ControlMonashRobot will crash and 
back to the main menu.

Please help, if you can fix this critical bug, you can make 180++ over young 
participants having a better experiences during our school's open day. They 
will be sure thankful of you kindness.

Sincerely,
Tang Tiong Yew
Monash University 
Sunway Campus
Malaysia

Original issue reported on code.google.com by tang.tio...@gmail.com on 8 Aug 2012 at 10:11

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi Malaysian friends, 

When the app crashed, did system return any error messages?

Wei
wli17@mit.edu

Original comment by weihuali...@gmail.com on 12 Aug 2012 at 12:49

GoogleCodeExporter commented 9 years ago
It looks like Jeff is correct.   I can duplicate the behavior that they report. 
  What I see in logcat after things have been running for a few minutes is this:

I/ActivityManager(   89): Process com.google.android.gallery3d (pid 575) has 
died.
I/ActivityManager(   89): Low Memory: No more background processes.
I/PerformBackupThread(   89): Initializing (wiping) backup state and transport 
storage
D/dalvikvm(  467): GC_FOR_MALLOC freed 2138 objects / 327360 bytes in 202ms
W/DefaultRequestDirector(  187): Authentication error: Unable to respond to any 
of these challenges: {}
D/dalvikvm(  187): GC_FOR_MALLOC freed 7909 objects / 445704 bytes in 222ms
E/CheckinTask(  187): Checkin failed: 
https://android.clients.google.com/checkin (request #0)
E/CheckinTask(  187): java.io.IOException: Rejected response from server: 
HTTP/1.1 401 bad security token
E/CheckinTask(  187):   at 
com.google.android.gsf.checkin.CheckinTask.parseResponse(CheckinTask.java:298)
E/CheckinTask(  187):   at 
com.google.android.gsf.checkin.CheckinTask.sendRequest(CheckinTask.java:246)
E/CheckinTask(  187):   at 
com.google.android.gsf.checkin.CheckinTask.doInBackground(CheckinTask.java:146)
... followed by many more bad things.

Anyone want to take a shot at looking for memory leaks?

Original comment by halatmit...@gmail.com on 12 Aug 2012 at 2:04

GoogleCodeExporter commented 9 years ago
I tried a much simpler app:  Just a button and a textboxt:  put the URL in the 
textbox and press the button to point open the webviewer to the URL.   Set up 
the webcam as above and use that URL.

This still gives the same error.  So it seems the problem really is with 
webviewer.

Does someone want to try building a simple android app with the SDK and a 
webview and see if the same problem is there, without app inventor?

Original comment by halatmit...@gmail.com on 12 Aug 2012 at 2:53

GoogleCodeExporter commented 9 years ago
Moved to: Issue app-inventor:213

Original comment by halatmit...@gmail.com on 12 Aug 2012 at 2:54