Send Motion-user mailing list submissions to
        motion-user@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/motion-user
or, via email, send a message with subject or body 'help' to
        motion-user-requ...@lists.sourceforge.net

You can reach the person managing the list at
        motion-user-ow...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Motion-user digest..."


Today's Topics:

   1. Re: core dump (tosiara)
   2. Re: Time lapse (Joel Avery)
   3. Re: core dump (John Baker)


----------------------------------------------------------------------

Message: 1
Date: Sun, 28 Feb 2016 13:01:50 +0200
From: tosiara <tosi...@gmail.com>
Subject: Re: [Motion-user] core dump
To: Motion discussion list <motion-user@lists.sourceforge.net>
Message-ID:
        <CACHTdwTGGO9F2zHxDtzCwdq1fw1o1U=bb03sgagajrdcglt...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

How often do you reproduce this crash?

On Thu, Feb 25, 2016 at 10:35 PM, John Baker <jba...@dryfish.org.uk> wrote:

> Oh dear.
>
> [5] [NTC] [NET] netcam_rtsp_open_context: Using tcp transport
> [1] [WRN] [NET] netcam_init_jpeg: no new pic, no signal rcvd
> [1] [WRN] [NET] netcam_init_jpeg: no new pic, no signal rcvd
> [1] [WRN] [NET] netcam_init_jpeg: no new pic, no signal rcvd
> [1] [WRN] [NET] netcam_init_jpeg: no new pic, no signal rcvd
> Segmentation fault (core dumped)
>
> [root@pi motion]# coredumpctl -o /tmp/motion.core dump
> /usr/local/bin/motion
>            PID: 667 (motion)
>            UID: 0 (root)
>            GID: 0 (root)
>         Signal: 11 (SEGV)
>      Timestamp: Thu 2016-02-25 09:12:22 GMT (11h ago)
>   Command Line: motion
>     Executable: /usr/local/bin/motion
>  Control Group: /user.slice/user-1000.slice/session-c1.scope
>           Unit: session-c1.scope
>          Slice: user-1000.slice
>        Session: c1
>      Owner UID: 1000 (jbaker)
>        Boot ID: 9727ec6d99d14d3f91eeceb376e8725e
>     Machine ID: 20d4f52b53de4dd9aa7ac72e93285b0a
>       Hostname: pi
>       Coredump:
>
> /var/lib/systemd/coredump/core.motion.0.9727ec6d99d14d3f91eeceb376e8725e.667.1456391542000000000000.lz4
>        Message: Process 667 (motion) of user 0 dumped core.
>
>                 Stack trace of thread 685:
>                 #0  0x0000000000032910 netcam_rtsp_open_context (motion)
>                 #1  0x0000000000032f80 netcam_connect_rtsp (motion)
>                 #2  0x0000000000020f04 netcam_handler_loop (motion)
>                 #3  0x0000000076f09f98 start_thread (libpthread.so.0)
>
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
> _______________________________________________
> Motion-user mailing list
> Motion-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/motion-user
> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 2
Date: Sun, 28 Feb 2016 15:45:06 +0000 (UTC)
From: Joel Avery <joel_av...@yahoo.ca>
Subject: Re: [Motion-user] Time lapse
To: Motion discussion list <motion-user@lists.sourceforge.net>
Message-ID:
        <383574645.534086.1456674306459.javamail.ya...@mail.yahoo.com>
Content-Type: text/plain; charset="utf-8"

?I call a script at the start of every event. Using the event number, I can 
figure out if the system has restarted or has been shut down in a controlled 
fashion. I clean up appropriately.
event start logic
if ($event eq "01") {? ? #? ? # We have started / restarted for some reason, so 
move old images into a subfolder? ? # If intentional, then we should have 
cleaned up the pictures earlier? ? # but only do any of this if thread 1? ? #? 
? if ($thread eq "1") {? ? ? if (-e $restarted) {? ? ? ? system ("$bin/mlog 
'[$thread] Motion is restarting after a clean shutdown'");? ? ? ? system ("rm 
-v $restarted");? ? ? } else {? ? ? ? system ("$bin/mlog '[$thread] Motion is 
recovering from an inelegant shutdown'");? ? ? ? system ("$bin/mrestart");? ? ? 
}? ? }}

event end logic?
## check the special case first - only do the actual work if thread 1#if ($cnt 
eq "0") {? system ("$bin/mlog '[$thread] Event $event is an intentional restart 
or shutdown'");? if ($thread eq "1") {? ? system ("touch $restarted");? ? 
system ("$bin/mlog '[$thread] packing up todays activity'");? ? system 
("$bin/mrestart");? }? unlink ($active);? exit;}


 

    On Sunday, February 28, 2016 5:38 AM, John Baker <jba...@dryfish.org.uk> 
