[1.06.03] Crash when selecting HQ posture

Moderator: Vic

Post Reply
biggoofy64
Posts: 9
Joined: Mon Nov 09, 2020 1:09 am

[1.06.03] Crash when selecting HQ posture

Post by biggoofy64 »

The game crashed when trying to select a posture for a HQ. I selected the posture (Defense), then selected the Target tab. The crash happened immediately. I believe the display froze before moving to the target tab. The error did not reoccur when I loaded from the latest autosave. However, when the error occurred I had played most of the turn already, including attacking with the unit in question. On the second attempt, I changed the posture before doing anything else. Below is the truncated copied text from the error message; something in the full message is causing the forum to block my post since my account is new. I can provide the full message and the latest autosave.

Code: Select all

See the end of this message for details on invoking 
 just-in-time (JIT) debugging instead of this dialog box.
 
 ************** Exception Text **************
 System.IndexOutOfRangeException: Index was outside the bounds of the array.
    at WindowsApplication1.CustomBitmapClass.DrawUnitBig(Int32 nr, Boolean forcehighlight, Graphics toG, Int32 tx, Int32 ty, Boolean ShowAttacker, Int32 OverruleHis, Int32 OverrulePower, Int32 OverruleRegime, Boolean FullRecon, Boolean mostlyHidden) in G:\VR\VRDevelopment\WindowsApplication1\GUI\GraphicsAndSounds\Se1_CustomBitmapClass.vb:line 5557
    at WindowsApplication1.UDSPartClass.DrawElement(Int32 i, Graphics& g, Boolean firstCall, Boolean high) in G:\VR\VRDevelopment\WindowsApplication1\GUI\Subparts\NewSubparts\UDSPartClass.vb:line 995
    at WindowsApplication1.UDSPartClass.MakeBitmap() in G:\VR\VRDevelopment\WindowsApplication1\GUI\Subparts\NewSubparts\UDSPartClass.vb:line 714
    at WindowsApplication1.UDSPartClass..ctor(GameClass tgame, Int32 twidth, Int32 theight, String tTexty, Bitmap& tbackbitmap, Int32 bbx, Int32 bby, Boolean talwaysBlockScrollBar, Boolean tJustCheckHeight, Boolean tAllGray, Boolean tAlwaysShowBackground, Boolean tNoBackground, Boolean noBitmapDraw) in G:\VR\VRDevelopment\WindowsApplication1\GUI\Subparts\NewSubparts\UDSPartClass.vb:line 120
    at WindowsApplication1.TabCardsWindowClass2.dostuff() in G:\VR\VRDevelopment\WindowsApplication1\GUI\Windows\Se1_Windows\Se1_TabCardsWindow2.vb:line 2036
    at WindowsApplication1.TabCardsWindowClass2.HandleMouseClick(Int32 x, Int32 y, Int32 b) in G:\VR\VRDevelopment\WindowsApplication1\GUI\Windows\Se1_Windows\Se1_TabCardsWindow2.vb:line 2882
    at WindowsApplication1.PlayScreenClass2.HandleMouseClick(Int32 x, Int32 y, Int32 b) in G:\VR\VRDevelopment\WindowsApplication1\GUI\Screens\NewScreens\PlayScreenClass2.vb:line 430
    at WindowsApplication1.Form1.Form1_Mousedown(Object sender, MouseEventArgs e) in G:\VR\VRDevelopment\WindowsApplication1\Form1.vb:line 1417
    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.Form.WndProc(Message& m)
    at WindowsApplication1.ImmoveableForm.WndProc(Message& m) in G:\VR\VRDevelopment\WindowsApplication1\ImmoveableForm.vb:line 67
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
 
User avatar
Vic
Posts: 9955
Joined: Mon May 17, 2004 2:17 pm
Contact:

RE: [1.06.03] Crash when selecting HQ posture

Post by Vic »

Thanks for posting! especially for the bug log. Adding some code to prevent this from crashing. If you can find a way to repeat the error from a save file please send it over to vic@vrdesigns.net
Visit www.vrdesigns.net for the latest news, polls, screenshots and blogs on Shadow Empire, Decisive Campaigns and Advanced Tactics
User avatar
Vic
Posts: 9955
Joined: Mon May 17, 2004 2:17 pm
Contact:

RE: [1.06.03] Crash when selecting HQ posture

Post by Vic »

In retrospect do send me over the savefile to vic@vrdesigns.net , but please do tell me which unit it concerned and whom you attacked with it.
Much appreciated!

best,
vic
Visit www.vrdesigns.net for the latest news, polls, screenshots and blogs on Shadow Empire, Decisive Campaigns and Advanced Tactics
biggoofy64
Posts: 9
Joined: Mon Nov 09, 2020 1:09 am

RE: [1.06.03] Crash when selecting HQ posture

Post by biggoofy64 »

I was able to recreate this crash this morning. I sent you an email with the full text of the error and the autosave. I also included the steps leading up to the crash. I'll put them here as well.

Ended turn
Handled all decisions
Changed posture successfully on 2nd Light Infantry Brigade to Infiltration.
Attacked Darwin in the South.
Declared war on Oortcon.
Attacked 2 Oortcon positions with 1st Light Infantry Brigade and 4th Light Infantry Brigade.
Tried to change 1st Light Infantry Brigade's posture.
Opened Stratagems, selected Defense.
Clicked Target. The game crashed before the Target window was displayed.
User avatar
Vic
Posts: 9955
Joined: Mon May 17, 2004 2:17 pm
Contact:

RE: [1.06.03] Crash when selecting HQ posture

Post by Vic »

Big big thanks.
Figured out what must have happened to lead to this crash due to this save.
Will be prevented in upcoming patch.

best wishes,
Vic
Visit www.vrdesigns.net for the latest news, polls, screenshots and blogs on Shadow Empire, Decisive Campaigns and Advanced Tactics
biggoofy64
Posts: 9
Joined: Mon Nov 09, 2020 1:09 am

RE: [1.06.03] Crash when selecting HQ posture

Post by biggoofy64 »

Glad I was able to help!
Post Reply

Return to “Tech Support”