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 797271 - ExampleVolume not working (in 32bit)
ExampleVolume not working (in 32bit)
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-sharp
1.14.x
Other Windows
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-10-10 15:44 UTC by Carl Duckels
Modified: 2018-11-03 11:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gStreamer Debug Outputs (8.08 KB, application/x-zip-compressed)
2018-10-10 15:44 UTC, Carl Duckels
Details

Description Carl Duckels 2018-10-10 15:44:14 UTC
Created attachment 373887 [details]
gStreamer Debug Outputs

Hello,

I have been unable to run the ExampleVolume.cs with Platform set as "Any CPU", which is defaulting to 32bit.

https://github.com/GStreamer/gstreamer-sharp/blob/master/samples/ExampleVolume.cs

It appears that the new Pads are being corrupted by the 'xxxx.Flags |= PadFlags.ProxyCaps;' calls.

Original Code with a couple of lines added for illustration of the issue:

    class ExampleVolume : Element
    {
        public ExampleVolume()
        {
            Volume = 0.5;

            _sink = new Pad(__sinkTemplate, "sink");
            _sink.ChainFunctionFull = Chain;
            _sink.Flags |= PadFlags.ProxyCaps;
            AddPad(_sink);
            Console.WriteLine("_sink.Parent.Name: ", _sink.Parent.Name);    // For demo

            _src = new Pad(__srcTemplate, "src");
            _src.Flags |= PadFlags.ProxyCaps;
            AddPad(_src);
            Console.WriteLine("_sink.Parent.Name: ", _src.Parent.Name);     // For demo
        }

The lines marked "// For demo" cause an Access Violation if "xxxx.Flags |= PadFlags.ProxyCaps" has been called
 previously.

If the "xxxx.Flags |= PadFlags.ProxyCaps" is commented out the "For demo" lines no not cause an Access Violation

This issues goes away when force the system to 64bit, however the example still does work with other issues.

I have attached the Debug for 32bit and 64bit in a ZIP file for reference.  These were run without the "// For demo" lines in place

Thanks, Carl
Comment 1 GStreamer system administrator 2018-11-03 11:09:27 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gstreamer-sharp/issues/8.