bugGNU Octave - Bugs: bug #47724, GUI just...forgets....the...

 
 

bug #47724: GUI just...forgets....the documentation...

Submitter:  None
Submitted:  Sun 17 Apr 2016 04:37:25 PM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Inaccurate Result
Status:  Works For Me Assigned to:  None
Originator Name:  Aaron V. Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.0.1
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Thu 28 Apr 2016 09:02:56 PM UTC, comment #6: 

My guess for the OP's report is that OCTAVE_HOME is getting removed from the environment somehow. Can you test on Windows what happens if you "unsetenv OCTAVE_HOME" inside a running working Octave session?

That's about all I can think of that would cause this. Or somehow Octave is actually being re-executed by a hibernate or reboot or whatever really happened, but without the OCTAVE_HOME in the environment (IOW it's not using the right launcher or batch file or whatever).

If you can't figure out how to get Octave to run without OCTAVE_HOME set correctly in the environment, then without any further information from the reporter this is unreproducible and should be closed.

Mike Miller <mtmiller>
Group Member
Wed 20 Apr 2016 09:20:44 AM UTC, comment #5: 

@Mike:
Did you address the OP or me?

What get for Tatsuro's 64-bit 4.0.1 cross-build is:

>> getenv OCTAVE_HOME
ans = D:\Octave\Octave-4.0.1
>> OCTAVE_HOME
ans = D:\Octave\Octave-4.0.1
>> info_dir
error: 'info_dir' undefined near line 1 column 1
>> getenv OCTAVE_INFO_FILE
ans =
>> info_file
ans = D:\Octave\Octave-4.0.1\share\info\octave.info
>>


