• 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.

FSX Getting Unhandled Exception Error when trying to import .MDL into MCX

Messages
4
Country
ca-britishcolumbia
Hello,

I'm trying to import a VC into MCX and I'm getting an Unhandled Exception Error. I will paste it below along with the Event Log. The error only happens when opening this specific .MDL file. This would leave me to believe it's an issue with the file, but I also recall opening it before a full Windows re-install with no issues. Is there someone out there who can help me with this?

Sim: FSX
Graphics Card: RTX 2070
MCX Version: 1.7 (Newest Dev Build). I had the same issue on 1.600. Updated to 1.7 to see if it would fix anything.

Event Log
00:48 CfgReader Information Starting reading of file D:\Games\Microsoft Flight Simulator X\SimObjects\Airplanes\Boeing 757-300\model.w2\jf_B757-VC_200_FREE.MDL
00:48 CfgReader Information Starting reading D:\Games\Microsoft Flight Simulator X\SimObjects\Airplanes\Boeing 757-300\aircraft.cfg
00:48 CfgReader Information Reading models from aircraft.cfg
00:48 MdlXReader Information Starting reading of file D:\Games\Microsoft Flight Simulator X\SimObjects\Airplanes\Boeing 757-300\model.w2\jf_b757-vc_200_free.mdl
00:48 MdlXReader Information Finished reading objects
00:48 MdlXReader Information Cleaning object: JF_B757_300
00:48 MdlXReader Information Removed 34 triangles with small area
00:48 CfgReader Information Reading points from aircraft.cfg
00:48 CfgReader Information Read 50 points
00:48 CfgReader Information Finished reading aircraft.cfg
00:48 CfgReader Information Finished reading objects

