I’m very new to bluecherry but today I encountered a bug which crashed the server. It occurred when I introduced motion into a specific device’s schedule for the first time. Previously all of my cameras were set to continuous always.
log file section:
Jan 1 22:49:44 bluecherry bc-server[16961]: I(2/Garage): Applying configuration changes
Jan 1 22:51:22 bluecherry bc-server[16961]: I(2/Garage): Last message repeated 1 times!
Jan 1 22:51:22 bluecherry bc-server[16961]: I(2/Garage): Switching to new recording schedule 'motion'
Jan 1 22:51:22 bluecherry bc-server[16961]: BUG: Segment violation at 0x0000000000000008
Jan 1 22:51:22 bluecherry bc-server[16961]: Call trace:
Jan 1 22:51:22 bluecherry bc-server[16961]: [0x0000000000420580] @ /usr/sbin/bc-server
Jan 1 22:51:22 bluecherry bc-server[16961]: [0x00007ff2cb1ce4b0] @ /lib/x86_64-linux-gnu/libc.so.6
Jan 1 22:51:22 bluecherry bc-server[16961]: [0x00007ff2cd1d6513] av_buffer_ref+0x00000000 @ /usr/lib/bluecherry/libavutil.so.56
Jan 1 22:51:22 bluecherry bc-server[16961]: [0x0000000000424af8] @ /usr/sbin/bc-server
Jan 1 22:51:22 bluecherry bc-server[16961]: [0x00007ff2cd57d518] @ /usr/lib/bluecherry/libavcodec.so.58
Jan 1 22:51:22 bluecherry bc-server[16961]: [0x00007ff2cd5fabbd] @ /usr/lib/bluecherry/libavcodec.so.58
Jan 1 22:51:22 bluecherry bc-server[16961]: [0x00007ff2cd5fba84] @ /usr/lib/bluecherry/libavcodec.so.58
Jan 1 22:51:22 bluecherry bc-server[16961]: [0x00007ff2cd600822] @ /usr/lib/bluecherry/libavcodec.so.58
Jan 1 22:51:22 bluecherry bc-server[16961]: [0x00007ff2cd60410a] @ /usr/lib/bluecherry/libavcodec.so.58
Jan 1 22:51:22 bluecherry bc-server[16961]: [0x00007ff2cd57ba0b] @ /usr/lib/bluecherry/libavcodec.so.58
Jan 1 22:51:22 bluecherry bc-server[16961]: [0x00007ff2cd57c678] avcodec_send_packet+0x00000000 @ /usr/lib/bluecherry/libavcodec.so.58
Jan 1 22:51:22 bluecherry bc-server[16961]: [0x00007ff2cd57ebc7] @ /usr/lib/bluecherry/libavcodec.so.58
Jan 1 22:51:22 bluecherry bc-server[16961]: [0x000000000042245e] @ /usr/sbin/bc-server
Jan 1 22:51:22 bluecherry bc-server[16961]: [0x00000000004228c9] @ /usr/sbin/bc-server
Jan 1 22:51:22 bluecherry bc-server[16961]: [0x00007ff2caf836ba] @ /lib/x86_64-linux-gnu/libpthread.so.0
Jan 1 22:51:22 bluecherry bc-server[16961]: [0x00007ff2cb2a041d] clone+0x00000000 @ /lib/x86_64-linux-gnu/libc.so.6
Can you please provide some more details? Like, what camera do you use, stream settings? Does it crash every time when motion detection is enabled or sometimes?
For me, the crashes are sporadic - happens maybe once every 2-3 days, and not obviously tied to motion detection events (there’s nothing in the log immediately preceding the crash). I’m streaming RTSP from a couple of Wyze V2 cams (for now - still evaluating options for “real” cams)
It might be a couple of days before I can try to replicate it, I had deleted that VM. It’s just speculation but I recall that before adding cameras I had set the global schedule to ‘Off’ -> ‘Fill All’ and was then intending on setting individual schedules as I added each camera.
The cameras are Wyze Cam v2 with RTSP firmware re-flash. Currently running without issue on my production DVR (bluecherry 2.8.8).