v1.37.43 If SourceSecondPath is filled in with a valid url than zmc is crashing

Current Development version likely to have breaking changes
Post Reply
6i6i
Posts: 7
Joined: Mon Jan 11, 2016 8:55 am

v1.37.43 If SourceSecondPath is filled in with a valid url than zmc is crashing

Post by 6i6i »

Hello,

I am trying to do the analysis on SourceSecondPath, but zmc is immediatlely crashing until i delete the value from SourceSecondPath (Even when Analysis is set to primary).
My configuration looks like the following:
Camera is a HikVision HWI-B120-M (but also tried with my other types):
.) Capturing -> Always
.) Source Path -> rtsp://192.168.0.248:554/Streaming/channels/101
.) Username -> admin
.) Password -> xxxx
.) Method -> TCP
.) Decoding -> Always
.) SourceSecondPath -> rtsp://192.168.0.248:554/Streaming/channels/102

With this setting I get an Error when starting zmc but everything is working:
Could not open input file 'rtsp://192.168.0.248:554/Streaming/channels/102' (error 'Server returned 401 Unauthorized (authorization failed)')
If I change the configuration to:
.) SourceSecondPath -> rtsp://admin:xxxx@192.168.0.248:554/Streaming/channels/102
ZMC is crashing with:
9/18/23 12:57:34.997541 zmc_m3[3081654].DB1-zm_db.cpp/187 [Success running sql query INSERT INTO `Logs` ( `TimeKey`, `Component`, `ServerId`, `Pid`, `Level`, `Code`, `Message`, `File`, `Line` ) VALUES ( 1695034653.046565, 'zmc_m3', 0, 3081649, -2, 'ERR', 'Backtrace 3: /usr/bin/zmc(main+0xe79) [0x55dc61f660a9]', 'zm_signal.cpp', 105 ), thread_id: 812787]
09/18/23 12:57:34.997674 zmc_m3[3081654].WAR-zm_db.cpp/261 [db queue size has grown larger 15315 than 40 entries]
09/18/23 12:57:34.997748 zmc_m3[3081649].ERR-zm_signal.cpp/50 [Got signal 11 (Segmentation fault), crashing]
09/18/23 12:57:34.997885 zmc_m3[3081649].DB1-zm_signal.cpp/57 [Signal information: number 11 code 1 errno 0 pid 24 uid 0 status 0]
09/18/23 12:57:34.997907 zmc_m3[3081649].ERR-zm_signal.cpp/80 [Signal address is 0x18, from 0x55dc61fa6814]
09/18/23 12:57:34.998095 zmc_m3[3081649].ERR-zm_signal.cpp/105 [Backtrace 0: /usr/bin/zmc(+0x8b6c2) [0x55dc61fc96c2]]
09/18/23 12:57:34.998176 zmc_m3[3081649].ERR-zm_signal.cpp/105 [Backtrace 1: /lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7f3c3c3c5520]]
09/18/23 12:57:34.998263 zmc_m3[3081649].ERR-zm_signal.cpp/105 [Backtrace 2: /usr/bin/zmc(+0x68814) [0x55dc61fa6814]]
09/18/23 12:57:34.998369 zmc_m3[3081649].ERR-zm_signal.cpp/105 [Backtrace 3: /usr/bin/zmc(main+0xe79) [0x55dc61f660a9]]
09/18/23 12:57:34.998444 zmc_m3[3081649].ERR-zm_signal.cpp/105 [Backtrace 4: /lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x7f3c3c3acd90]]
09/18/23 12:57:34.998513 zmc_m3[3081649].ERR-zm_signal.cpp/105 [Backtrace 5: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80) [0x7f3c3c3ace40]]
09/18/23 12:57:34.998603 zmc_m3[3081649].ERR-zm_signal.cpp/105 [Backtrace 6: /usr/bin/zmc(+0x2c635) [0x55dc61f6a635]]
09/18/23 12:57:34.998640 zmc_m3[3081649].ERR-zm_signal.cpp/124 [Backtrace complete, please install debug symbols (typically zoneminder-dbg)]
09/18/23 12:57:34.998791 zmc_m3[3081649].ERR-zm_signal.cpp/125 [and execute the following command for more information:]
09/18/23 12:57:34.998829 zmc_m3[3081649].ERR-zm_signal.cpp/126 [addr2line -Cfip -e /usr/bin/zmc 0x8b6c2 0x68814 0x2c635]
09/18/23 12:57:34.998943 zmc_m3[3081649].ERR-zm_signal.cpp/50 [Got signal 11 (Segmentation fault), crashing]

If I do addr2line -Cfip -e /usr/bin/zmc 0x8b6c2 0x68814 0x2c635 i get:
addr2line: DWARF error: unable to read alt ref 108452
addr2line: DWARF error: unable to read alt ref 10615
addr2line: DWARF error: could not find variable specification at offset 0xb7f2
addr2line: DWARF error: could not find variable specification at offset 0xe91
addr2line: DWARF error: unable to read alt ref 258895
zm_die_handler(int, siginfo_t*, void*) at ??:?
addr2line: DWARF error: unable to read alt ref 1160313
addr2line: DWARF error: could not find variable specification at offset 0xe64db
addr2line: DWARF error: could not find variable specification at offset 0x1172d
addr2line: DWARF error: could not find variable specification at offset 0x11621
addr2line: DWARF error: unable to read alt ref 260290
addr2line: DWARF error: unable to read alt ref 132562
addr2line: DWARF error: unable to read alt ref 4273030
addr2line: DWARF error: unable to read alt ref 4292789
addr2line: DWARF error: unable to read alt ref 266905
addr2line: DWARF error: unable to read alt ref 205602
addr2line: DWARF error: unable to read alt ref 1129518
addr2line: DWARF error: unable to read alt ref 1269
addr2line: DWARF error: unable to read alt ref 684665
FfmpegCamera::Capture(std::shared_ptr<ZMPacket>&) at :?
_start at ??:?
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: v1.37.43 If SourceSecondPath is filled in with a valid url than zmc is crashing

Post by Magic919 »

It's for a separate audio stream.
-
User avatar
iconnor
Posts: 2936
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: v1.37.43 If SourceSecondPath is filled in with a valid url than zmc is crashing

Post by iconnor »

The intention is to make it possible to use it for analysis, but this work has not been done.
6i6i
Posts: 7
Joined: Mon Jan 11, 2016 8:55 am

Re: v1.37.43 If SourceSecondPath is filled in with a valid url than zmc is crashing

Post by 6i6i »

Ok I see. Thank you for the answer!
Post Reply