[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
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #62863] Octave closes if empty editor tab is closed before .octaverc is finished |
Date: |
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.
http://hg.savannah.gnu.org/hgweb/octave/rev/9ab31fe294c1
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62863>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/