Hi,

I've reduced this to a very small testcase, downloadable here:

http://www.libavg.de/test_collada_dlopen.zip

I'd appreciate it if others could try this out:

$ ./build_collada_test.sh
$ ./test_collada_static
$ ./test_collada_dlopen
$ diff collada_dlopen_converted.osg collada_static_converted.osg

The test executables each use the same two lines to read a collada file and 
write it again, but the second one executes the code in the context of a 
dynamically-loaded .so. On Ubuntu 8.10 and 9.04, the second version is broken. 
On the mac, everything is ok.

Cheers,

  Uli

On May 15, 2010, at 9:34 AM, Ulrich von Zadow wrote:

> 
> On May 15, 2010, at 8:35 AM, Ulrich Hertlein wrote:
> 
>> Hi Uli,
>> 
>> On 15/05/10 3:43 , Ulrich von Zadow wrote:
>>> I've narrowed the issue down further. This works:
>>> 
>>> int main()
>>> {
>>>   osgDB::readNodeFile(...)
>>>   optimizer.Optimize(...)
>>>   osgDB::writeNodeFile(...)   
>>> }
>>> 
>>> The same code executed in a plugin loaded using dlopen() doesn't work (i.e. 
>>> has the
>>> missing VertexIndices and NormalIndices). On a mac, both variants work. Is 
>>> it possible
>>> that there is some sort of static initialization issue?
>> 
>> Do you maybe have multiple versions installed on the Linux box?  Maybe the 
>> plugin is
>> picking up an older version than what you console app or osgconv is using?
>> 
>> Running them with OSG_NOTIFY_LEVEL=DEBUG will show what plugins they're 
>> using.  You may
>> want to redirect the output to a file, it can be lengthy...
> 
> 
> Nope, same versions - verified with OSG_NOTIFY_LEVEL, ldd and locate.
> 
> Cheers,
> 
>  Uli
> 
> --
> Ulrich von Zadow
> Software Engineer (Dipl. Inf.)
> Exhibit Development
> 
> Tel +49 (0)30 / 2000 577 12
> Fax +49 (0)30 / 2000 577 20
> Skype: uzadow
> 
> Archimedes Solutions GmbH
> Saarbrücker Str. 24 10405 Berlin
> 
> www.archimedes-solutions.com
> 
> Geschäftsführung:
> W. Rien | J. Schmidtsiefen | S. Spenling
> 
> Amtsgericht: Berlin Charlottenburg
> HR Nr.: 107563 B
> UST-ID Nr.: DE-253.771.793
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

--
Ulrich von Zadow
Software Engineer (Dipl. Inf.)
Exhibit Development

Tel +49 (0)30 / 2000 577 12
Fax +49 (0)30 / 2000 577 20
Skype: uzadow

Archimedes Solutions GmbH
Saarbrücker Str. 24 10405 Berlin

www.archimedes-solutions.com

Geschäftsführung:
W. Rien | J. Schmidtsiefen | S. Spenling

Amtsgericht: Berlin Charlottenburg
HR Nr.: 107563 B
UST-ID Nr.: DE-253.771.793








_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to