Opened 12 years ago

Closed 12 years ago

#2112 closed defect (fixed)

maestro crash on linux viewing a weblayout in normal mode

Reported by: gabrimonfa Owned by: jng
Priority: low Milestone: Maestro-5.0
Component: Maestro Version:
Severity: trivial Keywords:
Cc: External ID:

Description

Maestro SVN update around the first days of September 2012

Maestro 2.10.8 on Linux ubuntu

System.InvalidCastException: Cannot cast from source type to destination type.
  at System.Reflection.MonoProperty.GetterAdapterFrame[BasicCommandType,BasicCommandActionType] (System.Reflection.Getter`2 getter, System.Object obj) [0x00000] in <filename unknown>:0 
  at System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index) [0x00000] in <filename unknown>:0 
  at System.ComponentModel.ReflectionPropertyDescriptor.GetValue (System.Object component) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.DataGridViewCell.GetValue (Int32 rowIndex) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.DataGridViewCell.get_Value () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.DataGridViewRow.PaintCells (System.Drawing.Graphics graphics, Rectangle clipBounds, Rectangle rowBounds, Int32 rowIndex, DataGridViewElementStates rowState, Boolean isFirstDisplayedRow, Boolean isLastVisibleRow, DataGridViewPaintParts paintParts) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.DataGridViewRow.Paint (System.Drawing.Graphics graphics, Rectangle clipBounds, Rectangle rowBounds, Int32 rowIndex, DataGridViewElementStates rowState, Boolean isFirstDisplayedRow, Boolean isLastVisibleRow) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.DataGridView.OnPaint (System.Windows.Forms.PaintEventArgs e) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control.WmPaint (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

Look like another mono problem

Change History (7)

comment:1 by jng, 12 years ago

Does running mono with "--debug=casts" give more information?

Source: http://tirania.org/blog/archive/2008/Apr-16-1.html

comment:2 by gabrimonfa, 12 years ago

Yes, it told the failed cast:

System.InvalidCastException: Unable to cast object of type 'OSGeo.MapGuide.ObjectModels.WebLayout_1_0_0.SelectWithinCommandType' to type 'OSGeo.MapGuide.ObjectModels.WebLayout_1_0_0.BasicCommandType'.
  at System.Reflection.MonoProperty.GetterAdapterFrame[BasicCommandType,BasicCommandActionType] (System.Reflection.Getter`2 getter, System.Object obj) [0x00000] in <filename unknown>:0 
  at System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index) [0x00000] in <filename unknown>:0 
  at System.ComponentModel.ReflectionPropertyDescriptor.GetValue (System.Object component) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.DataGridViewCell.GetValue (Int32 rowIndex) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.DataGridViewCell.get_Value () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.DataGridViewRow.PaintCells (System.Drawing.Graphics graphics, Rectangle clipBounds, Rectangle rowBounds, Int32 rowIndex, DataGridViewElementStates rowState, Boolean isFirstDisplayedRow, Boolean isLastVisibleRow, DataGridViewPaintParts paintParts) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.DataGridViewRow.Paint (System.Drawing.Graphics graphics, Rectangle clipBounds, Rectangle rowBounds, Int32 rowIndex, DataGridViewElementStates rowState, Boolean isFirstDisplayedRow, Boolean isLastVisibleRow) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.DataGridView.OnPaint (System.Windows.Forms.PaintEventArgs e) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control.WmPaint (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

comment:3 by gabrimonfa, 12 years ago

Somewhat reproduced also on mono trunk - version 2.11.5 (master/1be50d0 mer 12 set 2012, 15.42.47, CEST)

When scrolling "Available Commands" panel, it throws an error with the same stack trace posted before, and the pane is replaced by a red rectangle without any content.

It happens the same also with "Custom Commands" panel but not with "Toolbar, Context Menu, Task Menu" tabbed panel on the left, which works correctly.

At least it does not crash maestro anymore.

comment:4 by jng, 12 years ago

Resolution: fixed
Status: newclosed

Fixed r7046

comment:5 by gabrimonfa, 12 years ago

Resolution: fixed
Status: closedreopened

The "Custom Command" panel now works.

"Available Commands" does not yet, with the same stack trace as before.

comment:6 by jng, 12 years ago

Milestone: Maestro-5.0

comment:7 by jng, 12 years ago

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