poooly / spydroid-ipcamera

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

Http connetion read exception #141

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi, 
   I met an exception while I was trying to connect to spydroid. I don't really know what's the problem here. Could you give me some guidance? Thanks.

What steps will reproduce the problem?
1. use url: http://192.168.3.4:8080/# to connect 
2. the preview on my handset is OK, Chrome on PC showed error info "AN ERROR 
OCCURED :( TRY AGAIN"

What version of the product are you using? On what operating system?
My handset is an Huawei device with Android 4.2.2 on it.
My PC is window 8 and Chrome v35.0.1916.153 m

Please provide any additional information below.
Here is the stack trace.

07-03 00:55:13.920  13744-14341/net.majorkernelpanic.spydroid W/JNIHelp﹕ 
Discarding pending exception (java.io.IOException: Try again) to throw 
java/io/IOException
07-03 00:55:13.920  13744-14341/net.majorkernelpanic.spydroid E/VideoStream﹕ 
Couldn't skip mp4 header :/
07-03 00:55:13.922  13744-14341/net.majorkernelpanic.spydroid I/Camera﹕ 
Camera framework getParameters 
=afeng-max-focus-step=0;afeng-min-focus-step=0;aflamp-mode=off;aflamp-mode-value
s=off,on,auto;antibanding=off;antibanding-values=off,50hz,60hz,auto;auto-exposur
e-lock-supported=true;auto-whitebalance-lock-supported=true;brightness=middle;br
ightness-values=low,middle,high;brightness_value=-21;burst-num=1;cap-mode=normal
;cap-mode-values=normal,face_beauty,continuousshot,smileshot,bestshot,evbrackets
hot,autorama;capfname=/sdcard/DCIM/cap00;contrast=middle;contrast-values=low,mid
dle,high;edge=middle;edge-values=low,middle,high;effect=none;effect-values=none,
mono,negative,sepia,aqua,whiteboard,blackboard;exposure-compensation=0;exposure-
compensation-step=1.0;fb-sharp=0;fb-sharp-max=4;fb-sharp-min=-4;fb-skin-color=0;
fb-skin-color-max=4;fb-skin-color-min=-4;fb-smooth-level=0;fb-smooth-level-max=4
;fb-smooth-level-min=-4;flash-mode=off;flash-mode-values=off,on,auto,red-eye,tor
ch;focal-length=3.5;focus-distances=0.95,1.9,Infinity;focus-mode=auto;focus-mode
-values=auto,macro,infinity,continuous-picture,continuous-video,manual,fullscan;
horizontal-view-angle=160;hue=middle;hue-values=low,middle,high;iso-speed=auto;i
so-speed-values=auto,100,200,400,800,1600;jpeg-quality=100;jpeg-thumbnail-height
=128;jpeg-thumbnail-quality=100;jpeg-thumbnail-size-values=0x0,160x128,320x240;j
peg-thumbnail-width=160;max-exposure-compensation=3;max-num-detected-faces-hw=15
;max-num-detected-faces-sw=0;max-num-focus-areas=1;max-num-metering-areas=9;max-
zoom=10;min-exposure-compensation=-3;mtk-cam-mode=0;picture-format=jpeg;picture-
format-values=jpeg;picture-size=3264x2448;picture-size-values=320x240,640x480,10
24x768,1280x720,1280x768,1280x960,1600x1200,2048x1536,2560x1440,2560x1920,3264x2
448,3328x1872,2880x1728,3600x2160;preferred-preview-size-for-video=1280x720;prev
iew-format=yuv420sp;preview-format-values=yuv420sp,yuv420p,yuv420i-yyuvyy-3plane
;preview-fps-range=5000,60000;preview-fps-range-values=(5000,60000);preview-fram
e-rate=20;preview-frame-rate-values=15,24,30;preview-size=640x480;preview-size-v
alues=176x144,320x240,352x288,480x320,480x368,640x480,720x480,800x480,800x600,86
4x480,960x540,1280x720;recording-hint=true;rotation=0;saturation=middle;saturati
on-values=low,middle,high;scene-mode=auto;scene-mode-values=auto,portrait,landsc
ape,night,night-portrait,theatre,beach,snow,sunset,steadyphoto,fireworks,sports,
party,candlelight,hdr;smooth-zoom-supported=true;vertical-view-angle=160;video-s
ize=320x240;video-size-values=176x144,480x320,640x480,864x480,1280x720,1920x1080
;video-snapshot-supported=true;video-stabilization=false;video-stabilization-sup
ported=true;whitebalance=auto;whitebalance-values=auto,incandescent,fluorescent,
warm-fluorescent,daylight,cloudy-daylight,twilight,shade;zoom=0;zoom-ratios=100,
114,132,151,174,200,229,263,303,348,400;zoom-supported=true;zsd-mode=off;zsd-mod
e-values=off
07-03 00:55:13.925  13744-14341/net.majorkernelpanic.spydroid V/VideoQuality﹕ 
Supported resolutions: 176x144, 320x240, 352x288, 480x320, 480x368, 640x480, 
720x480, 800x480, 800x600, 864x480, 960x540, 1280x720
07-03 00:55:13.925  13744-14341/net.majorkernelpanic.spydroid V/VideoQuality﹕ 
Supported frame rates: 5-60fps
07-03 00:55:13.930  13744-14341/net.majorkernelpanic.spydroid 
E/TinyHttpServer﹕ Try again
07-03 00:55:13.930  13744-14341/net.majorkernelpanic.spydroid W/System.err﹕ 
java.io.IOException: Try again
07-03 00:55:13.930  13744-14341/net.majorkernelpanic.spydroid W/System.err﹕ 
at android.net.LocalSocketImpl.read_native(Native Method)
07-03 00:55:13.930  13744-14341/net.majorkernelpanic.spydroid W/System.err﹕ 
at android.net.LocalSocketImpl.access$300(LocalSocketImpl.java)
07-03 00:55:13.930  13744-14341/net.majorkernelpanic.spydroid W/System.err﹕ 
at android.net.LocalSocketImpl$SocketInputStream.read(LocalSocketImpl.java)
07-03 00:55:13.930  13744-14341/net.majorkernelpanic.spydroid W/System.err﹕ 
at 
net.majorkernelpanic.streaming.video.VideoStream.encodeWithMediaRecorder(VideoSt
ream.java:388)
07-03 00:55:13.930  13744-14341/net.majorkernelpanic.spydroid W/System.err﹕ 
at net.majorkernelpanic.streaming.MediaStream.start(MediaStream.java:245)
07-03 00:55:13.931  13744-14341/net.majorkernelpanic.spydroid W/System.err﹕ 
at net.majorkernelpanic.streaming.video.VideoStream.start(VideoStream.java:283)
07-03 00:55:13.931  13744-14341/net.majorkernelpanic.spydroid W/System.err﹕ 
at net.majorkernelpanic.streaming.video.H264Stream.start(H264Stream.java:102)
07-03 00:55:13.931  13744-14341/net.majorkernelpanic.spydroid W/System.err﹕ 
at net.majorkernelpanic.streaming.Session.syncStart(Session.java:504)
07-03 00:55:13.931  13744-14341/net.majorkernelpanic.spydroid W/System.err﹕ 
at net.majorkernelpanic.streaming.Session.syncStart(Session.java:549)
07-03 00:55:13.931  13744-14341/net.majorkernelpanic.spydroid W/System.err﹕ 
at 
net.majorkernelpanic.spydroid.api.CustomHttpServer$DescriptionRequestHandler.han
dle(CustomHttpServer.java:286)
07-03 00:55:13.931  13744-14341/net.majorkernelpanic.spydroid W/System.err﹕ 
at org.apache.http.protocol.HttpService.doService(HttpService.java:243)
07-03 00:55:13.931  13744-14341/net.majorkernelpanic.spydroid W/System.err﹕ 
at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:187)
07-03 00:55:13.931  13744-14341/net.majorkernelpanic.spydroid W/System.err﹕ 
at 
net.majorkernelpanic.http.TinyHttpServer$WorkerThread.run(TinyHttpServer.java:70
2)
07-03 00:55:13.941  13744-13755/net.majorkernelpanic.spydroid D/Camera﹕ RRF
07-03 00:55:13.958  13744-14341/net.majorkernelpanic.spydroid 
D/RequestHandler﹕ Request: {"action":"state"}
07-03 00:55:13.958  13744-14341/net.majorkernelpanic.spydroid 
D/RequestHandler﹕ Answer: {"state":{"lastError":"Try 
again","lastStackTrace":"java.io.IOException : Try again||at 
android.net.LocalSocketImpl.read_native (LocalSocketImpl.java:-2)||at 
android.net.LocalSocketImpl.access$300 (LocalSocketImpl.java:-1)||at 
android.net.LocalSocketImpl$SocketInputStream.read 
(LocalSocketImpl.java:-1)||at 
net.majorkernelpanic.streaming.video.VideoStream.encodeWithMediaRecorder 
(VideoStream.java:388)||at net.majorkernelpanic.streaming.MediaStream.start 
(MediaStream.java:245)||at 
net.majorkernelpanic.streaming.video.VideoStream.start 
(VideoStream.java:283)||at 
net.majorkernelpanic.streaming.video.H264Stream.start (H264Stream.java:102)||at 
net.majorkernelpanic.streaming.Session.syncStart (Session.java:504)||at 
net.majorkernelpanic.streaming.Session.syncStart (Session.java:549)||at 
net.majorkernelpanic.spydroid.api.CustomHttpServer$DescriptionRequestHandler.han
dle (CustomHttpServer.java:286)||at 
org.apache.http.protocol.HttpService.doService (HttpService.java:243)||at 
org.apache.http.protocol.HttpService.handleRequest (HttpService.java:187)||at 
net.majorkernelpanic.http.TinyHttpServer$WorkerThread.run 
(TinyHttpServer.java:702)||","activityPaused":"1"}}
07-03 00:55:13.959  13744-14341/net.majorkernelpanic.spydroid I/System.out﹕ 
[CDS]close[8080]
07-03 00:55:13.960  13744-14341/net.majorkernelpanic.spydroid I/System.out﹕ 
close [socket][/0.0.0.0:8080]
07-03 00:55:13.960  13744-14341/net.majorkernelpanic.spydroid I/System.out﹕ 
close [socket][/0.0.0.0:8080]
07-03 00:55:13.960  13744-14341/net.majorkernelpanic.spydroid D/dalvikvm﹕ 
threadid=18: exiting
07-03 00:55:13.960  13744-14341/net.majorkernelpanic.spydroid D/dalvikvm﹕ 
threadid=18: bye!

Original issue reported on code.google.com by farmer.m...@gmail.com on 2 Jul 2014 at 5:07

GoogleCodeExporter commented 8 years ago
I've tested my Android application on some Mediacom Android devices and and 
some other devices. When I try to stream a content over RTSP, I can see this 
message repeated in 'Camera' tag in Logcat and the streaming doesn't start:

...

Camera RRF 
Camera RRF 
Camera RRF 
Camera RRF 
Camera RRF 
...

I can't find anything on the net about this tag...

Original comment by carlodef...@gmail.com on 25 Nov 2014 at 2:29