wayfire icon indicating copy to clipboard operation
wayfire copied to clipboard

segfault on 'rectangle selection' in kitty, if cube plugin is enabled

Open dagbdagb opened this issue 4 months ago • 1 comments

Describe the bug basically $subject.

To Reproduce Steps to reproduce the behavior:

  1. start wayfire
  2. enable 'cube' plugin
  3. open kitty
  4. initiate a 'rectangle selection', watch wayfire crash
  5. collect log
  6. go to start

Expected behavior Upon selecting text in kitty, text should be highlighted.

Screenshots or stacktrace

DD 20-02-24 09:41:44.073 - [wayfire-0.8.0/src/output/output.cpp:293] output DP-3: activate plugin cube II 20-02-24 09:41:44.097 - [wayfire-0.8.0/src/core/seat/input-method-relay.cpp:124] Disabling text input, but input method is gone EE 20-02-24 09:41:44.115 - [wayfire-0.8.0/src/main.cpp:134] Fatal error: Segmentation fault EE 20-02-24 09:41:44.123 - #1 _start ??:? EE 20-02-24 09:41:44.129 - #2 __sigaction ??:? EE 20-02-24 09:41:44.136 - #3 wf::view_interface_t::get_root_node() const ??:? EE 20-02-24 09:41:44.144 - #4 wf::view_bring_to_front(nonstd::observer_ptrwf::view_interface_t) ??:? EE 20-02-24 09:41:44.152 - #5 std::__cxx11::basic_string<char, std::char_traits, std::allocator > wf::log::detail::format_concat<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, char const*>(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, char const*) ??:? EE 20-02-24 09:41:44.158 - #6 wl_event_loop_dispatch ??:? EE 20-02-24 09:41:44.163 - #7 wl_display_run ??:? EE 20-02-24 09:41:44.171 - #8 main ??:? EE 20-02-24 09:41:44.177 - #9 __libc_init_first ??:? EE 20-02-24 09:41:44.183 - #10 __libc_start_main ??:? EE 20-02-24 09:41:44.191 - #11 _start ??:?

Wayfire version 0.8.0-r1 - gentoo portage (wayfire) 0.8.0 - gentoo portage (wayfire-plugins-extra)

There is obviously a conflict between the cube plugin activation keys, and the kitty rectangle selection. Is a crash the only sane way to handle this?

dagbdagb avatar Feb 20 '24 09:02 dagbdagb

Changing the cube activation key removes the crash. Leaving issue Open for devs to decide if bug or not.

dagbdagb avatar Feb 20 '24 09:02 dagbdagb

You are using same keybind for both kitty and cube plugin, isn't the crash intended to happen? if you can change cube activation key or the kitty keybind then it's probably the right thing to do

killown avatar Mar 10 '24 18:03 killown

You are using same keybind for both kitty and cube plugin, isn't the crash intended to happen? if you can change cube activation key or the kitty keybind then it's probably the right thing to do

A crash is never intended to happen xD

ammen99 avatar Mar 10 '24 18:03 ammen99

is this what is necessary to enable rectangle selection? using the same cube bind map ctrl+alt <MousePress>1 rectangle_select and did not crash

killown avatar Mar 27 '24 13:03 killown

Recently we fixed so many crashes that it's possible we accidentally fixed that as well, please re-test ;)

ammen99 avatar Apr 16 '24 14:04 ammen99

Heh. I don't see the crash with 0.8.1-r1 in gentoo. Sorry I forgot to update this bug.

dagbdagb avatar Apr 16 '24 15:04 dagbdagb