Pages: 1
Posted on 12-21-11, 03:04 pm
Super Mario
( ͡° ͜ʖ ͡°)

Karma: 9979
Posts: 1314/4456
Since: 06-08-11
It seems to be related to the tab controls. If you select tabs, select other objects, do some other things, you can easily get it to crash.

this SHOULD be fixed because I can't use NSMBe on Linux!!
 Piranhaplant, do you have any info on why this might happen?

System.ArgumentOutOfRangeException: ControlCollection does not have that many controls Parameter name: index 0 at System.Windows.Forms.Control+ControlCollection.get_Item (Int32 index) [0x00000] in <filename unknown>:0 at System.Windows.Forms.TabControl.GetTab (Int32 index) [0x00000] in <filename unknown>:0 at System.Windows.Forms.TabControl.GetTabRect (Int32 index) [0x00000] in <filename unknown>:0 at System.Windows.Forms.TabControl.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 ApplicationExitCall System.ArgumentOutOfRangeException: ControlCollection does not have that many controls Parameter name: index 0 at System.Windows.Forms.Control+ControlCollection.get_Item (Int32 index) [0x00000] in <filename unknown>:0 at System.Windows.Forms.TabControl.GetTab (Int32 index) [0x00000] in <filename unknown>:0 at (wrapper remoting-invoke-with-check) System.Windows.Forms.TabControl:GetTab (int) at System.Windows.Forms.TabControl+TabPageCollection.get_Item (Int32 index) [0x00000] in <filename unknown>:0 at System.Windows.Forms.TabControl.get_SelectedTab () [0x00000] in <filename unknown>:0 at System.Windows.Forms.TabControl.OnLeave (System.EventArgs e) [0x00000] in <filename unknown>:0 at System.Windows.Forms.Control.FireLeave () [0x00000] in <filename unknown>:0 at System.Windows.Forms.ContainerControl.set_ActiveControl (System.Windows.Forms.Control value) [0x00000] in <filename unknown>:0 at System.Windows.Forms.Control.Select (System.Windows.Forms.Control control) [0x00000] in <filename unknown>:0 at System.Windows.Forms.Form.SelectActiveControl () [0x00000] in <filename unknown>:0 at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form:SelectActiveControl () 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 dario@dario-laptop3:~/Downloads/nsmb-editor-302$
Posted on 12-21-11, 09:53 pm
Fuzzy
Full mod

Karma: 1183
Posts: 344/785
Since: 06-28-11
I have no clue what would cause that. There aren't even any of NSMBe's subroutines in the error output. Maybe if you could isolate which revision broke it then we could figure it out.
Posted on 12-21-11, 09:55 pm
Super Mario
( ͡° ͜ʖ ͡°)

Karma: 9979
Posts: 1318/4456
Since: 06-08-11
Well, it happens because of the left tab panel, the one that has the tabs for different object types.
It's probably a bug in Mono, but still we should try to find to workaround it
Posted on 12-21-11, 09:57 pm
AxewAxew

Karma: 673
Posts: 100/583
Since: 07-02-11
And when you have found the workaround, why not report the bug to the mono devs, if possible, so it can actually be fixed in mono and won't happen again?
Doesn't it have a bug tracker of some kind?
Posted on 12-22-11, 01:52 am
Buster Beetle


Karma: 379
Posts: 458/464
Since: 06-29-11
This has happened for a while now. I think a while before 234. The main thing to cause the crash is sprites with a lot of sprite data. It doesn't happen all the time, but if you switch between different sprite on the screen, the editor tries to load the data and can't keep up. Then it crashes.
Posted on 05-28-12, 02:38 pm
Super Mario
( ͡° ͜ʖ ͡°)

Karma: 9979
Posts: 1764/4456
Since: 06-08-11
I reworked the tabs panel, and now the crash isn't happening.
So, yea, marking this as fixed.
Pages: 1