Bug 560 - [GTK] Crasher while dragging items
Summary: [GTK] Crasher while dragging items
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: Trunk
Hardware: PC Mac OS
: High normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2011-08-31 05:25 UTC by Alan McGovern
Modified: 2012-01-03 14:42 UTC (History)
4 users (show)

Tags: gtk
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Alan McGovern 2011-08-31 05:25:15 UTC
I was dragging items in the SolutionPane when this happened


monodevelop(4136,0xad0232c0) malloc: *** error for object 0x101b8604: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
Stacktrace:

  at MonoDevelop.Ide.Gui.Components.NodeBuilder.get_CommandHandler () [0x00000] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/NodeBuilder.cs:56
  at MonoDevelop.Ide.Gui.Components.ExtensibleTreeView.CheckAndDrop (int,int,bool,Gdk.DragContext,object[]) [0x0008c] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/ExtensibleTreeView.cs:423
  at MonoDevelop.Ide.Gui.Components.ExtensibleTreeView.OnDragMotion (object,Gtk.DragMotionArgs) [0x0000b] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/ExtensibleTreeView.cs:389
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object_object (object,intptr,intptr,intptr) <IL 0x0005a, 0xffffffff>
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&) <IL 0x00030, 0xffffffff>
  at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) [0x000d5] in /private/tmp/monobuild/build/BUILD/mono-2.10.5/mcs/class/corlib/System.Reflection/MonoMethod.cs:226
  at System.Reflection.MethodBase.Invoke (object,object[]) [0x00000] in /private/tmp/monobuild/build/BUILD/mono-2.10.5/mcs/class/corlib/System.Reflection/MethodBase.cs:96
  at System.Delegate.DynamicInvokeImpl (object[]) [0x000bf] in /private/tmp/monobuild/build/BUILD/mono-2.10.5/mcs/class/corlib/System/Delegate.cs:408
  at System.MulticastDelegate.DynamicInvokeImpl (object[]) [0x00018] in /private/tmp/monobuild/build/BUILD/mono-2.10.5/mcs/class/corlib/System/MulticastDelegate.cs:70
  at System.Delegate.DynamicInvoke (object[]) [0x00000] in /private/tmp/monobuild/build/BUILD/mono-2.10.5/mcs/class/corlib/System/Delegate.cs:382
  at GLib.Signal.ClosureInvokedCB (object,GLib.ClosureInvokedArgs) <IL 0x0004f, 0x001b3>
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs) <IL 0x00014, 0x00039>
  at GLib.SignalClosure.MarshalCallback (intptr,intptr,uint,intptr,intptr,intptr) <IL 0x00147, 0x00597>
  at (wrapper native-to-managed) GLib.SignalClosure.MarshalCallback (intptr,intptr,uint,intptr,intptr,intptr) <IL 0x00024, 0xffffffff>
  at (wrapper managed-to-native) Gtk.Application.gtk_main () <IL 0x00022, 0xffffffff>
  at Gtk.Application.Run () <IL 0x00000, 0x0000b>
  at MonoDevelop.Ide.IdeApp.Run () [0x00000] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/Ide.cs:384
  at MonoDevelop.Ide.IdeStartup.Run (string[]) [0x00748] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide/IdeStartup.cs:265
  at MonoDevelop.Startup.MonoDevelopMain.Main (string[]) [0x00017] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Startup/MonoDevelop.Startup/MonoDevelopMain.cs:24
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object (object,intptr,intptr,intptr) <IL 0x0005c, 0xffffffff>

