-
Notifications
You must be signed in to change notification settings - Fork 17
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
SIGSEGV when moving cursor back to server/pressing any key #29
Comments
Just ran waynergy through Breakpoint 1, syn_active_cb (cookie=0x55f04d770fe0 <synNetContext>, active=true) at ../src/main.c:121
121 if (!active) {
(rr) p wlContext
$1 = {registry = 0x55f04ee30c50, display = 0x55f04ee2cab0, seat = 0x55f04ee32b70, input = {state = 0x55f04ee33700,
key_press_state = 0x0, key_count = 255, xkb_key_offset = 0, xkb_ctx = 0x55f04ee31f60, xkb_map = 0x55f04ee33a20,
xkb_state = 0x55f04ee46de0, raw_keymap = 0x0, wl_ctx = 0x55f04d770ee0 <wlContext>,
mouse_rel_motion = 0x55f04d74f49c <mouse_rel_motion>, mouse_motion = 0x55f04d74f528 <mouse_motion>,
mouse_button = 0x55f04d74f5d2 <mouse_button>, mouse_wheel = 0x55f04d74f6aa <mouse_wheel>, key = 0x55f04d74f3ac <key>,
key_map = 0x55f04d74f31e <key_map>}, uinput_fd = {-1, 0}, keyboard_manager = 0x55f04ee31920,
pointer_manager = 0x55f04ee319c0, fake_input = 0x0, output_manager = 0x55f04ee33890, outputs = 0x55f04ee33990,
idle_manager = 0x55f04ee33930, idle_timeout = 0x55f04ee67680, width = 1128, height = 752, epoch = 0,
on_output_update = 0x55f04d7523c4 <wl_output_update_cb>} |
Initialize the key state tracking in the proper place -- after the raw keymap has (tried) to load, because it may increase the actual maximum keycode we expect, but also outside that function, because it returning early causes a segfault when no raw keymap is provided. Should alleviate issue #29
That is now corrected indeed. |
Waynergy works great now, thanks! Only thing that's on my side is that the keymap seems to get lost, but that's not your problem. Thanks again! EDIT: And I figured out the keymap, too. Now my system successfully gained another screen. |
Waynergy crashes with a segmentation fault on moving the cursor back to the server (in this case, barrier), or pressing any key on the server while the cursor is on waynergy's side. I don't know if these are related in any way, but following the procedure in #16 I built in debug-mode and using
bt
in GDB I produced these two backtraces.That one is when the cursor moves back to the server:
And that one is when pressing any key server-side:
This is an assumption by someone who barely used C in any true fashion, but both seem to involve
ctx
beingNULL
, so I figured both backtraces belong in one issue.EDIT: I'm running sway on Arch Linux, launching waynergy through
The text was updated successfully, but these errors were encountered: