bugGNU Octave - Bugs: bug #44979, check for osmesa is done at...


bug #44979: check for osmesa is done at runtime and not configure

Submitter:  CarnĂ« Draug <carandraug>
Submitted:  Fri 01 May 2015 12:40:30 PM UTC
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Wont Fix Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.0.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment (Rich Markup)

Thu 17 May 2018 10:27:15 PM UTC, comment #4: 

OSMesa is now disabled by default when building with a recent enough version of Qt. I doubt any changes will be made in the way Octave detects and uses OSMesa, until we finally remove it because it's been so problematic. Closing as wont fix.

Mike Miller <mtmiller>
Group administrator
Tue 02 Jun 2015 04:10:56 PM UTC, comment #3: 

Retagging release from 4.0.0-rc4 to 4.0.0.

John W. Eaton <jwe>
Group administrator
Fri 01 May 2015 08:04:51 PM UTC, comment #2: 

@Andreas: Do you want to bring up the question of making OSMesa experimental on the OCtave-Maintainer's mailing list?  It would be simplest for this release to make it experimental.

Rik <rik5>
Group administrator
Fri 01 May 2015 02:43:50 PM UTC, comment #1: 

There is in configure.ac:

if test -n "$OPENGL_LIBS"; then
  ## Check for OSMesa which is needed for offscreen rendering with OpenGL
  ## FIXME: Check for version >= 9.0.0
    [OSMesa library not found.  Offscreen rendering with OpenGL will be disabled.],
    [osmesa.h GL/osmesa.h], [OSMesaCreateContext])

We had a quick discussion on the mailinglist that the configure script doesn't check for versions but rather for bugs or functions. The problem here is, that OSMesa only fails if linked with Octave. (a typical bootstrap problem).

On my tests with OSMesa on Debian I figured out that one symptom from linking Octave against an old libosmesa is, that the buffer_depths are totally screwed up when reading back and I used this to show an hint.

We have alo bug #44478 which makes OSMesa completely useless if proprietary Nvidia drivers are used.

Perhaps we should mark OSMesa as experimental and disable it per default.

Andreas Weber <andy1978>
Group Member
Fri 01 May 2015 12:40:30 PM UTC, original submission:  

Testing octave 4.0.0-rc4 on CentOS 5.11. Tests for osmesa_print fail correctly because of old version being used.

octave> test "libinterp/dldfcn/__osmesa_print__.cc"
***** testif HAVE_OSMESA, HAVE_GL2PS_H
 if (isunix ())
   h = figure ("visible", "off");
   fn = tempname ();
   sombrero ();
   __osmesa_print__ (h, fn, "svg");
   assert (stat (fn).size, 2692270, -0.1);
   unlink (fn);
   img = __osmesa_print__ (h);
   assert (size (img), [get(h, "position")([4, 3]), 3])
   ## Use pixel sum per RGB channel as fingerprint
   img_fp = squeeze (sum (sum (img), 2));
   assert (img_fp, [52942515; 54167797; 56158178], -0.05);
!!!!! test failed
__osmesa_print__: Depth and stencil doesn't match, are you sure you are using OSMesa >= 9.0?

Indeed Octave was built with version OSMesa 6.5.1 but if we know this, shouldn't this test be done by configure instead?

Carnë Draug <carandraug>
Group Member


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

Attach Files:

No files currently attached


Depends on the following items: None found

   bug dependencies.


Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by andy1978 (Posted a comment)
  • -email is unavailable- added by carandraug (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 project members can vote.





    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-05-17 mtmiller StatusNone Wont Fix
        Open/ClosedOpen Closed
    2016-05-04 mtmiller Dependencies- bugs #45719 is dependent
    2015-06-02 jwe Release4.0.0-rc4 4.0.0

    Back to the top

    Powered by Savane 3.11