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

Closing window results in a segmentation Fault #4040

Open
EggShark opened this issue Dec 14, 2024 · 0 comments
Open

Closing window results in a segmentation Fault #4040

EggShark opened this issue Dec 14, 2024 · 0 comments
Labels
B - bug Dang, that shouldn't have happened DS - wayland

Comments

@EggShark
Copy link

EggShark commented Dec 14, 2024

Description

Everything works as exepected with my program. However when I close the window I get a segmentation fault. This happens on my Arch setup with gnome and a friends Nixos setup with kwin. Here is the stack trace of my friends Nixos and Kwin setup:

* thread #1, name = 'debug_triangle', stop reason = signal SIGSEGV: address not mapped to object (fault address: 0x12c)
  * frame #0: 0x00007ffff7caceba libwayland-client.so.0`wl_map_insert_at + 74
    frame #1: 0x00007ffff7ca7d88 libwayland-client.so.0`proxy_destroy + 264
    frame #2: 0x00007ffff7ca9552 libwayland-client.so.0`wl_proxy_marshal_array_flags + 418
    frame #3: 0x00007ffff7ca9afd libwayland-client.so.0`wl_proxy_marshal_flags + 237
    frame #4: 0x00007ffff49d087f libEGL_mesa.so.0`dri2_teardown_wayland + 143
    frame #5: 0x00007ffff49c4f58 libEGL_mesa.so.0`dri2_display_destroy + 312
    frame #6: 0x00007ffff49c5590 libEGL_mesa.so.0`dri2_terminate + 64
    frame #7: 0x00007ffff49b1d54 libEGL_mesa.so.0`eglTerminate + 180

This segmentation fault doesn't happen on windows 10 and x11 linux.

Debugging output

[1451656.594] {Display Queue} wl_display#1.delete_id(94)
[1451656.608] wl_callback#94.done(1357)
[1451656.707]  -> wl_keyboard#18.release()
[1451656.838]  -> wl_pointer#21.release()
[1451656.853]  -> wl_surface#20.destroy()
[1451657.602] {mesa vk display queue}  -> wp_linux_drm_syncobj_timeline_v1#105.destroy()
[1451657.614] {mesa vk display queue}  -> wp_linux_drm_syncobj_timeline_v1#206.destroy()
[1451657.623] {mesa vk display queue}  -> wl_buffer#155.destroy()
[1451657.744] {mesa vk display queue}  -> wp_linux_drm_syncobj_timeline_v1#109.destroy()
[1451657.750] {mesa vk display queue}  -> wp_linux_drm_syncobj_timeline_v1#93.destroy()
[1451657.754] {mesa vk display queue}  -> wl_buffer#160.destroy()
[1451657.818] {mesa vk display queue}  -> wp_linux_drm_syncobj_timeline_v1#79.destroy()
[1451657.826] {mesa vk display queue}  -> wp_linux_drm_syncobj_timeline_v1#101.destroy()
[1451657.830] {mesa vk display queue}  -> wl_buffer#89.destroy()
[1451657.862] {mesa vk display queue}  -> wp_linux_drm_syncobj_timeline_v1#143.destroy()
[1451657.866] {mesa vk display queue}  -> wp_linux_drm_syncobj_timeline_v1#194.destroy()
[1451657.867] {mesa vk display queue}  -> wl_buffer#150.destroy()
[1451658.006] {mesa vk display queue}  -> wp_linux_drm_syncobj_surface_v1#67.destroy()
[1451658.009] {mesa vk display queue}  -> zwp_linux_dmabuf_feedback_v1#65.destroy()
[1451658.020] {mesa vk display queue}  -> wp_linux_drm_syncobj_manager_v1#45.destroy()
[1451658.022] {mesa vk display queue}  -> zwp_linux_dmabuf_v1#41.destroy()
[1451658.024] {mesa vk display queue}  -> wp_presentation#44.destroy()
[1451659.245]  -> wp_fractional_scale_v1#27.destroy()
[1451659.259]  -> wp_viewport#26.destroy()
[1451680.273] {mesa egl display queue}  -> zwp_linux_dmabuf_v1#39.destroy()
[1]    13650 segmentation fault (core dumped)  WAYLAND_DEBUG=1 cargo r --example line


### Window isn't shown unless you draw

- [X] I understand that windows aren't shown on Wayland unless I draw and present to them.

### Winit version

0.30.5
@EggShark EggShark added B - bug Dang, that shouldn't have happened DS - wayland labels Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B - bug Dang, that shouldn't have happened DS - wayland
Development

No branches or pull requests

1 participant