[osg-users] Win32 VS8.0 crash on exit in debugger, related to freetype

2008-01-07 Thread Jean-Sébastien Guay
Hello all, Is anyone else seeing a crash on exit with OSG applications (even osgviewer and the examples) under MS VS8.0 when running in the debugger? To be specific: * Running in Visual Studio 8.0SP1 * Debug configuration * Mike's 3rd Party binaries for VS 8.0SP1 Repro steps: run osgviewer wi

Re: [osg-users] Win32 VS8.0 crash on exit in debugger, related to freetype

2008-02-07 Thread Thibault Genessay
Hi guys I've updated this morning to the latest SVN, and I get an error that looks the same as yours. I am using VS 2008 and Mike's DLL compiled for 7.1. I have had no problem so far, so I guess the problem is inside the OSG, and not exactly related to FreeType. I have tried with a very minimal p

Re: [osg-users] Win32 VS8.0 crash on exit in debugger, related to freetype

2008-02-07 Thread Jean-Sébastien Guay
Hello Thibault, > I have tried to comment out the 2nd line, and the program exits correctly. > Great! Excellent! Thanks for getting to the bottom of this! It will be great to finally be free of this, as it would pop up each time I would try a test program in the debugger and displayed the st

Re: [osg-users] Win32 VS8.0 crash on exit in debugger, related to freetype

2008-02-07 Thread Thibault Genessay
Hi there, Good news, it seems :) On December 16, Robert committed a patch that included the following lines in FreeTypeLibrary.cpp if (font) font->setImplementation(0); fontImplementation->_facade = 0; However, they are clearly wrong (at least, when the program exits) because afte

Re: [osg-users] Win32 VS8.0 crash on exit in debugger, related to freetype

2008-02-07 Thread Jean-Sébastien Guay
Hello Thibault, > I am using VS 2008 and Mike's DLL compiled for 7.1. I have had no > problem so far, so I guess the problem is inside the OSG, and not > exactly related to FreeType. > First of all, if you're using VS 2008 you really should use the 8.0 precompiled binaries at a minimum, and I

Re: [osg-users] Win32 VS8.0 crash on exit in debugger, related to freetype

2008-01-24 Thread amalric alexandre
Hi Jean-Sébastien I got the same problem using VS8, my app crash at exit in osgdb_freetped.dll. It crashes at line : if (getDeleteHandler()) deleteUsingDeleteHandler(); in osg28-osgd.dll I'm using latest freetype lib 2.3.5 2008/1/7, Jean-Sébastien Guay <[EMAIL PROTECTED]>: > > Hello all,

Re: [osg-users] Win32 VS8.0 crash on exit in debugger, related to freetype

2008-01-24 Thread Robert Osfield
Hi Guys, Its a bit of long shot but I just had a look at the DeleteHandeler code in src/osg/Referenced.cpp and src/osg/DeleteHandler.cpp and noticed a duplicate definition of the DeleteHandlerPointer struct, one in Referenced.cpp, and one in DeleteHandler.cpp. I have removed the duplicate in Dele

Re: [osg-users] Win32 VS8.0 crash on exit in debugger, related to freetype

2008-01-24 Thread Jean-Sebastien Guay
Bonjour Alexandre, > I got the same problem using VS8, my app crash at exit in > osgdb_freetped.dll. > > It crashes at line : if (getDeleteHandler()) deleteUsingDeleteHandler(); > in osg28-osgd.dll > > I'm using latest freetype lib 2.3.5 Ok, good to at least have one confirmation... I've been lo

Re: [osg-users] Win32 VS8.0 crash on exit in debugger, related to freetype

2008-01-24 Thread Jean-Sebastien Guay
Hello Robert, > Its a bit of long shot but I just had a look at the DeleteHandeler > code in src/osg/Referenced.cpp and src/osg/DeleteHandler.cpp and > noticed a duplicate definition of the DeleteHandlerPointer struct, one > in Referenced.cpp, and one in DeleteHandler.cpp. I have removed the > du

Re: [osg-users] Win32 VS8.0 crash on exit in debugger, related to freetype

2008-01-31 Thread amalric alexandre
Bonjour Jean-Sebastian, My crash only appear when I use something wich display text, in fact I have some geometries that I need to identify putting some text next to them and using arial.ttf font. I didn't had the time to check if Robert's tip works. 2008/1/24, Jean-Sebastien Guay <[EMAIL PROTEC

Re: [osg-users] Win32 VS8.0 crash on exit in debugger, related to freetype

2008-01-31 Thread amalric alexandre
Hi Robert, I tried what you said, but the problem remains ;-( Now I'm using osg 2.3.2, I'll try osg 2.3.4 as soon as possible. 2008/1/31, amalric alexandre <[EMAIL PROTECTED]>: > > Bonjour Jean-Sebastian, > > My crash only appear when I use something wich display text, in fact I > have some geom

Re: [osg-users] Win32 VS8.0 crash on exit in debugger, related to freetype

2008-02-02 Thread Antoine Hue
2008/1/24, Jean-Sebastien Guay <[EMAIL PROTECTED] >: > > Hello Robert, > > > Its a bit of long shot but I just had a look at the > DeleteHandeler > > code in src/osg/Referenced.cpp and src/osg/DeleteHandler.cpp and > > noticed a dup

Re: [osg-users] Win32 VS8.0 crash on exit in debugger, related to freetype

2008-02-02 Thread Adrian Egli OpenSceneGraph (3D)
Hi all, the problem is (i guess) that freetype is not at all thread safe. my you can try to test in singlethread mode. if there is no crash, than we should have a look into the osgText freetype access at clean up. i still got many crashes in reason of that in other application using freetype in mu

Re: [osg-users] Win32 VS8.0 crash on exit in debugger, related to freetype

2008-02-02 Thread Hautio Jari
egards, Jari From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Egli OpenSceneGraph (3D) Sent: 2. helmikuuta 2008 12:56 To: OpenSceneGraph Users Subject: Re: [osg-users] Win32 VS8.0 crash on exit in debugger,related to freetype Hi all, the problem is (

Re: [osg-users] Win32 VS8.0 crash on exit in debugger, related to freetype

2008-02-02 Thread Antoine Hue
Adrian Egli OpenSceneGraph (3D) wrote: > Hi all, > > the problem is (i guess) that freetype is not at all thread safe. my > you can try to test in singlethread mode. if there is no crash, than > we should have a look into the osgText freetype access at clean up. i > still got many crashes in rea