Page 1 of 1

Appli crashed: Unhandled Exception

Posted: Wed Oct 31, 2018 4:13 pm
by nukkxx5058
Hi, I'm having this crash quite often when looking at the detailed stats of an unit.

Is this a known issue ? Any fix ?

Thank you

Image

RE: Appli crashed: Unhandled Exception

Posted: Wed Oct 31, 2018 4:15 pm
by nukkxx5058
And here are the details :
----
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 WindowsApplication1.SFWindowClass.DoStuff()
at WindowsApplication1.SFWindowClass.DoRefresh()
at WindowsApplication1.SFWindowClass.HandleMouseClick(Int32 x, Int32 y, Int32 b)
at WindowsApplication1.MessagePopUpScreenClass.HandleMouseClick(Int32 x, Int32 y, Int32 b)
at WindowsApplication1.Form1.Form1_Mousedown(Object sender, MouseEventArgs e)
at System.Windows.Forms.Control.OnMouseDown(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.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.8798 (QFE.050727-8700)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
WindowsApplication1
Assembly Version: 1.0.6646.29399
Win32 Version: 1.0.6646.29399
CodeBase: file:///E:/Program%20Files/Steam/steamapps/common/Advanced%20Tactics%20Gold/AdvancedTacticsGold.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5491 (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.8791 (QFE.050727-8700)
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.5495 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.5483 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
irrKlang.NET
Assembly Version: 1.3.0.0
Win32 Version: 1, 1, 0, 0
CodeBase: file:///E:/Program%20Files/Steam/steamapps/common/Advanced%20Tactics%20Gold/irrKlang.NET.DLL
----------------------------------------
ICSharpCode.SharpZipLib
Assembly Version: 0.84.0.0
Win32 Version: 0.84.0.0
CodeBase: file:///E:/Program%20Files/Steam/steamapps/common/Advanced%20Tactics%20Gold/ICSharpCode.SharpZipLib.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.



RE: Appli crashed: Unhandled Exception

Posted: Sun Nov 04, 2018 7:21 am
by Vic
Hi,

Could not repeat this, but...

Whats your ATG version?

Is this in a specific scenario or everywhere? If only in a specific scenario, in which one?

Best wishes,
Vic

RE: Appli crashed: Unhandled Exception

Posted: Sun Nov 04, 2018 7:55 am
by nukkxx5058
ORIGINAL: Vic

Hi,

Could not repeat this, but...

Whats your ATG version?

Is this in a specific scenario or everywhere? If only in a specific scenario, in which one?

Best wishes,
Vic

Hi, I'm running Steam's version.

The crash is not in all scenarios. For example it's working OK in GD38.

The crash was in Russia41 (in \Classic WWW2\). I can replicate it each time I click on combat stats.

I just tried another scenario "North Africa" in the same directory and it's the same.

And same in "training1" scenraio.

So I guess it's quite often ...

RE: Appli crashed: Unhandled Exception

Posted: Thu Nov 08, 2018 10:11 pm
by MC456
Just want to chime in and say there are others having the same issue. Another user and I posted our log on the Steam discussion forums. As I said in the Steam thread:

some scenarios seem to work, while others crash instantly when clicking the Combat Stats button. I just tested out the CLASSIC_WW2\netherlands1940 scenario and it seems to work fine. Every other scenario in that folder seems to crash though.

I also had the same issue with a lot of custom scenarios from the scenario bank website.

More details:
I'm running Windows 8.1, 64bit OS. Only recently reinstalled on Steam hoping it would fix the problem (bought a key a long time ago), but it persisted.

Thanks for any help.

RE: Appli crashed: Unhandled Exception

Posted: Fri Nov 09, 2018 1:04 am
by ernieschwitz
Bombur and I had this happen in one of the first scenarios we made. It turned out that giving 0 HP to a SFT will cause something like this. It could be that it is the same thing in these cases.

RE: Appli crashed: Unhandled Exception

Posted: Fri Nov 09, 2018 2:30 am
by MC456
Well hopefully Vic can think of a way to fix this. Love the game and really hope to play some of the custom scenarios others have created but most of them seem to cause this crash.

RE: Appli crashed: Unhandled Exception

Posted: Mon Nov 12, 2018 2:34 pm
by Vic
Yeah I guess is its about time for a new Private Beta.

Thanks for reporting this. I confirmed the bug and I'll get on it.

Best wishes,
Vic

RE: Appli crashed: Unhandled Exception

Posted: Tue Nov 13, 2018 1:09 am
by MC456
Glad to hear. Thanks !

RE: Appli crashed: Unhandled Exception

Posted: Thu Nov 15, 2018 3:05 pm
by Vic
Posted private beta 2.28 which should among others solve this issue.

See the main forum for the download link.

Thanks for the feedback!

best wishes,
Vic

RE: Appli crashed: Unhandled Exception

Posted: Thu Nov 15, 2018 3:09 pm
by nukkxx5058
Thanks Vic ! Will give it a try. Will this patch affect current pbem games ?

RE: Appli crashed: Unhandled Exception

Posted: Thu Nov 15, 2018 3:16 pm
by Vic
All the patches after the official 2.27g should be completely compatible.

Worst thing that might happen is a version difference message during PBEM.

best wishes,
Vic

RE: Appli crashed: Unhandled Exception

Posted: Thu Nov 15, 2018 3:47 pm
by nukkxx5058
Thanks ! :-)

RE: Appli crashed: Unhandled Exception

Posted: Thu Nov 15, 2018 8:28 pm
by MC456
Hey Vic,

My game is crashing on startup now. Is it because I have it installed on Steam? I reversed it by copying over the original .exe again for now.

The forum rules aren't letting me post the error log here though. It's saying: "You are not allowed to post links, emails or phone numbers for 7 days from the date of your tenth post." -- Do you want me to PM it?

RE: Appli crashed: Unhandled Exception

Posted: Thu Nov 15, 2018 9:51 pm
by ernieschwitz
In general these version that Vic is posting for testing are not for Steam users. So it was a good thing you saved your exe file. I imagine that this is because the process of updating on steam is more complex, but I don't know for sure.

RE: Appli crashed: Unhandled Exception

Posted: Fri Nov 16, 2018 5:20 pm
by MC456
I figured it was probably due to Steam. Hopefully I can give feedback once Vic pushes the release to the Steam version.

It's funny because I had bought ATG a long time ago and had been playing the non-steam version. Once I discovered this error I thought maybe registering my key on Steam would fix it, but nope lol

Not a huge deal. I am a patient guy and still having tons of fun with the game regardless.