kingcortez905 / chummer5

Automatically exported from code.google.com/p/chummer5
0 stars 0 forks source link

System.ArgumentNullException when creating character (Linux/Mono) #48

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create new character
2. Choose character priorities
3. Press "OK"

What is the expected output? What do you see instead?
Expected output would be the newly generated character. Instead chummer5 throws 
a System.ArgumentNullException and hangs.

What version of the product are you using? On what operating system?
0.0.5.139 on Archlinux. I tested the downloadable version and a self-built 
version compiled with xbuild. Tested with mono 4.0.1 and wine-1.7.43.

Please provide any additional information below.
$ mono Chummer5.exe 
System.ArgumentNullException: Argument cannot be null.
Parameter name: sourceToolStrip
  at System.Windows.Forms.ToolStripManager.RevertMerge (System.Windows.Forms.ToolStrip targetToolStrip, System.Windows.Forms.ToolStrip sourceToolStrip) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ToolStripManager.RevertMerge (System.Windows.Forms.ToolStrip targetToolStrip) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ToolStripManager.RevertMerge (System.String targetName) [0x00000] in <filename unknown>:0 
  at Chummer.frmCreate.frmCreate_Activated (System.Object sender, System.EventArgs e) [0x00000] in <filename unknown>:0 
  at Chummer.frmCreate.frmCreate_Activated (System.Object sender, System.EventArgs e) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Form.OnActivated (System.EventArgs e) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Form.OnActivatedInternal () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form:OnActivatedInternal ()
  at System.Windows.Forms.MdiWindowManager.RaiseActivated () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Form.CreateHandle () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control.CreateControl () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control.SetVisibleCore (Boolean value) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Form.SetVisibleCore (Boolean value) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control.set_Visible (Boolean value) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control.Show () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:Show ()
  at Chummer.frmMain.ShowNewForm (System.Object sender, System.EventArgs e) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ToolStripItem.OnClick (System.EventArgs e) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ToolStripMenuItem.OnClick (System.EventArgs e) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ToolStripMenuItem.HandleClick (Int32 mouse_clicks, System.EventArgs e) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ToolStripItem.FireEvent (System.EventArgs e, ToolStripItemEventType met) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.ToolStripItem:FireEvent (System.EventArgs,System.Windows.Forms.ToolStripItemEventType)
  at System.Windows.Forms.ToolStrip.OnMouseUp (System.Windows.Forms.MouseEventArgs mea) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ToolStripDropDown.OnMouseUp (System.Windows.Forms.MouseEventArgs mea) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ToolStrip.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ToolStripDropDown.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000] in <filename unknown>:0 
System.ArgumentNullException: Argument cannot be null.
Parameter name: sourceToolStrip
  at System.Windows.Forms.ToolStripManager.RevertMerge (System.Windows.Forms.ToolStrip targetToolStrip, System.Windows.Forms.ToolStrip sourceToolStrip) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ToolStripManager.RevertMerge (System.Windows.Forms.ToolStrip targetToolStrip) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ToolStripManager.RevertMerge (System.String targetName) [0x00000] in <filename unknown>:0 
  at Chummer.frmCreate.frmCreate_FormClosing (System.Object sender, System.Windows.Forms.FormClosingEventArgs e) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Form.OnFormClosing (System.Windows.Forms.FormClosingEventArgs e) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Form.FireClosingEvents (CloseReason reason, Boolean cancel) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form:FireClosingEvents (System.Windows.Forms.CloseReason,bool)
  at System.Windows.Forms.Form.WmClose (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Form.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000] in <filename unknown>:0

Original issue reported on code.google.com by 0xb4dc...@gmail.com on 26 May 2015 at 11:12

GoogleCodeExporter commented 9 years ago
Can be worked around by uncommenting all calls to ToolStripManager.RevertMerge 
in frmCreate.cs

Original comment by 0xb4dc...@gmail.com on 9 Jun 2015 at 10:07