In mxe-octave builds, octave_config_info echoes a lot of paths that may have been important during build stage but no more during runtime (at least, for Windows cross-builds); for example (again running Tatsuro's 64-bit 4.0.1 cross-build):

:
    FLIBS = -L/home/tatsuro/work/octave/mxe-octave/mxe-octave-w64/usr/x86_64-w64-mingw32/lib -L/home/tatsuro/work/octave/mxe-octave/mxe-octave-w64/usr/lib/gcc/x86_64-w64-mingw32/4.9.3 -L/home/tatsuro/work/octave/mxe-octave/mxe-octave-w64/usr/lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/lib/../lib -L/home/tatsuro/work/octave/mxe-octave/mxe-octave-w64/usr/mingw/lib/../lib -L/home/tatsuro/work/octave/mxe-octave/mxe-octave-w64/usr/lib/gcc/x86_64-w64-mingw32/4.9.3/../../../../x86_64-w64-mingw32/lib -L/home/tatsuro/work/octave/mxe-octave/mxe-octave-w64/usr/mingw/lib -lm -lgfortran -lmingw32 -lmoldname -lmingwex -lmsvcrt -lquadmath -ladvapi32 -lshell32 -luser32 -lkernel32
:
    MAGICK_CPPFLAGS = -I/home/tatsuro/work/octave/mxe-octave/mxe-octave-w64/usr/x86_64-w64-mingw32/include/GraphicsMagick -I/home/tatsuro/work/octave/mxe-octave/mxe-octave-w64/usr/x86_64-w64-mingw32/include/libxml2 -I/home/tatsuro/work/octave/mxe-octave/mxe-octave-w64/usr/x86_64-w64-mingw32/include
:
    QT_CPPFLAGS = -I/home/tatsuro/work/octave/mxe-octave/mxe-octave-w64/usr/x86_64-w64-mingw32/include -I/home/tatsuro/work/octave/mxe-octave/mxe-octave-w64/usr/x86_64-w64-mingw32/include/QtNetwork -I/home/tatsuro/work/octave/mxe-octave/mxe-octave-w64/usr/x86_64-w64-mingw32/include -I/home/tatsuro/work/octave/mxe-octave/mxe-octave-w64/usr/x86_64-w64-mingw32/include/QtOpenGL -I/home/tatsuro/work/octave/mxe-octave/mxe-octave-w64/usr/x86_64-w64-mingw32/include -I/home/tatsuro/work/octave/mxe-octave/mxe-octave-w64/usr/x86_64-w64-mingw32/include/QtGui -I/home/tatsuro/work/octave/mxe-octave/mxe-octave-w64/usr/x86_64-w64-mingw32/include -I/home/tatsuro/work/octave/mxe-octave/mxe-octave-w64/usr/x86_64-w64-mingw32/include/QtCore
    QT_LDFLAGS = -L/home/tatsuro/work/octave/mxe-octave/mxe-octave-w64/usr/x86_64-w64-mingw32/lib
:
    config_opts = 'CPPFLAGS=-I/home/tatsuro/work/octave/mxe-octave/mxe-octave-w64/usr/x86_64-w64-mingw32/include' 'LDFLAGS=-L/home/tatsuro/work/octave/mxe-octave/mxe-octave-w64/usr/x86_64-w64-mingw32/lib' '--host=x86_64-w64-mingw32' '--build=x86_64-unknown-linux-gnu' '--prefix=/home/tatsuro/work/octave/mxe-octave/mxe-octave-w64/usr/x86_64-w64-mingw32' '--disable-silent-rules' '--enable-install-build-logs' 'FLTK_CONFIG=/home/tatsuro/work/octave/mxe-octave/mxe-octave-w64/usr/bin/x86_64-w64-mingw32-fltk-config' 'gl_cv_func_gettimeofday_clobber=no' '--with-java-includedir=/home/tatsuro/work/octave/mxe-octave/mxe-octave-w64/usr/x86_64-w64-mingw32/include/java' '--disable-jit' 'MOC=/home/tatsuro/work/octave/mxe-octave/mxe-octave-w64/usr/bin/x86_64-w64-mingw32-moc' 'UIC=/home/tatsuro/work/octave/mxe-octave/mxe-octave-w64/usr/bin/x86_64-w64-mingw32-uic' 'RCC=/home/tatsuro/work/octave/mxe-octave/mxe-octave-w64/usr/bin/x86_64-w64-mingw32-rcc' 'LRELEASE=/home/tatsuro/work/octave/mxe-octave/mxe-octave-w64/usr/bin/x86_64-w64-mingw32-lrelease' 'LDFLAGS=-Wl,-rpath-link,/home/tatsuro/work/octave/mxe-octave/mxe-octave-w64/usr/x86_64-w64-mingw32/lib -L/home/tatsuro/work/octave/mxe-octave/mxe-octave-w64/usr/x86_64-w64-mingw32/lib' '--with-x=no' 'PKG_CONFIG=/home/tatsuro/work/octave/mxe-octave/mxe-octave-w64/usr/bin/pkg-config' 'PKG_CONFIG_PATH=/home/tatsuro/work/octave/mxe-octave/mxe-octave-w64/usr/x86_64-w64-mingw32/lib/pkgconfig' 'build_alias=x86_64-unknown-linux-gnu' 'host_alias=x86_64-w64-mingw32'


... and many more.

Philip Nienhuis <philipnienhuis>
Group Member
Tue 19 Apr 2016 10:15:06 PM UTC, comment #4: 

The following Octave functions tell where files are installed, if this problem is recurring please report what these functions return, both when it is working correctly and when it is not:


>> getenv OCTAVE_HOME
>> OCTAVE_HOME
>> info_dir
>> getenv OCTAVE_INFO_FILE
>> info_file


When Octave starts it should automatically set OCTAVE_HOME to be the directory that it is running from and adjust the locations of all other files it owns to be relative to that directory. If there's a bug here please help us find it.

Can you say for sure that Octave remained running when the laptop was shut down and restarted? Or did restarting the operating system automatically start a new instance of Octave because it was remembered in the session?

Mike Miller <mtmiller>
Group Member
Tue 19 Apr 2016 04:10:03 PM UTC, comment #3: 

Could be.
When compiling modules with mkoctfile on Windows I see loads of include file locations from the Linux side, so I didn't bother when I saw that path. But for docs it may indeed be an issue.

Remarkable is that it happens apparently during some re-initialization after ...? hibernate? sleep? cold reboot?

I never saw this message yet I regularly hibernate / sleep my laptop in the middle of Octave calculations.

Philip Nienhuis <philipnienhuis>
Group Member
Tue 19 Apr 2016 12:09:04 PM UTC, comment #2: 

It looks like the path is an absolute path valid when jwe compiled this, which should have been a path relative to the installation directory.

As a workaround for the documentation, you can set the environment variable "OCTAVE_INFO_FILE" to point to wherever "octave.info" lives on a Windows installation.

I'm not sure why it isn't finding the functions, though.  Perhaps it is again that the first session was relying on environment variables that changed.

Lachlan Andrew <lachlan>
Sun 17 Apr 2016 06:17:33 PM UTC, comment #1: 

Did your laptop hibernate, or was it a cold restart?

If the former, did you also try the latter to see if the problem was solved?

Philip Nienhuis <philipnienhuis>
Group Member
Sun 17 Apr 2016 04:37:25 PM UTC, original submission:  

I was using the GUI last night to run some simple integration examples using Gaussian Quadrature. I turned off my laptop and turned it back on this morning. When I turned it on, the GUI could not load the documentation giving an error

"The info file
\scratch\jwe\mxe-octave\usr\i686-w64-mingw32\share\info\octave.info
or compressed versions do not exist"


...which is weird because I wasn't messing with the GUI or Windows in any way.

Also, when I try to use any Octave function, such as help or trapz, it doesn't work. It says that those inputs are undefined.

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

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by lachlan (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-05-16 mtmiller StatusNeed Info Works For Me
        Open/ClosedOpen Closed
    2016-04-17 philipnienhuis StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code