• 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 Error Current Dev Release 25.7.2012

hcornea

Resource contributor
Messages
2,388
Country
australia
Unhandled Exception in Current Dev Release

Hi Arno,

I have just replaced the directory with my previous (quite old) Dev Relase with the current one.

On attempting to start ModelconverterX, I get a circular Unhandled exception (the program keeps restarting, and so can't send the error to the log)

Win7 x64, 8Gb RAM, Laptop (current Gen)

Code:
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.EventLog.EventLog.eventTimer_Tick(Object sender, EventArgs e)
   at System.Windows.Forms.Timer.OnTick(EventArgs e)
   at System.Windows.Forms.Timer.TimerNativeWindow.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.5456 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Launcher_ModelConverterX
    Assembly Version: 1.0.0.0
    Win32 Version: 1.4.0.0
    CodeBase: file:///C:/ARNOTools/ModelConverterX.exe
----------------------------------------
ModelConverterX
    Assembly Version: 1.0.0.0
    Win32 Version: 1.4.0.0
    CodeBase: file:///C:/ARNOTools/ModelConverterX.DLL
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5460 (Win7SP1GDR.050727-5400)
    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.5456 (Win7SP1GDR.050727-5400)
    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.5462 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Interfaces
    Assembly Version: 1.0.0.0
    Win32 Version: 1.4.0.0
    CodeBase: file:///C:/ARNOTools/Interfaces.DLL
----------------------------------------
ObjectModel3D
    Assembly Version: 1.0.0.0
    Win32 Version: 1.4.0.0
    CodeBase: file:///C:/ARNOTools/ObjectModel3D.DLL
----------------------------------------
ObjectWriter
    Assembly Version: 1.0.0.0
    Win32 Version: 1.4.0.0
    CodeBase: file:///C:/ARNOTools/ObjectWriter.DLL
----------------------------------------
ObjectReader
    Assembly Version: 1.0.0.0
    Win32 Version: 1.4.0.0
    CodeBase: file:///C:/ARNOTools/ObjectReader.DLL
----------------------------------------
EventLog
    Assembly Version: 1.0.0.0
    Win32 Version: 1.4.0.0
 
Hmm, it is working fine here on both XP and W7 64.

The exe is dated 16/06/2012 and the dll, 24/07/2012.

This is on W7:

 
Let me check, I did not make changes to the event log recently and it seems the error comes from that part of the code.
 
Hi,

I have made a change in the initialisation order of the event log. It will be in the next development release (online in about 30 minutes). Let me know if that fixes your problems.
 
It is better in that it doesn't enter a cycle.

I still get an error dialog, but I can now send an error report, which I have done.
 
OK, I'll check. That error report contains some useful information to start searching again.
 
It is better in that it doesn't enter a cycle.

I still get an error dialog, but I can now send an error report, which I have done.

Same behaviour here. Sent the report.

For what it's worth, the machine here is a Notebook, i5@2.4GHz, 4 gig RAM, Nvidia NVS 3100m, Win7 32.

MCX is installed in a folder not within UAC restrictions and the error occurs if it's started with admin privileges as well as in the normal user context.

Cheers,
Mark
 
It is interesting that both posters having problems are running on laptops :confused:
 
Indeed.

My laptop has a hybrid Intel / Nvidia graphics setup..

Could this be related?
 
Laptop should not matter, I also use a laptop with an nvidia card and don't have the problem. It seems to be an initialization order issue. I'll try to fix it tonight, although I can't promise I can fix it at once, since I can't reproduce it here.
 
Hi,

I made a change again, hopefully this time the crash is fixed. New release should be online in about 1 hour from now. Let me know if it works.
 
Glad to hear that.

Send from my phone using Tapatalk, so excuse the short sentences and possible typos
 
Sorry for the late reply Arno.

All good here.

New interface is excellent.
 
MDX on Win 7 32

On win7 32 i have this error u can help me.

Thanks

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

************** Exception Text **************
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at CSGL12.GL.DglLinkProgram_I.Invoke(Int32 program)
at CSGL12.GL.glLinkProgram(Int32 program)
at ASToFra.ObjectRenderer.ShaderProgram.Createprogram(Int32 vertexShader, Int32 fragShader)
at ASToFra.ObjectRenderer.ShaderProgram..ctor(GL gl)
at ASToFra.ObjectRenderer.Renderer3DHandlerType.InitializeShaders()
at ASToFra.ObjectRenderer.Renderer3DHandlerType.OpenGLStarted(CSGL12Control grControl)
at CSGL12.CSGL12Control.InvokeOpenGLStarted()
at CSGL12.CSGL12Control.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.5456 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Launcher_ModelConverterX
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Users/Giovanni/Documents/ModelConverterX/ModelConverterX.exe
----------------------------------------
ModelConverterX
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Users/Giovanni/Documents/ModelConverterX/ModelConverterX.DLL
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5460 (Win7SP1GDR.050727-5400)
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.5456 (Win7SP1GDR.050727-5400)
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.5462 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Interfaces
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Users/Giovanni/Documents/ModelConverterX/Interfaces.DLL
----------------------------------------
ObjectModel3D
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Users/Giovanni/Documents/ModelConverterX/ObjectModel3D.DLL
----------------------------------------
ObjectWriter
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Users/Giovanni/Documents/ModelConverterX/ObjectWriter.DLL
----------------------------------------
ObjectReader
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Users/Giovanni/Documents/ModelConverterX/ObjectReader.DLL
----------------------------------------
EventLog
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Users/Giovanni/Documents/ModelConverterX/EventLog.DLL
----------------------------------------
ObjectRenderer
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Users/Giovanni/Documents/ModelConverterX/ObjectRenderer.DLL
----------------------------------------
CSGL12DLL
Assembly Version: 12.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/Giovanni/Documents/ModelConverterX/CSGL12DLL.DLL
----------------------------------------
ParticleEffects
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Users/Giovanni/Documents/ModelConverterX/ParticleEffects.DLL
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
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.5420 (Win7SP1.050727-5400)
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.4.0.0
CodeBase: file:///C:/Users/Giovanni/Documents/ModelConverterX/Utils.DLL
----------------------------------------
TextureObject
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Users/Giovanni/Documents/ModelConverterX/TextureObject.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,

What kind of graphics card you have? Seems to be an issue with OpenGL.
 
Hi,

From the information I can find that card supports OpenGL 1.4 or 1.5, but to run modelconverterx 1.4 you need a graphics card that supports OpenGL 2.1 or higher. So I don't think it will work on that graphics card.

I should try to give an error message about this, instead of a crash like this.
 
Bump! I am getting unhandled exception !
It gives mr when ever i try to import any model file





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 GRV11.GR.glActiveTexture(Int32 texture)
at ASToFra.ObjectRenderer.Renderer3DHandlerType.RestoreOpenGLSettingsAfterDrawingModelPart()
at ASToFra.ObjectRenderer.Renderer3DHandlerType.DrawModelPart(ModelPart mPart, RenderNodes renderNodes)
at ASToFra.ObjectRenderer.Renderer3DHandlerType.GenerateDrawingLists()
at ASToFra.ObjectRenderer.Renderer3DHandlerType.SetObjectModel(ObjectModel newObj, ObjectChangeLevel level)
at ASToFra.ObjectRenderer.Renderer3DControl.OnObjectChanged(ObjectChangeLevel level, ObjectModel obj, Object sender, String changeDescription)
at ASToFra.Interfaces.ObjectChanged.Invoke(ObjectChangeLevel level, ObjectModel obj, Object sender, String changeDescription)
at ASToFra.Interfaces.EventDistributor.RaiseObjectChanged(ObjectChangeLevel level, ObjectModel obj, Object sender, String changeDescription)
at ASToFra.Interfaces.EventDistributor.OnObjectChanged(ObjectChangeLevel level, ObjectModel obj, Object sender, String changeDescription)
at ASToFra.ModelConverterX.MainWindow.RaiseObjectChanged(ObjectChangeLevel level, ObjectModel obj, String changeDescription)
at ASToFra.ModelConverterX.MainWindow.UpdateFormAfterImport()
at ASToFra.ModelConverterX.MainWindow.bwImporter_RunWorkerCompleted(Object sender, RunWorkerCompletedEventArgs e)
at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)
at System.ComponentModel.BackgroundWorker.AsyncOperationCompleted(Object arg)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
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/Malik/Downloads/ModelConverterX_130%20(1)/ModelConverterX.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
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.5420 (Win7SP1.050727-5400)
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.5420 (Win7SP1.050727-5400)
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/Malik/Downloads/ModelConverterX_130%20(1)/ModelConverterX.DLL
----------------------------------------
Interfaces
Assembly Version: 1.0.0.0
Win32 Version: 1.3.0.0
CodeBase: file:///C:/Users/Malik/Downloads/ModelConverterX_130%20(1)/Interfaces.DLL
----------------------------------------
ObjectModel3D
Assembly Version: 1.0.0.0
Win32 Version: 1.3.0.0
CodeBase: file:///C:/Users/Malik/Downloads/ModelConverterX_130%20(1)/ObjectModel3D.DLL
----------------------------------------
ObjectWriter
Assembly Version: 1.0.0.0
Win32 Version: 1.3.0.0
CodeBase: file:///C:/Users/Malik/Downloads/ModelConverterX_130%20(1)/ObjectWriter.DLL
----------------------------------------
ObjectReader
Assembly Version: 1.0.0.0
Win32 Version: 1.3.0.0
CodeBase: file:///C:/Users/Malik/Downloads/ModelConverterX_130%20(1)/ObjectReader.DLL
----------------------------------------
EventLog
Assembly Version: 1.0.0.0
Win32 Version: 1.3.0.0
CodeBase: file:///C:/Users/Malik/Downloads/ModelConverterX_130%20(1)/EventLog.DLL
----------------------------------------
ObjectRenderer
Assembly Version: 1.0.0.0
Win32 Version: 1.3.0.0
CodeBase: file:///C:/Users/Malik/Downloads/ModelConverterX_130%20(1)/ObjectRenderer.DLL
----------------------------------------
GRV11DLL
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/Malik/Downloads/ModelConverterX_130%20(1)/GRV11DLL.DLL
----------------------------------------
ParticleEffects
Assembly Version: 1.0.0.0
Win32 Version: 1.3.0.0
CodeBase: file:///C:/Users/Malik/Downloads/ModelConverterX_130%20(1)/ParticleEffects.DLL
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
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.5420 (Win7SP1.050727-5400)
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/Malik/Downloads/ModelConverterX_130%20(1)/Utils.DLL
----------------------------------------
TextureObject
Assembly Version: 1.0.0.0
Win32 Version: 1.3.0.0
CodeBase: file:///C:/Users/Malik/Downloads/ModelConverterX_130%20(1)/TextureObject.DLL
----------------------------------------
System.Web
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
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/Malik/Downloads/ModelConverterX_130%20(1)/TextureLoader.DLL
----------------------------------------
ObjectEditor
Assembly Version: 1.0.0.0
Win32 Version: 1.3.0.0
CodeBase: file:///C:/Users/Malik/Downloads/ModelConverterX_130%20(1)/ObjectEditor.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.
 
Back
Top