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

Assertion failed in wlr_seat_keyboard_notify_enter on shutdown #5469

Closed
emersion opened this issue Jun 19, 2020 · 0 comments · Fixed by #5470
Closed

Assertion failed in wlr_seat_keyboard_notify_enter on shutdown #5469

emersion opened this issue Jun 19, 2020 · 0 comments · Fixed by #5470
Labels
bug Not working as intended input/keyboard

Comments

@emersion
Copy link
Member

  1. Open Sway with the Wayland backend
  2. Exit Sway
sway: types/seat/wlr_seat_keyboard.c:321: wlr_seat_keyboard_notify_enter: Assertion `surface' failed.

Thread 1 "sway" received signal SIGABRT, Aborted.
[Switching to Thread 0x7ffff4f10a00 (LWP 50809)]
0x00007ffff59f9355 in raise () from /usr/lib/libc.so.6
(gdb) bt full
#0  0x00007ffff59f9355 in raise () at /usr/lib/libc.so.6
#1  0x00007ffff59e2853 in abort () at /usr/lib/libc.so.6
#2  0x00007ffff59e2727 in _nl_load_domain.cold () at /usr/lib/libc.so.6
#3  0x00007ffff59f1936 in  () at /usr/lib/libc.so.6
#4  0x00007ffff6f9c41c in wlr_seat_keyboard_notify_enter (seat=0x618000019880, surface=0x0, keycodes=0x61a00008ce98, num_keycodes=0, modifiers=0x614000082328) at ../subprojects/wlroots/types/seat/wlr_seat_keyboard.c:321
        __PRETTY_FUNCTION__ = "wlr_seat_keyboard_notify_enter"
        grab = 0x606000058580
#5  0x000055555592dbf7 in seat_keyboard_notify_enter (seat=0x615000033980, surface=0x0) at ../sway/input/seat.c:150
        keyboard = 0x614000082240
        sway_keyboard = 0x61a00008ca80
        __PRETTY_FUNCTION__ = "seat_keyboard_notify_enter"
        state = 0x61a00008ce18
#6  0x000055555593b5ad in seat_set_focus_surface (seat=0x615000033980, surface=0x0, unfocus=false) at ../sway/input/seat.c:1182
#7  0x00005555559206de in handle_keyboard_group_leave (listener=0x60c000165f98, data=0x7fffffffdd50) at ../sway/input/keyboard.c:565
        unmanaged = 0x0
        sway_group = 0x60c000165f40
        keyboard = 0x61a00008ca80
        keycodes = 0x7fffffffdd50
        pressed_sent = true
        keycode = 0x6020002dfdb8
        seat = 0x615000033980
        focus = 0x0
#8  0x00007ffff70b2edb in wlr_signal_emit_safe (signal=0x6140000823d0, data=0x7fffffffdd50) at ../subprojects/wlroots/util/signal.c:29
        pos = 0x60c000165f98
        l = 0x60c000165f98
        cursor = {link = {prev = 0x60c000165f98, next = 0x7fffffffdc30}, notify = 0x7ffff70b2bec <handle_noop>}
        end = {link = {prev = 0x7fffffffdbf0, next = 0x6140000823d0}, notify = 0x7ffff70b2bec <handle_noop>}
#9  0x00007ffff7034296 in refresh_state (device=0x60d0000ee6f0, state=WLR_KEY_RELEASED) at ../subprojects/wlroots/types/wlr_keyboard_group.c:235
        keys = {size = 8, alloc = 16, data = 0x6020002dfdb0}
#10 0x00007ffff703434e in remove_keyboard_group_device (device=0x60d0000ee6f0) at ../subprojects/wlroots/types/wlr_keyboard_group.c:243
#11 0x00007ffff7035919 in wlr_keyboard_group_remove_keyboard (group=0x614000082240, keyboard=0x61300003e080) at ../subprojects/wlroots/types/wlr_keyboard_group.c:324
        device = 0x60d0000ee6f0
        tmp = 0x614000082320
#12 0x0000555555923410 in sway_keyboard_group_remove (keyboard=0x61a00007b680) at ../sway/input/keyboard.c:768
        device = 0x606000058580
        wlr_keyboard = 0x61300003e080
        wlr_group = 0x614000082240
#13 0x0000555555923f33 in sway_keyboard_group_remove_invalid (keyboard=0x61a00007b680) at ../sway/input/keyboard.c:814
        group = 0x614000082240
        device = 0x606000058580
        wlr_keyboard = 0x61300003e080
        seat = 0x615000033980
        sc = 0x6060000585e0
#14 0x0000555555926730 in sway_keyboard_configure (keyboard=0x61a00007b680) at ../sway/input/keyboard.c:977
        locked_mods = 24608
        input_config = 0x6110000b9e00
        wlr_device = 0x60c0000f6100
        __PRETTY_FUNCTION__ = "sway_keyboard_configure"
        keymap = 0x61b0000a9c80
        keymap_changed = true
        effective_layout_changed = false
        repeat_rate = 25
        repeat_delay = 600
        repeat_info_changed = false
        seat = 0x555555902083 <input_device_get_config+1656>
#15 0x000055555593562b in seat_configure_keyboard (seat=0x615000033980, seat_device=0x606000058640) at ../sway/input/seat.c:695
        focus = 0x60c0000f6100
#16 0x000055555593687d in seat_configure_device (seat=0x615000033980, input_device=0x606000058580) at ../sway/input/seat.c:772
        seat_device = 0x606000058640
#17 0x00005555558ff18a in input_manager_configure_input (input_device=0x606000058580) at ../sway/input/input-manager.c:529
        seat = 0x615000033980
#18 0x00005555558ff435 in input_manager_configure_all_inputs () at ../sway/input/input-manager.c:536
        input_device = 0x606000058580
#19 0x0000555555a44d04 in output_disable (output=0x6150000e6a80) at ../sway/tree/output.c:273
        __PRETTY_FUNCTION__ = "output_disable"
        index = 0
#20 0x00005555558cf602 in damage_handle_destroy (listener=0x6150000e6c00, data=0x6120000f3940) at ../sway/desktop/output.c:799
        output = 0x6150000e6a80
#21 0x00007ffff70b2edb in wlr_signal_emit_safe (signal=0x6120000f39b0, data=0x6120000f3940) at ../subprojects/wlroots/util/signal.c:29
        pos = 0x6150000e6c00
        l = 0x6150000e6c00
        cursor = {link = {prev = 0x6150000e6c00, next = 0x7fffffffe170}, notify = 0x7ffff70b2bec <handle_noop>}
        end = {link = {prev = 0x7fffffffe130, next = 0x6120000f39b0}, notify = 0x7ffff70b2bec <handle_noop>}
#22 0x00007ffff7049f6d in wlr_output_damage_destroy (output_damage=0x6120000f3940) at ../subprojects/wlroots/types/wlr_output_damage.c:130
#23 0x00007ffff70487ea in output_handle_destroy (listener=0x6120000f39c0, data=0x61800008dc80) at ../subprojects/wlroots/types/wlr_output_damage.c:13
        output_damage = 0x6120000f3940
#24 0x00007ffff70b2edb in wlr_signal_emit_safe (signal=0x61800008deb8, data=0x61800008dc80) at ../subprojects/wlroots/util/signal.c:29
--Type <RET> for more, q to quit, c to continue without paging--
        pos = 0x6120000f39c0
        l = 0x6120000f39c0
        cursor = {link = {prev = 0x6120000f39c0, next = 0x6150000e6b88}, notify = 0x7ffff70b2bec <handle_noop>}
        end = {link = {prev = 0x6070000fcdd8, next = 0x61800008deb8}, notify = 0x7ffff70b2bec <handle_noop>}
#25 0x00007ffff70614ee in wlr_output_destroy (output=0x61800008dc80) at ../subprojects/wlroots/types/wlr_output.c:365
        cursor = 0x7fffffffe3b0
        tmp_cursor = 0x7ffff6f4ecfb <get_wl_backend_from_backend+24>
#26 0x00007ffff6f50347 in backend_destroy (backend=0x615000002b00) at ../subprojects/wlroots/backend/wayland/backend.c:183
        wl = 0x615000002b00
        output = 0x61800008dc80
        tmp_output = 0x6150000028b0
        input_device = 0x60c00016b4f0
        tmp_input_device = 0x0
#27 0x00007ffff6f057db in wlr_backend_destroy (backend=0x615000002b00) at ../subprojects/wlroots/backend/backend.c:47
#28 0x00007ffff6f4ba67 in multi_backend_destroy (wlr_backend=0x60d000000520) at ../subprojects/wlroots/backend/multi/backend.c:57
        sub = 0x60b0000ac7e0
        backend = 0x60d000000520
#29 0x00007ffff6f4c1ba in handle_display_destroy (listener=0x60d000000570, data=0x611000000e00) at ../subprojects/wlroots/backend/multi/backend.c:110
        backend = 0x60d000000520
#30 0x00007ffff6577e0f in  () at /usr/lib/libwayland-server.so.0
#31 0x00007ffff65785a7 in wl_display_destroy () at /usr/lib/libwayland-server.so.0
#32 0x00005555558b09f1 in server_fini (server=0x555555ebd3a0 <server>) at ../sway/server.c:188
#33 0x00005555558ad815 in main (argc=4, argv=0x7fffffffe6e8) at ../sway/main.c:415
        verbose = 0
        debug = 1
        validate = 0
        allow_unsupported_gpu = 0
        long_options = 
            {{name = 0x555555a760a0 "help", has_arg = 0, flag = 0x0, val = 104}, {name = 0x555555a760e0 "config", has_arg = 1, flag = 0x0, val = 99}, {name = 0x555555a76120 "validate", has_arg = 0, flag = 0x0, val = 67}, {name = 0x555555a76160 "debug", has_arg = 0, flag = 0x0, val = 100}, {name = 0x555555a761a0 "version", has_arg = 0, flag = 0x0, val = 118}, {name = 0x555555a761e0 "verbose", has_arg = 0, flag = 0x0, val = 86}, {name = 0x555555a76220 "get-socketpath", has_arg = 0, flag = 0x0, val = 112}, {name = 0x555555a76260 "unsupported-gpu", has_arg = 0, flag = 0x0, val = 117}, {name = 0x555555a762a0 "my-next-gpu-wont-be-nvidia", has_arg = 0, flag = 0x0, val = 117}, {name = 0x0, has_arg = 0, flag = 0x0, val = 0}}
        config_path = 0x602000001010 "config-debug"
        usage = 0x555555a758e0 "Usage: sway [options] [command]\n\n  -h, --help", ' ' <repeats 13 times>, "Show help message and quit.\n  -c, --config <config>  Specify a config file.\n  -C, --validate         Check the validity of the config file, th"...
        c = -1
@emersion emersion added bug Not working as intended input/keyboard labels Jun 19, 2020
Xyene added a commit to Xyene/sway that referenced this issue Jun 19, 2020
emersion pushed a commit that referenced this issue Jun 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not working as intended input/keyboard
Development

Successfully merging a pull request may close this issue.

1 participant