Bug 516279 - PropertyGrid: contract several table cells will crash the application
Summary: PropertyGrid: contract several table cells will crash the application
Status: VERIFIED FIXED
Alias: None
Product: UI Automation
Classification: Mono
Component: Winforms - General (show other bugs)
Version: Release 1.0
Hardware: i586 openSUSE 11.1
: P1 - Urgent : Critical
Target Milestone: ---
Assignee: Andres Aragoneses
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on: 479113
Blocks:
  Show dependency treegraph
 
Reported: 2009-06-25 03:15 UTC by Feng Xia Mu
Modified: 2009-07-13 02:19 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Feng Xia Mu 2009-06-25 03:15:35 UTC
REPRO:

1. Run uia2atk/test/samples/propertygrid.py
2. On GUI mouse click the node left the "Accessibility" to contract the "Accessibility"
3. contract the "Appearance" table cells by clicking
4. contract "Behavior"
5  contract "Data"
6  contract "Focus"
7  contract "Layout"
8  contract "Misc"


RESULT:

The application is crashed

LOG INFO:

System.NullReferenceException: Object reference not set to an instance of an object
  at Mono.UIAutomation.Winforms.Events.Generic.ScrollPatternHorizontalScrollPercentEvent`1[Mono.UIAutomation.Winforms.PropertyGridViewProvider].Disconnect () [0x00000] 
  at Mono.UIAutomation.Winforms.SimpleControlProvider.SetEvent (ProviderEventType type, IConnectable strategy) [0x00013] in /usr/src/packages/BUILD/uiautomationwinforms-136380/UIAutomationWinforms/Mono.UIAutomation.Winforms/SimpleControlProvider.cs:164 
  at Mono.UIAutomation.Winforms.Behaviors.Generic.ScrollProviderBehavior`1[T].Disconnect () [0x00000] 
  at Mono.UIAutomation.Winforms.SimpleControlProvider.SetBehavior (System.Windows.Automation.AutomationPattern pattern, IProviderBehavior behavior) [0x00015] in /usr/src/packages/BUILD/uiautomationwinforms-136380/UIAutomationWinforms/Mono.UIAutomation.Winforms/SimpleControlProvider.cs:184 
  at Mono.UIAutomation.Winforms.ListProvider.UpdateScrollBehavior (IScrollBehaviorObserver observer) [0x0002c] in /usr/src/packages/BUILD/uiautomationwinforms-136380/UIAutomationWinforms/Mono.UIAutomation.Winforms/ListProvider.cs:291 
  at Mono.UIAutomation.Winforms.ListProvider.UpdateScrollBehavior () [0x00000] in /usr/src/packages/BUILD/uiautomationwinforms-136380/UIAutomationWinforms/Mono.UIAutomation.Winforms/ListProvider.cs:282 
  at Mono.UIAutomation.Winforms.ListProvider.OnScrollPatternSupportChanged (System.Object sender, System.EventArgs args) [0x00000] 
  at Mono.UIAutomation.Winforms.ScrollBehaviorObserver.OnScrollPatternSupportChanged () [0x0000b] in /usr/src/packages/BUILD/uiautomationwinforms-136380/UIAutomationWinforms/Mono.UIAutomation.Winforms/ScrollBehaviorObserver.cs:161 
  at Mono.UIAutomation.Winforms.ScrollBehaviorObserver.UpdateVScrollBehavior (System.Object sender, System.EventArgs args) [0x00061] in /usr/src/packages/BUILD/uiautomationwinforms-136380/UIAutomationWinforms/Mono.UIAutomation.Winforms/ScrollBehaviorObserver.cs:203 
  at (wrapper delegate-invoke) System.EventHandler:invoke_void__this___object_EventArgs (object,System.EventArgs)
  at (wrapper delegate-invoke) System.EventHandler:invoke_void__this___object_EventArgs (object,System.EventArgs)
  at (wrapper delegate-invoke) System.EventHandler:invoke_void__this___object_EventArgs (object,System.EventArgs)
  at (wrapper delegate-invoke) System.EventHandler:invoke_void__this___object_EventArgs (object,System.EventArgs)
  at (wrapper delegate-invoke) System.EventHandler:invoke_void__this___object_EventArgs (object,System.EventArgs)
  at (wrapper delegate-invoke) System.EventHandler:invoke_void__this___object_EventArgs (object,System.EventArgs)
  at (wrapper delegate-invoke) System.EventHandler:invoke_void__this___object_EventArgs (object,System.EventArgs)
  at System.Windows.Forms.Control.OnVisibleChanged (System.EventArgs e) [0x0002d] in /usr/src/packages/BUILD/mono-136743/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:6637 
  at System.Windows.Forms.Control.SetVisibleCore (Boolean value) [0x00163] in /usr/src/packages/BUILD/mono-136743/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5110 
  at System.Windows.Forms.Control.set_Visible (Boolean value) [0x0000c] in /usr/src/packages/BUILD/mono-136743/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3436 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:set_Visible (bool)
  at System.Windows.Forms.PropertyGridInternal.PropertyGridView.UpdateScrollBar () [0x00070] in /usr/src/packages/BUILD/mono-136743/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridView.cs:571 
  at System.Windows.Forms.PropertyGridInternal.PropertyGridView.OnPaint (System.Windows.Forms.PaintEventArgs e) [0x0005a] in /usr/src/packages/BUILD/mono-136743/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridView.cs:189 
  at System.Windows.Forms.Control.WmPaint (System.Windows.Forms.Message& m) [0x0008a] in /usr/src/packages/BUILD/mono-136743/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5564 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x0016b] in /usr/src/packages/BUILD/mono-136743/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5322 
  at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in /usr/src/packages/BUILD/mono-136743/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollableControl.cs:807 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in /usr/src/packages/BUILD/mono-136743/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:234 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in /usr/src/packages/BUILD/mono-136743/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:215 
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00085] in /usr/src/packages/BUILD/mono-136743/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:242 

TEST ON:
mono-core-136743-1311.src.rpm
mono-uia-132785-276.src.rpm
uiaatkbridge-136162-663.src.rpm
uiautomationwinforms-136380-671.src.rpm
Revision: 136801
Comment 1 Andres Aragoneses 2009-07-07 14:20:26 UTC
This bug depends on bug 479113 to be able to create a proper unit test.
Comment 2 Feng Xia Mu 2009-07-10 02:20:20 UTC
althouh the bug 479113 is close, the crashed problem still exists. On Gui do:
1. contract "Accessibility"
3. contract "Appearance" 
4. contract "Behavior"
5  contract "Data"
6  contract "Focus"
7  contract "Layout"
the sample crashed.

test on:
mono-core-137655-1415.src.rpm
mono-uia-132785-276.src.rpm
uiaatkbridge-137646-669.src.rpm
uiautomationwinforms-137656-678.src.rpm
Revision: 137666
Comment 3 Andres Aragoneses 2009-07-10 17:51:33 UTC
Fixed in trunk r137705.

Felicia: right, the dependency was set in order to be able to do a unit test for this one. Fixing the dependency doesn't mean this is fixed, but rather than I can start working on it :)
Comment 4 Feng Xia Mu 2009-07-13 02:19:01 UTC
It works very well:)
close on:
mono-core-137753-1429.src.rpm
mono-uia-132785-276.src.rpm
uiaatkbridge-137705-670.src.rpm
uiautomationwinforms-137705-679.src.rpm
Revision: 137759