[gstreamer-bugs] [Bug 627677] New: Crash in Gst.Caps.RemoveStructureReferences ()

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Sun Aug 22 15:58:39 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=627677
  GStreamer | gst-sharp | git

           Summary: Crash in Gst.Caps.RemoveStructureReferences ()
    Classification: Desktop
           Product: GStreamer
           Version: git
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-sharp
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: mkbosmans at gmail.com
         QAContact: gstreamer-bugs at lists.sourceforge.net
      GNOME target: ---
     GNOME version: ---


Created an attachment (id=168532)
 --> (https://bugzilla.gnome.org/attachment.cgi?id=168532)
Testcase

In .Net it is not possible to remove elements from the Hashtable while
enumerating over its values.  Calling RemoveStructureReferences on a Caps with
more than one structure gives the following exception.

Unhandled Exception: System.InvalidOperationException: Hashtable.Enumerator:
snapshot out of sync.
  at System.Collections.Hashtable+Enumerator.FailFast ()
  at System.Collections.Hashtable+Enumerator.MoveNext ()
  at Gst.Caps.RemoveStructureReferences ()
  at Gst.Caps.Merge (Gst.Caps caps)
  at capstest.Main ()

Attached is a minial testcase that shows the behaviour.

-- 
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