octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #52436] libOSMesa check


From: nicodemus
Subject: [Octave-bug-tracker] [bug #52436] libOSMesa check
Date: Fri, 17 Nov 2017 17:13:13 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0

URL:
  <http://savannah.gnu.org/bugs/?52436>

                 Summary: libOSMesa check
                 Project: GNU Octave
            Submitted by: nicmus
            Submitted on: Fri 17 Nov 2017 10:13:12 PM UTC
                Category: Libraries
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Segfault, Bus Error, etc.
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.1
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Hi with the following code


figure(1,'visible','off')
plot([0 1],[0 1])
print('fig.png','-dpng')


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

++
  153   // Test for a bug in OSMesa with version < 9.0
  154   //
  155   // Unfortunately the macros OSMESA_MAJOR_VERSION and
OSMESA_MINOR_VERSION
  156   // weren't updated between many releases and can't be used for
detection.
  157   // (Version 8.0 until 9.1.4 all return MAJOR 6, MINOR 5)
  158   GLint z, s;
  159   glGetIntegerv (GL_DEPTH_BITS, &z);
  160   glGetIntegerv (GL_STENCIL_BITS, &s);
  161   if (z != 16 || s != 0)
  162     error ("__osmesa_print__: Depth and stencil doesn't match,"
  163            " are you sure you are using OSMesa >= 9.0?");
--


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






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52436>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]