[Mesa-dev] OSMesa glapi linlking

Brian Paul brianp at vmware.com
Tue Jan 31 06:53:20 PST 2012


On 01/30/2012 11:27 AM, Kevin H. Hobbs wrote:
> On 01/30/2012 12:15 PM, Brian Paul wrote:
>> On 01/30/2012 08:56 AM, Kevin H. Hobbs wrote:
>>>
>>> I tried with just the lines added manually and almost every VTK test
>>> gives me:
>>>
>>> osmesa.c:892: OSMesaMakeCurrent: Assertion `osmesa->srb->Base.RefCount
>>> == 2' failed.
>>
>> What happens if you remove that assertion?
>
> The tests go really slowly, fail, and I get a bunch of these:
>
> Start 155: TestGenericContourFilter
> *** glibc detected ***
> /home/kevin/kitware/VTK_OSMesa_Build/bin/GenericFilteringCxxTests:
> double free or corruption (fasttop): 0x00000000011da870 ***
> ======= Backtrace: =========
> /lib64/libc.so.6[0x3654076d63]
> /home/kevin/mesa_osmesa/lib/libOSMesa.so.8(+0xa3cc0)[0x7f0dfd395cc0]
> /home/kevin/mesa_osmesa/lib/libOSMesa.so.8(OSMesaMakeCurrent+0x112)[0x7f0dfd33be22]
> /home/kevin/kitware/VTK_OSMesa_Build/bin/libvtkRendering.so.5.9(_ZN23vtkOSOpenGLRenderWindow11MakeCurrentEv+0x3b)[0x7f0e003392eb]
>
> ...
>

Kevin,

I just pushed a couple osmesa fixes to master and the 8.0 branch.  Can 
you give it a try?

Thinks seem to fix things on the 8.0 branch but I'm unable to verify 
on master due to some other regressions ATM.

-Brian


More information about the mesa-dev mailing list