-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Happens when I click on "Mosh" from the GUI.
WarpAI thinks the issue comes from this:
Perfect! Now we have the exact location of the segfault. The issue is in the tkinter configuration in a threading context, specifically in line 792 in the do_the_mosh function. The segfault occurs when a customtkinter button is being configured from within a thread, which is calling tkinter's _configure method.
This is a classic threading issue with tkinter - tkinter is not thread-safe, and GUI operations must only be performed from the main thread.
I found the issue. The problem is that the do_the_mosh() function is being called from a background thread (started in line 779 with threading.Thread(target=do_the_mosh).start()), but this function contains multiple GUI operations that are not thread-safe:
• Line 792: button_mosh.configure(state=tkinter.DISABLED) ⬅️ This is line 792 where the crash occurs
• Line 793: button_open.configure(state=tkinter.DISABLED)
• Multiple ProcessLabel.configure() calls
• Various messagebox calls
• And many other GUI operations throughout the function
The solution is to modify the code so that GUI operations are performed in the main thread using root.after() or similar mechanisms.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working