Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Gtk causes segmentation faults. #39

Open
tseli0s opened this issue Apr 15, 2023 · 1 comment
Open

[BUG] Gtk causes segmentation faults. #39

tseli0s opened this issue Apr 15, 2023 · 1 comment
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed todo To be worked on upstream Related to upstream x11 X11-related error, so no fix expected.

Comments

@tseli0s
Copy link
Owner

tseli0s commented Apr 15, 2023

When testing with winit and the Rust bindings to this library, it appears that Gtk causes a segmentation fault to the process by dereferencing an invalid pointer as a mutex. This unfortunately makes NvDialog impossible to use with winit, and largely defeats the purpose of a cross-platform library.

Currently this does not appear with GLFW on Linux, and other platforms do not have the same problem. Which easily pinpoints the issue to Gtk's windowing internals.

For the users of NvDialog, you are advised to temporarily stop using NvDialog until the issue is resolved or use another windowing library.

@tseli0s tseli0s added bug Something isn't working help wanted Extra attention is needed todo To be worked on upstream Related to upstream labels Apr 15, 2023
@tseli0s tseli0s added this to the v0.8.0 milestone Apr 15, 2023
@tseli0s tseli0s self-assigned this Apr 15, 2023
@tseli0s
Copy link
Owner Author

tseli0s commented Apr 26, 2023

From the mentioned issue and with some extra testing I did, it boils down to X11's unsafe design. Wayland seems to work completely fine apart from some warnings unrelated to NvDialog.

@tseli0s tseli0s pinned this issue Apr 26, 2023
@tseli0s tseli0s added the x11 X11-related error, so no fix expected. label Nov 6, 2023
@tseli0s tseli0s removed this from the v0.8.0 milestone Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed todo To be worked on upstream Related to upstream x11 X11-related error, so no fix expected.
Projects
None yet
Development

No branches or pull requests

1 participant