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 730912 - eglglessink: Crash when using "gst-launch-1.0 videotestsrc ! eglglessink" pipeline
eglglessink: Crash when using "gst-launch-1.0 videotestsrc ! eglglessink" pip...
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
1.2.0
Other Linux
: Normal critical
: 1.2.5
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-05-29 06:15 UTC by Yogish
Modified: 2014-05-29 16:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fix for the issue (1.84 KB, patch)
2014-05-29 06:15 UTC, Yogish
needs-work Details | Review
Updated change (4.21 KB, patch)
2014-05-29 11:16 UTC, Yogish
committed Details | Review

Description Yogish 2014-05-29 06:15:32 UTC
Created attachment 277432 [details] [review]
fix for the issue

With gst-plugins-bad 1.2 branch, eglglessink crashes when using "gst-launch-1.0 videotestsrc ! eglglessink" pipeline.

eglglessink doesn't disables vertex attribute arrays enabled for a GL program when switched to other program. Hence when using 2nd program GL will try to read from arrays enabled for 1st program, which results to crash.

Attaching the change to fix this issue.
Comment 1 Sebastian Dröge (slomo) 2014-05-29 09:03:59 UTC
Review of attachment 277432 [details] [review]:

Thanks for the patch. I think it makes more sense to enable the arrays used for the program, and then afterwards disable them again. Instead of disabling arrays of other programs first and then enabling the own arrays. Can you update the patch accordingly?


Also please be aware that eglglessink is removed in 1.3 and replaced by glimagesink.
Comment 2 Yogish 2014-05-29 11:16:53 UTC
Created attachment 277446 [details] [review]
Updated change

Thanks for the info. I will take a look at glimagesink to see if similar change is required. Ubuntu 14.04LTS defaults to 1.2 hence fixing in this branch.
Comment 3 Sebastian Dröge (slomo) 2014-05-29 16:06:12 UTC
Comment on attachment 277446 [details] [review]
Updated change

Looks good
Comment 4 Sebastian Dröge (slomo) 2014-05-29 16:13:57 UTC
commit cfcec5f772a82a083acf66dc3bbb42a3c6136bc6
Author: Yogish Kulkarni <yogishk@nvidia.com>
Date:   Thu May 29 10:56:31 2014 +0530

    eglglessink: Disable vertex attribute arrays after drawing
    
    Enable vertex attribute arrays which will be used by a GL program
    and disable them after drawing. If a vertex attribute array not
    required by a program is enabled, GL will try to read from it,
    which may crash the application.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=730912