The given key was not present in the dictionary

#1
Hello,

I have been encountering the following problem when attempting to do a scenery convert to FSX .bgl file to .dsf for X-Plane 11.

An error occured during exporting C:\Users\laure\Desktop\lib_buildings.dsf from object

Error:
The given key was not present in the dictionary.

I was able to convert the .bgl file to .obj, but then I get 70 different .obj file and I would prefer a .dsf file, as it has the geolocation built in.

I am using the latest developer release of ModelConverterX (28 april 2019)

Any clue what could be wrong?

"
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentNullException: Value cannot be null.
Parameter name: path2
at System.IO.Path.Combine(String path1, String path2)
at Ionic.Zip.ZipEntry.NameInArchive(String filename, String directoryPathInArchive)
at Ionic.Zip.ZipFile.AddFile(String fileName, String directoryPathInArchive)
at ASToFra.ErrorHandler.SendError.AttachFile(String filename)
at ASToFra.ErrorHandler.ErrorHandler.button1_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3761.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
ModelConverterX
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Users/laure/AppData/Local/Temp/Rar$EXa1944.42064/ModelConverterX.exe
----------------------------------------
ASToFra.ErrorHandler
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Users/laure/AppData/Local/Temp/Rar$EXa1944.42064/ASToFra.ErrorHandler.DLL
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3761.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3761.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3761.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
ASToFra.Utils
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Users/laure/AppData/Local/Temp/Rar$EXa1944.42064/ASToFra.Utils.DLL
----------------------------------------
ASToFra.Interfaces
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Users/laure/AppData/Local/Temp/Rar$EXa1944.42064/ASToFra.Interfaces.DLL
----------------------------------------
ASToFra.ObjectModel3D
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Users/laure/AppData/Local/Temp/Rar$EXa1944.42064/ASToFra.ObjectModel3D.DLL
----------------------------------------
ASToFra.ObjectReader
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Users/laure/AppData/Local/Temp/Rar$EXa1944.42064/ASToFra.ObjectReader.DLL
----------------------------------------
ASToFra.ObjectWriter
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Users/laure/AppData/Local/Temp/Rar$EXa1944.42064/ASToFra.ObjectWriter.DLL
----------------------------------------
ASToFra.EventLog
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Users/laure/AppData/Local/Temp/Rar$EXa1944.42064/ASToFra.EventLog.DLL
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3761.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3761.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3761.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
ASToFra.ObjectRenderer
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Users/laure/AppData/Local/Temp/Rar$EXa1944.42064/ASToFra.ObjectRenderer.DLL
----------------------------------------
CSGL12DLL
Assembly Version: 12.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/laure/AppData/Local/Temp/Rar$EXa1944.42064/CSGL12DLL.DLL
----------------------------------------
ASToFra.ParticleEffects
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Users/laure/AppData/Local/Temp/Rar$EXa1944.42064/ASToFra.ParticleEffects.DLL
----------------------------------------
ASToFra.FSUtils
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Users/laure/AppData/Local/Temp/Rar$EXa1944.42064/ASToFra.FSUtils.DLL
----------------------------------------
ASToFra.TextureObject
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Users/laure/AppData/Local/Temp/Rar$EXa1944.42064/ASToFra.TextureObject.DLL
----------------------------------------
ASToFra.TextureLoader
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Users/laure/AppData/Local/Temp/Rar$EXa1944.42064/ASToFra.TextureLoader.DLL
----------------------------------------
ASToFra.XPUtils
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/laure/AppData/Local/Temp/Rar$EXa1944.42064/ASToFra.XPUtils.DLL
----------------------------------------
ASToFra.ObjectEditor
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Users/laure/AppData/Local/Temp/Rar$EXa1944.42064/ASToFra.ObjectEditor.DLL
----------------------------------------
Futureware.MantisConnect
Assembly Version: 1.0.6.0
Win32 Version: 1.0.6.0
CodeBase: file:///C:/Users/laure/AppData/Local/Temp/Rar$EXa1944.42064/Futureware.MantisConnect.DLL
----------------------------------------
System.Web.Services
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3761.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Web.Services/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll
----------------------------------------
Futureware.MantisConnect.XmlSerializers
Assembly Version: 1.0.6.0
Win32 Version: 1.0.6.0
CodeBase: file:///C:/Users/laure/AppData/Local/Temp/Rar$EXa1944.42064/Futureware.MantisConnect.XmlSerializers.DLL
----------------------------------------
Ionic.Zip.Reduced
Assembly Version: 1.8.4.28
Win32 Version: 1.8.4.28
CodeBase: file:///C:/Users/laure/AppData/Local/Temp/Rar$EXa1944.42064/Ionic.Zip.Reduced.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.
"
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#2
Hi,

The error message you post here seems to be from a different error, but it looks like you found a bug in the tool.

Does the crash happen while saving the DSF file?
 
#3
Thank you for your response. The crash actually happens when I click on the "send crash report", which appears after that I get "key not in the dictionary" message. I get an object file with the bgl file divided in a multitude of xplane obj and an earth nav folder without a dsf file? The tool has worked with other obj files without any errors happening.
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#4
Hi,

Guess the problem is in creating the dsf file in that case. But since the stack trace you posted is for the other error, it's hard to see now which lines gives the issue.

Does the second crash also happen if you don't attach a file to the error report?
 
#5
No, the second crash doesn't happen in that case. To be honest, I don't get any error at all in that case. Is there a way to get the crash report anyway?
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#6
Hi,

I just see that you got one error reported a few days ago, it's in my bug tracker. This shows in which function the missing key error happens. So let me check if I can find the bug that way.
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#8
Hi,

I had a look at the code and the stack trace, but I'm not sure yet why the error happens. Would you have a sample object that will show the error so that I can debug it?
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#11
Hi,

I have been able to reproduce the crash and I think I have fixed it as well (the DSF file exports with the fix, but I haven't been able to test in X-Plane if it works fine). The fix will be in the next development release.
 
Top