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

 
 

bug #46544: race condition when changing directory from octaverc

Submitted by:  None
Submitted on:  Thu 26 Nov 2015 01:11:32 PM UTC  
 
Category: GUISeverity: 2 - Minor
Priority: 3 - LowItem Group: Incorrect Result
Status: PostponedAssigned to: None
Originator Name: Originator Email: -unavailable-
Open/Closed: OpenRelease: dev
Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

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>
Project Administrator
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>
Project Administrator
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>
Project Administrator
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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 11 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 21 Sep 2016 07:37:15 PM UTCmtmillerSeverity3 - Normal=>2 - Minor
      StatusConfirmed=>Postponed
    Mon 22 Aug 2016 05:09:11 PM UTCmtmillerDependencies-=>bugs #48855 is dependent
    Wed 10 Aug 2016 02:24:25 PM UTCmtmillerDependencies-=>bugs #48746 is dependent
    Mon 22 Feb 2016 03:11:58 AM UTCmtmillerPriority5 - Normal=>3 - Low
      Release4.0.0=>dev
      Operating SystemGNU/Linux=>Any
    Thu 26 Nov 2015 02:49:22 PM UTCmtmillerCategoryNone=>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.1-cleanup1