{"action":"created","issue":{"url":"https://api.github.com/repos/ZoneMinder/ZoneMinder/issues/686","labels_url":"https://api.github.com/repos/ZoneMinder/ZoneMinder/issues/686/labels{/name}","comments_url":"https://api.github.com/repos/ZoneMinder/ZoneMinder/issues/686/comments","events_url":"https://api.github.com/repos/ZoneMinder/ZoneMinder/issues/686/events","html_url":"https://github.com/ZoneMinder/ZoneMinder/issues/686","id":55823195,"number":686,"title":"Streaming an Event as MPEG fails.","user":{"login":"kylejohnson","id":114193,"avatar_url":"https://avatars.githubusercontent.com/u/114193?v=3","gravatar_id":"","url":"https://api.github.com/users/kylejohnson","html_url":"https://github.com/kylejohnson","followers_url":"https://api.github.com/users/kylejohnson/followers","following_url":"https://api.github.com/users/kylejohnson/following{/other_user}","gists_url":"https://api.github.com/users/kylejohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/kylejohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylejohnson/subscriptions","organizations_url":"https://api.github.com/users/kylejohnson/orgs","repos_url":"https://api.github.com/users/kylejohnson/repos","events_url":"https://api.github.com/users/kylejohnson/events{/privacy}","received_events_url":"https://api.github.com/users/kylejohnson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ZoneMinder/ZoneMinder/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-28T22:08:03Z","updated_at":"2015-01-29T01:53:08Z","closed_at":null,"body":"In my example, I'm trying to open this URL: `http://zmdev01/cgi-bin/nph-zms?source=event&mode=mpeg&format=webm&event=219&frame=1`, and it produces these errors:\r\n```\r\nJan 28 17:05:25 zmdev01 zms[26582]: ERR [Got signal 11 (Segmentation fault), crashing]\r\nJan 28 17:05:25 zmdev01 zms[26582]: ERR [Signal address is 0x8, from 0x7f0aae233a09]\r\nJan 28 17:05:25 zmdev01 zms[26582]: ERR [Backtrace 0: /usr/lib/cgi-bin/nph-zms(_Z14zm_die_handleriP9siginfo_tPv+0x273) [0x48d668]]\r\nJan 28 17:05:25 zmdev01 zms[26582]: ERR [Backtrace 1: /lib/x86_64-linux-gnu/libpthread.so.0(+0xfc90) [0x7f0ab0c4dc90]]\r\nJan 28 17:05:25 zmdev01 zms[26582]: ERR [Backtrace 2: /lib/x86_64-linux-gnu/libc.so.6(+0x98a09) [0x7f0aae233a09]]\r\nJan 28 17:05:25 zmdev01 zms[26582]: ERR [Backtrace 3: /usr/lib/cgi-bin/nph-zms(_ZN11VideoStream11EncodeFrameEPKhibj+0x180) [0x46f7c8]]\r\nJan 28 17:05:25 zmdev01 zms[26582]: ERR [Backtrace 4: /usr/lib/cgi-bin/nph-zms(_ZN11EventStream9sendFrameEi+0x28e) [0x442c04]]\r\nJan 28 17:05:25 zmdev01 zms[26582]: ERR [Backtrace 5: /usr/lib/cgi-bin/nph-zms(_ZN11EventStream9runStreamEv+0x52a) [0x443828]]\r\nJan 28 17:05:25 zmdev01 zms[26582]: ERR [Backtrace 6: /usr/lib/cgi-bin/nph-zms(main+0xf1b) [0x433f60]]\r\nJan 28 17:05:25 zmdev01 zms[26582]: ERR [Backtrace 7: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f0aae1bcec5]]\r\nJan 28 17:05:25 zmdev01 zms[26582]: ERR [Backtrace 8: /usr/lib/cgi-bin/nph-zms() [0x432ea9]]\r\nJan 28 17:05:25 zmdev01 zms[26582]: INF [Backtrace complete, please execute the following command for more information]\r\nJan 28 17:05:25 zmdev01 zms[26582]: INF [addr2line -e /usr/lib/cgi-bin/nph-zms 0x48d668 0x7f0ab0c4dc90 0x7f0aae233a09 0x46f7c8 0x442c04 0x443828 0x433f60 0x7f0aae1bcec5 0x432ea9]\r\n\r\n```\r\n\r\nRunning `addr2line`, I get this:\r\n```\r\n^Ckjohnson@zmdev01:~/ZoneMinder/src$ addr2line -e /usr/lib/cgi-bin/nph-zms 0x48d668 0x7f0ab0c4dc90 0x7f0aae233a09 0x46f7c8 0x442c04 0x443828 0x433f60 0x7f0aae1bcec5 0x432ea9\r\n/home/kjohnson/ZoneMinder/src/zm_signal.cpp:89\r\n??:0\r\n??:0\r\n/home/kjohnson/ZoneMinder/src/zm_mpeg.cpp:569\r\n/home/kjohnson/ZoneMinder/src/zm_event.cpp:1227 (discriminator 2)\r\n/home/kjohnson/ZoneMinder/src/zm_event.cpp:1449\r\n/home/kjohnson/ZoneMinder/src/zms.cpp:326 (discriminator 2)\r\n??:0\r\n??:?\r\n```\r\n\r\nResults are the same regardless of which `format` I specify.\r\n\r\n\r\n\r\n<bountysource-plugin>\r\n\r\n---\r\nWant to back this issue? **[Place a bounty on it!](https://www.bountysource.com/issues/8111816-streaming-an-event-as-mpeg-fails?utm_campaign=plugin&utm_content=tracker%2F188329&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F188329&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/ZoneMinder/ZoneMinder/issues/comments/71955075","html_url":"https://github.com/ZoneMinder/ZoneMinder/issues/686#issuecomment-71955075","issue_url":"https://api.github.com/repos/ZoneMinder/ZoneMinder/issues/686","id":71955075,"user":{"login":"SteveGilvarry","id":7613276,"avatar_url":"https://avatars.githubusercontent.com/u/7613276?v=3","gravatar_id":"","url":"https://api.github.com/users/SteveGilvarry","html_url":"https://github.com/SteveGilvarry","followers_url":"https://api.github.com/users/SteveGilvarry/followers","following_url":"https://api.github.com/users/SteveGilvarry/following{/other_user}","gists_url":"https://api.github.com/users/SteveGilvarry/gists{/gist_id}","starred_url":"https://api.github.com/users/SteveGilvarry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteveGilvarry/subscriptions","organizations_url":"https://api.github.com/users/SteveGilvarry/orgs","repos_url":"https://api.github.com/users/SteveGilvarry/repos","events_url":"https://api.github.com/users/SteveGilvarry/events{/privacy}","received_events_url":"https://api.github.com/users/SteveGilvarry/received_events","type":"User","site_admin":false},"created_at":"2015-01-29T01:53:08Z","updated_at":"2015-01-29T01:53:08Z","body":"Can you run zms under gdb? I did that with zmc and zma at first but now I just debug in Netbeans, I will see if I can debug mine, but my Dev machine is currently setup for h264 development. I will see if I can still record jpeg, wrote it so I could..."}}