bugGNU Octave - Bugs: bug #64194, plot(1:10) using qt causes Octave...

 
 

bug #64194: plot(1:10) using qt causes Octave to stop working

Submitter:  Andy Potvin <afpotvin>
Submitted:  Mon 15 May 2023 03:25:54 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Need Info Assigned to:  None
Originator Name:  afpotvin Open/Closed:  * Closed
Release:  * 8.2.0 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Thu 01 Jun 2023 04:03:48 PM UTC, comment #10: 

This appears to be a system-specific issue with some combination of hardware, video card drivers, and software libraries.  Best solution is to use a workaround until upgrade.

Rik <rik5>
Group administrator
Tue 16 May 2023 08:26:26 PM UTC, comment #9: 

IMHO it's a bug in Octave (or mesa3d).

Since last posting, I've:

  • Downloaded/installed the latest api-ms-win-core-synch-l1-1-0.dll
  • Downloaded/installed the latest Microsoft Visual C++; Redistributable; and
  • Verified I already had the suggested Windows Update (KB2999226)

Same bad behavior.

For now, I'll just use fltk.

- AP

Andy Potvin <afpotvin>
Tue 16 May 2023 05:57:00 PM UTC, comment #8: 

If you want to keep the OS as is, you could also try running a Linux VM.  I've had fairly decent success setting up Ubuntu in vmware.

Nicholas Jankowski <nrjank>
Group Member
Tue 16 May 2023 05:30:33 PM UTC, comment #7: 

The problem is that api-ms-win-core-synch-l1-2-0.dll is too new and you want api-ms-win-core-synch-l1-1-0.dll

I guess this was Markus's point (comment 3).

See e.g.
https://answers.microsoft.com/en-us/windows/forum/all/entry-point-not-found-api-ms-win-core-synch-l1-2/f978dfb0-f481-40ba-9022-63cde56e4f4c

I recommend updating win7 to win10 (I think it is still available for free from Microsoft).

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Tue 16 May 2023 05:13:31 PM UTC, comment #6: 

P.S. Just downloaded and installed the latest 64-bit api-ms-win-core-synch-l1-2-0.dll from www.dll-files.com/api-ms-win-core-synch-l1-2-0.dll.html and now have version 10.0.17763.132 but sill have the exact same issues with Octave Qt.

Andy Potvin <afpotvin>
Tue 16 May 2023 04:40:16 PM UTC, comment #5: 

Thanks Nicholas and thanks again to Markus.

Both my Windows 7 SP1 OS and Octave 8.2.0 are 64-bit.  Asking cygwin "which api-ms-win-core-synch-l1-2-0.dll" points to the one in the ../c/windows/system32 directory.  The file's properties say it is version 10.0.14393.2990 (from 4/12/2019).

Andy Potvin <afpotvin>
Tue 16 May 2023 04:08:50 PM UTC, comment #4: 

@andy - are you using a 32-bit version? we've had a lot of recent issues that wind up being specific to those.

Nicholas Jankowski <nrjank>
Group Member
Tue 16 May 2023 03:58:21 PM UTC, comment #3: 

Ah. ISTR reading something like that before. But I don't remember where or if there was a solution.

IIRC, MS updated the API of Windows which resulted in some functions being moved to new "low-level" libraries. They might not have done that for Windows 7 (because it was no longer supported at that time - or something like that).
In theory, other libraries shouldn't link directly to those "low-level" libraries. But mesa3d does. (The software OpenGL library that is used by Octave for Windows is built from their sources.)

That means that the mesa3d OpenGL software renderer doesn't work on (all installations of?) Windows 7.
(I'm not sure if I'm remembering all details correctly. But it might have been something along those lines.)

It might also be that only 32-bit Windows is affected.

Maybe, you could try and install the latest versions of the C and C++ runtimes. They should be available from here:
https://support.microsoft.com/en-us/topic/update-for-universal-c-runtime-in-windows-c0514201-7fe6-95a3-b0a5-287930f3560c
https://learn.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170

Markus Mützel <mmuetzel>
Group administrator
Tue 16 May 2023 03:37:27 PM UTC, comment #2: 

Thanks for the reply Markus.  There's no graphics card update available and an OS upgrade isn't possible. [fn1]

More info:

1. Using fltk or gnuplt works just fine.  I'd prefer to use Qt because it seems to be Octave's preferred graphics toolkit.  If necessary, I'm ok with fltk; I see the gnuplot warnings about not communicating back to Octave.

2. I opened the "OpenGL Switcher" (with Octave closed) and switched from "System OpenGL" to "Software OpenGL" by checking the radiobox and clicking Apply and then Close.  But then Octave doesn't run at all; instead a dialog box titled "octave-gui.exe - Entry Point Not Found" appears which says: "The procedure entry point DeleteCriticalSection could not be located in the dynamic link library api-ms-win-core-synch-l1-2-0.dll."

What does this additional information mean?

