Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2024-05-21 01:25:49 FATAL onvif_simple_server.c:304: Memory error #5

Closed
winkmichael opened this issue May 21, 2024 · 1 comment
Closed

Comments

@winkmichael
Copy link

Hello, I've got things setup correct it looks like, however I run into a memory error and 500 no matter the URL.

Any idea what I might be able to do to fix this issue?

Thank you very much in advance!

http://192.168.1.20:8080/onvif/device_service

2024-05-21 01:25:49 DEBUG conf.c:117: type: H264
2024-05-21 01:25:49 DEBUG conf.c:117: decoder: NONE
2024-05-21 01:25:49 DEBUG conf.c:117: ptz: 1
2024-05-21 01:25:49 DEBUG conf.c:117: get_position: /usr/local/bin/get_position
2024-05-21 01:25:49 DEBUG conf.c:117: is_moving: /usr/local/bin/is_moving
2024-05-21 01:25:49 DEBUG conf.c:117: move_left: /usr/local/bin/ptz_move-m left
2024-05-21 01:25:49 DEBUG conf.c:117: move_right: /usr/local/bin/ptz_move-m right
2024-05-21 01:25:49 DEBUG conf.c:117: move_up: /usr/local/bin/ptz_move-m up
2024-05-21 01:25:49 DEBUG conf.c:117: move_down: /usr/local/bin/ptz_move-m down
2024-05-21 01:25:49 DEBUG conf.c:117: move_stop: /usr/local/bin/ptz_move-m stop
2024-05-21 01:25:49 DEBUG conf.c:117: move_preset: /usr/local/bin/ptz_move-p %d
2024-05-21 01:25:49 DEBUG conf.c:117: set_preset: /usr/local/bin/ptz_presets.sh -a add_preset -m %s
2024-05-21 01:25:49 DEBUG conf.c:117: set_home_position: /usr/local/bin/ptz_presets.sh -a set_home_position
2024-05-21 01:25:49 DEBUG conf.c:117: remove_preset: /usr/local/bin/ptz_presets.sh -a del_preset -n %d
2024-05-21 01:25:49 DEBUG conf.c:117: jump_to_abs: /usr/local/bin/ptz_move-j %f,%f
2024-05-21 01:25:49 DEBUG conf.c:117: jump_to_rel: /usr/local/bin/ptz_move-J %f,%f
2024-05-21 01:25:49 DEBUG conf.c:117: get_presets: /usr/local/bin/ptz_presets.sh -a get_presets
2024-05-21 01:25:49 INFO onvif_simple_server.c:292: Completed.
2024-05-21 01:25:49 FATAL onvif_simple_server.c:304: Memory error

2024-05-21 01:28:18 INFO onvif_simple_server.c:279: Processing configuration file /etc/onvif_simple_server.conf...
2024-05-21 01:28:18 DEBUG conf.c:117: model: Dev
2024-05-21 01:28:18 DEBUG conf.c:117: manufacturer: TEST
2024-05-21 01:28:18 DEBUG conf.c:117: firmware_ver: 1.0
2024-05-21 01:28:18 DEBUG conf.c:117: hardware_id: HA2912
2024-05-21 01:28:18 DEBUG conf.c:117: serial_num: SN12347890
2024-05-21 01:28:18 DEBUG conf.c:117: ifs: eth0
2024-05-21 01:28:18 DEBUG conf.c:117: port: 8080
2024-05-21 01:28:18 DEBUG conf.c:117: scope: onvif://www.onvif.org/Profile/Streaming
2024-05-21 01:28:18 DEBUG conf.c:117: adv_fault_if_unknown: 0
2024-05-21 01:28:18 DEBUG conf.c:117: adv_synology_nvr: 0
2024-05-21 01:28:18 DEBUG conf.c:117: name: Profile_0
2024-05-21 01:28:18 DEBUG conf.c:117: width: 1920
2024-05-21 01:28:18 DEBUG conf.c:117: height: 1080
2024-05-21 01:28:18 DEBUG conf.c:117: url: rtsp://%s/ch0_0.h264
2024-05-21 01:28:18 DEBUG conf.c:117: snapurl: http://%s/cgi-bin/snapshot.sh
2024-05-21 01:28:18 DEBUG conf.c:117: type: H264
2024-05-21 01:28:18 DEBUG conf.c:117: decoder: G711
2024-05-21 01:28:18 DEBUG conf.c:117: name: Profile_1
2024-05-21 01:28:18 DEBUG conf.c:117: width: 640
2024-05-21 01:28:18 DEBUG conf.c:117: height: 360
2024-05-21 01:28:18 DEBUG conf.c:117: url: rtsp://%s/ch0_1.h264
2024-05-21 01:28:18 DEBUG conf.c:117: snapurl: http://%s/cgi-bin/snapshot.sh
2024-05-21 01:28:18 DEBUG conf.c:117: type: H264
2024-05-21 01:28:18 DEBUG conf.c:117: decoder: NONE
2024-05-21 01:28:18 INFO onvif_simple_server.c:292: Completed.
2024-05-21 01:28:18 FATAL onvif_simple_server.c:304: Memory error

