Bug 97766 - Multiple EGL displays with multiple window systems leads to a crash
Summary: Multiple EGL displays with multiple window systems leads to a crash
Alias: None
Product: Mesa
Classification: Unclassified
Component: EGL (show other bugs)
Version: 12.0
Hardware: All All
: medium minor
Assignee: mesa-dev
QA Contact: mesa-dev
Depends on:
Reported: 2016-09-11 11:51 UTC by Cédric Legrand
Modified: 2019-09-18 18:07 UTC (History)
0 users

See Also:
i915 platform:
i915 features:

mesa-12.0.2-multiple-egl-displays.patch (815 bytes, patch)
2016-09-11 11:51 UTC, Cédric Legrand
Details | Splinter Review

Description Cédric Legrand 2016-09-11 11:51:45 UTC
Created attachment 126460 [details] [review]

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.