I would really appreciate some help with this one. I just upgraded from 1.22.3 to 1.24.2 and am suddenly getting all kinds of errors and crashes.
I'm using a cheap PTZ night cam from maygion.com which is accessed by ZoneMinder through a simple jpg url (it doesn't appear to have support for a mjpeg stream). This worked well in 1.22.3 but in the latest version I'm seeing the following crashes:
10/20/09 22:10:32.611664 zmc_m1[622].DB6-zm_remote_camera_http.cpp/614 [HTTP/1.1 200 OK
Server: MayGion WebServer(www.maygion.com)
Content-Type: image/jpeg
Cache-Control: no-cache
Expires: 0
Content-length: 10277
????]
10/20/09 22:10:32.611686 zmc_m1[622].DB6-zm_remote_camera_http.cpp/622 [Got http header 'HTTP/1.1 200 OK
Server: MayGion WebServer(www.maygion.com)
Content-Type: image/jpeg
Cache-Control: no-cache
Expires: 0
Content-length: 10277
????']
10/20/09 22:10:32.611706 zmc_m1[622].DB6-zm_remote_camera_http.cpp/614 [Server: MayGion WebServer(www.maygion.com)
Content-Type: image/jpeg
Cache-Control: no-cache
Expires: 0
Content-length: 10277
????]
10/20/09 22:10:32.611726 zmc_m1[622].DB6-zm_remote_camera_http.cpp/641 [Got ignored header 'Server: MayGion WebServer(www.maygion.com)
Content-Type: image/jpeg
Cache-Control: no-cache
Expires: 0
Content-length: 10277
????']
10/20/09 22:10:32.611746 zmc_m1[622].DB6-zm_remote_camera_http.cpp/614 [Content-Type: image/jpeg
Cache-Control: no-cache
Expires: 0
Content-length: 10277
????]
10/20/09 22:10:32.611781 zmc_m1[622].DB6-zm_remote_camera_http.cpp/637 [Got content type header 'Content-Type: image/jpeg
Cache-Control: no-cache
Expires: 0
Content-length: 10277
????']
10/20/09 22:10:32.611803 zmc_m1[622].DB6-zm_remote_camera_http.cpp/614 [Cache-Control: no-cache
Expires: 0
Content-length: 10277
????]
10/20/09 22:10:32.611823 zmc_m1[622].DB6-zm_remote_camera_http.cpp/641 [Got ignored header 'Cache-Control: no-cache
Expires: 0
Content-length: 10277
????']
10/20/09 22:10:32.611842 zmc_m1[622].DB6-zm_remote_camera_http.cpp/614 [Expires: 0
Content-length: 10277
????]
10/20/09 22:10:32.611862 zmc_m1[622].DB6-zm_remote_camera_http.cpp/641 [Got ignored header 'Expires: 0
Content-length: 10277
????']
10/20/09 22:10:32.611881 zmc_m1[622].DB6-zm_remote_camera_http.cpp/614 [Content-length: 10277
????]
10/20/09 22:10:32.611901 zmc_m1[622].DB6-zm_remote_camera_http.cpp/632 [Got content length header 'Content-length: 10277
????']
10/20/09 22:10:32.611923 zmc_m1[622].DB3-zm_remote_camera_http.cpp/686 [Got status '200' (OK), http version 1.1]
10/20/09 22:10:32.611944 zmc_m1[622].DB3-zm_remote_camera_http.cpp/699 [Got content length '10277']
10/20/09 22:10:32.611963 zmc_m1[622].DB3-zm_remote_camera_http.cpp/727 [Got content type 'image/jpeg']
10/20/09 22:10:32.612576 zmc_m1[622].DB3-zm_remote_camera_http.cpp/171 [Expecting 1460 bytes]
10/20/09 22:10:32.612616 zmc_m1[622].DB3-zm_remote_camera_http.cpp/196 [Read 1460 bytes]
10/20/09 22:10:32.613810 zmc_m1[622].DB3-zm_remote_camera_http.cpp/171 [Expecting 1460 bytes]
10/20/09 22:10:32.613847 zmc_m1[622].DB3-zm_remote_camera_http.cpp/196 [Read 1460 bytes]
10/20/09 22:10:32.617232 zmc_m1[622].DB3-zm_remote_camera_http.cpp/171 [Expecting 6768 bytes]
10/20/09 22:10:32.617280 zmc_m1[622].DB3-zm_remote_camera_http.cpp/196 [Read 6768 bytes]
10/20/09 22:10:32.617308 zmc_m1[622].DB3-zm_remote_camera_http.cpp/937 [Got end of image by length, content-length = 10277]
10/20/09 22:10:32.617374 zmc_m1[622].DB3-zm_remote_camera_http.cpp/1004 [Returning 10277 (10277) bytes of captured content]
10/20/09 22:10:32.802647 zmc_m1[622].DB3-zm_remote_camera_http.cpp/105 [Connected to host, socket = 5]
10/20/09 22:10:32.802736 zmc_m1[622].DB3-zm_remote_camera_http.cpp/126 [Request sent]
10/20/09 22:10:32.810655 zmc_m1[622].DB3-zm_remote_camera_http.cpp/166 [Socket closed]
10/20/09 22:10:32.810718 zmc_m1[622].DB6-zm_remote_camera_http.cpp/614 [HTTP/1.1 200 OK]
10/20/09 22:10:32.810742 zmc_m1[622].DB3-zm_remote_camera_http.cpp/775 [Unable to extract entire header from stream, continuing]
10/20/09 22:10:32.810813 zmc_m1[622].INF-zm_signal.cpp/72 [Got signal 11 (Segmentation fault), crashing]
10/20/09 22:10:32.810893 zmc_m1[622].ERR-zm_signal.cpp/84 [Signal address is 0xdfd0cfec, from 0x8076f96]
10/20/09 22:10:32.811127 zmc_m1[622].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zmc [0x8076f96]]
10/20/09 22:10:32.811192 zmc_m1[622].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zmc [0x8076f96]]
10/20/09 22:10:32.811230 zmc_m1[622].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zmc [0x8077649]]
10/20/09 22:10:32.811267 zmc_m1[622].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zmc [0x8078c4a]]
10/20/09 22:10:32.811303 zmc_m1[622].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zmc [0x806d03a]]
10/20/09 22:10:32.811339 zmc_m1[622].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zmc [0x804c586]]
10/20/09 22:10:32.811439 zmc_m1[622].ERR-zm_signal.cpp/122 [Backtrace: /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0) [0xb7a8a450]]
10/20/09 22:10:32.811481 zmc_m1[622].ERR-zm_signal.cpp/122 [Backtrace: /usr/local/bin/zmc(__gxx_personality_v0+0x2fd) [0x804bcf1]]
10/20/09 22:10:32.811518 zmc_m1[622].INF-zm_signal.cpp/125 [Backtrace complete, please execute the following command for more information]
10/20/09 22:10:32.811554 zmc_m1[622].INF-zm_signal.cpp/126 [addr2line -e /usr/local/bin/zmc(__gxx_personality_v0+0x2fd) 0x8076f96 0x8076f96 0x8077649 0x8078c4a 0x806d03a 0x804c586 0xb7a8a450 0x804bcf1]
peter@fiji:/tmp$ addr2line -e /usr/local/bin/zmc 0x8076f96 0x8076f96 0x8077649 0x8078c4a 0x806d03a 0x804c586 0xb7a8a450 0x804bcf1
/home/peter/zoneminder/ZoneMinder-1.24.2/src/zm_remote_camera_http.cpp:134
/home/peter/zoneminder/ZoneMinder-1.24.2/src/zm_remote_camera_http.cpp:134
/home/peter/zoneminder/ZoneMinder-1.24.2/src/zm_remote_camera_http.cpp:575
/home/peter/zoneminder/ZoneMinder-1.24.2/src/zm_remote_camera_http.cpp:1041
/home/peter/zoneminder/ZoneMinder-1.24.2/src/zm_monitor.cpp:2474
/home/peter/zoneminder/ZoneMinder-1.24.2/src/zmc.cpp:258
??:0
??:0
peter@fiji:/var/log$ ipcs -l
------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 131072
max total shared memory (kbytes) = 536870912
min seg size (bytes) = 1
------ Semaphore Limits --------
max number of arrays = 128
max semaphores per array = 250
max semaphores system wide = 32000
max ops per semop call = 32
semaphore max value = 32767
------ Messages: Limits --------
max queues system wide = 16
max size of message (bytes) = 8192
default max size of queue (bytes) = 16384
The strange thing is that the camera links show in red, but the video stream does sometimes show in ZM. Could this crash be related to the fact that my url returns a still (jpg) image and not a stream? Any help appreciated,
thanks
Peter
segmentation fault
-
- Posts: 48
- Joined: Thu Mar 05, 2009 9:42 pm
I have just got one of these rather cheap PTZ cameras, from what I can tell it's a maygion.
Quick question to the OP: what's the URL you are using to access the camera? I've noticed that http://{Camera IP}/snap.jpg works but only if you've previously authenticated to the camera (and it's not Basic HTTP auth or anything like that so I can't put http://user:pass@{Camera IP}/snap.jpg either) - I can also move the camera sending commands to a cgi script on the camera such as http://{Camera IP}/cgi.cmd?cmd=moveptz&tick=100&dir=btnPtzRight but again this requires the previous authentication via the login.asp page on the camera.
Any idea how I can either a) disable the login altogether or b) get zoneminder to send this login initially?
Help from the OP or anyone else would be much appreciated.
Quick question to the OP: what's the URL you are using to access the camera? I've noticed that http://{Camera IP}/snap.jpg works but only if you've previously authenticated to the camera (and it's not Basic HTTP auth or anything like that so I can't put http://user:pass@{Camera IP}/snap.jpg either) - I can also move the camera sending commands to a cgi script on the camera such as http://{Camera IP}/cgi.cmd?cmd=moveptz&tick=100&dir=btnPtzRight but again this requires the previous authentication via the login.asp page on the camera.
Any idea how I can either a) disable the login altogether or b) get zoneminder to send this login initially?
Help from the OP or anyone else would be much appreciated.
-
- Posts: 48
- Joined: Thu Mar 05, 2009 9:42 pm
OK, I've made a bit of progress on this one, by upgrading the web interface on the camera to the latest version and viewing the Javascript source.
the URL needed to access the Maygion camera is
http://{Camera IP}/snap.jpg?usr={username}&pass={password}
This removes the need to authenticate. I can put these details into ZM and it will pull a few images through but then crash like sfpeter has described.
Does anyone have any ideas why this is happening? I don't want to have to downgrade ZM to 1.23 but will do if I can't use this camera!
the URL needed to access the Maygion camera is
http://{Camera IP}/snap.jpg?usr={username}&pass={password}
This removes the need to authenticate. I can put these details into ZM and it will pull a few images through but then crash like sfpeter has described.
Code: Select all
/usr/src/zm/src/zm_remote_camera_http.cpp:134
/usr/src/zm/src/zm_remote_camera_http.cpp:134
/usr/src/zm/src/zm_remote_camera_http.cpp:575
/usr/src/zm/src/zm_remote_camera_http.cpp:1041
/usr/src/zm/src/zm_monitor.cpp:2474
/usr/src/zm/src/zmc.cpp:258
??:0
/build/buildd/glibc-2.9/csu/../sysdeps/i386/elf/start.S:122
-
- Posts: 48
- Joined: Thu Mar 05, 2009 9:42 pm
I have created a thread for this camera here: http://www.zoneminder.com/forums/viewtopic.php?p=57528