server.document-root = "/usr/local/onvif_simple_server/www/"
server.port = 8080

cgi.max_cgi_size = 64M
server.modules-dir = "/usr/local/onvif_simple_server/lib"
server.modules = ( "mod_cgi" )
cgi.assign = ( "_service" => "" )

server.errorlog = "/usr/local/onvif_simple_server/logs/error.log"
accesslog.filename = "/usr/local/onvif_simple_server/logs/access.log"

cat /usr/local/onvif_simple_server/logs/error.log
2024-05-21 00:54:45: (server.c.1933) server started (lighttpd/1.4.73)
2024-05-21 00:54:45: (configfile.c.1399) WARNING: unknown config-key: server.modules-dir (ignored)
2024-05-21 00:54:45: (configfile.c.1399) WARNING: unknown config-key: accesslog.filename (ignored)
2024-05-21 00:59:31: (mod_cgi.c.1337) CGI pid 10195 died with signal 6
2024-05-21 01:02:50: (mod_cgi.c.1337) CGI pid 10252 died with signal 6
2024-05-21 01:10:34: (server.c.2332) server stopped by UID = 0 PID = 10249
2024-05-21 01:11:12: (server.c.1933) server started (lighttpd/1.4.73)
2024-05-21 01:11:12: (configfile.c.1399) WARNING: unknown config-key: cgi.max_cgi_size (ignored)
2024-05-21 01:11:12: (configfile.c.1399) WARNING: unknown config-key: accesslog.filename (ignored)
2024-05-21 01:11:17: (mod_cgi.c.1337) CGI pid 10429 died with signal 6
2024-05-21 01:11:55: (server.c.2332) server stopped by UID = 0 PID = 10249
2024-05-21 01:12:00: (server.c.1933) server started (lighttpd/1.4.73)
2024-05-21 01:12:00: (configfile.c.1399) WARNING: unknown config-key: cgi.max_cgi_size (ignored)
2024-05-21 01:12:00: (configfile.c.1399) WARNING: unknown config-key: accesslog.filename (ignored)
2024-05-21 01:12:03: (mod_cgi.c.1337) CGI pid 10464 died with signal 6
2024-05-21 01:15:23: (mod_cgi.c.1337) CGI pid 10581 died with signal 6
2024-05-21 01:15:46: (mod_cgi.c.1337) CGI pid 10593 died with signal 6
2024-05-21 01:18:22: (mod_cgi.c.1337) CGI pid 10708 died with signal 11
2024-05-21 01:18:22: (mod_cgi.c.1337) CGI pid 10709 died with signal 11
2024-05-21 01:18:23: (mod_cgi.c.1337) CGI pid 10711 died with signal 11
2024-05-21 01:20:28: (mod_cgi.c.1337) CGI pid 10835 died with signal 6
2024-05-21 01:20:58: (mod_cgi.c.1337) CGI pid 10865 died with signal 11
2024-05-21 01:20:58: (mod_cgi.c.1337) CGI pid 10866 died with signal 11
2024-05-21 01:20:58: (mod_cgi.c.1337) CGI pid 10868 died with signal 11
2024-05-21 01:25:43: (mod_cgi.c.1337) CGI pid 11120 died with signal 11
2024-05-21 01:25:43: (mod_cgi.c.1337) CGI pid 11121 died with signal 11
2024-05-21 01:25:44: (mod_cgi.c.1337) CGI pid 11123 died with signal 11
2024-05-21 01:25:49: (mod_cgi.c.1337) CGI pid 11125 died with signal 6
2024-05-21 01:27:35: (mod_cgi.c.1337) CGI pid 11204 died with signal 6
2024-05-21 01:28:18: (mod_cgi.c.1337) CGI pid 11239 died with signal 6

@roleoroleo
Copy link
Owner

Maybe you are calling the service with a get request.
Use an onvif client and probably it will work.

But you are right, this error is ugly. Fixed here 1b3311a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants