Hello all,

I am getting a crash while reading a PNG file (on the osgDB::readImageFile() line) in release mode only. This is on Windows Vista, VC++2005, OSG from SVN (recompiled this morning).

In debug mode, I get no crash, and the image is read correctly. Also, both the debug and release versions of osgviewer (compiled against the same OSG libs, and using the same libpng13.dll as far as I can tell) both load up the image and don't crash. So I'm baffled...

I tried recompiling my app cleanly, no change. I also tried renaming the PNG DLLs (libpng13.dll and libpng13d.dll) adding ".bk" to see if those were really the libs it was picking up, and it seems so.

The stack trace I get (although a bit limited, since it's in release) is:

        libpng13.dll!675af092()         
[Frames below may be incorrect and/or missing, no symbols loaded for libpng13.dll]
        osgdb_png.dll!013f1b99()        
> msvcp80.dll!std::basic_filebuf<char,std::char_traits<char> >::open(const char * _Filename=0xffffffff, int _Mode=1243480, int _Prot=20914645) Line 185 + 0x5 bytes C++
        osgdb_png.dll!013f2f4b()        
        osg37-osgDB.dll!00294227()      
        osg37-osgDB.dll!0028d0b4()      
        osg37-osgDB.dll!0029b33b()      
        ntdll.dll!77c92447()    
        ntdll.dll!77c9214c()    
msvcp80.dll!std::_Allocate<char>(unsigned int _Count=35, char * __formal=0x00000000) Line 44 + 0x6 bytes C++

msvcp80.dll!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Copy(unsigned int _Newsize=30, unsigned int _Oldlen=31) Line 2036 C++
        msvcr80.dll!malloc(unsigned int size=1243388)  Line 163 + 0x63 bytes    
C
        osg37-osgDB.dll!0029bcb3()      
        osg37-osg.dll!1008ef44()        
msvcr80.dll!memcpy_s(void * dst=0x03a95808, unsigned int sizeInBytes=47, const void * src=0x00000023, unsigned int count=47) Line 67 + 0xc bytes C msvcp80.dll!std::char_traits<char>::_Copy_s(char * _First1=0x61702f73, unsigned int _Size_in_bytes=1667855474, const char * _First2=0x6554656c, unsigned int _Count=1920300152) Line 576 C++
        65637275()      

Not very useful... I know...

Can anyone suggest some avenues for investigation I might have overlooked?

Thanks in advance,

J-S
--
______________________________________________________
Jean-Sebastien Guay    [EMAIL PROTECTED]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to