bugGNU Octave - Bugs: bug #59822, Document Viewer error on Windows...

 
 

bug #59822: Document Viewer error on Windows systems

Submitter:  None
Submitted:  Tue 05 Jan 2021 02:15:33 AM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Missed Error or Warning
Status:  Fixed Assigned to:  None
Originator Name:  Hale Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * dev
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Fri 21 Oct 2022 09:26:00 PM UTC, comment #14: 

Thanks for checking.

Closing as fixed.

Markus Mützel <mmuetzel>
Group administrator
Fri 21 Oct 2022 09:23:17 PM UTC, comment #13: 

Sorry forgot about this one (but I was abroad then).

No issues w.r.t. this bug at work. So as far as I'm concerned his bug has been fixed.

Philip Nienhuis <philipnienhuis>
Group Member
Fri 21 Oct 2022 06:19:35 AM UTC, comment #12: 

It's been several months since this was marked as ready for test.
Can this report be closed as fixed?

Markus Mützel <mmuetzel>
Group administrator
Wed 06 Jul 2022 06:32:11 PM UTC, comment #11: 

I'll see if I can try the patch. However I can only do that by the end of next week because officially I'm still on vacation :-)

Philip Nienhuis <philipnienhuis>
Group Member
Tue 05 Jul 2022 04:01:38 PM UTC, comment #10: 

Torsten pushed a changeset two weeks ago.  Is it okay to close this report as fixed?

Rik <rik5>
Group administrator
Sat 21 May 2022 07:20:36 AM UTC, comment #9: 

I pushed cset http://hg.savannah.gnu.org/hgweb/octave/rev/497de29f6946 to the default branch which calls the same internal function for determining the temp directory as the editor does for the F9-action since cset http://hg.savannah.gnu.org/hgweb/octave/rev/b77b321f1ac5 .

This function just goes through several environment variables and does not rely on any Qt functions for temp directories, since those seem to return locations with restricted access rights for normal users under certain conditions.

Torsten Lilge <ttl>
Group Member
Fri 20 May 2022 08:45:19 PM UTC, comment #8: 


comment #4:

> @Torsten:
> I found that for <F9> %TMP% is critical (not %TEMP%); on that apparently overly sensitive (virtual) desktop at work it must be set to %APPDATA%\Local\Temp.
> It seems that some temp/tmp locations apparently offer insufficient permissions for users.
>
> I get the exact same popup message and the doc browser pane is empty. I saw no errors during installation - maybe as expected as libsqlite3-0.dll was copied over.
> At home I haven't installed that Octave version yet (I usually run development crossbuilds directly from the <mxe-octave>/dist/>octave> subdir (the linux partition is readable in Windows using the ext2fsd program)). Maybe I should try to install it to see if I get this issue as well then.
> As confirmation: With a fresh W11 installation document loading failed and octave 7.1.0 crashed on exit. After setting TMP in my user env to %APPDATA%\..\local\temp (APPDATA now refers to the roaming folder), both problems were solved right away.

Anonymous
Mon 01 Feb 2021 06:32:47 PM UTC, comment #7: 

@Philip: The relevant part of the doc viewer is


QString tmpdir = QDir::tempPath();
m_collection
  = QString::fromStdString (sys::tempnam (tmpdir.toStdString (),



Torsten Lilge <ttl>
Group Member
Mon 01 Feb 2021 01:20:27 PM UTC, comment #6: 

Unzipping a "packed" working Octave installation from my home desktop to the virtual desktop at work leads to the same issue.
Nr of files & subdirs + total & occupied bytes match exactly. So no quarantining of dll's etc.

Yet these days there are malware scanners that only allow explicitly whitelisted files to be loaded (e.g., "Traps" and the like) and leave suspicious files on disk otherwise untouched. AFAIK our IT dept. used to whitelist my Octave installations for me so this shouldn't play a role here; but I'll ask.

@Torsten:
Does the document pane viewer need access to some specific location? if so what access (read and/or write) and to where?

Philip Nienhuis <philipnienhuis>
Group Member
Mon 01 Feb 2021 07:38:49 AM UTC, comment #5: 

Installation on my home desktop didn't induce this error.
I'll see if zipping up the working installation + unpacking it at work (i.e., not installing) makes a difference.

But I think this smells of a security/policies and/or antimalware issue.

Philip Nienhuis <philipnienhuis>
Group Member
Sat 30 Jan 2021 11:25:52 AM UTC, comment #4: 

@Torsten:
I found that for <F9> %TMP% is critical (not %TEMP%); on that apparently overly sensitive (virtual) desktop at work it must be set to %APPDATA%\Local\Temp.
It seems that some temp/tmp locations apparently offer insufficient permissions for users.

I get the exact same popup message and the doc browser pane is empty. I saw no errors during installation - maybe as expected as libsqlite3-0.dll was copied over.
At home I haven't installed that Octave version yet (I usually run development crossbuilds directly from the <mxe-octave>/dist/>octave> subdir (the linux partition is readable in Windows using the ext2fsd program)). Maybe I should try to install it to see if I get this issue as well then.

Philip Nienhuis <philipnienhuis>
Group Member
Fri 29 Jan 2021 06:13:38 PM UTC, comment #3: 

Philip, do you mean that the %TEMP% variable might be set to a location that is not user accessible?
The F9 mechanism uses QTemporaryFile which should reliably determine the user's temporary directory.

In the documentation, do you only see the message from your OP or also one about an error while copying the help file?

Torsten Lilge <ttl>
Group Member
Fri 29 Jan 2021 05:18:07 PM UTC, comment #2: 

By coincidence, I've recently asked this in the Discourse help as well (and in bug #54938) for dev Octave-7.0.0.
libsglite3-0.dll is present in my Octave installation at work. The very same build runs fine at home on Windows 10 at 20H2 (at work it's still the Win10 spring release).

I wonder if new Windows policies could be related rather than antimalware SW. What I see is that an older, fully functional Octave-7.0.0 installation on that same box at work suddenly had this issue as well.
(Hmmm I didn't try with compatibility options, maybe I should do that first.)

FWIW, other observations:
%TEMP% and %TMP% locations suddenly seem critical - the factory setting of %APPDATA%\Local\Temp is required for executing <F9> blocks from the GUI editor, that won't work with %TEMP%/%TMP% set to e.g., %WINDIR%\Temp (after gaining access) or just C:\Temp. But several SW installers don't like %APPDATA%\Local\Temp ...
(and C:\Temp\ often turns out to be morphed behind my back into C:\Temp\2\ or so, w/o proper access rights.)
A bit of a mess.

Philip Nienhuis <philipnienhuis>
Group Member
Fri 29 Jan 2021 03:50:30 PM UTC, comment #1: 

Perhaps same issue with anitvirus software as reported on #57806 ?

John Donoghue <lostbard>
Group Member
Tue 05 Jan 2021 02:15:33 AM UTC, original submission:  

After installing Octave, upon the first start an error message is displayed, telling that: "Could not setup the data required for the documentation viewer. Only help texts in the Command Window will be available"

Windows 10 x64

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #50651:  Capture.PNG added by None (6KiB - image/png - error message)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by jwe (Updated the item)
  • -email is unavailable- added by ttl (Posted a comment)
  • -email is unavailable- added by lostbard (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 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-10-21 mmuetzel StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2022-05-28 ineiev Carbon-CopyRemoved 0 -
    2022-05-21 ttl StatusNone Ready For Test
        Release6.1.0 dev
    2021-01-29 jwe SummaryOctave for Win: Document Viewer error Document Viewer error on Windows systems
    2021-01-05 None Attached File- Added Capture.PNG, #50651

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code