FLTK logo

[fltk.general] Window is frozen

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Window is frozen supsm17 Nov 27, 2021  
  Hi there,
I recently came across an issue where my window would freeze after some time. I thought it would have something to do with the output widget, which I recently switched from Fl_Text_Display to Fl_Browser (I had not seen this issue before). When I commented out the line that adds lines to the browser, the issue does not appear.

Things that are broken:
Nothing updates, including button press/unpress, scroll bars, check boxes, and text input.

Things that are not broken:
Buttons still seem to work? When I pressed one of the buttons which triggers another window to open, the window still opened. However, the main window was still frozen. The new window is not frozen.

Redrawing the window does not fix the issue, however hiding and showing the window does. The issue also does not always appear, but does most of the time.

My setup is as follows:
The main thread outputs some lines then has Fl::run, then when a certain button is pressed, a new thread is created and detached. The new thread runs some other calculations but outputs sometimes by calling the output function. The output function uses Fl_Browser::add, and adds lines in a format like this:  @S14@C88@.text   . I suspect it has something to do with multithreading, as the issue does not happen in the main thread.


Any help is appreciated.

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/57a37af0-d181-4a84-b8f1-0075acaa1aa9n%40googlegroups.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.