Error Message

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

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at ASToFra.Texture.Object.TextureSearcher.GetMSFSBasePath(String msfsPath, String folder, String fbFolder, String storeVersion)
at ASToFra.Texture.Object.TextureSearcher.CheckFallbackFolder(String fbPath, List`1 possibleFolderFiles, String folder, String fbFolder, Int32 index)
at ASToFra.Texture.Object.TextureSearcher.ProcessTextureCgf(String cfgPath, List`1 possibleFolderFiles, String folder, Int32 index)
at ASToFra.Texture.Object.TextureSearcher.CheckTextureCfg(List`1 possibleFolderFiles)
at ASToFra.Texture.Object.TextureSearcher.FindTexture(String textureFilename, String startPath, String liveryName, Boolean onlyStartFolder)
at ASToFra.Texture.Object.TextureSearcher.FindTexture(String textureFilename, String startPath, String liveryName)
at ASToFra.Texture.Object.TextureCache.LoadTextureImage(String textureName, String initialPath, String livery)
at ASToFra.Object.Renderer.Renderer3D.ReadTexture(String texture)
at ASToFra.Object.Renderer.Renderer3D.LoadTextures()
at ASToFra.Object.Renderer.Renderer3D.SetObjectModel(ObjectModel newObj, ObjectChangeLevel level, Boolean loadTextures)
at ASToFra.Object.Renderer.Renderer3DControl.OnObjectChanged(ObjectChangeLevel level, Object obj, Object sender, String changeDescription)
at ASToFra.Interfaces.ObjectChanged.Invoke(ObjectChangeLevel level, Object obj, Object sender, String changeDescription)
at ASToFra.Object.Reader.AllObjectReader.RaiseObjectChanged(ObjectModel obj)
at ASToFra.Object.Reader.AllObjectReader.bw_RunWorkerCompleted(Object sender, RunWorkerCompletedEventArgs e)
at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9241.0 built by: NET481REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
ModelConverterX
Assembly Version: 1.0.0.0
Win32 Version: 1.7.0.0
CodeBase: file:///D:/Games/Microsoft%20Flight%20Simulator%20X%20Addons/ModelConverterX/ModelConverterX.exe
----------------------------------------
ASToFra.ErrorHandler
Assembly Version: 1.0.0.0
Win32 Version: 1.7.0.0
CodeBase: file:///D:/Games/Microsoft%20Flight%20Simulator%20X%20Addons/ModelConverterX/ASToFra.ErrorHandler.DLL
----------------------------------------
ASToFra.Interfaces
Assembly Version: 1.0.0.0
Win32 Version: 1.7.0.0
CodeBase: file:///D:/Games/Microsoft%20Flight%20Simulator%20X%20Addons/ModelConverterX/ASToFra.Interfaces.DLL
----------------------------------------
ASToFra.Texture.Reader
Assembly Version: 1.0.0.0
Win32 Version: 1.7.0.0
CodeBase: file:///D:/Games/Microsoft%20Flight%20Simulator%20X%20Addons/ModelConverterX/ASToFra.Texture.Reader.DLL
----------------------------------------
ASToFra.Object.DataModel
Assembly Version: 1.0.0.0
Win32 Version: 1.7.0.0
CodeBase: file:///D:/Games/Microsoft%20Flight%20Simulator%20X%20Addons/ModelConverterX/ASToFra.Object.DataModel.DLL
----------------------------------------
ASToFra.Object.Reader
Assembly Version: 1.0.0.0
Win32 Version: 1.7.0.0
CodeBase: file:///D:/Games/Microsoft%20Flight%20Simulator%20X%20Addons/ModelConverterX/ASToFra.Object.Reader.DLL
----------------------------------------
ASToFra.Object.Writer
Assembly Version: 1.0.0.0
Win32 Version: 1.7.0.0
CodeBase: file:///D:/Games/Microsoft%20Flight%20Simulator%20X%20Addons/ModelConverterX/ASToFra.Object.Writer.DLL
----------------------------------------
ASToFra.Object.Renderer
Assembly Version: 1.0.0.0
Win32 Version: 1.7.0.0
CodeBase: file:///D:/Games/Microsoft%20Flight%20Simulator%20X%20Addons/ModelConverterX/ASToFra.Object.Renderer.DLL
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9181.0 built by: NET481REL1LAST_C
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.9236.0 built by: NET481REL1LAST_B
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.9032.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
ASToFra.Texture.Object
Assembly Version: 1.0.0.0
Win32 Version: 1.7.0.0
CodeBase: file:///D:/Games/Microsoft%20Flight%20Simulator%20X%20Addons/ModelConverterX/ASToFra.Texture.Object.DLL
----------------------------------------
ASToFra.Texture.Writer
Assembly Version: 1.0.0.0
Win32 Version: 1.7.0.0
CodeBase: file:///D:/Games/Microsoft%20Flight%20Simulator%20X%20Addons/ModelConverterX/ASToFra.Texture.Writer.DLL
----------------------------------------
ASToFra.Object.Processor
Assembly Version: 1.0.0.0
Win32 Version: 1.7.0.0
CodeBase: file:///D:/Games/Microsoft%20Flight%20Simulator%20X%20Addons/ModelConverterX/ASToFra.Object.Processor.DLL
----------------------------------------
ASToFra.Utils
Assembly Version: 1.0.0.0
Win32 Version: 1.7.0.0
CodeBase: file:///D:/Games/Microsoft%20Flight%20Simulator%20X%20Addons/ModelConverterX/ASToFra.Utils.DLL
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
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.9241.0 built by: NET481REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
ASToFra.MapRenderer
Assembly Version: 1.0.0.0
Win32 Version: 1.7.0.0
CodeBase: file:///D:/Games/Microsoft%20Flight%20Simulator%20X%20Addons/ModelConverterX/ASToFra.MapRenderer.DLL
----------------------------------------
ASToFra.Geometry
Assembly Version: 1.0.0.0
Win32 Version: 1.7.0.0
CodeBase: file:///D:/Games/Microsoft%20Flight%20Simulator%20X%20Addons/ModelConverterX/ASToFra.Geometry.DLL
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
ASToFra.FSUtils
Assembly Version: 1.0.0.0
Win32 Version: 1.7.0.0
CodeBase: file:///D:/Games/Microsoft%20Flight%20Simulator%20X%20Addons/ModelConverterX/ASToFra.FSUtils.DLL
----------------------------------------
ASToFra.EventLog
Assembly Version: 1.0.0.0
Win32 Version: 1.7.0.0
CodeBase: file:///D:/Games/Microsoft%20Flight%20Simulator%20X%20Addons/ModelConverterX/ASToFra.EventLog.DLL
----------------------------------------
OpenTK.GLControl
Assembly Version: 3.1.0.0
Win32 Version: 3.1.0
CodeBase: file:///D:/Games/Microsoft%20Flight%20Simulator%20X%20Addons/ModelConverterX/OpenTK.GLControl.DLL
----------------------------------------
OpenTK
Assembly Version: 3.1.0.0
Win32 Version: 3.1.0
CodeBase: file:///D:/Games/Microsoft%20Flight%20Simulator%20X%20Addons/ModelConverterX/OpenTK.DLL
----------------------------------------
ASToFra.ParticleEffects
Assembly Version: 1.0.0.0
Win32 Version: 1.7.0.0
CodeBase: file:///D:/Games/Microsoft%20Flight%20Simulator%20X%20Addons/ModelConverterX/ASToFra.ParticleEffects.DLL
----------------------------------------
Interop.WMPLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///D:/Games/Microsoft%20Flight%20Simulator%20X%20Addons/ModelConverterX/Interop.WMPLib.DLL
----------------------------------------
ASToFra.LicenseHelper
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///D:/Games/Microsoft%20Flight%20Simulator%20X%20Addons/ModelConverterX/ASToFra.LicenseHelper.DLL
----------------------------------------
Portable.Licensing
Assembly Version: 1.0.0.0
Win32 Version: 1.1.0.0
CodeBase: file:///D:/Games/Microsoft%20Flight%20Simulator%20X%20Addons/ModelConverterX/Portable.Licensing.DLL
----------------------------------------
System.Xml.Linq
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9032.0 built by: NET481REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
AssimpNet
Assembly Version: 5.0.0.0
Win32 Version: 5.0.0
CodeBase: file:///D:/Games/Microsoft%20Flight%20Simulator%20X%20Addons/ModelConverterX/AssimpNet.DLL
----------------------------------------
ASToFra.XPUtils
Assembly Version: 1.0.0.0
Win32 Version: 1.7.0.0
CodeBase: file:///D:/Games/Microsoft%20Flight%20Simulator%20X%20Addons/ModelConverterX/ASToFra.XPUtils.DLL
----------------------------------------
lib3ds.Net
Assembly Version: 2.0.0.18431
Win32 Version: 2.0.0.0
CodeBase: file:///D:/Games/Microsoft%20Flight%20Simulator%20X%20Addons/ModelConverterX/lib3ds.Net.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.
 
Hi,

It seems this error is not related to the model file itself, it happens when MCX tries to search for the textures and is determining if the model is a MSFS model and what the MSFS base path is. But since you have a FSX model here, that might not even by relevant here. I'll try to reproduce the error.

Did you configure a MSFS Path in your MCX options?
 
Hi,

It seems this error is not related to the model file itself, it happens when MCX tries to search for the textures and is determining if the model is a MSFS model and what the MSFS base path is. But since you have a FSX model here, that might not even by relevant here. I'll try to reproduce the error.

Did you configure a MSFS Path in your MCX options?
Hey Arno, thanks for the help. Yes, I have configured the FSX path in MCX. Other VC files open, just this file seems to throw an error.
 
But did you also configure the MSFS path in the settings?
 
And what path did you set it to? That would help me to try to reproduce the error.
 
OK, let me see if I can reproduce the crash.
 
I see so you have FSX in D:\Games\Microsoft Flight Simulator X and MSFS in D:\Games\Microsoft Flight Simulator, since the start of those two paths is the same MCX thought you were reading a MSFS model here and got in the wrong piece of code. I'll try to make it more robust in the next release.
 
Back
Top