[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #62863] Octave closes if empty editor tab is c
John W. Eaton
[Octave-bug-tracker] [bug #62863] Octave closes if empty editor tab is closed before .octaverc is finished
Wed, 11 Jan 2023 14:12:23 -0500 (EST)
Update of bug #62863 (project octave):
Status: Patch Submitted => Ready For Test
Follow-up Comment #7:
The diff I posted was based on the current stable branch.
This report exposes a general problem with interpreter_event callbacks that
emit signals or rely on pointers to data belonging to the GUI. If there is a
delay in executing the callback, it is possible for the GUI object(s) to be
deleted before the callback executes. But in some cases, it is OK to execute
part of the callback.
For another example of when problems might occur, try the following:
* open a tab in the editor and insert some code
* in the command window, issue a command like "pause(20)"
* back in the editor, select the code and run it (run selection; F9)
* delete the editor tab before the pause command finishes
* wait for Octave to crash
For now, I checked in the following changeset on stable and merged with
default. I believe it takes care of all the cases involving callbacks that
emit signals. There may be other issues that I didn't catch yet.
Reply to this item at:
Message sent via Savannah