Bug 97766

Summary: Multiple EGL displays with multiple window systems leads to a crash
Product: Mesa Reporter: Cédric Legrand <legrand.cedric.01>
Component: EGLAssignee: mesa-dev
Status: RESOLVED MOVED QA Contact: mesa-dev
Severity: minor    
Priority: medium    
Version: 12.0   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: mesa-12.0.2-multiple-egl-displays.patch

Description Cédric Legrand 2016-09-11 11:51:45 UTC
Created attachment 126460 [details] [review]
mesa-12.0.2-multiple-egl-displays.patch

When opening multiple displays from multiple window systems, an application will crash. The second display is opened with the first one driver, leading to a crash. I know this is a side case, but I could not find it forbidden in the EGL spec.

This may be usefull for example when opening an X11 display and then a Wayland one to render Wayland applications in X11. I know it can be rendered directly, but my use case is more complex than this.

This bug was reported against Mir some years ago, but it is still not fixed in Mesa 12.0.2. You may find the bug here : https://bugs.launchpad.net/mir/+bug/1122394

I updated the Mir patch to apply against the latest release, please find it attached. It seems to work after a quick test, but I did not deeply tested it for the main reason that I don't know how. I don't have a simple example, but I can make one if needed.
Comment 1 GitLab Migration User 2019-09-18 18:07:21 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/mesa/mesa/issues/156.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.