Opened 9 years ago

Closed 9 years ago

#322 closed defect (fixed)

WarFoundry "Forge" crashes when opening system files

Reported by: Henri Owned by: Tsudico
Priority: major Milestone:
Component: WarFoundry Forge Version: Trunk
Keywords: Cc:
Blocked By: Blocking:

Description

I can't get my build to open system files. I get different errors depending on the particulars of the system file.
SampleGamesystem has nothing special gives this:

'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_64\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\9.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\9.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\9.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Users\Henri\Downloads\tortoise\WarfoundryForge\bin\Debug\WarFoundryForge.vshost.exe', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_64\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Deployment\2.0.0.0__b03f5f7f11d50a3a\System.Deployment.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The thread 0x1088 has exited with code 0 (0x0).
The thread 0xe4 has exited with code 0 (0x0).
'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Users\Henri\Downloads\tortoise\WarfoundryForge\bin\Debug\WarFoundryForge.exe', Symbols loaded.
'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Users\Henri\Downloads\tortoise\WarfoundryForge\bin\Debug\log4net.dll'
'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
INFO  [11:12:46]: FrmMain.Main() - Line: 76 - Starting WarFoundry Forge WinForms
'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Users\Henri\Downloads\tortoise\WarfoundryForge\bin\Debug\IBBoard.dll', Symbols loaded.
'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Users\Henri\Downloads\tortoise\WarfoundryForge\bin\Debug\IBBoard.WarFoundry.API.dll', Symbols loaded.
'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Users\Henri\Downloads\tortoise\WarfoundryForge\bin\Debug\ICSharpCode.SharpZipLib.dll'
'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Users\Henri\Downloads\tortoise\WarfoundryForge\bin\Debug\IBBoardWF.dll', Symbols loaded.
FATAL [11:12:53]: FrmMain.Main() - Line: 78 - System.FormatException: Attribute 'defaultArmySize' of system with ID wh was not a valid number
   at IBBoard.Xml.XmlTools.GetIntValueFromAttribute(XmlElement elem, String attributeName) in C:\Users\Henri\Downloads\tortoise\warfoundry\IBBoard\Xml\XmlTools.cs:line 68
   at IBBoard.WarFoundry.API.Factories.Xml.WarFoundryXmlGameSystemFactory.CreateSystemFromElement(ZipFile file, XmlElement elem) in C:\Users\Henri\Downloads\tortoise\warfoundry\IBBoard.WarFoundry.API\api\Factories\Xml\WarFoundryXmlGameSystemFactory.cs:line 43
   at IBBoard.WarFoundry.API.Factories.Xml.WarFoundryXmlFactory.CreateGameSystemFromStream(ZipFile file, Stream dataStream) in C:\Users\Henri\Downloads\tortoise\warfoundry\IBBoard.WarFoundry.API\api\Factories\Xml\WarFoundryXmlFactory.cs:line 114
   at IBBoard.WarFoundry.API.Factories.AbstractNativeWarFoundryFactory.CreateGameSystemFromFile(ZipFile file) in C:\Users\Henri\Downloads\tortoise\warfoundry\IBBoard.WarFoundry.API\api\Factories\AbstA first chance exception of type 'System.FormatException' occurred in mscorlib.dll
