Re: [osg-users] [osgPlugins] VRML plugin - compile error (osg 2.9.8, VS2008, openvrml 0.4.13)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, On 08/10/2010 06:01 PM, Tom's Lists wrote: > > To me it looks like the boost exceptions are initializing themselves (to > have enable the global functions like "current_exception" etc.) by > throwing around some exceptions. Now the MSVC exception handling > implementation (as far as I read) uses a special errorcode (-/529697949/ > , In /hex/, this is 0xE06D7363) internally to determine if an exception > occured. With this errorcode set (from the "unevil" exception during > initialization) the LoadLibrary call exits with an error, just because > the internal errror flag is set to the "C++ exception Magic Number"...so > far my ideas, I might be totally wrong. > > However, looks like a openvrml problem rather then an osgPlugin one. > > Regards, > Thomas > No idea, Thomas. This is way beyond my ken, I am mostly Linux developer. You are getting bad_alloc from Boost, that type of error usually means that: a) you have run out of memory (not likely) b) allocation failed due to corrupted heap. My bet is on the second possibility - likely the DLL heap (which is separate for each DLL) is messed up. I would check the compiler switches related to DLLs and make absolutely sure that there is no mismatch between debug and release libs, even for dependencies of OpenVRML - everything needs to be the same. Debug uses different memory allocation code and such crashes are pretty much the symptom of mismatched libs. Can you build some of the OpenVRML demos? That could help to pinpoint the source of the problem. Regards, Jan -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org/ iD8DBQFMYat1n11XseNj94gRAodyAKDBRHXlQph35aHS7/dcv2DFMhsfeACgn3E3 DIiok1IGsmEDowDGYA4LLj4= =K3Y9 -END PGP SIGNATURE- ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] VRML plugin - compile error (osg 2.9.8, VS2008, openvrml 0.4.13)
First-chance exception at 0x07fefd76aa7d in CheckDllLoad.exe: Microsoft C++ exception: boost::exception_detail::clone_impl at memory location 0x0026f020.. First-chance exception at 0x07fefd76aa7d in CheckDllLoad.exe: Microsoft C++ exception: [rethrow] at memory location 0x.. First-chance exception at 0x07fefd76aa7d in CheckDllLoad.exe: Microsoft C++ exception: boost::exception_detail::clone_impl,std::allocator>,boost::filesystem::path_traits> > at memory location 0x0026ed10.. Stacktrace after LoadLibrary call: openvrmld.dll!boost::copy_exception(const boost::exception_detail::bad_alloc_ & e={...}) Line 42 + 0x23 bytesC++ openvrmld.dll!boost::exception_detail::get_bad_alloc<42>() Line 80 + 0xb1 bytesC++ openvrmld.dll!`dynamic initializer for 'boost::exception_detail::exception_ptr_bad_alloc<42>::e''() Line 94 + 0x10 bytesC++ msvcr90d.dll!0f5b2a3c() openvrmld.dll!_CRT_INIT(void * hDllHandle=0x07fee8dd, unsigned long dwReason=1, void * lpreserved=0x) Line 320C openvrmld.dll!__DllMainCRTStartup(void * hDllHandle=0x07fee8dd, unsigned long dwReason=1, void * lpreserved=0x) Line 537 + 0x13 bytesC openvrmld.dll!_DllMainCRTStartup(void * hDllHandle=0x07fee8dd, unsigned long dwReason=1, void * lpreserved=0x) Line 508 C To me it looks like the boost exceptions are initializing themselves (to have enable the global functions like "current_exception" etc.) by throwing around some exceptions. Now the MSVC exception handling implementation (as far as I read) uses a special errorcode (-*529697949* , In *hex*, this is 0xE06D7363) internally to determine if an exception occured. With this errorcode set (from the "unevil" exception during initialization) the LoadLibrary call exits with an error, just because the internal errror flag is set to the "C++ exception Magic Number"...so far my ideas, I might be totally wrong. However, looks like a openvrml problem rather then an osgPlugin one. Regards, Thomas On Fri, Jul 30, 2010 at 6:33 PM, Jan Ciger wrote: > On Fri, Jul 30, 2010 at 6:28 PM, Jan Ciger wrote: > > However, the only thing that uses Boost is OpenVRML and according to > > what they have on the web page, 1.41 Boost should work with 0.18.4 and > > upwards. It would probably pay off to post the exception to the > > OpenVRML forum/mailing list and ask there as it doesn't seem to be > > anything OSG related. > > One more thing - if the exception is from the filesystem module, it > could mean that boost is told to open something that it cannot find. > What kind of exception are you getting? > > Jan > ___ > 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] VRML plugin - compile error (osg 2.9.8, VS2008, openvrml 0.4.13)
On Fri, Jul 30, 2010 at 6:28 PM, Jan Ciger wrote: > However, the only thing that uses Boost is OpenVRML and according to > what they have on the web page, 1.41 Boost should work with 0.18.4 and > upwards. It would probably pay off to post the exception to the > OpenVRML forum/mailing list and ask there as it doesn't seem to be > anything OSG related. One more thing - if the exception is from the filesystem module, it could mean that boost is told to open something that it cannot find. What kind of exception are you getting? Jan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] VRML plugin - compile error (osg 2.9.8, VS2008, openvrml 0.4.13)
On Fri, Jul 30, 2010 at 11:50 AM, Thomas Beer I have built all libraries myself using the same compiler settings (in both, > 32 and 64 bit configurations) and tried boost versions 1.42 and 1.43 (and an > additional test with 1.38 pre built 32 bit). Always the same issue about an > exception thrown somewhere from boost::filesystem before main/dllmain > app/vrmlplugin/openvrml was reached (thus most probably coming from a static > initialization). Which boost version was tested with the plugin on MSVC? I am not Windows user (at least not when OSG is concerned), so I am not sure which Boost works. I think 1.39 was working for me in Linux. However, the only thing that uses Boost is OpenVRML and according to what they have on the web page, 1.41 Boost should work with 0.18.4 and upwards. It would probably pay off to post the exception to the OpenVRML forum/mailing list and ask there as it doesn't seem to be anything OSG related. Regards, Jan ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] VRML plugin - compile error (osg 2.9.8, VS2008, openvrml 0.4.13)
> -Original Message- > From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users- > boun...@lists.openscenegraph.org] On Behalf Of Jan Ciger > Sent: Thursday, July 29, 2010 2:15 AM > To: OpenSceneGraph Users > Subject: Re: [osg-users] [osgPlugins] VRML plugin - compile error (osg 2.9.8, > VS2008, openvrml 0.4.13) > > If you are getting exceptions/crashes, it could be that Boost, OpenVRML > and/or OSG were not compiled using the same compiler and same settings > (debug vs. release ...). In order to make sure that everything is set up > correctly you may need to rebuild all the libraries yourself to ensure > consistency, instead of downloading a pre-built binary. I have built all libraries myself using the same compiler settings (in both, 32 and 64 bit configurations) and tried boost versions 1.42 and 1.43 (and an additional test with 1.38 pre built 32 bit). Always the same issue about an exception thrown somewhere from boost::filesystem before main/dllmain app/vrmlplugin/openvrml was reached (thus most probably coming from a static initialization). Which boost version was tested with the plugin on MSVC? Thanks! Regards, Thomas ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] VRML plugin - compile error (osg 2.9.8, VS2008, openvrml 0.4.13)
> > Ah no, that is long time outdated. For current OSG you must use the > latest OpenVRML and have Boost installed. > > Regards, > Jan Thanks to all for the help. I still keep trying... Now I managed to compile openvrml 0.18.6 and have boost installed. The binaries and libs I got differ from the old openvrml-version... Which changes (and directory-pathes) do I insert in cmake to get a running version of osg with vrml-plugin? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=30389#30389 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] VRML plugin - compile error (osg 2.9.8, VS2008, openvrml 0.4.13)
On 7/28/2010 5:12 PM, Jan Ciger wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/28/2010 04:39 PM, Rob Radtke wrote: I don't have any experience with the vrml plug-in. I have, however, had good success using the OpenSceneGraph's Inventor (iv) plug-in, linked with the coin library (http://www.coin3d.org/), to read vrml models. The downside is that, if your application isn't gpl'd, using coin requires you to buy a coin professional license for around $3k per developer. For that reason, it's not a feasible solution for all projects. Actually the VRML plugin in OSG was designed to exactly avoid this issue. Not to mention that the old VRML plugin that was Coin-based was not working correctly. Not sure what you would gain by redoing all this work again :) Jan Hi Jan, I'm not prescribing any particular solution. However, I do want to re-iterate that the _current_ Inventor plugin seems to read vrml models just fine (in addition to .iv models). There is no work that would have to be redone. Rob smime.p7s Description: S/MIME Cryptographic Signature ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] VRML plugin - compile error (osg 2.9.8, VS2008, openvrml 0.4.13)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/28/2010 03:52 PM, Thomas Beer wrote: > I have sucessfully *built* it with the current openvrml version > (0.18.3). The problem I have is, that the openvrml.dll (boost) is > throwing exceptions before the DllMain is reached and thus the > LoadLibrary call fails / the exceptions cannot be caught - and with that > also the loading of the osgPlugin referring to the openvrml.dll fails. > > Any fixes to that issue? BTW I already set the OPENVRML_DATADIR > environment variable, which would too cause a failure when loading the > openvrml.dll. If you are getting exceptions/crashes, it could be that Boost, OpenVRML and/or OSG were not compiled using the same compiler and same settings (debug vs. release ...). In order to make sure that everything is set up correctly you may need to rebuild all the libraries yourself to ensure consistency, instead of downloading a pre-built binary. Jan -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org/ iD8DBQFMUMghn11XseNj94gRAvB9AKCjoZwzxwr3CqO4GglrjsvhahQMcACeJpjh henA4rBtVBlLs7OdrkeLREY= =pVm/ -END PGP SIGNATURE- ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] VRML plugin - compile error (osg 2.9.8, VS2008, openvrml 0.4.13)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/28/2010 04:39 PM, Rob Radtke wrote: >> > I don't have any experience with the vrml plug-in. I have, however, had > good success using the OpenSceneGraph's Inventor (iv) plug-in, linked > with the coin library (http://www.coin3d.org/), to read vrml models. > The downside is that, if your application isn't gpl'd, using coin > requires you to buy a coin professional license for around $3k per > developer. For that reason, it's not a feasible solution for all projects. > Actually the VRML plugin in OSG was designed to exactly avoid this issue. Not to mention that the old VRML plugin that was Coin-based was not working correctly. Not sure what you would gain by redoing all this work again :) Jan -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org/ iD8DBQFMUMdun11XseNj94gRAs+8AKC8s4BN4zgUaZkAiPNPrpVoa9PByQCbB3vn 2Li45r1Ztm+ma20s4w0eFEU= =gme7 -END PGP SIGNATURE- ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] VRML plugin - compile error (osg 2.9.8, VS2008, openvrml 0.4.13)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/28/2010 11:04 AM, Florian Kuzmany wrote: > Hi, > > I desperately try to compile osg 2.9.8 with the vrml-plug-in using VS 2008. > > I followed the instructions on the vrml-plugin-site and was able to create > the openvrm lib-files and added the pathes to cmake. > > Compiling osg, over hundred errors occur. > It seems that osg refers to classes which don't exist in openvrml.lib (e.g. > resource_fetcher). > > Is Version 0.4.13 of openvrml still the right one? What do I do wrong? Ah no, that is long time outdated. For current OSG you must use the latest OpenVRML and have Boost installed. Regards, Jan -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org/ iD8DBQFMUMb2n11XseNj94gRAlRBAKCz0mbHiTpo3rURJ2TbwvgZMXGgggCeMeJl xMnaqL++wVzDcd3A8siTO4M= =FT6o -END PGP SIGNATURE- ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] VRML plugin - compile error (osg 2.9.8, VS2008, openvrml 0.4.13)
On 7/28/2010 6:52 AM, Thomas Beer wrote: I have sucessfully *built* it with the current openvrml version (0.18.3). The problem I have is, that the openvrml.dll (boost) is throwing exceptions before the DllMain is reached and thus the LoadLibrary call fails / the exceptions cannot be caught - and with that also the loading of the osgPlugin referring to the openvrml.dll fails. Any fixes to that issue? BTW I already set the OPENVRML_DATADIR environment variable, which would too cause a failure when loading the openvrml.dll. In my experience, when a plug-in fails to load, it's almost always because all the plugin's dependencies are not being found at runtime. Dependency Walker is a very useful tool for determining whether or not this is the case (http://www.dependencywalker.com/). smime.p7s Description: S/MIME Cryptographic Signature ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] VRML plugin - compile error (osg 2.9.8, VS2008, openvrml 0.4.13)
On 7/28/2010 2:04 AM, Florian Kuzmany wrote: Hi, I desperately try to compile osg 2.9.8 with the vrml-plug-in using VS 2008. I followed the instructions on the vrml-plugin-site and was able to create the openvrm lib-files and added the pathes to cmake. Compiling osg, over hundred errors occur. It seems that osg refers to classes which don't exist in openvrml.lib (e.g. resource_fetcher). Is Version 0.4.13 of openvrml still the right one? What do I do wrong? Can anyone help me? I don't have any experience with the vrml plug-in. I have, however, had good success using the OpenSceneGraph's Inventor (iv) plug-in, linked with the coin library (http://www.coin3d.org/), to read vrml models. The downside is that, if your application isn't gpl'd, using coin requires you to buy a coin professional license for around $3k per developer. For that reason, it's not a feasible solution for all projects. Rob ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] [osgPlugins] VRML plugin - compile error (osg 2.9.8, VS2008, openvrml 0.4.13)
I have sucessfully *built* it with the current openvrml version (0.18.3). The problem I have is, that the openvrml.dll (boost) is throwing exceptions before the DllMain is reached and thus the LoadLibrary call fails / the exceptions cannot be caught - and with that also the loading of the osgPlugin referring to the openvrml.dll fails. Any fixes to that issue? BTW I already set the OPENVRML_DATADIR environment variable, which would too cause a failure when loading the openvrml.dll. Regards, Thomas On Wed, Jul 28, 2010 at 11:04 AM, Florian Kuzmany < florian.kuzm...@jungheinrich.de> wrote: > Hi, > > I desperately try to compile osg 2.9.8 with the vrml-plug-in using VS 2008. > > I followed the instructions on the vrml-plugin-site and was able to create > the openvrm lib-files and added the pathes to cmake. > > Compiling osg, over hundred errors occur. > It seems that osg refers to classes which don't exist in openvrml.lib (e.g. > resource_fetcher). > > Is Version 0.4.13 of openvrml still the right one? What do I do wrong? > > Can anyone help me? > > Thanks, > Kuzy > > -- > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=30344#30344 > > > > > > ___ > 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