• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Unhandled Exception - ThrowKeyNotFound

Messages
31
Country
unitedkingdom
Hi,
I have been using MCX for some time without any errors. Yet this afternoon i was adding an effect to a ship i had modelled in Sketchup.
Suddenly it became unresponsive and came up with an error dialog box stating i had run out of memory. I looked and MCX was using 1.4gb of memory!!

It then went to "Not Responding" and a big red X came up instead of my model.

I restarted MCX in the hope of going through the process (making the decks hard, adding an effect (smoke) and converting textures (to DDS) however when i restarted MCX and pressed the Add Effect button in the Attached Object Editor, i had this error below....

(I even tried restarting the laptop and then re-installing the latest Development release yet again but it is still not working)

Attached Object Editor
Exception Text **************
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at ASToFra.ObjectRenderer.Renderer3DHandlerType.DrawModelPart(ModelPart mPart, RenderNodes renderNodes)
at ASToFra.ObjectRenderer.Renderer3DHandlerType.RenderSceneGraphNode(SceneGraphNode sn, RenderNodes renderNodes)
at ASToFra.ObjectRenderer.Renderer3DHandlerType.RenderSceneGraphNode(SceneGraphNode sn, RenderNodes renderNodes)
at ASToFra.ObjectRenderer.Renderer3DHandlerType.RenderShadows()
at ASToFra.ObjectRenderer.Renderer3DHandlerType.RenderScene()
at ASToFra.ObjectRenderer.Renderer3DHandlerType.Paint(Object sender, PaintEventArgs e)
at System.Windows.Forms.Control.OnPaint(PaintEventArgs e)
at GRV11.GRControl.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4214 (VistaSP2GDR.050727-4200)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Launcher_ModelConverterX
Assembly Version: 1.0.0.0
Win32 Version: 1.3.0.0
CodeBase: file:///C:/Users/Louise%20%26%20Rich/Documents/Sketchup%20Files/ModelConverterX.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4214 (VistaSP2GDR.050727-4200)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4212 (VistaSP2GDR.050727-4200)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
ModelConverterX
Assembly Version: 1.0.0.0
Win32 Version: 1.3.0.0
CodeBase: file:///C:/Users/Louise%20%26%20Rich/Documents/Sketchup%20Files/ModelConverterX.DLL
----------------------------------------
Interfaces
Assembly Version: 1.0.0.0
Win32 Version: 1.3.0.0
CodeBase: file:///C:/Users/Louise%20%26%20Rich/Documents/Sketchup%20Files/Interfaces.DLL
----------------------------------------
ObjectModel3D
Assembly Version: 1.0.0.0
Win32 Version: 1.3.0.0
CodeBase: file:///C:/Users/Louise%20%26%20Rich/Documents/Sketchup%20Files/ObjectModel3D.DLL
----------------------------------------
ObjectWriter
Assembly Version: 1.0.0.0
Win32 Version: 1.3.0.0
CodeBase: file:///C:/Users/Louise%20%26%20Rich/Documents/Sketchup%20Files/ObjectWriter.DLL
----------------------------------------
ObjectReader
Assembly Version: 1.0.0.0
Win32 Version: 1.3.0.0
CodeBase: file:///C:/Users/Louise%20%26%20Rich/Documents/Sketchup%20Files/ObjectReader.DLL
----------------------------------------
EventLog
Assembly Version: 1.0.0.0
Win32 Version: 1.3.0.0
CodeBase: file:///C:/Users/Louise%20%26%20Rich/Documents/Sketchup%20Files/EventLog.DLL
----------------------------------------
ObjectRenderer
Assembly Version: 1.0.0.0
Win32 Version: 1.3.0.0
CodeBase: file:///C:/Users/Louise%20%26%20Rich/Documents/Sketchup%20Files/ObjectRenderer.DLL
----------------------------------------
GRV11DLL
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/Louise%20%26%20Rich/Documents/Sketchup%20Files/GRV11DLL.DLL
----------------------------------------
ParticleEffects
Assembly Version: 1.0.0.0
Win32 Version: 1.3.0.0
CodeBase: file:///C:/Users/Louise%20%26%20Rich/Documents/Sketchup%20Files/ParticleEffects.DLL
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Utils
Assembly Version: 1.0.0.0
Win32 Version: 1.3.0.0
CodeBase: file:///C:/Users/Louise%20%26%20Rich/Documents/Sketchup%20Files/Utils.DLL
----------------------------------------
TextureObject
Assembly Version: 1.0.0.0
Win32 Version: 1.3.0.0
CodeBase: file:///C:/Users/Louise%20%26%20Rich/Documents/Sketchup%20Files/TextureObject.DLL
----------------------------------------
System.Web
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4209 (VistaSP2GDR.050727-4200)
CodeBase: file:///C:/Windows/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
TextureLoader
Assembly Version: 1.0.0.0
Win32 Version: 1.3.0.0
CodeBase: file:///C:/Users/Louise%20%26%20Rich/Documents/Sketchup%20Files/TextureLoader.DLL
----------------------------------------
ObjectEditor
Assembly Version: 1.0.0.0
Win32 Version: 1.3.0.0
CodeBase: file:///C:/Users/Louise%20%26%20Rich/Documents/Sketchup%20Files/ObjectEditor.DLL
----------------------------------------
System.Design
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Design/2.0.0.0__b03f5f7f11d50a3a/System.Design.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


Everything was fine up until MCX started going haywire on memory and now i can no longer finish my model. I am literally "complete" and all i had to do is add the smoke and re-do the deck (make it hard) and convert some textures.
 
Last edited:
I have just been trying and trying and after the 9th go at restarting, i was able to add the effect, whether or not it has worked correctly i don't know yet as i haven't tested it in FSX however the error did not appear on the 9th restart.

Very odd but perhaps it has repaired itself although i did notice MCX was running extremely slow upon converting the textures to DDS format, i had to keep trying several times and it worked.

Will report back if it goes haywire again.
Have to congratulate Arno on a superb little yet powerful tool.
 
Hi,

How many polygons and textures does your model have? It would be interesting to know for me what kind of complexity brings the tool down.
 
Hi Arno,

I had just 8 textures to convert to DDS of which i made 5 platforms. I exported it to MDL absolutely fine after the programme came back together again. However when i went to open the MDL again in MCX and opened up the Attached Object Editor i noticed there were 3000+ platforms (attach points) showing which opened my eyes up as i had only converted 5 platforms before converting it to MDL... so not sure how it is showing that many now? This really slows the MCX down somewhat. I have no idea why i suddenly have over 3000 platforms showing from 5.
Anyway it worked okay and i have it in FSX working along with the smoke.

Details i have found are
LOD=100 Drawcalls=31 Triangles=73094 Texture Vertices=85095
 
Hi,

Those platforms are something to be careful with. In general you only want a few and you don't want to generate them from complex geometry, since that will cost quite some performance.
 
Hi,

When i did the carrier deck markings (had to draw them on with wide lines) each of those lines also became a platform according to MCX. So instead of just having one platform to land on (the deck) i had to make the lines/markings hard as when i tested it in FSX my helicopter kept bumping over the markings and sinking. So instead of just one platform i had to make 5.

Sadly, tonight with another ship i have completed i am getting the same error as the original post. And when i press the mass texture editor button, it just comes up with a message "textures loading" but does nothing.

Somewhere, when i had the initial problem as per the first post, it has corrupted my MCX i assume. But even after a fresh install it is still there (the error).

Would i need to uninstall anything else to cleanly wipe MCX from the laptop and then reinstall?
 
Okay i was fiddling with my latest ship above earlier and MCX was only using 242MB of memory instead of 1.4GB so it must have been my other ship for that problem.

However my main problem now, is since that other ship, i have another error...

"the given key was not present in the dictionary"

This comes up everytime i click on the Attached Object Editor to either add a platform or effect.
I also, still get the "Loading, please wait" message when trying to convert textures in the Mass Texture Editor... it doesn't shift from that "loading" screen.

At a loss on what to do now as i have tried reinstalling many times. Your MCX tool is invaluable and a can't do without it as i have no gmax experience.

:eek:
 
Hi,

Can you maybe send me the object that gives those errors? I might be able to find out what goes wrong.
 
Back
Top