A first chance exception of type 'System.FormatException' occurred in IBBoard.dll
ractNativeWarFoundryFactory.cs:line 151
   at IBBoard.WarFoundry.API.Factories.AbstractNativeWarFoundryFactory.DoCreateObjectsFromFile(ZipFile file) in C:\Users\Henri\Downloads\tortoise\warfoundry\IBBoard.WarFoundry.API\api\Factories\AbstractNativeWarFoundryFactory.cs:line 86
   at IBBoard.WarFoundry.API.Factories.AbstractWarFoundryFactory`1.CreateObjectsFromFile(FileInfo file) in C:\Users\Henri\Downloads\tortoise\warfoundry\IBBoard.WarFoundry.API\api\Factories\AbstractWarFoundryFactory.cs:line 136
   at IBBoard.WarFoundry.API.AbstractWarFoundryLoader.LoadFileWithNativeFactories(FileInfo file, IWarFoundryFactory& loadFactory) in C:\Users\Henri\Downloads\tortoise\warfoundry\IBBoard.WarFoundry.API\api\AbstractWarFoundryLoader.cs:line 425
   at IBBoard.WarFoundry.API.AbstractWarFoundryLoader.LoadFile(FileInfo file) in C:\Users\Henri\Downloads\tortoise\warfoundry\IBBoard.WarFoundry.API\api\AbstractWarFoundryLoader.cs:line 362
   at IBBoard.WarFoundry.Forge.WinForms.FrmMain.OpenFile() in C:\Users\Henri\Downloads\tortoise\WarfoundryForge\FrmMain.cs:line 339
   at IBBoard.WarFoundry.Forge.WinForms.FrmMain.miOpenSystem_Click(Object sender, EventArgs e) in C:\Users\Henri\Downloads\tortoise\WarfoundryForge\FrmMain.cs:line 309
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at IBBoard.WarFoundry.Forge.WinForms.FrmMain.Main(String[] args) in C:\Users\Henri\Downloads\tortoise\WarfoundryForge\FrmMain.cs:line 78
The thread 0x12c8 has exited with code 0 (0x0).
The thread 0x278 has exited with code 0 (0x0).
The program '[3948] WarFoundryForge.vshost.exe: Managed' has exited with code 0 (0x0).

Legends of the Rising Sun has the points name and givers the same result as above

Warhammer 7th ed has a defaultArmySize and gives this

'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_64\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\9.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\9.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\9.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Users\Henri\Downloads\tortoise\WarfoundryForge\bin\Debug\WarFoundryForge.vshost.exe', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_64\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Deployment\2.0.0.0__b03f5f7f11d50a3a\System.Deployment.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The thread 0x10dc has exited with code 0 (0x0).
The thread 0x9c has exited with code 0 (0x0).
'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Users\Henri\Downloads\tortoise\WarfoundryForge\bin\Debug\WarFoundryForge.exe', Symbols loaded.
'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Users\Henri\Downloads\tortoise\WarfoundryForge\bin\Debug\log4net.dll'
INFO  [12:12:21]: FrmMain.Main() - Line: 76 - Starting WarFoundry Forge WinForms
'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Users\Henri\Downloads\tortoise\WarfoundryForge\bin\Debug\IBBoard.dll', Symbols loaded.
'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Users\Henri\Downloads\tortoise\WarfoundryForge\bin\Debug\IBBoard.WarFoundry.API.dll', Symbols loaded.
'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Users\Henri\Downloads\tortoise\WarfoundryForge\bin\Debug\ICSharpCode.SharpZipLib.dll'
'WarFoundryForge.vshost.exe' (Managed): Loaded 'C:\Users\Henri\Downloads\tortoise\WarfoundryForge\bin\Debug\IBBoardWF.dll', Symbols loaded.
FATAL [12:12:28]: FrmMain.Main() - Line: 78 - System.NullReferenceException: Object reference not set to an instance of an object.
   at IBBoard.WarFoundry.API.DefaultWarFoundryLoader.DoStoreGameSystem(GameSystem system) in C:\Users\Henri\Downloads\tortoise\warfoundry\IBBoard.WarFoundry.API\api\DefaultWarFoundryLoader.cs:line 37
   at IBBoard.WarFoundry.API.AbstractWarFoundryLoader.StoreGameSystem(GameSystem system) in C:\Users\Henri\Downloads\tortoise\warfoundry\IBBoard.WarFoundry.API\api\AbstractWarFoundryLoader.cs:line 483
   at IBBoard.WarFoundry.API.AbstractWarFoundryLoader.StoreObjects(ICollection`1 loadedObjects) in C:\Users\Henri\Downloads\tortoise\warfoundry\IBBoard.WarFoundry.API\api\AbstractWarFoundryLoader.cs:line 460
   at IBBoard.WarFoundry.API.AbstractWarFoundryLoader.AddLoadedObjects(ICollection`1 loadedObjs, IWarFoundryFactory factory) in C:\Users\Henri\Downloads\tortoise\warfoundry\IBBoard.WarFoundry.API\api\AbstractWarFoundryLoader.cs:line 451
   at IBBoard.WarFoundry.API.AbstractWarA first chance exception of type 'System.NullReferenceException' occurred in IBBoard.WarFoundry.API.dll
FoundryLoader.LoadFile(FileInfo file) in C:\Users\Henri\Downloads\tortoise\warfoundry\IBBoard.WarFoundry.API\api\AbstractWarFoundryLoader.cs:line 372
   at IBBoard.WarFoundry.Forge.WinForms.FrmMain.OpenFile() in C:\Users\Henri\Downloads\tortoise\WarfoundryForge\FrmMain.cs:line 339
   at IBBoard.WarFoundry.Forge.WinForms.FrmMain.miOpenSystem_Click(Object sender, EventArgs e) in C:\Users\Henri\Downloads\tortoise\WarfoundryForge\FrmMain.cs:line 309
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at IBBoard.WarFoundry.Forge.WinForms.FrmMain.Main(String[] args) in C:\Users\Henri\Downloads\tortoise\WarfoundryForge\FrmMain.cs:line 78
The thread 0x111c has exited with code 0 (0x0).
The thread 0x590 has exited with code 0 (0x0).
The program '[3872] WarFoundryForge.vshost.exe: Managed' has exited with code 0 (0x0).

Attachments (3)

LotRS - Legends of the Rising Sun.system (459 bytes) - added by Henri 9 years ago.
WH7 - Warhammer 7th edition 0.3.system (494 bytes) - added by Henri 9 years ago.
SampleSystem.system (468 bytes) - added by Henri 9 years ago.

Download all attachments as: .zip

Change History (8)

Changed 9 years ago by Henri

Changed 9 years ago by Henri

Changed 9 years ago by Henri

Attachment: SampleSystem.system added

comment:1 Changed 9 years ago by ibboard

Do these files error when loaded in WarFoundry? It sounds like the schemas might be wrong in the Forge build or something.

comment:2 in reply to:  1 Changed 9 years ago by Tsudico

Replying to ibboard:

Do these files error when loaded in WarFoundry? It sounds like the schemas might be wrong in the Forge build or something.

You are correct. I just checked those system files on my local copy of Forge and had similar issues. Replacing the schema files corrected the problem. Now I just need to update the project to pull the schema files automatically from the API. Committing change.

Last edited 9 years ago by Tsudico (previous) (diff)

comment:3 Changed 9 years ago by Tsudico

Committed changeset 7:d4c03cc5bfb7

Last edited 9 years ago by Tsudico (previous) (diff)

comment:4 Changed 9 years ago by Tsudico

Owner: set to Tsudico
Status: newaccepted

comment:5 Changed 9 years ago by Tsudico

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.