Native stacktrace:

	0   mono                                0x000b98e6 mono_handle_native_sigsegv + 422
	1   mono                                0x000048fe mono_sigsegv_signal_handler + 334
	2   libsystem_c.dylib                   0x99a5a59b _sigtramp + 43
	3   ???                                 0xffffffff 0x0 + 4294967295
	4   libsystem_c.dylib                   0x99a1fcbc tiny_malloc_from_free_list + 934
	5   libsystem_c.dylib                   0x99a20903 szone_malloc_should_clear + 899
	6   libsystem_c.dylib                   0x99a21cf2 szone_calloc + 57
	7   libsystem_c.dylib                   0x99a578d6 malloc_zone_calloc + 84
	8   libsystem_c.dylib                   0x99a58837 calloc + 57
	9   mono                                0x002566b6 monoeg_malloc0 + 47
	10  mono                                0x0008b165 mono_debug_init_method + 37
	11  mono                                0x0002bf9c mono_method_to_ir + 11676
	12  mono                                0x0000c86d mini_method_compile + 2333
	13  mono                                0x0000fbd6 mono_jit_compile_method_with_opt + 1574
	14  mono                                0x0001051a mono_jit_compile_method + 42
	15  mono                                0x001bc07e mono_compile_method + 73
	16  mono                                0x000bb760 common_call_trampoline + 512
	17  ???                                 0x00424c74 0x0 + 4344948
	18  ???                                 0x102f695c 0x0 + 271542620
	19  ???                                 0x102f6508 0x0 + 271541512
	20  ???                                 0x08676637 0x0 + 140994103
	21  mono                                0x00010624 mono_jit_runtime_invoke + 164
	22  mono                                0x001c1032 mono_runtime_invoke + 137
	23  mono                                0x001c40f6 mono_runtime_invoke_array + 1831
	24  mono                                0x00154f6f ves_icall_InternalInvoke + 1163
	25  ???                                 0x06240170 0x0 + 103022960
	26  ???                                 0x0623fdec 0x0 + 103022060
	27  ???                                 0x085c39ed 0x0 + 140261869
	28  ???                                 0x08676440 0x0 + 140993600
	29  ???                                 0x086761b0 0x0 + 140992944
	30  ???                                 0x08676151 0x0 + 140992849
	31  ???                                 0x0867609c 0x0 + 140992668
	32  ???                                 0x08675ec2 0x0 + 140992194
	33  ???                                 0x08674188 0x0 + 140984712
	34  ???                                 0x083c6060 0x0 + 138174560
	35  libgobject-2.0.0.dylib              0x029540bc g_closure_invoke + 370
	36  libgobject-2.0.0.dylib              0x0296d469 signal_emit_unlocked_R + 2475
	37  libgobject-2.0.0.dylib              0x0296c626 g_signal_emit_valist + 2334
	38  libgobject-2.0.0.dylib              0x0296ca7e g_signal_emit_by_name + 426
	39  libgtk-quartz-2.0.0.dylib           0x042aa957 gtk_drag_dest_motion + 367
	40  libgtk-quartz-2.0.0.dylib           0x042aa6b5 gtk_drag_find_widget + 936
	41  libgtk-quartz-2.0.0.dylib           0x042aa615 gtk_drag_find_widget + 776
	42  libgtk-quartz-2.0.0.dylib           0x042aa615 gtk_drag_find_widget + 776
	43  libgtk-quartz-2.0.0.dylib           0x042aa615 gtk_drag_find_widget + 776
	44  libgtk-quartz-2.0.0.dylib           0x042aa615 gtk_drag_find_widget + 776
	45  libgtk-quartz-2.0.0.dylib           0x042aa615 gtk_drag_find_widget + 776
	46  libgtk-quartz-2.0.0.dylib           0x042aa615 gtk_drag_find_widget + 776
	47  libgtk-quartz-2.0.0.dylib           0x042aa615 gtk_drag_find_widget + 776
	48  libgtk-quartz-2.0.0.dylib           0x042aa615 gtk_drag_find_widget + 776
	49  libgtk-quartz-2.0.0.dylib           0x042aa615 gtk_drag_find_widget + 776
	50  libgtk-quartz-2.0.0.dylib           0x042aa615 gtk_drag_find_widget + 776
	51  libgtk-quartz-2.0.0.dylib           0x042aa615 gtk_drag_find_widget + 776
	52  libgtk-quartz-2.0.0.dylib           0x042aa615 gtk_drag_find_widget + 776
	53  libgtk-quartz-2.0.0.dylib           0x042aa615 gtk_drag_find_widget + 776
	54  libgtk-quartz-2.0.0.dylib           0x042aa615 gtk_drag_find_widget + 776
	55  libgtk-quartz-2.0.0.dylib           0x042aa615 gtk_drag_find_widget + 776
	56  libgtk-quartz-2.0.0.dylib           0x042aa615 gtk_drag_find_widget + 776
	57  libgtk-quartz-2.0.0.dylib           0x042aa615 gtk_drag_find_widget + 776
	58  libgtk-quartz-2.0.0.dylib           0x042aaeaa _gtk_drag_dest_handle_event + 474
	59  libgtk-quartz-2.0.0.dylib           0x04115456 gtk_main_do_event + 1382
	60  libgdk-quartz-2.0.0.dylib           0x02e7d7df -[GdkQuartzWindow draggingUpdated:] + 293
	61  AppKit                              0x95c1327a sendDraggingUpdate + 149
	62  AppKit                              0x95c146a0 NSCoreDragTrackingProc + 2977
	63  HIServices                          0x92a27a22 DoTrackingMessage + 443
	64  HIServices                          0x92a273c4 SendTrackingMessage + 51
	65  HIServices                          0x92a2ad5d DragInApplication + 276
	66  HIServices                          0x92a2b1bd CoreDragStartDragging + 535
	67  AppKit                              0x95c1631e -[NSCoreDragManager _dragUntilMouseUp:accepted:] + 1473
	68  AppKit                              0x95c1741c -[NSCoreDragManager dragImage:fromWindow:at:offset:event:pasteboard:source:slideBack:] + 1415
	69  AppKit                              0x95f6d9a7 -[NSWindow(NSDrag) dragImage:at:offset:event:pasteboard:source:slideBack:] + 142
	70  libgtk-quartz-2.0.0.dylib           0x042ab430 gtk_drag_begin_idle + 629
	71  libglib-2.0.0.dylib                 0x02d3d971 g_idle_dispatch + 71
	72  libglib-2.0.0.dylib                 0x02d39630 g_main_dispatch + 495
	73  libglib-2.0.0.dylib                 0x02d3ac9a g_main_context_dispatch + 144
	74  libglib-2.0.0.dylib                 0x02d3b1de g_main_context_iterate + 1235
	75  libglib-2.0.0.dylib                 0x02d3ba2a g_main_loop_run + 992
	76  libgtk-quartz-2.0.0.dylib           0x0411485b gtk_main + 239
	77  ???                                 0x0d53fc6c 0x0 + 223607916
	78  ???                                 0x0d53fb94 0x0 + 223607700
	79  ???                                 0x0d53fb74 0x0 + 223607668
	80  ???                                 0x02911a20 0x0 + 43063840
	81  ???                                 0x004abe90 0x0 + 4898448
	82  ???                                 0x004ac126 0x0 + 4899110
	83  mono                                0x00010624 mono_jit_runtime_invoke + 164
	84  mono                                0x001c1032 mono_runtime_invoke + 137
	85  mono                                0x001c38ec mono_runtime_exec_main + 585
	86  mono                                0x001c2c7a mono_runtime_run_main + 843
	87  mono                                0x0008943d mono_main + 7773
	88  mono                                0x00002db5 start + 53
Comment 1 Jeffrey Stedfast 2011-08-31 08:02:14 UTC
I've got this last night too with 2.8a2-1

What's weird is that if I drag items to a subfolder of a project, the project tree gets duplicated under the project after I drag an item.

I wonder if this has anything to do with the crash.
Comment 2 Mikayla Hutchinson [MSFT] 2011-08-31 08:17:46 UTC
Looks to me like a JIT crash, not a GTK crash.
Comment 3 Mikayla Hutchinson [MSFT] 2011-11-22 15:19:19 UTC
My bad, the memory error could have been caused by anything. It's likely this is fixed by some pf the DnD fixed in the new GTK. When we ship it we'll close this and re-open if it happens again.
Comment 4 Mikayla Hutchinson [MSFT] 2012-01-03 14:42:03 UTC
This should be fixed by the GTK+ version that's currently in Mono beta, so I'm marking it fixed. Please re-open if it happens with GTK+ version is 2.24.8 or later. GTK+ version can be found in the MD About dialog.