bugGNU Octave - Bugs: bug #52436, libOSMesa check

 
 

bug #52436: libOSMesa check

Submitted by:  nicodemus <nicmus>
Submitted on:  Fri 17 Nov 2017 10:13:12 PM UTC  
 
Category: LibrariesSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: NoneAssigned to: None
Originator Name: Open/Closed: Open
Release: 4.2.1Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 23 Nov 2017 07:51:23 AM UTC, comment #3:

Hi, it appears that on my system there were several opengl libraries installed.

In particular it seems from the output of glxinfo that only mesa is installed:

OpenGL version string: 3.0 Mesa 17.2.5

however I checked for libglvnd which is also there and actually is the one which provides libGL.so

pacman -Qo /usr/lib/libGL.so
-| /usr/lib/libGL.so is owned by libglvnd 1.0.0-1

so I tried preloading the mesa driver

export LD_PRELOAD=/usr/lib/libGLX_mesa.so

and it works!

Thank you for the suggestions.

nicodemus <nicmus>
Sat 18 Nov 2017 06:12:34 PM UTC, comment #2:

OSMesa also does not currently work with libglvnd, which many distributions are starting to use. See also: bug #50479

John W. Eaton <jwe>
Project Administrator
Sat 18 Nov 2017 08:46:28 AM UTC, comment #1:

Hi nicodemus, please see also here: http://wiki.octave.org/OSMesa

Are you using MESA based GPU drivers or proprietary drivers from Nvidia or AMD? (have a look at glxinfo)

If yes you've very likely different libGL.so on your system. Locate the MESA one (not from Nvidia) and preload it before starting Octave:

for example

Andreas Weber <andy1978>
Project Member
Fri 17 Nov 2017 10:13:12 PM UTC, original submission:

Hi with the following code

Octave fails with
error: _osmesa_print_: Depth and stencil doesn't match, are you sure you are using OSMesa >= 9.0?

I'm running octave on Archlinux with mesa 17.2.5-1 installed.

I already post a bug in
https://bbs.archlinux.org/viewtopic.php?pid=1749881#p1749881
As suggested there, it seems to be a bug in octave file _osmesa_print_.cc

On my system I have

/usr/include/GL/gl.h
...
#define GL_DEPTH_BITS 0x0D56
...
#define GL_STENCIL_BITS 0x0D57

/usr/include/GL/osmesa.h
...
#define OSMESA_MAJOR_VERSION 11
#define OSMESA_MINOR_VERSION 2
#define OSMESA_PATCH_VERSION 0

nicodemus <nicmus>

 

(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 jwe (Posted a comment)
  • -unavailable- added by andy1978 (Posted a comment)
  • -unavailable- added by nicmus (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):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1