Unhandled Exception Error Current Dev Release 25.7.2012

hcornea

Resource contributor
#1
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
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#4
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.
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#5
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.
 

hcornea

Resource contributor
#6
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.
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#7
OK, I'll check. That error report contains some useful information to start searching again.
 
#8
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
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#11
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.
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#12
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.
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#14
Glad to hear that.

Send from my phone using Tapatalk, so excuse the short sentences and possible typos
 
#16
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.
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#17
Hi,

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

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#19
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.
 
#20
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.
 
Top