View Issue Details

IDProjectCategoryLast Update
0001686AI War 1 / ClassicBug - OtherJan 3, 2011 11:44 am
Reportershugyosha Assigned ToChris_McElligottPark  
Status closedResolutionunable to reproduce 
Product Version4.042 
Summary0001686: Huge amount of "UnhandledError"
DescriptionGot huge amounts of "Unhandled Error" messages every game I started. I tried different maps, and set-ups but I couldn't find a setting without errors. After restart it worked.

I also have a savegame but I don't know how to attach several files with Mantis.
TagsNo tags attached.
Internal Weight

Activities

shugyosha

Dec 1, 2010 3:19 pm

reporter  

UnhandledErrors.txt (1,836,692 bytes)

keith.lamothe

Dec 1, 2010 3:23 pm

administrator   ~0004804

Thank you for the log, those are interesting messages but fall enough into the "that really, really shouldn't be possible" category that there's probably a deeper cause.

You can attach another file using the Upload File function; I don't think mantis has a multiple-at-once option but the add-one function can be used multiple times in a row.

Do you have a save where loading it reproduces the problem?

shugyosha

Dec 1, 2010 3:28 pm

reporter  

ErrorsReportedByEngine.txt (1,694 bytes)   
11/25/2010 6:22:05 AM (4.021)
-----------------------------------Exception-----------------------------------Log String: Win32Exception: Das System kann die angegebene Datei nicht finden.

Stack Trace: System.Diagnostics.Process.Start_shell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process)
System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process)
System.Diagnostics.Process.Start (System.Diagnostics.ProcessStartInfo startInfo)
System.Diagnostics.Process.Start (System.String fileName)
TutorialsWindow+TutorialItem.Process ()
TutorialsWindow.<SubclassInit>m__186 ()
ArcenButton.Render (Rect ParentBounds, Vector2 EffectiveScrollPosition, Vector3 MousePositionFromTopLeft)
AbstractArcenWindow.WindowFunctionCall (Int32 WindowID)
UnityEngine.GUI+_Window.Do ()
UnityEngine.GUI.BeginWindows (UnityEngine.Event e, Int32 skinMode, UnityEngine.IDList idlist, Int32 editorWindowInstanceID)

12/1/2010 6:37:23 PM (4.042)
-----------------------------------
ErrorsReportedByEngine-----------------------------------
12/1/2010 6:37:23 PM (4.042)
-----------------------------------Exception-----------------------------------Log String: IndexOutOfRangeException: Array index is out of range.
Stack Trace: LobbyPlayer.HandleClick_StartGame ()
LobbyPlayer.<SubclassInit>m__14E ()
ArcenButton.Render (Rect ParentBounds, Vector2 EffectiveScrollPosition, Vector3 MousePositionFromTopLeft)
AbstractArcenWindow.WindowFunctionCall (Int32 WindowID)
UnityEngine.GUI+_Window.Do ()
UnityEngine.GUI.BeginWindows (UnityEngine.Event e, Int32 skinMode, UnityEngine.IDList idlist, Int32 editorWindowInstanceID)



ErrorsReportedByEngine.txt (1,694 bytes)   

shugyosha

Dec 1, 2010 3:31 pm

reporter  

unhandled errors.sav (124,336 bytes)

shugyosha

Dec 1, 2010 3:31 pm

reporter   ~0004805

I found another text file that was last added by the time I tried to find if any setup triggers the messages. See the ErrorsReportedByEngine.txt

I also uploaded the save file but it is not reproduceable for me.

keith.lamothe

Dec 1, 2010 3:35 pm

administrator   ~0004807

Hmm, ok.

Yea, I don't think there's going to be much I can do with it at this point, it sounds like something is getting hosed during initialization and causing null-ref and index-out-of-bounds errors where there simply shouldn't be any.

keith.lamothe

Dec 1, 2010 3:35 pm

administrator   ~0004808

But thanks for letting us know :)

TechSY730

Dec 27, 2010 9:04 pm

reporter   ~0007123

Last edited: Dec 27, 2010 9:05 pm

Keith said "that really, really shouldn't be possible"
Just as a joke, you should put in the startup routine something like
if(2+2 != 4)
{
   //Replace ReportFatalError with whatever exception handling and logging system AI war uses
   ReportFatalError("Math itself is broken!!!");
}

And see if that ever turns up. :)

keith.lamothe

Dec 27, 2010 10:26 pm

administrator   ~0007131

Well, actually, we can't use "float" or "double" variables for simulation-affecting stuff for precisely the reason that 2.0f + 2.0f is not guarunteed to return exactly the same value on all platforms.

It's close. Very, very close. But not exact. So we have to use fixed-point math (a 64-bit int shifted 12 bits to the left so that each "whole number" is subdivided into 4096 parts).

Issue History

Date Modified Username Field Change
Dec 1, 2010 3:19 pm shugyosha New Issue
Dec 1, 2010 3:19 pm shugyosha File Added: UnhandledErrors.txt
Dec 1, 2010 3:23 pm keith.lamothe Note Added: 0004804
Dec 1, 2010 3:28 pm shugyosha File Added: ErrorsReportedByEngine.txt
Dec 1, 2010 3:31 pm shugyosha File Added: unhandled errors.sav
Dec 1, 2010 3:31 pm shugyosha Note Added: 0004805
Dec 1, 2010 3:35 pm keith.lamothe Note Added: 0004807
Dec 1, 2010 3:35 pm keith.lamothe Note Added: 0004808
Dec 27, 2010 8:59 pm Chris_McElligottPark Status new => resolved
Dec 27, 2010 8:59 pm Chris_McElligottPark Resolution open => unable to reproduce
Dec 27, 2010 8:59 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
Dec 27, 2010 9:04 pm TechSY730 Note Added: 0007123
Dec 27, 2010 9:05 pm TechSY730 Note Edited: 0007123
Dec 27, 2010 9:05 pm TechSY730 Note Edited: 0007123
Dec 27, 2010 10:26 pm keith.lamothe Note Added: 0007131
Jan 3, 2011 11:44 am Chris_McElligottPark Status resolved => closed