bugGNU Octave - Bugs: bug #52998, Segmentation fault for OpenGL...

 
 

bug #52998: Segmentation fault for OpenGL printing of non-visible figures

Submitted by:  Dan Sebald <sebald>
Submitted on:  Mon 29 Jan 2018 06:24:11 AM UTC  
 
Category: Plotting with OpenGLSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: Works For MeAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating System: GNU/Linux

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)

Tue 30 Jan 2018 03:30:25 AM UTC, comment #8:

This is what I got:

+verbose+
glxinfo -B
name of display: :1
display: :1 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: X.Org (0x1002)
Device: AMD OLAND (DRM 2.50.0 / 4.14.14-300.fc27.x86_64, LLVM 5.0.0) (0x6610)
Version: 17.2.4
Accelerated: yes
Video memory: 2048MB
Unified memory: no
Preferred profile: core (0x1)
Max core profile version: 4.5
Max compat profile version: 3.0
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.1
....
OpenGL vendor string: X.Org
OpenGL renderer string: AMD OLAND (DRM 2.50.0 / 4.14.14-300.fc27.x86_64, LLVM 5.0.0)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.2.4
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

==========

LIBGL_ALWAYS_SOFTWARE=1 glxinfo -B
name of display: :1
display: :1 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: VMware, Inc. (0xffffffff)
Device: llvmpipe (LLVM 5.0, 256 bits) (0xffffffff)
Version: 17.2.4
Accelerated: no
Video memory: 15920MB
Unified memory: no
Preferred profile: compat (0x2)
Max core profile version: 0.0
Max compat profile version: 2.1
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 2.0
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: llvmpipe (LLVM 5.0, 256 bits)
OpenGL version string: 2.1 Mesa 17.2.4
OpenGL shading language version string: 1.30

OpenGL ES profile version string: OpenGL ES 2.0 Mesa 17.2.4
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16
-verbatim-

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Tue 30 Jan 2018 02:19:18 AM UTC, comment #7:

Thanks for the tip, but that doesn't work either:

SWRAST is one of the OpenGL drivers, deprecated. I probably don't have it installed. Strange this works to generate manual figures... I'm looking at that right now.

Dan Sebald <sebald>
Tue 30 Jan 2018 01:15:14 AM UTC, comment #6:

Try:

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Tue 30 Jan 2018 01:11:12 AM UTC, comment #5:

Yes, it probably is. I just got confused with debugging, testing versions of code last night. I usually use the prefix

LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libGL.so

these days for building, but don't always when testing.

However, this prefix doesn't lead to complete success. FLTK appears to run fine, but Qt has problems:

So, I can't get this to work either way for Qt. I'm going to test the changeset attached here

https://savannah.gnu.org/bugs/?52940#comment40

this evening for how well the output looks and see if that gets around the Nvidia hardware/driver issue.

Dan Sebald <sebald>
Tue 30 Jan 2018 12:48:39 AM UTC, comment #4:

@Dan: Isn't this the same OSMesa bug reported multiple times? It seems to depend on the particular HW involved. Your code works for me.

Rik <rik5>
Project Administrator
Tue 30 Jan 2018 12:37:32 AM UTC, comment #3:

@Sahil: I think Dan is correct. You have found a different bug that deserves its own bug report. This is very likely related to https://savannah.gnu.org/bugs/?48703. The problem is the tricky issue of signals and threads when the GUI is running.

Rik <rik5>
Project Administrator
Mon 29 Jan 2018 08:37:28 PM UTC, comment #2:

That sounds like a different bug, one related to the -dpswrite -PPS_printer option combination. Should probably file a separate bug report for that one.

Dan Sebald <sebald>
Mon 29 Jan 2018 07:51:55 AM UTC, comment #1:

I have also noticed a problem related to print lately:

When printing something to a printer, if the printer doesn't exist, octave exits with SIGABRT (signal 6).

The output for version 4.0.0 is (which works fine in handling the exception):

While the output for version 4.2.1 (stable) is :

Whereas, the following was the output for the dev branch:

I could've posted it as a new bug but thought of it as almost the same problem that you encoutered and so posted it here as a comment.

Sahil Yadav <batterylow>
Mon 29 Jan 2018 06:24:11 AM UTC, original submission:

Both Qt and FLTK toolkits are crashing with the following (changeset: 24636:9d01ce02d5cb) :

while gnuplot toolkit seems to work

Here might be a clue from FLTK toolkit:

while for Qt toolkit this also produces a crash:

I noted the changeset above (24636:9d01ce02d5cb) because there is some activity around this time regarding "print" ( http://savannah.gnu.org/bugs/?52940 ) that could fix this issue for at least Qt toolkit.

Dan Sebald <sebald>

 

(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

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by dasergatskov (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by batterylow (Posted a comment)
  • -unavailable- added by sebald (Submitted the item)
  •  

    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):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 30 Jan 2018 12:48:39 AM UTCrik5StatusNone=>Works For Me

    Back to the top


    Powered by Savane 3.1-cleanup1