View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010028VTK(No Category)public2009-12-11 05:552016-08-12 09:55
ReporterPietro Cerutti 
Assigned ToKitware Robot 
PrioritynormalSeveritycrashReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0010028: [patch] reason for the bug in 0008554
Descriptionsee 0008554 for full details of the problem.

The reason is that gl* functions are resolved in libGL instead of libOSMesa, because the order in which the libraries are listed in vtkRendering_LIB_DEPENDS is incorrect.
A patch to Rendering/CMakeLists.txt against CVS is attached.
TagsNo tags attached.
Project
Type
Attached Filesdiff file icon Rendering_CMakeLists.txt.diff [^] (3,506 bytes) 2009-12-11 05:55 [Show Content]

 Relationships

  Notes
(0018817)
François Bertel (developer)
2009-12-11 11:47

In bug 0008554, there is no use of OSMesa so this is not the reason of bug 0008554.

Nevertheless, the patch addresses a valuable issue. Can you describe your context (in which case you are using OSMesa, hardware (Mac,PC), OS, ... )


Looking at this blog http://www.gnashdev.org/?q=node/46 [^] I wonder if it even makes sense to link both with libOSMesa and libGL. It sounds there are just conflicting.
(0018818)
Pietro Cerutti (reporter)
2009-12-11 11:58

Yes you are right, I had misunderstood the problem in 0008554. It just happened to segfault at the same location.

I'm on Ubuntu 9.10 on an iMac and I use OSMesa to render off screen in a console-based program. I will investigate whether removing GL at all when linking against OSMesa works. I'll get back to you monday morning (CET).

Thanks.
(0018841)
Pietro Cerutti (reporter)
2009-12-14 03:43

ok, the problem is when you need both an off-screen window and an in-screen window (say, XOpenGL). In that case, you need both OSMesa and GL. For this reason, we cannot mutually exclude the two libraries.
I guess the solution would be indeed to swap the positions (OSMesa first, then GL). This way, the common functions are resolved in OSMesa, and the remaining ones in GL.
(0037127)
Kitware Robot (administrator)
2016-08-12 09:55

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2009-12-11 05:55 Pietro Cerutti New Issue
2009-12-11 05:55 Pietro Cerutti File Added: Rendering_CMakeLists.txt.diff
2009-12-11 11:37 François Bertel Status backlog => tabled
2009-12-11 11:37 François Bertel Assigned To => François Bertel
2009-12-11 11:47 François Bertel Note Added: 0018817
2009-12-11 11:58 Pietro Cerutti Note Added: 0018818
2009-12-14 03:43 Pietro Cerutti Note Added: 0018841
2010-09-07 13:44 François Bertel Assigned To François Bertel =>
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2016-08-12 09:55 Kitware Robot Note Added: 0037127
2016-08-12 09:55 Kitware Robot Status expired => closed
2016-08-12 09:55 Kitware Robot Resolution open => moved
2016-08-12 09:55 Kitware Robot Assigned To => Kitware Robot


Copyright © 2000 - 2018 MantisBT Team