Quedale / OnvifDeviceManager

Onvif Device Manager for Linux
GNU General Public License v3.0
72 stars 17 forks source link

binary ./onvifmgr crashed after build was apparently successful #22

Open mrinvader opened 4 months ago

mrinvader commented 4 months ago

Running the app crashes... crash output at bottom

** distro info from lsb-release

DISTRIB_ID=Ubuntu DISTRIB_RELEASE=20.04 DISTRIB_CODENAME=focal DISTRIB_DESCRIPTION="Ubuntu 20.04.2 LTS"

**configure output exceeded my scrollback...

see config.log attached config.log

the last few lines as follows


configure: creating ./config.status
config.status: creating Makefile
config.status: executing libtool commands
config.status: executing depfiles commands
bridgeadmin@moodjacksonbridge:~/onvifdevicemanager/OnvifDeviceManager$

**Make output after errno fix

bridgeadmin@moodjacksonbridge:~/onvifdevicemanager/OnvifDeviceManager$ make -j$(nproc)
  CC       src/app/settings/onvifmgr-app_settings.o
  CC       src/gst/onvifmgr-onvifinitstaticplugins.o
  CC       src/gst/onvifmgr-overlay.o
  CC       src/gst/onvifmgr-src_retriever.o
  CC       src/gst/gtk/onvifmgr-gstplugin.o
  CC       src/gst/gtk/onvifmgr-gstgtkbasesink.o
  CC       src/gst/gtk/onvifmgr-gstgtksink.o
  CC       src/gst/gtk/onvifmgr-gstgtkutils.o
  CC       src/gst/gtk/onvifmgr-gtkgstbasewidget.o
  CC       src/gst/gtk/onvifmgr-gtkgstwidget.o
  CC       src/gst/onvifmgr-gstrtspplayer.o
  CCLD     locked-icon.o
  CCLD     microphone.o
  CCLD     warning.o
  CCLD     save.o
  CCLD     tower.o
  CC       src/queue/onvifmgr-event_queue.o
  CC       src/queue/onvifmgr-queue_event.o
  CC       src/queue/onvifmgr-queue_thread.o
  CCLD     onvifmgr

**Error output when adding an rtsp feed