wrote:
 
 

 Is it possible to make the timelapse feature append to a file if the
motion process is restarted during a day, ie instead of overwriting the
existing file? If motion crashes (See previous email ref core dump),
then I want to restart and not have to worry about moving files. I
assume this is a single option to a C open command.

thanks

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Motion-user mailing list
Motion-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/motion-user
http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome


 
  
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 3
Date: Sun, 28 Feb 2016 19:59:15 +0000
From: John Baker <jba...@dryfish.org.uk>
Subject: Re: [Motion-user] core dump
To: motion-user@lists.sourceforge.net
Message-ID:
        <1456689555.3487362.534317090.608d6...@webmail.messagingengine.com>
Content-Type: text/plain

Random. No idea how. Not connecting to cameras due to network issues
seems to kick it off.


On Sun, Feb 28, 2016, at 11:01 AM, tosiara wrote:
> How often do you reproduce this crash?
> 
> On Thu, Feb 25, 2016 at 10:35 PM, John Baker <jba...@dryfish.org.uk>
> wrote:
> 
> > Oh dear.
> >
> > [5] [NTC] [NET] netcam_rtsp_open_context: Using tcp transport
> > [1] [WRN] [NET] netcam_init_jpeg: no new pic, no signal rcvd
> > [1] [WRN] [NET] netcam_init_jpeg: no new pic, no signal rcvd
> > [1] [WRN] [NET] netcam_init_jpeg: no new pic, no signal rcvd
> > [1] [WRN] [NET] netcam_init_jpeg: no new pic, no signal rcvd
> > Segmentation fault (core dumped)
> >
> > [root@pi motion]# coredumpctl -o /tmp/motion.core dump
> > /usr/local/bin/motion
> >            PID: 667 (motion)
> >            UID: 0 (root)
> >            GID: 0 (root)
> >         Signal: 11 (SEGV)
> >      Timestamp: Thu 2016-02-25 09:12:22 GMT (11h ago)
> >   Command Line: motion
> >     Executable: /usr/local/bin/motion
> >  Control Group: /user.slice/user-1000.slice/session-c1.scope
> >           Unit: session-c1.scope
> >          Slice: user-1000.slice
> >        Session: c1
> >      Owner UID: 1000 (jbaker)
> >        Boot ID: 9727ec6d99d14d3f91eeceb376e8725e
> >     Machine ID: 20d4f52b53de4dd9aa7ac72e93285b0a
> >       Hostname: pi
> >       Coredump:
> >
> > /var/lib/systemd/coredump/core.motion.0.9727ec6d99d14d3f91eeceb376e8725e.667.1456391542000000000000.lz4
> >        Message: Process 667 (motion) of user 0 dumped core.
> >
> >                 Stack trace of thread 685:
> >                 #0  0x0000000000032910 netcam_rtsp_open_context (motion)
> >                 #1  0x0000000000032f80 netcam_connect_rtsp (motion)
> >                 #2  0x0000000000020f04 netcam_handler_loop (motion)
> >                 #3  0x0000000076f09f98 start_thread (libpthread.so.0)
> >
> >
> > ------------------------------------------------------------------------------
> > Site24x7 APM Insight: Get Deep Visibility into Application Performance
> > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> > Monitor end-to-end web transactions and take corrective actions now
> > Troubleshoot faster and improve end-user experience. Signup Now!
> > http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
> > _______________________________________________
> > Motion-user mailing list
> > Motion-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/motion-user
> > http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
> >
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
> _______________________________________________
> Motion-user mailing list
> Motion-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/motion-user
> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome



------------------------------

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140

------------------------------

_______________________________________________
Motion-user mailing list
Motion-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/motion-user


End of Motion-user Digest, Vol 117, Issue 17
********************************************

Reply via email to