Ticket #248 (closed defect: released)

Opened 7 months ago

Last modified 5 months ago

Error on maximizing units

Reported by: furrie Owned by: furrie
Priority: major Milestone: WarFoundry 0.1
Component: WarFoundry-API Version: WarFoundry 0.1b6
Keywords: Cc:
Blocking: Blocked By:

Description

When I maximizing a unit of necron warrior (see files attached) I got the following error (sorry for the dutch text in the error message, if you want I can translate it):
Zie het einde van dit bericht voor meer informatie over het aanroepen
van JIT-foutopsporing (Just In Time) in plaats van dit dialoogvenster.

************** Tekst van uitzondering **************
System.FormatException: De indeling van de invoertekenreeks is onjuist.

bij System.Text.StringBuilder.FormatError()
bij System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
bij System.String.Format(IFormatProvider provider, String format, Object[] args)
bij IBBoard.Lang.Translation.AddVariablesToTranslation(String translation, Object[] replacements)
bij IBBoard.Lang.Translation.GetTranslation(String translationID, String defaultTranslation, Object[] replacements)
bij IBBoard.WarFoundry.API.Commands.SetUnitSizeCommand.get_UndoDescription() in Y:\IBBoard.WarFoundry.API\api\Commands\SetUnitSizeCommand.cs:regel 53
bij IBBoard.WarFoundry.GUI.WinForms.FrmMain.commandStack_CommandStackUpdated()
bij IBBoard.Commands.CommandStack.DoCommandStackUpdated()
bij IBBoard.Commands.CommandStack.Execute(Command cmd)
bij IBBoard.WarFoundry.GUI.WinForms.FrmUnit.UpdateUnitSize()
bij IBBoard.WarFoundry.GUI.WinForms.FrmUnit.unitSize_Leave(Object sender, EventArgs e)
bij System.Windows.Forms.Control.OnLeave(EventArgs e)
bij System.Windows.Forms.Control.NotifyLeave()
bij System.Windows.Forms.ContainerControl.UpdateFocusedControl()

************** Geladen assembly's **************
mscorlib

Assembly-versie: 2.0.0.0
Win32-versie: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase:  file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll


WarFoundry

Assembly-versie: 0.0.1.36709
Win32-versie: 0.0.1.36709
CodeBase:  file:///C:/programma's/WarFoundry-WinForms-v0.1-beta-5/WarFoundry.exe


System.Windows.Forms

Assembly-versie: 2.0.0.0
Win32-versie: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase:  file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll


System

Assembly-versie: 2.0.0.0
Win32-versie: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase:  file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll


System.Drawing

Assembly-versie: 2.0.0.0
Win32-versie: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase:  file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll


log4net

Assembly-versie: 1.2.10.0
Win32-versie: 1.2.10.0
CodeBase:  file:///C:/programma's/WarFoundry-WinForms-v0.1-beta-5/log4net.DLL


System.Configuration

Assembly-versie: 2.0.0.0
Win32-versie: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase:  file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll


System.Xml

Assembly-versie: 2.0.0.0
Win32-versie: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase:  file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll


IBBoard

Assembly-versie: 1.0.3645.36639
Win32-versie: 1.0.3645.36639
CodeBase:  file:///C:/programma's/WarFoundry-WinForms-v0.1-beta-5/IBBoard.DLL


IBBoardWF

Assembly-versie: 1.0.0.36639
Win32-versie: 1.0.0.36639
CodeBase:  file:///C:/programma's/WarFoundry-WinForms-v0.1-beta-5/IBBoardWF.DLL


IBBoard.WarFoundry.API

Assembly-versie: 0.0.1.36640
Win32-versie: 0.0.1.36640
CodeBase:  file:///C:/programma's/WarFoundry-WinForms-v0.1-beta-5/IBBoard.WarFoundry.API.DLL


ICSharpCode.SharpZipLib

Assembly-versie: 0.85.5.452
Win32-versie: 0.85.5.452
CodeBase:  file:///C:/programma's/WarFoundry-WinForms-v0.1-beta-5/ICSharpCode.SharpZipLib.DLL


System.XML.resources

Assembly-versie: 2.0.0.0
Win32-versie: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase:  file:///C:/Windows/assembly/GAC_MSIL/System.Xml.resources/2.0.0.0_nl_b77a5c561934e089/System.Xml.resources.dll


mscorlib.resources

Assembly-versie: 2.0.0.0
Win32-versie: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase:  file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll


System.Data

Assembly-versie: 2.0.0.0
Win32-versie: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase:  file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll


System.Windows.Forms.resources

Assembly-versie: 2.0.0.0
Win32-versie: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase:  file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_nl_b77a5c561934e089/System.Windows.Forms.resources.dll


************** JIT-foutopsporing **************
Als u JIT-foutopsporing wilt inschakelen, moet in het configuratiebestand voor deze
toepassing of computer (machine.config) de waarde
jitDebugging in het gedeelte system.windows.forms zijn ingesteld.
De toepassing moet ook zijn gecompileerd terwijl foutopsporing
was ingeschakeld.

Bijvoorbeeld:

<configuration>

<system.windows.forms jitDebugging="true" />

</configuration>

Wanneer JIT-foutopsporing is ingeschakeld, worden onverwerkte uitzonderingen
naar het JIT-foutopsporingsprogramma gestuurd dat op de computer is geregistreerd
en worden niet door dit dialoogvenster verwerkt.

Attachments

wh40k - Necrons.zip Download (1.8 KB) - added by furrie 7 months ago.
the necron race file
wh40k.system Download (504 bytes) - added by furrie 7 months ago.
The game system file used (from the yahoo group)

Change History

Changed 7 months ago by furrie

the necron race file

Changed 7 months ago by furrie

The game system file used (from the yahoo group)

Changed 7 months ago by furrie

*note*

I can still continue, ubt it is annoying

Changed 7 months ago by ibboard

  • owner set to furrie
  • status changed from new to needinfo_new
  • version changed from Unknown or N/A to WarFoundry 0.1b6
  • component changed from General/Unknown to WarFoundry-API

That seems to translate as "The format of the input string is incorrect." for the exception message. As I mentioned in the thread, the main thing that I can think of is that it is trying to handle a "byte" length number (-127 to 128) and anything beyond that causes an overflow. The only other cause would be an incorrect translation string, but I'd expect that to always error rather than just on some values.

What language were you using for the UI? And what size unit cause the error? Is there a specific limit at which it does and doesn't occur?

Changed 7 months ago by furrie

After some more testing, I saw that it happens every time I increase a unit (also on other race files). I'm using the dutch translation (nl)

Changed 7 months ago by ibboard

  • status changed from needinfo_new to closed
  • resolution set to fixed

(In r481) Fixes #248: Error on maximizing units

  • Fix translation file (missing "}" in translation for command)

Changed 5 months ago by ibboard

  • resolution changed from fixed to released

Mark fix as released under a previous version

Note: See TracTickets for help on using tickets.