bridgeadmin@moodjacksonbridge:~/onvifdevicemanager/OnvifDeviceManager$ ./onvifmgr 
INFO  24-03-06 23:51:39.923323 140177204042368 onvif-mgr.c:103: Onvif Device Manager Version : 0.0
INFO  24-03-06 23:51:39.923401 140177204042368 onvif-mgr.c:104: Using Gstreamer Version : 1.22.9.0
INFO  24-03-06 23:51:39.923419 140177204042368 onvifinitstaticplugins.c:223: Initializing Gstreamer plugins...
INFO  24-03-06 23:51:39.923665 140177204042368 onvifinitstaticplugins.c:228: Loading static plugins...
DEBUG 24-03-06 23:51:39.941358 140177204042368 onvifinitstaticplugins.c:435: Gstreamer plugins initialized...
WARN  24-03-06 23:51:39.941378 140177204042368 onvif-mgr.c:73: Element 'avdec_h264' not found.
WARN  24-03-06 23:51:39.941382 140177204042368 onvif-mgr.c:73: Element 'avdec_h265' not found.
WARN  24-03-06 23:51:39.941388 140177204042368 onvif-mgr.c:81: Found element 'openh264dec'. Increasing priority from 64 to 65...
INFO  24-03-06 23:51:39.941398 140177204042368 onvif-mgr.c:48: *** video/x-h264 decoders ***
INFO  24-03-06 23:51:39.941552 140177204042368 onvif-mgr.c:56: *    openh264dec[65]
INFO  24-03-06 23:51:39.941567 140177204042368 onvif-mgr.c:61: ****************************
INFO  24-03-06 23:51:39.941572 140177204042368 onvif-mgr.c:48: *** video/x-h265 decoders ***
INFO  24-03-06 23:51:39.941687 140177204042368 onvif-mgr.c:56: *    libde265dec[128]
INFO  24-03-06 23:51:39.941696 140177204042368 onvif-mgr.c:61: ****************************
INFO  24-03-06 23:51:39.941705 140177204042368 onvif-mgr.c:48: *** image/jpeg decoders ***
INFO  24-03-06 23:51:39.941770 140177204042368 onvif-mgr.c:56: *    jpegdec[256]
INFO  24-03-06 23:51:39.941776 140177204042368 onvif-mgr.c:61: ****************************
INFO  24-03-06 23:51:39.941782 140177204042368 onvif-mgr.c:48: *** video/x-av1 decoders ***
INFO  24-03-06 23:51:39.941834 140177204042368 onvif-mgr.c:61: ****************************
TRACE 24-03-06 23:51:39.941839 140177204042368 event_queue.c:83: create...
TRACE 24-03-06 23:51:40.013415 140177204042368 app_settings.c:86: Generating default config path from HOME directory : /home/bridgeadmin
INFO  24-03-06 23:51:40.013435 140177204042368 app_settings.c:249: Reading Settings file /home/bridgeadmin/.config/onvifmgr_settings.ini
WARN  24-03-06 23:51:40.013454 140177204042368 app_settings.c:306: No config file found. Using default configs. 1
DEBUG 24-03-06 23:51:40.015021 140177204042368 src_retriever.c:12: Test Audio Src [pulsesrc] device [(null)]
INFO  24-03-06 23:51:40.016778 140177204042368 backchannel.c:111: Creating backchannel using source element pulsesrc
DEBUG 24-03-06 23:51:40.017118 140177178121984 queue_thread.c:25: Started...
DEBUG 24-03-06 23:51:40.017149 140177161336576 queue_thread.c:25: Started...
DEBUG 24-03-06 23:51:40.017189 140177144551168 queue_thread.c:25: Started...
DEBUG 24-03-06 23:51:40.017257 140177045444352 queue_thread.c:25: Started...
DEBUG 24-03-06 23:51:40.017284 140177053837056 queue_thread.c:25: Started...
TRACE 24-03-06 23:51:40.017325 140177204042368 profiles_dialog.c:119: create
TRACE 24-03-06 23:51:40.017333 140177204042368 app_dialog.c:69: init
DEBUG 24-03-06 23:51:40.017343 140177037051648 queue_thread.c:25: Started...
DEBUG 24-03-06 23:51:40.017388 140177062229760 queue_thread.c:25: Started...
TRACE 24-03-06 23:51:40.017772 140177204042368 profiles_dialog.c:25: priv_ProfilesDialog__create_ui
TRACE 24-03-06 23:51:40.017955 140177204042368 app_dialog.c:69: init
DEBUG 24-03-06 23:51:40.018702 140177152943872 queue_thread.c:25: Started...
TRACE 24-03-06 23:51:40.020330 140177204042368 credentials_input.c:28: create
TRACE 24-03-06 23:51:40.020347 140177204042368 app_dialog.c:69: init
TRACE 24-03-06 23:51:40.021544 140177204042368 msg_dialog.c:60: create
TRACE 24-03-06 23:51:40.021558 140177204042368 app_dialog.c:69: init
TRACE 24-03-06 23:51:40.043147 140177204042368 onvif_details.c:108: clear_details
TRAIL 24-03-06 23:51:40.043193 140177204042368 onvif_details.c:33: update_details_priv - invalid device.
INFO  24-03-06 23:51:50.056537 140177204042368 onvif_app.c:149: Starting ONVIF Devices Network Discovery...
TRACE 24-03-06 23:51:50.057514 140177178121984 event_queue.c:145: pop
TRACE 24-03-06 23:51:50.057541 140177178121984 event_queue.c:165: notify dispatching event...
TRACE 24-03-06 23:51:50.057584 140177178121984 onvif_app.c:139: _start_onvif_discovery
DEBUG 24-03-06 23:51:50.058091 140177178121984 onvif_discovery.c:208: Sending NVT probe...
DEBUG 24-03-06 23:51:50.061326 140177178121984 onvif_discovery.c:64: ProbeMatches found...
TRACE 24-03-06 23:51:50.061361 140177178121984 probmatch.c:15: ProbMatches__create...
TRACE 24-03-06 23:51:50.061374 140177178121984 probmatch.c:84: ProbMatch__create...
TRACE 24-03-06 23:51:50.061401 140177178121984 onvif_app.c:123: _found_server
TRACE 24-03-06 23:51:50.061453 140177204042368 onvif_app.c:89: found_server
INFO  24-03-06 23:51:50.061481 140177204042368 onvif_app.c:98: Found server - Match count : 1
DEBUG 24-03-06 23:51:50.061504 140177204042368 onvif_device.c:181: OnvifDevice__create
INFO  24-03-06 23:51:50.061519 140177204042368 onvif_device.c:173: Created Device:
INFO  24-03-06 23:51:50.061529 140177204042368 onvif_device.c:174:  protocol -- http
INFO  24-03-06 23:51:50.061541 140177204042368 onvif_device.c:175:  host : 10.1.10.26
INFO  24-03-06 23:51:50.061551 140177204042368 onvif_device.c:176:  port -- 80
INFO  24-03-06 23:51:50.061561 140177204042368 onvif_device.c:177:  endpoint : onvif/device_service
TRACE 24-03-06 23:51:50.073486 140177204042368 probmatch.c:22: ProbMatches__destroy...
TRACE 24-03-06 23:51:50.073540 140177204042368 probmatch.c:48: ProbMatch__destroy...
TRACE 24-03-06 23:51:50.073553 140177204042368 probmatch.c:68: ProbMatch__destroy... done
TRACE 24-03-06 23:51:50.073568 140177161336576 event_queue.c:145: pop
TRACE 24-03-06 23:51:50.073591 140177161336576 event_queue.c:165: notify dispatching event...
TRACE 24-03-06 23:51:50.073641 140177161336576 onvif_app.c:216: _display_onvif_device
INFO  24-03-06 23:51:50.073654 140177161336576 onvif_device.c:72: [http://10.1.10.26:80/onvif/device_service] OnvifDevice__authenticate
DEBUG 24-03-06 23:51:50.073666 140177161336576 onvif_device_service.c:82: [http://10.1.10.26:80/onvif/device_service] Invoking GetSystemDateAndTime
DEBUG 24-03-06 23:51:50.074811 140177178121984 onvif_discovery.c:64: ProbeMatches found...
TRACE 24-03-06 23:51:50.074827 140177178121984 probmatch.c:15: ProbMatches__create...
TRACE 24-03-06 23:51:50.074830 140177178121984 probmatch.c:84: ProbMatch__create...
TRACE 24-03-06 23:51:50.074840 140177178121984 onvif_app.c:123: _found_server
INFO  24-03-06 23:51:50.078936 140177161336576 onvif_device.c:93: [http://10.1.10.26:80/onvif/device_service] Camera SystemDateAndTime : '2024-03-06 23:51:49'
TRACE 24-03-06 23:51:50.078952 140177161336576 onvif_device.c:46: [http://10.1.10.26:80/onvif/device_service] OnvifDevice__createMediaService
DEBUG 24-03-06 23:51:50.078959 140177161336576 onvif_device_service.c:99: [http://10.1.10.26:80/onvif/device_service] Invoking GetCapabilities
DEBUG 24-03-06 23:51:50.084364 140177161336576 onvif_device.c:102: [http://10.1.10.26:80/onvif/media_service] Successfully created Media soap
TRACE 24-03-06 23:51:50.084383 140177161336576 onvif_media_service.c:270: [http://10.1.10.26:80/onvif/media_service] OnvifMediaService__get_profile_token 0
DEBUG 24-03-06 23:51:50.084392 140177161336576 onvif_media_service.c:80: [http://10.1.10.26:80/onvif/media_service] Invoking GetProfiles
DEBUG 24-03-06 23:51:50.086741 140177161336576 onvif_base_service.c:147: WWW-Authorization challenge '9c3bab2be618cc2377faf902'
WARN  24-03-06 23:51:50.089896 140177161336576 onvif_base_service.c:247: Warning : NOT AUTHORIZED HTTP Error code [401]
WARN  24-03-06 23:51:50.089948 140177161336576 onvif_media_service.c:102: Profile token not found.
ERROR 24-03-06 23:51:50.089954 140177161336576 onvif_device.c:106: [http://10.1.10.26:80/onvif/media_service] No stream uri returned...
TRACE 24-03-06 23:51:50.090055 140177161336576 omgr_device_row.c:418: OnvifMgrDeviceRow__load_thumbnail
TRACE 24-03-06 23:51:50.092794 140177161336576 omgr_device_row.c:490: OnvifMgrDeviceRow__load_thumbnail done.
TRACE 24-03-06 23:51:50.092815 140177161336576 event_queue.c:173: notify dispatched event...
TRACE 24-03-06 23:51:50.106561 140177204042368 onvif_app.c:89: found_server
INFO  24-03-06 23:51:50.106580 140177204042368 onvif_app.c:98: Found server - Match count : 1
DEBUG 24-03-06 23:51:50.106590 140177204042368 onvif_device.c:181: OnvifDevice__create
INFO  24-03-06 23:51:50.106598 140177204042368 onvif_device.c:173: Created Device:
INFO  24-03-06 23:51:50.106602 140177204042368 onvif_device.c:174:  protocol -- http
INFO  24-03-06 23:51:50.106616 140177204042368 onvif_device.c:175:  host : 10.1.10.22
INFO  24-03-06 23:51:50.106622 140177204042368 onvif_device.c:176:  port -- (null)
INFO  24-03-06 23:51:50.106626 140177204042368 onvif_device.c:177:  endpoint : onvif/device_service
TRACE 24-03-06 23:51:50.112561 140177204042368 probmatch.c:22: ProbMatches__destroy...
TRACE 24-03-06 23:51:50.112585 140177204042368 probmatch.c:48: ProbMatch__destroy...
TRACE 24-03-06 23:51:50.112596 140177204042368 probmatch.c:68: ProbMatch__destroy... done
TRACE 24-03-06 23:51:50.112607 140177144551168 event_queue.c:145: pop
TRACE 24-03-06 23:51:50.112618 140177144551168 event_queue.c:165: notify dispatching event...
TRACE 24-03-06 23:51:50.112648 140177144551168 onvif_app.c:216: _display_onvif_device
INFO  24-03-06 23:51:50.112656 140177144551168 onvif_device.c:72: [http://10.1.10.22/onvif/device_service] OnvifDevice__authenticate
DEBUG 24-03-06 23:51:50.112662 140177144551168 onvif_device_service.c:82: [http://10.1.10.22/onvif/device_service] Invoking GetSystemDateAndTime
INFO  24-03-06 23:51:50.116981 140177144551168 onvif_device.c:93: [http://10.1.10.22/onvif/device_service] Camera SystemDateAndTime : '2024-03-06 10:51:48'
TRACE 24-03-06 23:51:50.117019 140177144551168 onvif_device.c:46: [http://10.1.10.22/onvif/device_service] OnvifDevice__createMediaService
DEBUG 24-03-06 23:51:50.117029 140177144551168 onvif_device_service.c:99: [http://10.1.10.22/onvif/device_service] Invoking GetCapabilities
DEBUG 24-03-06 23:51:50.121248 140177144551168 onvif_device.c:102: [http://10.1.10.22/onvif/Media] Successfully created Media soap
TRACE 24-03-06 23:51:50.121271 140177144551168 onvif_media_service.c:270: [http://10.1.10.22/onvif/Media] OnvifMediaService__get_profile_token 0
DEBUG 24-03-06 23:51:50.121286 140177144551168 onvif_media_service.c:80: [http://10.1.10.22/onvif/Media] Invoking GetProfiles
DEBUG 24-03-06 23:51:50.126324 140177144551168 onvif_base_service.c:147: WWW-Authorization challenge 'DS-2CD2135FWD-I'
WARN  24-03-06 23:51:50.130863 140177144551168 onvif_base_service.c:247: Warning : NOT AUTHORIZED HTTP Error code [401]
WARN  24-03-06 23:51:50.130915 140177144551168 onvif_media_service.c:102: Profile token not found.
ERROR 24-03-06 23:51:50.130924 140177144551168 onvif_device.c:106: [http://10.1.10.22/onvif/Media] No stream uri returned...
TRACE 24-03-06 23:51:50.131017 140177144551168 omgr_device_row.c:418: OnvifMgrDeviceRow__load_thumbnail
TRACE 24-03-06 23:51:50.133131 140177144551168 omgr_device_row.c:490: OnvifMgrDeviceRow__load_thumbnail done.
TRACE 24-03-06 23:51:50.133149 140177144551168 event_queue.c:173: notify dispatched event...
DEBUG 24-03-06 23:51:52.077135 140177178121984 onvif_discovery.c:208: Sending NVT probe...
DEBUG 24-03-06 23:51:52.080142 140177178121984 onvif_discovery.c:64: ProbeMatches found...
TRACE 24-03-06 23:51:52.080163 140177178121984 probmatch.c:15: ProbMatches__create...
TRACE 24-03-06 23:51:52.080167 140177178121984 probmatch.c:84: ProbMatch__create...
TRACE 24-03-06 23:51:52.080175 140177178121984 onvif_app.c:123: _found_server
TRACE 24-03-06 23:51:52.080215 140177204042368 onvif_app.c:89: found_server
INFO  24-03-06 23:51:52.080225 140177204042368 onvif_app.c:98: Found server - Match count : 1
DEBUG 24-03-06 23:51:52.080238 140177204042368 onvif_app.c:78: Record already part of list [http://10.1.10.26:80/onvif/device_service]
TRACE 24-03-06 23:51:52.080247 140177204042368 probmatch.c:22: ProbMatches__destroy...
TRACE 24-03-06 23:51:52.080252 140177204042368 probmatch.c:48: ProbMatch__destroy...
TRACE 24-03-06 23:51:52.080257 140177204042368 probmatch.c:68: ProbMatch__destroy... done
DEBUG 24-03-06 23:51:52.082376 140177178121984 onvif_discovery.c:64: ProbeMatches found...
TRACE 24-03-06 23:51:52.082398 140177178121984 probmatch.c:15: ProbMatches__create...
TRACE 24-03-06 23:51:52.082402 140177178121984 probmatch.c:84: ProbMatch__create...
TRACE 24-03-06 23:51:52.082408 140177178121984 onvif_app.c:123: _found_server
TRACE 24-03-06 23:51:52.082472 140177204042368 onvif_app.c:89: found_server
INFO  24-03-06 23:51:52.082486 140177204042368 onvif_app.c:98: Found server - Match count : 1
DEBUG 24-03-06 23:51:52.082499 140177204042368 onvif_app.c:78: Record already part of list [http://10.1.10.22/onvif/device_service]
TRACE 24-03-06 23:51:52.082507 140177204042368 probmatch.c:22: ProbMatches__destroy...
TRACE 24-03-06 23:51:52.082512 140177204042368 probmatch.c:48: ProbMatch__destroy...
TRACE 24-03-06 23:51:52.082518 140177204042368 probmatch.c:68: ProbMatch__destroy... done
TRACE 24-03-06 23:51:54.084193 140177178121984 event_queue.c:173: notify dispatched event...
TRACE 24-03-06 23:51:54.084243 140177204042368 onvif_app.c:128: finished_discovery
DEBUG 24-03-06 23:52:00.296711 140177204042368 onvif_app.c:397: OnvifApp__select_device
TRACE 24-03-06 23:52:00.296751 140177204042368 onvif_details.c:108: clear_details
TRACE 24-03-06 23:52:00.296767 140177045444352 event_queue.c:145: pop
TRACE 24-03-06 23:52:00.296778 140177045444352 event_queue.c:165: notify dispatching event...
DEBUG 24-03-06 23:52:00.296792 140177204042368 onvif_app.c:923: OnvifApp__set_device - valid device
TRACE 24-03-06 23:52:00.296810 140177045444352 onvif_app.c:205: _stop_onvif_stream
DEBUG 24-03-06 23:52:00.296817 140177045444352 gstrtspplayer.c:526: RtspPlayer__stop
INFO  24-03-06 23:52:00.297037 140177045444352 onvif_app.c:170: Stream stopped
TRACE 24-03-06 23:52:00.297063 140177045444352 event_queue.c:173: notify dispatched event...
DEBUG 24-03-06 23:52:00.301875 140177204042368 app_dialog.c:98: show
INFO  24-03-06 23:52:13.934161 140177204042368 onvif_app.c:379: OnvifAuthentication attempt...
TRACE 24-03-06 23:52:13.934245 140177053837056 event_queue.c:145: pop
TRACE 24-03-06 23:52:13.934262 140177053837056 event_queue.c:165: notify dispatching event...
DEBUG 24-03-06 23:52:13.934320 140177053837056 onvif_app.c:364: _onvif_authentication_reload
INFO  24-03-06 23:52:13.934338 140177053837056 onvif_device.c:72: [http://10.1.10.26:80/onvif/device_service] OnvifDevice__authenticate
INFO  24-03-06 23:52:13.934384 140177053837056 onvif_device.c:93: [http://10.1.10.26:80/onvif/device_service] Camera SystemDateAndTime : '2024-03-06 23:51:49'
TRACE 24-03-06 23:52:13.934403 140177053837056 onvif_device.c:46: [http://10.1.10.26:80/onvif/device_service] OnvifDevice__createMediaService
DEBUG 24-03-06 23:52:13.934420 140177053837056 onvif_device_service.c:99: [http://10.1.10.26:80/onvif/device_service] Invoking GetCapabilities
TRACE 24-03-06 23:52:13.934643 140177053837056 onvif_base_service.c:117: [http://10.1.10.26:80/onvif/device_service] Time adjustment [2024-03-07 04:52:13] to [2024-03-07 04:52:12] offset -1
DEBUG 24-03-06 23:52:13.939992 140177053837056 onvif_device.c:102: [http://10.1.10.26:80/onvif/media_service] Successfully created Media soap
TRACE 24-03-06 23:52:13.940036 140177053837056 onvif_media_service.c:270: [http://10.1.10.26:80/onvif/media_service] OnvifMediaService__get_profile_token 0
DEBUG 24-03-06 23:52:13.940055 140177053837056 onvif_media_service.c:80: [http://10.1.10.26:80/onvif/media_service] Invoking GetProfiles
TRACE 24-03-06 23:52:13.940089 140177053837056 onvif_base_service.c:117: [http://10.1.10.26:80/onvif/media_service] Time adjustment [2024-03-07 04:52:13] to [2024-03-07 04:52:12] offset -1
TRACE 24-03-06 23:52:13.978714 140177053837056 onvif_media_service.c:283: [http://10.1.10.26:80/onvif/media_service] OnvifMediaService__get_profile_token : Found profile [ProfileToken017]
DEBUG 24-03-06 23:52:13.978755 140177053837056 onvif_media_service.c:121: [http://10.1.10.26:80/onvif/media_service] Invoking GetStreamUri
TRACE 24-03-06 23:52:13.978832 140177053837056 onvif_base_service.c:117: [http://10.1.10.26:80/onvif/media_service] Time adjustment [2024-03-07 04:52:13] to [2024-03-07 04:52:12] offset -1
ERROR 24-03-06 23:52:13.983733 140177053837056 onvif_device.c:110: [http://10.1.10.26:80/onvif/media_service] StreamURI : rtsp://10.1.10.26:8554/Streaming/Unicast/channels/1701
TRACE 24-03-06 23:52:13.983824 140177062229760 event_queue.c:145: pop
TRACE 24-03-06 23:52:13.983845 140177062229760 event_queue.c:165: notify dispatching event...
TRACE 24-03-06 23:52:13.983913 140177053837056 onvif_app.c:261: _play_onvif_stream http://10.1.10.26:80/onvif/device_service
INFO  24-03-06 23:52:13.983935 140177053837056 onvif_device.c:72: [http://10.1.10.26:80/onvif/device_service] OnvifDevice__authenticate
DEBUG 24-03-06 23:52:13.983950 140177053837056 omgr_device_row.c:404: OnvifMgrDeviceRow__get_profile
WARN  24-03-06 23:52:13.983960 140177053837056 onvif_media_profile.c:100: Failed to get profile index. NULL pointer. Defaulting to 0.
TRACE 24-03-06 23:52:13.983970 140177053837056 onvif_media_service.c:270: [http://10.1.10.26:80/onvif/media_service] OnvifMediaService__get_profile_token 0
TRACE 24-03-06 23:52:13.983982 140177053837056 onvif_media_service.c:283: [http://10.1.10.26:80/onvif/media_service] OnvifMediaService__get_profile_token : Found profile [ProfileToken017]
DEBUG 24-03-06 23:52:13.983996 140177053837056 onvif_media_service.c:121: [http://10.1.10.26:80/onvif/media_service] Invoking GetStreamUri
TRACE 24-03-06 23:52:13.984038 140177062229760 onvif_app.c:216: _display_onvif_device
INFO  24-03-06 23:52:13.984062 140177062229760 onvif_device.c:72: [http://10.1.10.26:80/onvif/device_service] OnvifDevice__authenticate
DEBUG 24-03-06 23:52:13.984073 140177062229760 omgr_device_row.c:404: OnvifMgrDeviceRow__get_profile
TRACE 24-03-06 23:52:13.984133 140177062229760 omgr_device_row.c:418: OnvifMgrDeviceRow__load_thumbnail
DEBUG 24-03-06 23:52:13.984148 140177062229760 onvif_media_service.c:245: [http://10.1.10.26:80/onvif/media_service] OnvifMediaService__getSnapshot
TRACE 24-03-06 23:52:13.984158 140177062229760 onvif_media_service.c:270: [http://10.1.10.26:80/onvif/media_service] OnvifMediaService__get_profile_token 0
TRACE 24-03-06 23:52:13.984168 140177062229760 onvif_media_service.c:283: [http://10.1.10.26:80/onvif/media_service] OnvifMediaService__get_profile_token : Found profile [ProfileToken017]
TRACE 24-03-06 23:52:13.984185 140177053837056 onvif_base_service.c:117: [http://10.1.10.26:80/onvif/media_service] Time adjustment [2024-03-07 04:52:13] to [2024-03-07 04:52:12] offset -1
INFO  24-03-06 23:52:13.988147 140177053837056 gstrtspplayer.c:851: set location : rtsp://10.1.10.26:8554/Streaming/Unicast/channels/1701
DEBUG 24-03-06 23:52:13.988192 140177062229760 onvif_media_service.c:150: [http://10.1.10.26:80/onvif/media_service] Invoking GetSnapshotUri
DEBUG 24-03-06 23:52:13.988222 140177053837056 gstrtspplayer.c:190: RtspPlayer__play retry[0] - playing[0]
TRACE 24-03-06 23:52:13.988313 140177062229760 onvif_base_service.c:117: [http://10.1.10.26:80/onvif/media_service] Time adjustment [2024-03-07 04:52:13] to [2024-03-07 04:52:12] offset -1
TRACE 24-03-06 23:52:13.988387 140177053837056 onvif_app.c:302: _play_onvif_stream - done
TRACE 24-03-06 23:52:13.988462 140177053837056 event_queue.c:173: notify dispatched event...
DEBUG 24-03-06 23:52:13.988614 140177204042368 app_dialog.c:131: hide
INFO  24-03-06 23:52:13.991016 140177062229760 onvif_media_service.c:253: [http://10.1.10.26:80/onvif/media_service] Snapshot URI : http://10.1.10.26:80/onvif/snapshot/1701

(onvifmgr:188730): Gtk-WARNING **: 23:52:13.996: A floating object was finalized. This means that someone
called g_object_unref() on an object that had only a floating
reference; the initial floating reference is not owned by anyone
and must be removed with g_object_ref_sink().
Error: signal 11:
./onvifmgr(+0x5cdb0)[0x562ff4e61db0]
/lib/x86_64-linux-gnu/libc.so.6(+0x43090)[0x7f7d8d9d5090]
./onvifmgr(+0x624f8)[0x562ff4e674f8]
./onvifmgr(+0x636db)[0x562ff4e686db]
./onvifmgr(+0x73ad5)[0x562ff4e78ad5]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x8609)[0x7f7d8db8c609]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x43)[0x7f7d8dab1353]
Quedale commented 4 months ago

Thanks for reporting this issue!

It seems to be similar to Issue #18. Although he/she didn't respond with additional details yet. Something bad seems to happen either during snapshot loading or while the stream starts.

Can you reconfigure the project with debugging enabled and then run it using valgrind?

rm -rf ./subprojects/OnvifSoapLib/build/dist/*
./autogen.sh --enable-latest --full-debug
make clean
make -j$(nproc)
valgrind ./onvifmgr

Doing so will add relevant details to valgrind's output.

Thanks again for your help improving this project!

Quedale commented 4 months ago

I figured out the cause of the crash and at least one way to reproduce it.

The last commit should fix the crash, while I figure out why the snapshot won't load.

Let me know how that goes!

Quedale commented 4 months ago

I actually managed to fix the thumbnail not loading properly as well.

Looking forward to hear back!