Regards,
- AP

[fn1] Yes, it's time for a laptop upgrade, but it's still being a workhorse for me and it's still relatively zippy.  Maybe I'll get a new one for Christmas ... but I said that last year too.  ;-)


Andy Potvin <afpotvin>
Tue 16 May 2023 11:58:15 AM UTC, comment #1: 

That looks like that could be an issue with your graphics card driver.
Try to update to a newer version. If updated drivers are no longer available for Windows 7, consider updating to an OS that is still maintained.
As work-around, you could try to switch to Software OpenGL using the "OpenGL Switcher" from Octave's start menu group.

Does any of that help?

Markus Mützel <mmuetzel>
Group administrator
Mon 15 May 2023 03:25:54 PM UTC, original submission:  


I am having trouble using the default qt graphics_toolkit in Octave since at least 7.2.0.
Curently I am using Octave 8.2.0 with Windows 7 SP1.

I saw bug # 62660 (also # 62661) and it's solution to use setenv('QT_OPENGL', 'desktop')
seems to be on the right track, but doesn't fully work for me.

Specifically,  Octave quits working and I get the Windows dialog-box-of-death
"octave-gui.exe has stopped working"
in one of two ways:

1) Immediately after Octave starts, I can run

   setenv('QT_OPENGL', 'desktop')
   % without error but as soon as I then try to run
   plot(1:10)

   the dialog-box-of-death occurs. [fn1]

2) After starting Octave, I can switch to fltk via

   graphics_toolkit('fltk')

   I can then

   plot(1:10) % and get the expected plot, and then
   close % works as exected.  I can then
   setenv('QT_OPENGL', 'desktop') % and
   graphics_toolkit('qt') % without error.  And now I can even
   plot(1:10) % without error and get the expected plot with toolbar and working mouse coordinate tracking.
   % But ... when I then
   close

   The figure does close, but I get the Windows dialog-box-of-death. [fn2]

If immediately after Octave starts I try

plot(1:10)

A figure gets created, but nothing gets plotted.  Then, clicking in the figure displays

warning: opengl_renderer: Error 'invalid operation' (1282) occurred drawing 'text' object
warning: opengl_renderer: Error 'invalid operation' (1282) occurred drawing 'text' object
warning: opengl_renderer: Error 'invalid operation' (1282) occurred drawing 'text' object
warning: opengl_renderer: Error 'invalid operation' (1282) occurred drawing 'line' object
warning: opengl_renderer: Error 'invalid operation' (1282) occurred drawing 'axes' object

I can then

close

and the figure gets closed and Octave continues.
  
Thank you for your prompt attention to this matter or letting me know a workaround.

Regards,
Andy Potvin
-email is unavailable-
(626) 226-8436
  
[fn1] Following are the dialog-box-of-death problem details when it stops working the first way.


Problem signature:
  Problem Event Name: APPCRASH
  Application Name: octave-gui.exe
  Application Version: 0.0.0.0
  Application Timestamp: 64385c9a
  Fault Module Name: ig4icd64.dll
  Fault Module Version: 8.15.10.1883
  Fault Module Timestamp: 4a969c7d
  Exception Code: c0000005
  Exception Offset: 000000000003ee1f
  OS Version: 6.1.7601.2.1.0.768.3
  Locale ID: 1033
  Additional Information 1: 150e
  Additional Information 2: 150e98ed18edad92b834383a4eb2c6e2
  Additional Information 3: ae3b
  Additional Information 4: ae3b7a4f6fe9882082c96d611ae5a7bf

Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
  C:\windows\system32\en-US\erofflps.txt


 
[fn2] Following are the dialog-box-of-death problem details when it stops working the first way.


Problem signature:
  Problem Event Name: APPCRASH
  Application Name: octave-gui.exe
  Application Version: 0.0.0.0
  Application Timestamp: 64385c9a
  Fault Module Name: ig4icd64.dll
  Fault Module Version: 8.15.10.1883
  Fault Module Timestamp: 4a969c7d
  Exception Code: c0000005
  Exception Offset: 000000000003ee1f
  OS Version: 6.1.7601.2.1.0.768.3
  Locale ID: 1033
  Additional Information 1: d42a
  Additional Information 2: d42a78e417bc0ac72758b65d3c5513fa
  Additional Information 3: b91d
  Additional Information 4: b91d190fde7b2ca59f0b54505aaaf21f

Read our privacy statement online:
  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409

If the online privacy statement is not available, please read our privacy statement offline:
  C:\windows\system32\en-US\erofflps.txt


 



Andy Potvin <afpotvin>

 

(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 rik5 (Posted a comment)
  • -email is unavailable- added by dasergatskov (Posted a comment)
  • -email is unavailable- added by nrjank (Posted a comment)
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by afpotvin (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-06-01 rik5 Open/ClosedOpen Closed
    2023-05-16 mmuetzel StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-ee12.
    Corresponding source code