Help get this topic noticed by sharing it on Twitter, Facebook, or email.

Server 2.0-RC1 libavcodec segfaults

New server repeated fails and restarts with libavcodec error.

I disabled my IP cameras and it still happens.

[2316520.860059] bc-server[15915]: segfault at 8 ip 00007fe187795d49 sp 00007fe17c4b5a30 error 4 in libavcodec.so.53[7fe187318000+6f4000]
[2316603.118363] bc-server[15953]: segfault at 8 ip 00007f7a080f8d49 sp 00007f79fce18a30 error 4 in libavcodec.so.53[7f7a07c7b000+6f4000]
[2316685.410541] bc-server[15991]: segfault at 8 ip 00007f98b47cfd49 sp 00007f98a54eaa30 error 4 in libavcodec.so.53[7f98b4352000+6f4000]
[2316767.569182] bc-server[16027]: segfault at 8 ip 00007f22f9767d49 sp 00007f22ee487a30 error 4 in libavcodec.so.53[7f22f92ea000+6f4000]
[2316849.727604] bc-server[16066]: segfault at 8 ip 00007f6f571b0d49 sp 00007f6f4bed0a30 error 4 in libavcodec.so.53[7f6f56d33000+6f4000]
[2316931.986868] bc-server[16106]: segfault at 8 ip 00007fd100213d49 sp 00007fd0f4f33a30 error 4 in libavcodec.so.53[7fd0ffd96000+6f4000]
[2317014.245131] bc-server[16143]: segfault at 8 ip 00007f06b3156d49 sp 00007f06a7e76a30 error 4 in libavcodec.so.53[7f06b2cd9000+6f4000]
[2317096.370437] bc-server[16179]: segfault at 8 ip 00007fdb363f8d49 sp 00007fdb2b118a30 error 4 in libavcodec.so.53[7fdb35f7b000+6f4000]
[2317178.795989] bc-server[16380]: segfault at 8 ip 00007ff79964fd49 sp 00007ff78e36fa30 error 4 in libavcodec.so.53[7ff7991d2000+6f4000]
1 person has
this problem
+1
Reply
  • Which distribution / release is this? What does /var/log/bluecherry.log say?
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited sad, anxious, confused, frustrated

  • Ok, this is related to one of my IP cameras, the ACTI 5711. I guess I didn't wait long enough after disabling from config screen and checking log output. And I didn't check /var/log/bluecherry, Only /var/log/daemon.log

    cat /etc/issue
    Ubuntu 10.04.3 LTS \n \l

    This issue is already detailed in a bug with avlib :
    http://improve.bluecherrydvr.com/issu...

    I had thought this camera was disabled. So either it was disabled and re-enabled after updated to RC1, or previous beta did not fail in this manner, or I was mistaken and this camera was enabled and I simply didn't notice the daemon restarts.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited sad, anxious, confused, frustrated

  • That bug (#1113) relates to Arecont cameras. The ACM-5711 is a ACTi camera.

    What RTSP port and sub path are you using for the ACTi camera?
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited sad, anxious, confused, frustrated

  • Oh good catch...I only have 2 IP cameras as I decide how to proceed with my IP rollout. Neither one work really well, but I haven't spent much time working on them further.

    I'm using 7070 and path '/' for RTSP on the ACTi camera.

    Interesting... the ACTi utility also failed to present data on the RTSP sctream. After power cycling the camera this problem went away for both the ACTi utility and the BC server.

    I guess the ACTi camera's will not be contenders due to stability issues.

    Problem log:
    Jun 15 19:51:29 bluecherry2 bc-server[2800]: I(12/acti): avlib warning: Found EOI before any SOF, ignoring
    Jun 15 19:51:30 bluecherry2 bc-server[2800]: last message repeated 6 times
    Jun 15 19:51:30 bluecherry2 bc-server[2800]: I(12/acti): avlib warning: Can not process SOS before SOF, skipping
    Jun 15 19:51:30 bluecherry2 bc-server[2800]: I(12/acti): avlib error: dqt: 16bit precision
    Jun 15 19:51:30 bluecherry2 bc-server[2800]: I(12/acti): avlib warning: Found EOI before any SOF, ignoring
    Jun 15 19:51:30 bluecherry2 bc-server[2800]: last message repeated 7 times
    Jun 15 19:51:30 bluecherry2 bc-server[2800]: I(12/acti): avlib error: mjpeg: unsupported coding type (cd)
    Jun 15 19:51:30 bluecherry2 bc-server[2800]: I(12/acti): avlib warning: Found EOI before any SOF, ignoring
    Jun 15 19:51:30 bluecherry2 bc-server[2800]: last message repeated 9 times
    Jun 15 19:51:30 bluecherry2 bc-server[2800]: I(12/acti): avlib error: dqt: 16bit precision
    Jun 15 19:51:30 bluecherry2 bc-server[2800]: I(12/acti): avlib warning: Found EOI before any SOF, ignoring
    Jun 15 19:51:31 bluecherry2 bc-server[2800]: last message repeated 13 times
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited sad, anxious, confused, frustrated

  • Make sure the ACTi camera is set to 'RTP over UDP' in the video settings on the camera. It appears to be using MJPEG, which is what the errors are about.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited sad, anxious, confused, frustrated

  • ok, possibly the settings weren't set to NVRAM and a power cycle crept into there unknown to me. After setting the ACTi properly (I think) I'm back to where I started previous to the upgrade to RC1. This time I saved settings to NVRAM on the camera and rebooted.

    Now I'm back and get reasonable performance from the camera and see these familiar avlib messages:
    Jun 15 21:19:00 bluecherry2 bc-server[2972]: I(12/acti): avlib info: Marker bit missing before fixed_vop_rate
    Jun 15 21:19:00 bluecherry2 bc-server[2972]: I(12/acti): avlib info: Marker bit missing in complexity estimation part 1
    Jun 15 21:19:07 bluecherry2 bc-server[2972]: I(4/Front Left): Motion event stopped
    Jun 15 21:19:11 bluecherry2 bc-server[2972]: I(12/acti): avlib warning: CSeq 9 expected, 0 received.
    Jun 15 21:19:26 bluecherry2 bc-server[2972]: I(12/acti): avlib info: Marker bit missing before fixed_vop_rate
    Jun 15 21:19:26 bluecherry2 bc-server[2972]: I(12/acti): avlib error: Static Sprites not supported
    Jun 15 21:19:26 bluecherry2 bc-server[2972]: I(12/acti): avlib error: 14 sprite_warping_points
    Jun 15 21:19:26 bluecherry2 bc-server[2972]: I(12/acti): avlib error: hmm, seems the headers are not complete, trying to guess time_increment_bits
    Jun 15 21:19:26 bluecherry2 bc-server[2972]: I(12/acti): avlib error: my guess is 12 bits ;)
    Jun 15 21:19:26 bluecherry2 bc-server[2972]: I(12/acti): avlib error: hmm, seems the headers are not complete, trying to guess time_increment_bits
    Jun 15 21:19:26 bluecherry2 bc-server[2972]: I(12/acti): avlib error: my guess is 13 bits ;)
    Jun 15 21:19:34 bluecherry2 bc-server[2972]: I(1/Driveway Gate): Motion event started
    Jun 15 21:19:38 bluecherry2 bc-server[2972]: I(12/acti): avlib info: Marker bit missing before fixed_vop_rate
    Jun 15 21:19:38 bluecherry2 bc-server[2972]: I(12/acti): avlib error: N-bit not supported
    Jun 15 21:19:38 bluecherry2 bc-server[2972]: I(12/acti): avlib error: quant precision 14
    Jun 15 21:19:38 bluecherry2 bc-server[2972]: I(12/acti): avlib info: Marker bit missing in complexity estimation part 1
    Jun 15 21:19:38 bluecherry2 bc-server[2972]: I(12/acti): avlib error: hmm, seems the headers are not complete, trying to guess time_increment_bits
    Jun 15 21:19:38 bluecherry2 bc-server[2972]: I(12/acti): avlib error: my guess is 13 bits ;)
    Jun 15 21:19:38 bluecherry2 bc-server[2972]: I(12/acti): avlib error: Error, header damaged or not MPEG4 header (f_code=0)
    Jun 15 21:19:41 bluecherry2 bc-server[2972]: I(12/acti): avlib warning: CSeq 10 expected, 0 received.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned sad, anxious, confused, frustrated happy, confident, thankful, excited

  • Those are non-fatal warnings, which you can ignore.

    Thanks
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited sad, anxious, confused, frustrated