After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 586636 - Message.Src throws an exception
Message.Src throws an exception
Status: RESOLVED NOTGNOME
Product: GStreamer
Classification: Platform
Component: gst-sharp
git master
Other All
: Normal normal
: git master
Assigned To: Sebastian Dröge (slomo)
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-06-22 13:19 UTC by Maarten Bosmans
Modified: 2009-06-23 05:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Maarten Bosmans 2009-06-22 13:19:59 UTC
When asking for the Message.Src in a MessageCallback function for the BusWatch, there is an exception thrown.

System.Reflection.TargetInvocationException: Het doel van een aanroep heeft een uitzondering veroorzaakt. ---> System.ArgumentException: cname is not in NamespaceType format. GType.Register should be called directly for ffdec_cinepak
   bij GLib.GType.GetQualifiedName(String cname)
   bij GLib.GType.LookupType(IntPtr typeid)
   bij GLib.ObjectManager.GetTypeOrParent(IntPtr obj)
   bij GLib.ObjectManager.CreateObject(IntPtr raw)
   bij GLib.Object.GetObject(IntPtr o, Boolean owned_ref)
   bij GLib.Object.GetObject(IntPtr o)
   bij Gst.Message.get_Src() in d:\MKB\branches\gstreamer-sharp\gstreamer-sharp\gstreamer-sharp\generated\Message.custom:regel 39

Of course I can Handle the exception in my application, but I have the feeling Message.Src should only fail by returning null, but not throwing an exception.

I'm not shure whether gstreamer#, glib# or the ffdec_cinepak element should be fixed.
Comment 1 Sebastian Dröge (slomo) 2009-06-22 17:46:49 UTC
This should be fixed in glib#... it should simply ignore GType names not in "namespace" format, check if it is a registered type or go to the parent type (and skip the automatic type registration stuff).

Could you forward it there and paste the bug URL here? I'll create a patch for it then tomorrow...
Comment 2 Maarten Bosmans 2009-06-23 05:01:42 UTC
https://bugzilla.novell.com/show_bug.cgi?id=515453