iridescent-desktop / hopalong

Simple Wayland compositor based on wlroots
Other
17 stars 4 forks source link

Abort on gedit opening its unsaved changes dialog #6

Open adlocode opened 2 years ago

adlocode commented 2 years ago

When opening gedit, making some changes, not saving them, and then closing it, when the unsaved changes dialog should appear, instead Hopalong aborts with the following error:

hopalong: render/wlr_texture.c:26: wlr_texture_from_pixels: Assertion `width > 0' failed.
Aborted (core dumped)

Here is the backtrace:

#0  0x00007ffff788ec4c in __pthread_kill_implementation () at /lib64/libc.so.6
#1  0x00007ffff783e9c6 in raise () at /lib64/libc.so.6
#2  0x00007ffff78287f4 in abort () at /lib64/libc.so.6
#3  0x00007ffff782871b in _nl_load_domain.cold () at /lib64/libc.so.6
#4  0x00007ffff7837576 in  () at /lib64/libc.so.6
#5  0x00007ffff7b9aeab in wlr_texture_from_pixels () at /lib64/libwlroots.so.10
#6  0x0000000000409218 in hopalong_view_generate_title_texture
    (output=0x1575650, view=0x16442d0) at ../src/compositor/hopalong-view.c:209
#7  0x0000000000409415 in hopalong_view_generate_textures
    (output=0x1575650, view=0x16442d0) at ../src/compositor/hopalong-view.c:244
#8  0x000000000040628d in regenerate_textures (output=0x1575650)
    at ../src/compositor/hopalong-output.c:319
#9  0x000000000040637d in hopalong_output_frame_notify
    (listener=0x1575670, data=0x155a630)
    at ../src/compositor/hopalong-output.c:336
#10 0x00007ffff7bed3cc in wlr_signal_emit_safe () at /lib64/libwlroots.so.10
#11 0x00007ffff7af6746 in ffi_call_unix64 () at /lib64/libffi.so.8
#12 0x00007ffff7af34d2 in ffi_call_int.lto_priv () at /lib64/libffi.so.8
#13 0x00007ffff6e7fe03 in wl_closure_invoke.constprop ()
    at /lib64/libwayland-client.so.0
#14 0x00007ffff6e80573 in dispatch_event.isra ()
    at /lib64/libwayland-client.so.0
#15 0x00007ffff6e8073c in wl_display_dispatch_queue_pending ()
--Type <RET> for more, q to quit, c to continue without paging--
    at /lib64/libwayland-client.so.0
#16 0x00007ffff7baa29c in dispatch_events () at /lib64/libwlroots.so.10
#17 0x00007ffff7f933a2 in wl_event_loop_dispatch ()
    at /lib64/libwayland-server.so.0
#18 0x00007ffff7f93b05 in wl_display_run () at /lib64/libwayland-server.so.0
#19 0x0000000000405250 in hopalong_server_run (server=0x423470)
    at ../src/compositor/hopalong-server.c:172
#20 0x000000000040cfd9 in main
    (argc=1, argv=0x7fffffffdd58, envp=0x7fffffffdd68)
    at ../src/compositor/hopalong-main.c:153