Re: [osg-users] [osgPlugins] error loading an ive file with OSG 2.8.3
Hi Jean-Sébastien, I tried that but looking at the debug information seems the correct dll is found but it cannot be loaded successfully. FindFileInPath() : USING X:\blablabla\osgplugins-2.8.3\osgdb_ived.dll DynamicLibrary::failed loading osgPlugins-2.8.3\osgdb_ived.dll Any idea? Regards Gianni -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=31937#31937 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] error loading an ive file with OSG 2.8.3
Hi Gianni, FindFileInPath() : USING X:\blablabla\osgplugins-2.8.3\osgdb_ived.dll DynamicLibrary::failed loading osgPlugins-2.8.3\osgdb_ived.dll Yeah, when it gets to that point OSG doesn't give you much information as to WHY it failed loading the plugin... Did you try doing a profile run in Dependency Walker? It might be able to give you more information as to why that plugin cannot be loaded correctly. Perhaps it's a manifest problem, or something obscure like that... J-S -- __ Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com 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
Re: [osg-users] [osgPlugins] error loading an ive file with OSG 2.8.3
Hi all, after several tests it seems the osgdb_ived.dll contained in the openscenegraph-all-2.8.3-win32-x86-vc80sp1-Debug.zip archive is not working. I recompiled it starting from the OpenSceneGraph-2.8.3.zip archive and using cmake to generate the VS2005 solution and it seems working fine. Regards Gianni -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=31909#31909 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] error loading an ive file with OSG 2.8.3
One more strange behaviour ... Running the exe from VS it works fine and the ive file is loaded correctly. In addition I added the OSG bin dir to the PATH env var before starting VS. On the other hand if I run my app from the windows command prompt I see the message: Warning: Could not find plugin to read objects from file afvg.ive. I can't understand that since I put the required osg dll, including the ive.dll, in the same dir of the exe file and moreover I added that dir to the PATH env. variable. What else should I do to make my app find the ive plugin dll? Regards Gianni -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=31911#31911 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] error loading an ive file with OSG 2.8.3
Hi Gianni, I can't understand that since I put the required osg dll, including the ive.dll, in the same dir of the exe file and moreover I added that dir to the PATH env. variable. What else should I do to make my app find the ive plugin dll? set OSG_NOTIFY_LEVEL=DEBUG and then run your app. You will see lots of debugging messages, and OSG will tell you where it looked for the ive plugin... In general, either putting the plugin in your app's directory or a directory in the PATH is enough. But make sure if you're running the app in debug, that the debug plugin is in the right place... Hope this helps, J-S -- __ Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com 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
Re: [osg-users] [osgPlugins] error loading an ive file with OSG 2.8.3
robertosfield wrote: I don't know what the cause might be, but the strack trace points to src/osgPlugins/ive/Image.cpp and DataInputStream.cpp so have a look at any differences 2.8.2 and 2.8.3 in these files. Really strange, I can't get the point. The src/osgPlugins/ive dirs match exactly. Regards Gianni -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=31752#31752 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] error loading an ive file with OSG 2.8.3
Hi Gianni, On Fri, Sep 17, 2010 at 11:38 AM, Gianni Ambrosio ga...@vi-grade.com wrote: robertosfield wrote: I don't know what the cause might be, but the strack trace points to src/osgPlugins/ive/Image.cpp and DataInputStream.cpp so have a look at any differences 2.8.2 and 2.8.3 in these files. Really strange, I can't get the point. The src/osgPlugins/ive dirs match exactly. Oh well, at least that eradicates one possibility of things to look into... If the code is the same then one would expect it be able to read exactly the same data without problem. The fact that it isn't suggests that there is either a build issue, a runtime issue, or something in the core OSG i.e. osg, osgUtil, osgDB that has changed a caused subtly different behaviour, or perhaps a bug somewhere in both versions that is only surfaces in 2.8.3. One test you could do is to use OSG-2.8.2 to load the .ive files and then write them out to .osg, then read the .osg files in 2.8.3 and then write it back out to a new .ive files, then attempt to read the new .ive files back with 2.8.2. If you can do this round trip without any problems then at least you know that the plugin is indeed generating the same output. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] error loading an ive file with OSG 2.8.3
Hi Gianni, On Fri, Sep 17, 2010 at 11:59 AM, Robert Osfield robert.osfi...@gmail.com wrote: One test you could do is to use OSG-2.8.2 to load the .ive files and then write them out to .osg, then read the .osg files in 2.8.3 and then write it back out to a new .ive files, then attempt to read the new .ive files back with 2.8.2. If you can do this round trip without any problems then at least you know that the plugin is indeed generating the same output. I forgot to also suggest reading the .ive files with 2.8.2 and writing them out again with 2.8.2, just in case the version of the OSG that you generated the files with is different and outputs a different version of the .ive. The .ive plugin is written to be back-wards compatible where possible, but isn't ever forwards compatible so this conversion will be a one way conversion. The resulting files should in theory be readable by 2.8.3, so this would also be a another test to do. Robert. ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] error loading an ive file with OSG 2.8.3
OK, you are righy I didn't tell you the error detail, sorry. I would like to know if it was a known issue. I use the following code: osg::ref_ptrosg::Node node = osgDB::readNodeFile(fileFullPath); where the fullpath is a correct path pointing to an ive file. The same file that can be loaded with OSG 2.8.2. From that call I get a null node, i.e. _ptr =0x0. I run my app from VS and I verified the OSG plug-in dir is in path and contains both osgdb_ive.dll and osgdb_ived.dll libs. Regards Gianni -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=31665#31665 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] error loading an ive file with OSG 2.8.3
I made a different test, executing the osgviewerQT example, using the same ive file to load as first parameter of the exe. With OSG 2.8.2 it works fine, while with OSG 2.8.3 it crashes. Here is the call stack (hoping you can understand better than me what's going on): osgdb_ived.dll!std::vectorunsigned int,std::allocatorunsigned int ::swap(std::vectorunsigned int,std::allocatorunsigned int _Right=[0]()) Line 1044 + 0xf bytes C++ osgdb_ived.dll!ive::Image::read(ive::DataInputStream * in=0x00dbf01c) Line 154 C++ osgdb_ived.dll!ive::DataInputStream::readImage(ive::IncludeImageMode mode=IMAGE_INCLUDE_DATA) Line 1176C++ osgdb_ived.dll!ive::DataInputStream::readImage() Line 1157 + 0xc bytes C++ osgdb_ived.dll!ive::Texture2D::read(ive::DataInputStream * in=0x00dbf01c) Line 54 + 0x8 bytes C++ osgdb_ived.dll!ive::DataInputStream::readStateAttribute() Line 1340 + 0xc bytesC++ osgdb_ived.dll!ive::StateSet::read(ive::DataInputStream * in=0x00dbf01c) Line 173 + 0x8 bytes C++ osgdb_ived.dll!ive::DataInputStream::readStateSet() Line 1247 C++ osgdb_ived.dll!ive::Drawable::read(ive::DataInputStream * in=0x00dbf01c) Line 100 + 0x8 bytes C++ osgdb_ived.dll!ive::Geometry::read(ive::DataInputStream * in=0x00dbf01c) Line 180 C++ osgdb_ived.dll!ive::DataInputStream::readDrawable() Line 1492 + 0x2d bytes C++ osgdb_ived.dll!ive::Geode::read(ive::DataInputStream * in=0x00dbf01c) Line 86 + 0x8 bytes C++ osgdb_ived.dll!ive::DataInputStream::readNode() Line 1688 + 0x2d bytes C++ osgdb_ived.dll!ive::Group::read(ive::DataInputStream * in=0x00dbf01c) Line 74 + 0x8 bytes C++ osgdb_ived.dll!ive::DataInputStream::readNode() Line 1680 + 0xc bytes C++ osgdb_ived.dll!ive::Group::read(ive::DataInputStream * in=0x00dbf01c) Line 74 + 0x8 bytes C++ osgdb_ived.dll!ive::DataInputStream::readNode() Line 1680 + 0xc bytes C++ osgdb_ived.dll!ive::Group::read(ive::DataInputStream * in=0x00dbf01c) Line 74 + 0x8 bytes C++ osgdb_ived.dll!ive::DataInputStream::readNode() Line 1680 + 0xc bytes C++ osgdb_ived.dll!ReaderWriterIVE::readNode(std::basic_istreamchar,std::char_traitschar fin={...}, const osgDB::ReaderWriter::Options * options=0x01d45bd0) Line 98 + 0xb bytesC++ osgdb_ived.dll!ReaderWriterIVE::readNode(const std::basic_stringchar,std::char_traitschar,std::allocatorchar file=D:\test_files\virianimator\rdeve\gfx\afvg.ive, const osgDB::ReaderWriter::Options * options=0x) Line 72 + 0x23 bytes C++ osg65-osgDBd.dll!osgDB::Registry::ReadNodeFunctor::doRead(osgDB::ReaderWriter rw={...}) Line 1421 + 0x40 bytes C++ osg65-osgDBd.dll!osgDB::Registry::read(const osgDB::Registry::ReadFunctor readFunctor={...}) Line 1559 + 0x22 bytes C++ osg65-osgDBd.dll!osgDB::Registry::readImplementation(const osgDB::Registry::ReadFunctor readFunctor={...}, bool useObjectCache=false) Line 1667 + 0x13 bytes C++ osg65-osgDBd.dll!osgDB::Registry::readNodeImplementation(const std::basic_stringchar,std::char_traitschar,std::allocatorchar fileName=D:\test_files\virianimator\rdeve\gfx\afvg.ive, const osgDB::ReaderWriter::Options * options=0x) Line 1872 + 0x57 bytes C++ osg65-osgDBd.dll!osgDB::Registry::readNode(const std::basic_stringchar,std::char_traitschar,std::allocatorchar fileName=D:\test_files\virianimator\rdeve\gfx\afvg.ive, const osgDB::ReaderWriter::Options * options=0x, bool buildKdTreeIfRequired=true) Line 237 + 0x98 bytes C++ osg65-osgDBd.dll!osgDB::readNodeFile(const std::basic_stringchar,std::char_traitschar,std::allocatorchar filename=D:\test_files\virianimator\rdeve\gfx\afvg.ive, const osgDB::ReaderWriter::Options * options=0x) Line 69 + 0x1f bytes C++ osg65-osgDBd.dll!osgDB::readNodeFiles(osg::ArgumentParser arguments={...}, const osgDB::ReaderWriter::Options * options=0x) Line 221 + 0x43 bytesC++ osgviewerQTd.exe!osgDB::readNodeFiles(osg::ArgumentParser parser={...}) Line 132 + 0x32 bytesC++ osgviewerQTd.exe!mainAdapterWidget(QApplication a={...}, osg::ArgumentParser arguments={...}) Line 202 + 0x9 bytes C++ osgviewerQTd.exe!main(int argc=2, char * * argv=0x01d3d5e0) Line 56 + 0xd bytesC++ osgviewerQTd.exe!__tmainCRTStartup() Line 597 + 0x19 bytes C osgviewerQTd.exe!mainCRTStartup() Line 414 C I'm sorry but the ive file is too huge (18 MB) to be posted. Regards Gianni -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=31689#31689 ___ osg-users mailing list osg-users@lists.openscenegraph.org
Re: [osg-users] [osgPlugins] error loading an ive file with OSG 2.8.3
HI Gianni, In theory the .ive plugin should be backwards compatible so 2.8.3 should be compatible with 2.8.2. I don't know what the cause might be, but the strack trace points to src/osgPlugins/ive/Image.cpp and DataInputStream.cpp so have a look at any differences 2.8.2 and 2.8.3 in these files. Robert. On Thu, Sep 16, 2010 at 12:14 PM, Gianni Ambrosio ga...@vi-grade.com wrote: I made a different test, executing the osgviewerQT example, using the same ive file to load as first parameter of the exe. With OSG 2.8.2 it works fine, while with OSG 2.8.3 it crashes. Here is the call stack (hoping you can understand better than me what's going on): osgdb_ived.dll!std::vectorunsigned int,std::allocatorunsigned int ::swap(std::vectorunsigned int,std::allocatorunsigned int _Right=[0]()) Line 1044 + 0xf bytes C++ osgdb_ived.dll!ive::Image::read(ive::DataInputStream * in=0x00dbf01c) Line 154 C++ osgdb_ived.dll!ive::DataInputStream::readImage(ive::IncludeImageMode mode=IMAGE_INCLUDE_DATA) Line 1176 C++ osgdb_ived.dll!ive::DataInputStream::readImage() Line 1157 + 0xc bytes C++ osgdb_ived.dll!ive::Texture2D::read(ive::DataInputStream * in=0x00dbf01c) Line 54 + 0x8 bytes C++ osgdb_ived.dll!ive::DataInputStream::readStateAttribute() Line 1340 + 0xc bytes C++ osgdb_ived.dll!ive::StateSet::read(ive::DataInputStream * in=0x00dbf01c) Line 173 + 0x8 bytes C++ osgdb_ived.dll!ive::DataInputStream::readStateSet() Line 1247 C++ osgdb_ived.dll!ive::Drawable::read(ive::DataInputStream * in=0x00dbf01c) Line 100 + 0x8 bytes C++ osgdb_ived.dll!ive::Geometry::read(ive::DataInputStream * in=0x00dbf01c) Line 180 C++ osgdb_ived.dll!ive::DataInputStream::readDrawable() Line 1492 + 0x2d bytes C++ osgdb_ived.dll!ive::Geode::read(ive::DataInputStream * in=0x00dbf01c) Line 86 + 0x8 bytes C++ osgdb_ived.dll!ive::DataInputStream::readNode() Line 1688 + 0x2d bytes C++ osgdb_ived.dll!ive::Group::read(ive::DataInputStream * in=0x00dbf01c) Line 74 + 0x8 bytes C++ osgdb_ived.dll!ive::DataInputStream::readNode() Line 1680 + 0xc bytes C++ osgdb_ived.dll!ive::Group::read(ive::DataInputStream * in=0x00dbf01c) Line 74 + 0x8 bytes C++ osgdb_ived.dll!ive::DataInputStream::readNode() Line 1680 + 0xc bytes C++ osgdb_ived.dll!ive::Group::read(ive::DataInputStream * in=0x00dbf01c) Line 74 + 0x8 bytes C++ osgdb_ived.dll!ive::DataInputStream::readNode() Line 1680 + 0xc bytes C++ osgdb_ived.dll!ReaderWriterIVE::readNode(std::basic_istreamchar,std::char_traitschar fin={...}, const osgDB::ReaderWriter::Options * options=0x01d45bd0) Line 98 + 0xb bytes C++ osgdb_ived.dll!ReaderWriterIVE::readNode(const std::basic_stringchar,std::char_traitschar,std::allocatorchar file=D:\test_files\virianimator\rdeve\gfx\afvg.ive, const osgDB::ReaderWriter::Options * options=0x) Line 72 + 0x23 bytes C++ osg65-osgDBd.dll!osgDB::Registry::ReadNodeFunctor::doRead(osgDB::ReaderWriter rw={...}) Line 1421 + 0x40 bytes C++ osg65-osgDBd.dll!osgDB::Registry::read(const osgDB::Registry::ReadFunctor readFunctor={...}) Line 1559 + 0x22 bytes C++ osg65-osgDBd.dll!osgDB::Registry::readImplementation(const osgDB::Registry::ReadFunctor readFunctor={...}, bool useObjectCache=false) Line 1667 + 0x13 bytes C++ osg65-osgDBd.dll!osgDB::Registry::readNodeImplementation(const std::basic_stringchar,std::char_traitschar,std::allocatorchar fileName=D:\test_files\virianimator\rdeve\gfx\afvg.ive, const osgDB::ReaderWriter::Options * options=0x) Line 1872 + 0x57 bytes C++ osg65-osgDBd.dll!osgDB::Registry::readNode(const std::basic_stringchar,std::char_traitschar,std::allocatorchar fileName=D:\test_files\virianimator\rdeve\gfx\afvg.ive, const osgDB::ReaderWriter::Options * options=0x, bool buildKdTreeIfRequired=true) Line 237 + 0x98 bytes C++ osg65-osgDBd.dll!osgDB::readNodeFile(const std::basic_stringchar,std::char_traitschar,std::allocatorchar filename=D:\test_files\virianimator\rdeve\gfx\afvg.ive, const osgDB::ReaderWriter::Options * options=0x) Line 69 + 0x1f bytes C++ osg65-osgDBd.dll!osgDB::readNodeFiles(osg::ArgumentParser arguments={...}, const osgDB::ReaderWriter::Options * options=0x) Line 221 + 0x43 bytes C++ osgviewerQTd.exe!osgDB::readNodeFiles(osg::ArgumentParser parser={...}) Line 132 + 0x32 bytes C++ osgviewerQTd.exe!mainAdapterWidget(QApplication a={...}, osg::ArgumentParser arguments={...}) Line 202 + 0x9 bytes C++ osgviewerQTd.exe!main(int argc=2, char * * argv=0x01d3d5e0) Line 56 + 0xd bytes C++ osgviewerQTd.exe!__tmainCRTStartup() Line 597 +
[osg-users] [osgPlugins] error loading an ive file with OSG 2.8.3
Hi, is there any known issue related to the ive plug-in in OSG 2.8.3? I tried to load the same ive with OSG 2.8.2 and it works fine. I can load correctly obj files with 2.8.3 but the ive does not work. Any idea? Regards Gianni -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=31628#31628 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] error loading an ive file with OSG 2.8.3
Hello Gianni, is there any known issue related to the ive plug-in in OSG 2.8.3? I tried to load the same ive with OSG 2.8.2 and it works fine. I can load correctly obj files with 2.8.3 but the ive does not work. Any idea? We have been using 2.8.3 since it came out and have had no problems loading ive files with it. I'm afraid you'll have to run in a debugger and see what's going on more in-depth. J-S -- __ Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com 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
Re: [osg-users] [osgPlugins] error loading an ive file with OSG 2.8.3
On Wednesday 15 September 2010 14:04:46 Gianni Ambrosio wrote: Hi, is there any known issue related to the ive plug-in in OSG 2.8.3? I tried to load the same ive with OSG 2.8.2 and it works fine. I can load correctly obj files with 2.8.3 but the ive does not work. Any idea? Short answer: no I haven't got any idea. Slightly longer answer: Please provide some more details of what actually goes wrong in your case. Are there any error messages you can give us? Some information about the ive file, perhaps? How does it go wrong? Does it crash, or mis-render? Please be more specific! Regards, Magnus Regards Gianni -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=31628#31628 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] error loading an ive file with OSG 2.8.3
Currently IVE files are not typically binary compatible between OSG versions Use OSG (ASCII) files instead these typically will work between OISG Versions __ Gordon Tomlinson -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Magnus Kessler Sent: Wednesday, September 15, 2010 9:21 AM To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] [osgPlugins] error loading an ive file with OSG 2.8.3 On Wednesday 15 September 2010 14:04:46 Gianni Ambrosio wrote: Hi, is there any known issue related to the ive plug-in in OSG 2.8.3? I tried to load the same ive with OSG 2.8.2 and it works fine. I can load correctly obj files with 2.8.3 but the ive does not work. Any idea? Short answer: no I haven't got any idea. Slightly longer answer: Please provide some more details of what actually goes wrong in your case. Are there any error messages you can give us? Some information about the ive file, perhaps? How does it go wrong? Does it crash, or mis-render? Please be more specific! Regards, Magnus Regards Gianni -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=31628#31628 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org