[Bug 665587] New: Attaching an event handler to playbin's AboutToFinish or VideoChanged events crashes the application
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Mon Dec 5 03:34:11 PST 2011
https://bugzilla.gnome.org/show_bug.cgi?id=665587
GStreamer | gst-sharp | 0.10.7
Summary: Attaching an event handler to playbin's AboutToFinish
or VideoChanged events crashes the application
Classification: Platform
Product: GStreamer
Version: 0.10.7
OS/Version: Windows
Status: UNCONFIRMED
Severity: critical
Priority: Normal
Component: gst-sharp
AssignedTo: gstreamer-bugs at lists.freedesktop.org
ReportedBy: ralphoss at gazeta.pl
QAContact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
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
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list