We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4622 - X11_ShowMessageBox() fails
Summary: X11_ShowMessageBox() fails
Status: NEW
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.9
Hardware: x86_64 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-05 10:11 UTC by Markus Ewald
Modified: 2019-05-05 10:11 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Ewald 2019-05-05 10:11:09 UTC
SDL isn't able to display message boxes on any Linux+KDE system I've tried.

My main workstation, also experiencing the issue, is running Gentoo Linux 4.19.27 with KDE Plasma 5.14.5.

GDB shows that it's running into SDL_x11messagebox.c, X11_ShowMessageBox(). The calls to pipe() and fork() succeed. However, somewhat further along, line 858 as of version 2.0.9, the first call to read() from the pipe fails.

This may indicate that the forked process immediately exited.

- - - - -

I can reproduce this on all Linux machines I have access to (all running Gentoo).

It is reproducible in all cases by simply compiling the message box example from the SDL wiki: https://wiki.libsdl.org/SDL_ShowMessageBox

I've tried with Gentoo's official ebuild of SDL2, the libraries from Epic's Unreal Engine 4 dependency repo and SDL2 2.0.9 built by myself. Same issue in all cases.