[Mono-bugs] [Bug 357873] New: [Regression] FileOpen dialog crashes app if you drag a folder

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jan 31 23:49:27 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=357873


           Summary: [Regression] FileOpen dialog crashes app if you drag a
                    folder
           Product: Mono: Class Libraries
           Version: 1.9.0
          Platform: i586
        OS/Version: SLED 10
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: twiest at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Component Test


Description of Problem:
If you drag a folder in the FileOpen dialog, it will crash the app. Nothing
should actually happen. 

This happens in Mono 1.9.0p1+, but not in Mono 1.2.6 or Mono 1.2.2, so this is
a regression.


Steps to reproduce the problem:
1. Run Notepad
2. Click File / Open
3. Click Personal
4. Grab a folder and move it like you're going to drag it somewhere else
5. Notice the crash


Actual Results:

c212:~ # Notepad

Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
  at System.Windows.Forms.ListView+ItemControl.ItemsMouseMove (System.Object
sender, System.Windows.Forms.MouseEventArgs me) [0x001cb] in
/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs:2624
  at System.Windows.Forms.Control.OnMouseMove
(System.Windows.Forms.MouseEventArgs e) [0x0001c] in
/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:6201
  at System.Windows.Forms.Control.WmMouseMove (System.Windows.Forms.Message& m)
[0x00063] in
/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5598
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m)
[0x001d4] in
/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5214
  at System.Windows.Forms.ListView+ItemControl.WndProc
(System.Windows.Forms.Message& m) [0x0009a] in
/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs:2902
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage
(System.Windows.Forms.Message& m) [0x00000] in
/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:225
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc
(System.Windows.Forms.Message& m) [0x00000] in
/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:206
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr
wParam, IntPtr lParam) [0x0006a] in
/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:188
  at System.Windows.Forms.XplatUIX11.DispatchMessage (System.Windows.Forms.MSG&
msg) [0x00000] in
/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:3266
  at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG&
msg) [0x00000] in
/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:576
  at System.Windows.Forms.Application.RunLoop (Boolean Modal,
System.Windows.Forms.ApplicationContext context) [0x00194] in
/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:849
  at System.Windows.Forms.Form.ShowDialog (IWin32Window ownerWin32) [0x000f8]
in
/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:1767
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form:ShowDialog
(System.Windows.Forms.IWin32Window)
  at System.Windows.Forms.CommonDialog.ShowDialog (IWin32Window owner)
[0x00046] in
/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/CommonDialog.cs:131
  at System.Windows.Forms.CommonDialog.ShowDialog () [0x00000] in
/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/CommonDialog.cs:117
  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.CommonDialog:ShowDialog ()
  at NotepadApp.Form1.mopen_Click (System.Object sender, System.EventArgs e)
[0x0001c] in
/usr/src/packages/BUILD/wf-apps-r573/MyNotepad/MyNotepad-Port/Form1.cs:326
  at System.Windows.Forms.MenuItem.OnClick (System.EventArgs e) [0x0001c] in
/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MenuItem.cs:521
  at System.Windows.Forms.MenuItem.PerformClick () [0x00000] in
/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MenuItem.cs:563
  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.MenuItem:PerformClick ()
  at System.Windows.Forms.MenuTracker.OnMouseUp
(System.Windows.Forms.MouseEventArgs args) [0x00093] in
/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MenuAPI.cs:251
  at System.Windows.Forms.Control.ProcessActiveTracker
(System.Windows.Forms.Message& m) [0x000b7] in
/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:1356
  at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m)
[0x0001b] in
/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5400
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m)
[0x0017c] in
/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5159
  at System.Windows.Forms.ScrollableControl.WndProc
(System.Windows.Forms.Message& m) [0x00000] in
/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollableControl.cs:797
  at System.Windows.Forms.ContainerControl.WndProc
(System.Windows.Forms.Message& m) [0x0003d] in
/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ContainerControl.cs:589
  at System.Windows.Forms.Form.WndProc (System.Windows.Forms.Message& m)
[0x00119] in
/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:2541
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage
(System.Windows.Forms.Message& m) [0x00000] in
/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:225
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc
(System.Windows.Forms.Message& m) [0x00000] in
/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:206
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr
wParam, IntPtr lParam) [0x0006a] in
/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:188
  at System.Windows.Forms.XplatUIX11.DispatchMessage (System.Windows.Forms.MSG&
msg) [0x00000] in
/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:3266
  at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG&
msg) [0x00000] in
/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:576
  at System.Windows.Forms.Application.RunLoop (Boolean Modal,
System.Windows.Forms.ApplicationContext context) [0x00194] in
/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:849
  at System.Windows.Forms.Application.Run
(System.Windows.Forms.ApplicationContext context) [0x00000] in
/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:635
  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm)
[0x00000] in
/tmp/monobuild/build/BUILD/mono-1.9/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:623
  at NotepadApp.Form1.Main () [0x00000] in
/usr/src/packages/BUILD/wf-apps-r573/MyNotepad/MyNotepad-Port/Form1.cs:304
c212:~ #


Expected Results:
Nothing should happen.


How often does this happen? 
Every time if you follow the steps.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list