robiot / xclicker

XClicker - Fast gui autoclicker for x11 linux desktops
https://xclicker.xyz
GNU General Public License v3.0
482 stars 42 forks source link

bug: Safe mode dialog Makes XClicker crash when starting with hotkey #10

Closed robiot closed 3 years ago

robiot commented 3 years ago

ISSUE TYPE:

OS / ENVIRONMENT:

STEPS TO REPRODUCE:

  1. Start XClicker and make sure safe mode is enabled.
  2. Set the milliseconds to something under 10.
  3. Start clicking by pressing the hotkey (Default F8)

EXPECTED BEHAVIOUR:

A warning like this should appear. image

ACTUAL BEHAVIOUR:

XClicker exists with code 1 sometimes, and sometimes with [xcb] Unknown sequence number while awaiting reply [xcb] Most likely this is a multi-threaded client and XInitThreads has not been called [xcb] Aborting, sorry about that. xclicker: xcb_io.c:365: poll_for_response: Assertion !xcb_xlib_threads_sequence_lost' failed.

robiot commented 3 years ago

This is because it tries to open the message dialog from another thread.

robiot commented 3 years ago

Fixed!