{"action":"created","issue":{"url":"https://api.github.com/repos/Mr-Dave/motion/issues/108","repository_url":"https://api.github.com/repos/Mr-Dave/motion","labels_url":"https://api.github.com/repos/Mr-Dave/motion/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/Mr-Dave/motion/issues/108/comments","events_url":"https://api.github.com/repos/Mr-Dave/motion/issues/108/events","html_url":"https://github.com/Mr-Dave/motion/issues/108","id":160173744,"number":108,"title":"Motion crashes with segfault when camera initially not available ","user":{"login":"codefalk","id":19929991,"avatar_url":"https://avatars.githubusercontent.com/u/19929991?v=3","gravatar_id":"","url":"https://api.github.com/users/codefalk","html_url":"https://github.com/codefalk","followers_url":"https://api.github.com/users/codefalk/followers","following_url":"https://api.github.com/users/codefalk/following{/other_user}","gists_url":"https://api.github.com/users/codefalk/gists{/gist_id}","starred_url":"https://api.github.com/users/codefalk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codefalk/subscriptions","organizations_url":"https://api.github.com/users/codefalk/orgs","repos_url":"https://api.github.com/users/codefalk/repos","events_url":"https://api.github.com/users/codefalk/events{/privacy}","received_events_url":"https://api.github.com/users/codefalk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-06-14T12:53:00Z","updated_at":"2016-06-19T21:24:20Z","closed_at":null,"body":"Hi, \r\nmotion crashes with segfault on Ubuntu 14.04, kernel 3.13.0-86-generic, when rtsp camera is not available at start time of motion. Crash can be reproduced. Does not crash when camera has been active and looses connection. See log:\r\n\r\n`Jun 14 10:12:26 mx-hd motion: [2] [WRN] [NET] netcam_interrupt_rtsp: Reading picture timed out for rtsp://IP-REPLACED:555/axis-media/media.amp?streamprofile=Quality\r\nJun 14 10:12:26 mx-hd motion: [2] [WRN] [NET] netcam_interrupt_rtsp: Reading picture timed out for rtsp://IP-REPLACED:555/axis-media/media.amp?streamprofile=Quality\r\nJun 14 10:12:26 mx-hd motion: [2] [ERR] [NET] netcam_rtsp_open_context: Failed to read first image\r\nJun 14 10:12:26 mx-hd motion: [2] [WRN] [ALL] motion_init: Could not fetch initial image from camera Motion continues using width and height from config file(s)\r\nJun 14 10:12:26 mx-hd motion: [2] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 1 items\r\nJun 14 10:12:26 mx-hd motion: [2] [NTC] [STR] http_bindsock: motion-stream testing : IPV4 addr: 127.0.0.1 port: 10136\r\nJun 14 10:12:26 mx-hd motion: [2] [NTC] [STR] http_bindsock: motion-stream Bound : IPV4 addr: 127.0.0.1 port: 10136\r\nJun 14 10:12:26 mx-hd motion: [2] [NTC] [ALL] motion_init: Started motion-stream server in port 10136 auth Disabled\r\nJun 14 10:12:26 mx-hd motion: [2] [NTC] [ALL] motion_loop: Thread exiting\r\nJun 14 10:12:26 mx-hd motion: [2] [NTC] [STR] stream_stop: Closing motion-stream listen socket & active motion-stream sockets\r\nJun 14 10:12:26 mx-hd motion: [2] [NTC] [STR] stream_stop: Closed motion-stream listen socket & active motion-stream sockets\r\nJun 14 10:12:26 mx-hd kernel: [ 4991.843517] motion[20182]: segfault at 48 ip 00007f515e213111 sp 00007f51595dba40 error 4 in libc-2.19.so[7f515e15b000+1ba000]\r\n`"},"comment":{"url":"https://api.github.com/repos/Mr-Dave/motion/issues/comments/227021149","html_url":"https://github.com/Mr-Dave/motion/issues/108#issuecomment-227021149","issue_url":"https://api.github.com/repos/Mr-Dave/motion/issues/108","id":227021149,"user":{"login":"codefalk","id":19929991,"avatar_url":"https://avatars.githubusercontent.com/u/19929991?v=3","gravatar_id":"","url":"https://api.github.com/users/codefalk","html_url":"https://github.com/codefalk","followers_url":"https://api.github.com/users/codefalk/followers","following_url":"https://api.github.com/users/codefalk/following{/other_user}","gists_url":"https://api.github.com/users/codefalk/gists{/gist_id}","starred_url":"https://api.github.com/users/codefalk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codefalk/subscriptions","organizations_url":"https://api.github.com/users/codefalk/orgs","repos_url":"https://api.github.com/users/codefalk/repos","events_url":"https://api.github.com/users/codefalk/events{/privacy}","received_events_url":"https://api.github.com/users/codefalk/received_events","type":"User","site_admin":false},"created_at":"2016-06-19T21:24:20Z","updated_at":"2016-06-19T21:24:20Z","body":"An idea for reproducing the issue: \r\nThe trick is to get the camera to a point where it is too busy to deliver images. In my case it's quite simple since the Axis 3005 cameras seem to have a very slow processor.\r\nConfigure a large amount of threads for one camera until it gets too busy. This should help to reproduce the problem."}}
{"actor":{"display_login":"codefalk"}}