{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/FFmpegInterop/issues/78","repository_url":"https://api.github.com/repos/Microsoft/FFmpegInterop","labels_url":"https://api.github.com/repos/Microsoft/FFmpegInterop/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/FFmpegInterop/issues/78/comments","events_url":"https://api.github.com/repos/Microsoft/FFmpegInterop/issues/78/events","html_url":"https://github.com/Microsoft/FFmpegInterop/issues/78","id":161902644,"number":78,"title":"Crash on playing RTSP stream","user":{"login":"abhilashca","id":12084395,"avatar_url":"https://avatars.githubusercontent.com/u/12084395?v=3","gravatar_id":"","url":"https://api.github.com/users/abhilashca","html_url":"https://github.com/abhilashca","followers_url":"https://api.github.com/users/abhilashca/followers","following_url":"https://api.github.com/users/abhilashca/following{/other_user}","gists_url":"https://api.github.com/users/abhilashca/gists{/gist_id}","starred_url":"https://api.github.com/users/abhilashca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abhilashca/subscriptions","organizations_url":"https://api.github.com/users/abhilashca/orgs","repos_url":"https://api.github.com/users/abhilashca/repos","events_url":"https://api.github.com/users/abhilashca/events{/privacy}","received_events_url":"https://api.github.com/users/abhilashca/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-06-23T11:43:44Z","updated_at":"2016-07-07T19:25:01Z","closed_at":null,"body":"Hi,\r\n\r\nI have UWP app which use FfmpegInterop library to payback RTSP streams. Sometimes, when I try to playback the stream, the app crashes. I tried debugging the issue from with VS2015 but the app simply crashes instead of coming to _error-prone_ code like in normal debugging.\r\n\r\nFinally, I analyzed the crash dump and could see that the exception happens withing the FfmpegInterop library. Below is the call stack.\r\n\r\n![crash_ffmpeg](https://cloud.githubusercontent.com/assets/12084395/16301849/5dd9da12-3965-11e6-8676-21450b699e98.png)\r\n\r\nAll my code which access RTSP stream run inside try-catch block which ensures that app won't crash due to any bad code. This is something that I am not sure how to handle it.\r\n\r\nCan somebody give some pointers to troubleshoot the issue?\r\nAny help with be appreciated.\r\nThanks.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/FFmpegInterop/issues/comments/231181323","html_url":"https://github.com/Microsoft/FFmpegInterop/issues/78#issuecomment-231181323","issue_url":"https://api.github.com/repos/Microsoft/FFmpegInterop/issues/78","id":231181323,"user":{"login":"khouzam","id":6656040,"avatar_url":"https://avatars.githubusercontent.com/u/6656040?v=3","gravatar_id":"","url":"https://api.github.com/users/khouzam","html_url":"https://github.com/khouzam","followers_url":"https://api.github.com/users/khouzam/followers","following_url":"https://api.github.com/users/khouzam/following{/other_user}","gists_url":"https://api.github.com/users/khouzam/gists{/gist_id}","starred_url":"https://api.github.com/users/khouzam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khouzam/subscriptions","organizations_url":"https://api.github.com/users/khouzam/orgs","repos_url":"https://api.github.com/users/khouzam/repos","events_url":"https://api.github.com/users/khouzam/events{/privacy}","received_events_url":"https://api.github.com/users/khouzam/received_events","type":"User","site_admin":false},"created_at":"2016-07-07T19:25:01Z","updated_at":"2016-07-07T19:25:01Z","body":"I haven't been able to repro the hang, but in your sample code, you have code when you click on dispose, can you reverse the order to the following:\r\n```\r\nMediaElm.Stop();\r\nMediaElm.Source = null;\r\nffmpegInterop?.Dispose();\r\n```\r\n\r\nThe crash you're seeing is trying to read a packet while I think that the stream has been closed because of the dispose."}}
{"actor":{"display_login":"khouzam"}}