GNOME Bugzilla – Bug 665587
Attaching an event handler to playbin's AboutToFinish or VideoChanged events crashes the application
Last modified: 2012-04-01 00:08:53 UTC
I'm using OSSBuild 0.10.7 Beta 4: GStreamer-WinBuilds-LGPL-x86 GStreamer-WinBuilds-SDK-LGPL-x86 Operating system: Windows 7 Ultimate 64-bit SP1. Application: .NET4, WPF, C#, developed under VisualStudio 2010. My application crashes after an event handler attached to playbin's AboutToFinish or VideoChanged event is executed (I haven't tried any other events). Sample code: //create a playbin and play a video file from the hard drive Gst.BasePlugins.PlayBin2 playBin = new Gst.BasePlugins.PlayBin2(); string fileName = @"D:\TestVideos\test1.avi"; playBin.Uri = @"file:///" + fileName.Replace('\\', '/'); playBin.AboutToFinish += OnAboutToFinish; playBin.SetState(Gst.State.Playing); private void OnAboutToFinish(object o, Gst.GLib.SignalArgs args) { //do nothing } OnAboutToFinish method will be called, but as soon as its execution finishes, the application will crash. The crash will also happen when instead of using the C# event: playBin.AboutToFinish += OnAboutToFinish; I will connect to the signal this way: playBin.Connect("about-to-finish", OnAboutToFinish); The only information about the crash is a message box: [Window Title] VideoTestApplication [Main Instruction] VideoTestApplication has stopped working [Content] A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available. The Windows Event Viewer says: Faulting application name: VideoTestApplication.exe, version: 1.0.0.0, time stamp: 0x4edcaa21 Faulting module name: libgobject-2.0-0.dll, version: 2.26.1.0, time stamp: 0x4cf826e0 Exception code: 0xc0000005 Fault offset: 0x00004fe3 Faulting process id: 0x18e8 Faulting application start time: 0x01ccb340b1cd3542 Faulting application path: C:\Users\ralph\Documents\Visual Studio 2010\Projects\VideoTestApplication\VideoTestApplication\bin\Debug\VideoTestApplication.exe Faulting module path: C:\Program Files (x86)\OSSBuild\GStreamer\v0.10.7\bin\libgobject-2.0-0.dll - System - Provider [ Name] Application Error - EventID 1000 [ Qualifiers] 0 Level 2 Task 100 Keywords 0x80000000000000 - TimeCreated [ SystemTime] 2011-12-05T11:27:03.000000000Z EventRecordID 22815 Channel Application Computer RALPHXPS.RL.local Security - EventData VideoTestApplication.exe 1.0.0.0 4edcaa21 libgobject-2.0-0.dll 2.26.1.0 4cf826e0 c0000005 00004fe3 18e8 01ccb340b1cd3542 C:\Users\ralph\Documents\Visual Studio 2010\Projects\VideoTestApplication\VideoTestApplication\bin\Debug\VideoTestApplication.exe C:\Program Files (x86)\OSSBuild\GStreamer\v0.10.7\bin\libgobject-2.0-0.dll 0ddc1bc3-1f34-11e1-a648-b8ac6f9f589e
Works here on Linux with mono 2.6.7. I have no way to reproduce this here unfortunately and can't really debug it. Could you get a complete backtrace of the crash, including all relevant local variables?
Created attachment 203571 [details] Sample WPF application showing the crash Uncomment the line marked with WARNING comment to see the crash.
Where can I find symbol files for OSSBuild 0.10.7 Beta 4 and GLib 2.26.1? I tried building those projects under Visual Studio 2010, but I was overwhelmed by the number of errors and finally gave up. All I'm getting at the moment is this: > libglib-2.0-0.dll!685c3a8c() [Frames below may be incorrect and/or missing, no symbols loaded for libglib-2.0-0.dll] libgobject-2.0-0.dll!0044503e() libgthread-2.0-0.dll!65c419f8() libglib-2.0-0.dll!685de18a() libglib-2.0-0.dll!686093fe() libglib-2.0-0.dll!685d4145() libgthread-2.0-0.dll!65c419f8() msvcrt.dll!759298cd() msvcrt.dll!759298da() msvcrt.dll!7592adf9() msvcrt.dll!7592c470() libglib-2.0-0.dll!6861290b() msvcrt.dll!759298cd() msvcrt.dll!759298da() libgthread-2.0-0.dll!65c4231a() msvcrt.dll!7592a53a() msvcrt.dll!75931287() msvcrt.dll!75931328() kernel32.dll!76f2339a() ntdll.dll!77bc9ed2() ntdll.dll!77bc9ea5()
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for. Thanks!