Jump to content
  • Advertisement
Sign in to follow this  
uncool

SlimDX problem with 3DS Max plugin.. crashing

This topic is 3268 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Having some odd problem with newer builds of SlimDX in my 3ds MAX exporter plugin. This has worked for me for me until now. Why is SlimDX needed here? To serialize XML straight from MAX. :). Whenever the plugin DLL steps into a managed function with a SlimDX class (like Vector3), MAX crashes. I can debug a plugin so this is proven. SlimDX is working in my game project however. I have installed the Visual Studio 2008 C++ runtime, and the VCR SP1 as well. The problem exists with the official August 2009 version in GAC and my own builds of August 2009 code in VS2008. The only difference I can see is SlimDX.DLL now depends on MSVCR90.DLL but this is covered by the C++ runtimes.. :( My debugger output for my old working SlimDX.DLL looks like this: The thread 'Win32 Thread' (0x16d8) has exited with code 0 (0x0). '3dsmax.exe': Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.20506\clr.dll', Cannot find or open the PDB file First-chance exception at 0x75fe9617 in 3dsmax.exe: 0x04242420: 0x4242420. '3dsmax.exe': Loaded 'C:\Windows\assembly\NativeImages_v4.0.20506_32\mscorlib\9a5d063d231530ad15499445c207f40e\mscorlib.ni.dll', Cannot find or open the PDB file '3dsmax.exe': Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.20506\clrjit.dll', Cannot find or open the PDB file '3dsmax.exe': Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.20506\diasymreader.dll', Cannot find or open the PDB file '3dsmax.exe': Loaded 'ImageAtBase0x45a10000', No symbols loaded. '3dsmax.exe': Loaded 'ImageAtBase0x45c20000', No symbols loaded. '3dsmax.exe': Unloaded 'ImageAtBase0x45a10000' '3dsmax.exe': Loaded 'C:\Program Files\Autodesk\3ds Max 2010\SlimDX.dll', Cannot find or open the PDB file '3dsmax.exe': Loaded 'C:\Windows\System32\msvcp100.dll', Symbols loaded. '3dsmax.exe': Loaded 'C:\Windows\assembly\NativeImages_v4.0.20506_32\System\9d44b698d540588047406a08f384fe9b\System.ni.dll', Cannot find or open the PDB file '3dsmax.exe': Loaded 'C:\Windows\assembly\NativeImages_v4.0.20506_32\System.Drawing\875dea4d22b67c607955c00da80cffa1\System.Drawing.ni.dll', Cannot find or open the PDB file '3dsmax.exe': Loaded 'C:\Windows\assembly\NativeImages_v4.0.20506_32\System.Windows.Forms\77edcab62a3b7654783660c1c0ed9a9e\System.Windows.Forms.ni.dll', Cannot find or open the PDB file '3dsmax.exe': Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.20506\Culture.dll', Cannot find or open the PDB file '3dsmax.exe': Loaded 'C:\Program Files\Common Files\microsoft shared\OFFICE12\MSOXMLMF.DLL', Cannot find or open the PDB file this is what it looks like when using the August 2009 one installed in the GAC.. and my own builds of current code, are basically the same. '3dsmax.exe': Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.20506\clr.dll', Cannot find or open the PDB file First-chance exception at 0x75fe9617 in 3dsmax.exe: 0x04242420: 0x4242420. '3dsmax.exe': Loaded 'C:\Windows\assembly\NativeImages_v4.0.20506_32\mscorlib\9a5d063d231530ad15499445c207f40e\mscorlib.ni.dll', Cannot find or open the PDB file '3dsmax.exe': Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.20506\clrjit.dll', Cannot find or open the PDB file '3dsmax.exe': Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.20506\diasymreader.dll', Cannot find or open the PDB file '3dsmax.exe': Loaded 'C:\Windows\assembly\tmp\ELMNOPRS\SlimDX.dll', No symbols loaded. '3dsmax.exe': Unloaded 'C:\Windows\assembly\tmp\ELMNOPRS\SlimDX.dll' '3dsmax.exe': Loaded 'C:\Windows\assembly\tmp\ELMNOPRS\SlimDX.dll', No symbols loaded. First-chance exception at 0x75fe9617 in 3dsmax.exe: Microsoft C++ exception: EEMessageException at memory location 0x0012b090.. First-chance exception at 0x75fe9617 in 3dsmax.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.. First-chance exception at 0x75fe9617 in 3dsmax.exe: Microsoft C++ exception: EEFileLoadException at memory location 0x0012a7d0.. First-chance exception at 0x75fe9617 in 3dsmax.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.. First-chance exception at 0x75fe9617 in 3dsmax.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.. '3dsmax.exe': Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.20506\Culture.dll', Cannot find or open the PDB file '3dsmax.exe': Unloaded 'C:\Windows\Microsoft.NET\Framework\v4.0.20506\Culture.dll' '3dsmax.exe': Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.20506\Culture.dll', Cannot find or open the PDB file First-chance exception at 0x75fe9617 in 3dsmax.exe: 0xE0434352: 0xe0434352. First-chance exception at 0x75fe9617 in 3dsmax.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.. The thread 'Win32 Thread' (0x330) has exited with code 0 (0x0). '3dsmax.exe': Unloaded 'C:\Program Files\Autodesk\3ds Max 2010\MC3Res.dll' '3dsmax.exe': Loaded 'C:\Program Files\Autodesk\3ds Max 2010\dbghelp.dll', Cannot find or open the PDB file. I am not sure how to debug it any further since VS will not let me debug into managed functions from a MAX session.

Share this post


Link to post
Share on other sites
Advertisement
My initial guess would be an x86/x64 issue; you have to ensure the correct version of your DLLs, including the SlimDX DLL, is loaded into Max's address space.

From your diagnostics it doesn't look like the loader is even getting to execute any SlimDX code, it looks like a bunch of native exceptions inside Max itself.
The 0x424242 repeating in the first class is interesting, but it's not an idiomatic debug fill that I'm aware of. The in second case, the crashes inside Max seem pretty obvious, and since you're using the GAC'd version that points to perhaps some screwup that is loading the wrong version of the DLL, perhaps.

Can you provide the code to your plugin?

Share this post


Link to post
Share on other sites
its not a 64 bit or GAC problem so far as I can tell.
http://www.megaupload.com/?d=SEK6UWRC there's my project... VS2010...

anyhow, I can load the crash dump from MAX in Visual Studio and it shows a CLR FileLoadException on SlimDX.DLL.

i'l post the answer when i get it.

Share this post


Link to post
Share on other sites
A file load exception is almost certainly something occurring before SlimDX code can even run. It points very strongly towards this being an architectural issue.

Make sure your project isn't set to "Any CPU."

Share this post


Link to post
Share on other sites
This is the problem:

VS2010 exporter works with 2010 built SlimDX.
VS2008 exporter works with 2008 built SlimDX.

but 2010 exporter with 2008 slimdx is no go.

I used to build SlimDX in 2010 but there's dozens of linker errors now. I assume if I figured out how to fix them it would still work.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!