Author Topic: [11] Linux version hangs after modifying point list  (Read 9986 times)

Offline Kris

  • Ewok
  • *
  • Posts: 1
    • View Profile
[11] Linux version hangs after modifying point list
« on: November 06, 2014, 15:06:24 pm »
I am manually modifying the coordinates of individual points within a Point List after it has been created.  The first value change within the Points dialog is accepted.  Any subsequent change causes a new dialog to appear, but the contents of the dialog are not rendered.  Rendering of the main window is also halted, and no new input is allowed.  Sometimes it will hang indefinitely until killed, other times it crashes.  Thus far it is 100% repeatable.

CamBam plus [0.9] Rel 8P Linux (beta-2)

The output on the terminal:
Code: [Select]
System.ObjectDisposedException: The object was used after being disposed.
  at System.Windows.Forms.Control.CreateHandle () [0x00000] in <filename unknown>:0
  at System.Windows.Forms.TextBoxBase.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.Control.set_Visible (Boolean value) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:set_Visible (bool)
  at System.Windows.Forms.DataGridView.BeginEdit (Boolean selectAll) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.DataGridView.ProcessKeyEventArgs (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.ProcessKeyMessage (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.WmKeys (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.DataGridView.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.ObjectDisposedException: The object was used after being disposed.
  at System.Windows.Forms.Control.CreateHandle () [0x00000] in <filename unknown>:0
  at System.Windows.Forms.TextBoxBase.CreateHandle () [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.get_Handle () [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:get_Handle ()
  at System.Windows.Forms.DataGridView.ProcessKeyEventArgs (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.ProcessKeyMessage (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.WmKeys (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.DataGridView.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


In case it helps:
Code: [Select]
mono --version
Mono JIT compiler version 3.2.8 ((no/b1e8599 Sat Jun 14 14:32:56 MDT 2014)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS:           __thread
SIGSEGV:       altstack
Notifications: epoll
Architecture:  amd64
Disabled:      none
Misc:          softdebug
LLVM:          supported, not enabled.
GC:            sgen
« Last Edit: April 27, 2015, 17:37:13 pm by dh42 »

Offline onekk

  • CNC Jedi
  • *****
  • Posts: 517
    • View Profile
Re: [11] Linux version hangs after modifying point list
« Reply #1 on: September 05, 2015, 12:26:15 pm »
Partially Fixed with the latest 4.0.3 version of mono through the official mono site.

Tested on Linux Mint 17.2 Rafaela AMD64 - (Based on Ubuntu 14.04 ).

See Reply #2 for a workaround

Regards
« Last Edit: October 18, 2015, 16:42:23 pm by onekk »
Carlo D. (onekk)

eShapeoko #343 750x1000 mm + GRBL + bCNC + CamBam

Offline onekk

  • CNC Jedi
  • *****
  • Posts: 517
    • View Profile
Re: [11] Linux version hangs after modifying point list
« Reply #2 on: October 18, 2015, 16:40:33 pm »
Not Fixed but a little workaround permit to modify the values and delete them. It not permit to add new pointlists.

1) use the cursor key to move and edit the table. When the table cell is Highlighted you can modify the values
2) To delete a row clic with the mouse in the leftmost table cell (where the black triangle appears) and when the row is highlited press <Del>
3) don't try to move the cursor in the row with the asterisk it will crash the program.

Tested with latest stable mono.

Regards
Carlo D. (onekk)

eShapeoko #343 750x1000 mm + GRBL + bCNC + CamBam

Offline billt

  • Droid
  • **
  • Posts: 90
    • View Profile
Re: [11] Linux version hangs after modifying point list
« Reply #3 on: December 15, 2015, 04:04:07 am »
I have the same issue with crashes while modifying pointlist values.
The first value is accepted, but any subsequent entries cause a crash.
Ubuntu 15.10, CamBam plus [0.9] Rel 8P Linux (beta-2), Mono 4.2.1
The workaround does not work for me even with the most recent Mono.
Is it possible that the Windows.Forms library needs to be updated?
Cheers - BillT

Offline billt

  • Droid
  • **
  • Posts: 90
    • View Profile
Re: [11] Linux version hangs after modifying point list
« Reply #4 on: December 15, 2015, 04:24:16 am »
Here is the error messages from the terminal.
Seems the same error messages as Kris, related to a disposed object exception?
Code: [Select]
bill@bill-HP-Pavilion-TS-Sleekbook-15:~/CamBam0.9.8$ mono CamBam.exe
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Windows.Forms.DataGridViewTextBoxEditingControl'.
  at System.Windows.Forms.Control.CreateHandle () <0x4116cce0 + 0x00263> in <filename unknown>:0
  at System.Windows.Forms.TextBoxBase.CreateHandle () <0x413de7b0 + 0x00017> in <filename unknown>:0
  at System.Windows.Forms.Control.CreateControl () <0x4116ca30 + 0x00087> in <filename unknown>:0
  at System.Windows.Forms.Control.SetVisibleCore (Boolean value) <0x4117e400 + 0x00083> in <filename unknown>:0
  at System.Windows.Forms.Control.set_Visible (Boolean value) <0x4117e380 + 0x00032> in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:set_Visible (bool)
  at System.Windows.Forms.DataGridView.BeginEdit (Boolean selectAll) <0x41429cf0 + 0x00583> in <filename unknown>:0
  at System.Windows.Forms.DataGridView.ProcessKeyEventArgs (System.Windows.Forms.Message& m) <0x41429a50 + 0x000a6> in <filename unknown>:0
  at System.Windows.Forms.Control.ProcessKeyMessage (System.Windows.Forms.Message& m) <0x413b5960 + 0x0004e> in <filename unknown>:0
  at System.Windows.Forms.Control.WmKeys (System.Windows.Forms.Message& m) <0x413b5910 + 0x0001b> in <filename unknown>:0
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) <0x41173d60 + 0x00337> in <filename unknown>:0
  at System.Windows.Forms.DataGridView.WndProc (System.Windows.Forms.Message& m) <0x41416570 + 0x00013> in <filename unknown>:0
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) <0x41173d30 + 0x00024> in <filename unknown>:0
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) <0x41173cf0 + 0x00036> in <filename unknown>:0
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) <0x41172630 + 0x0031c> in <filename unknown>:0
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Windows.Forms.DataGridViewTextBoxEditingControl'.
  at System.Windows.Forms.Control.CreateHandle () <0x4116cce0 + 0x00263> in <filename unknown>:0
  at System.Windows.Forms.TextBoxBase.CreateHandle () <0x413de7b0 + 0x00017> in <filename unknown>:0
  at System.Windows.Forms.Control.get_Handle () <0x41173c50 + 0x00043> in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:get_Handle ()
  at System.Windows.Forms.DataGridView.ProcessKeyEventArgs (System.Windows.Forms.Message& m) <0x41429a50 + 0x000e7> in <filename unknown>:0
  at System.Windows.Forms.Control.ProcessKeyMessage (System.Windows.Forms.Message& m) <0x413b5960 + 0x0004e> in <filename unknown>:0
  at System.Windows.Forms.Control.WmKeys (System.Windows.Forms.Message& m) <0x413b5910 + 0x0001b> in <filename unknown>:0
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) <0x41173d60 + 0x00337> in <filename unknown>:0
  at System.Windows.Forms.DataGridView.WndProc (System.Windows.Forms.Message& m) <0x41416570 + 0x00013> in <filename unknown>:0
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) <0x41173d30 + 0x00024> in <filename unknown>:0
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) <0x41173cf0 + 0x00036> in <filename unknown>:0
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) <0x41172630 + 0x0031c> in <filename unknown>:0

Offline newlinuxuser

  • Droid
  • **
  • Posts: 84
    • View Profile
Re: [11] Linux version hangs after modifying point list
« Reply #5 on: December 15, 2015, 21:33:09 pm »
Hello, I am not able to repeat the bug, no problem neither using the cursor keys nor the mouse.
The only strange thing is that clicking on the row with the asterisk, the table will be added 4 more rows in a time.
The added rows are editable, cambam never crashed.

I use ubuntu 12.04-64, the mono version is:  2.10.8.1


Offline onekk

  • CNC Jedi
  • *****
  • Posts: 517
    • View Profile
Re: [11] Linux version hangs after modifying point list
« Reply #6 on: December 23, 2015, 17:09:24 pm »
The problem is with the 14.04 and newer version of Ubuntu.

For the desperate case it' is relatively easy to modify by hand the points in the CamBam .cb file, it's an XML and whe I have to input precise values, i create a pointlist or a polyline with few values and the edit them by hand with a text editor and then reopen them in CamBam.

Regards.

Carlo D.
Carlo D. (onekk)

eShapeoko #343 750x1000 mm + GRBL + bCNC + CamBam