bugGNU Octave - Bugs: bug #46544, race condition when changing...

 
 

bug #46544: race condition when changing directory from octaverc

Submitter:  None
Submitted:  Thu 26 Nov 2015 01:11:32 PM UTC
   
 
Category:  GUI Severity:  2 - Minor
Priority:  3 - Low Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * dev
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sun 02 Apr 2023 11:12:59 AM UTC, comment #7: 

Octave GUI's startup procedure has changed (a lot) since this big report. I current stable (8.1) and default (9.0) versions, I can not reproduce this issue and therefore close this bug as fixed. If this issue should show up again, the report can be re-opened.

Torsten Lilge <ttl>
Group Member
Wed 21 Sep 2016 07:37:15 PM UTC, comment #6: 

I doubt that this bug will be addressed for the 4.2 release, there has not been as much GUI development activity lately, and this bug is not particularly disastrous and there is an easy workaround (which I now notice was never posted here, so fixing that).

If you want to use the GUI and want it to start in a particular directory, use the GUI preferences to do that instead of coding it in ~/.octaverc.

Open Edit → Preferences, go to the General tab, and at the bottom is a section labeled Octave Startup. There you can configure a directory that the GUI should always start in, or set it to remember and restore the last working directory every time you quit and restart Octave.

Mike Miller <mtmiller>
Group Member
Mon 27 Jun 2016 12:09:20 PM UTC, comment #5: 

I found this bug also, but it seems like it has not been addressed since confirmation. Anyone knows if it is going to be fixed for the current release??? Really an annoying bug.

Anonymous
Mon 22 Feb 2016 03:11:58 AM UTC, comment #4: 

The Octave GUI sets the initial working directory after the interpreter has been initialized. So there is a period of time where the interpreter is doing its setup and the GUI is doing its setup simultaneously.

The interpreter loads startup files in the execute_startup_files() function. The GUI sets the initial directory in the main_window::handle_octave_ready() function.

Any ideas on how or whether this should be addressed?

Mike Miller <mtmiller>
Group Member
Thu 26 Nov 2015 07:27:30 PM UTC, comment #3: 

Hello,

I'm who reported this.

EDITOR("~/Octave") works fine, sorry. Only CD("") not working.

Anonymous
Thu 26 Nov 2015 02:49:22 PM UTC, comment #2: 

I can confirm a failure to change directory in ~/.octaverc when starting Octave 4.0.0 or the default version. I've only seen it once when starting the GUI, but repeatably when starting with --no-gui. Using --no-gui-libs instead (or octave-cli) works correctly. Feels like a race condition within the GUI initialization that may be setting the working directory, updated summary to reflect.

Are you sure EDITOR is also not working? Because all other commands work fine, it's only changing the directory that is a problem for me.

Mike Miller <mtmiller>
Group Member
Thu 26 Nov 2015 01:35:24 PM UTC, comment #1: 

I tried this in Dev. branch with Ubuntu 15.10
and it is working correctly for me.

Doug Stewart <dastew>
Thu 26 Nov 2015 01:11:32 PM UTC, original submission:  

Hello,

I'm writing this because I think this could be a bug, as this is the first version of Octave that includes the gui as default. It's the very first bug report I make so I'm sorry if I don't do it correctly.

Since I updated to version 4.0, when I start octave without gui ("octave --no-gui" on terminal), the .octaverc file on my home folder is not readed (e.g cd("~/Octave") does not change the directory, EDITOR("gedit") does not change default editor...)).

If I start octave normally it does start with gui and in the folder I set on my octaverc.

Why could be this? Will be fixed if it's unintentional? Is there any workaround?

I'm using octave 4.0.0-3ubuntu5, on Ubuntu 15.10 Wily, adm64.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -email is unavailable- added by ttl (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by dastew (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 13 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-04-02 ttl StatusPostponed Fixed
        Open/ClosedOpen Closed
    2016-09-21 mtmiller Severity3 - Normal 2 - Minor
        StatusConfirmed Postponed
    2016-08-22 mtmiller Dependencies- bugs #48855 is dependent
    2016-08-10 mtmiller Dependencies- bugs #48746 is dependent
    2016-02-22 mtmiller Priority5 - Normal 3 - Low
        Release4.0.0 dev
        Operating SystemGNU/Linux Any
    2015-11-26 mtmiller CategoryNone GUI
        Item GroupNone Incorrect Result
        StatusNone Confirmed
        SummaryOctave 4 no gui does not read octaverc. race condition when changing directory from octaverc

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code