After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 664238 - GTK apps crashe when dragging something
GTK apps crashe when dragging something
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: Quartz
2.24.x
Other Mac OS
: Normal minor
: ---
Assigned To: gtk-quartz maintainers
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2011-11-17 00:25 UTC by Pierre Rudloff
Modified: 2011-11-20 18:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Thunar gdb backtrace (3.26 KB, text/plain)
2011-11-17 18:02 UTC, Pierre Rudloff
  Details
Pidgin gdb backtrace (7.61 KB, text/plain)
2011-11-17 18:02 UTC, Pierre Rudloff
  Details
Fix incorrect condition from earlier change (912 bytes, patch)
2011-11-19 19:40 UTC, John Ralls
none Details | Review

Description Pierre Rudloff 2011-11-17 00:25:05 UTC
I am using several GTK applications on Mac OS 10.4 and they crash if I try to drag something (a file in Thunar, a contact in Pidgin, etc) :
Gdk:ERROR:gdkdnd-quartz.c:114:gdk_drag_begin: assertion failed: (_gdk_quartz_drag_source_context == NULL)
Comment 1 Michael Natterer 2011-11-17 08:16:26 UTC
Please try gtk 2.24.8 and report back.
Comment 2 Pierre Rudloff 2011-11-17 10:52:46 UTC
I do have GTK 2.24.8
Comment 3 John Ralls 2011-11-17 14:51:14 UTC
Please then attach one of the crash reports. You'll find them in ~/Library/Logs/CrashReporter
Comment 4 Pierre Rudloff 2011-11-17 18:01:36 UTC
Strangely, it does not trigger OSX crash reporter.
But I will add some gdb backtraces, if it can help.
Comment 5 Pierre Rudloff 2011-11-17 18:02:16 UTC
Created attachment 201605 [details]
Thunar gdb backtrace
Comment 6 Pierre Rudloff 2011-11-17 18:02:51 UTC
Created attachment 201606 [details]
Pidgin gdb backtrace
Comment 7 John Ralls 2011-11-17 18:20:22 UTC
Please apply this patch:
http://git.gnome.org/browse/gtk-osx/tree/patches/0006-Bug-658722-Drag-and-Drop-sometimes-stops-working.patch
(It's a 2.24.6 backport of http://bugzilla-attachments.gnome.org/attachment.cgi?id=196827; it should apply cleanly to 2.24.8).
And see if that fixes the problem.
Comment 8 Pierre Rudloff 2011-11-17 21:04:06 UTC
It does not crash anymore (which is great) but I still can't drag :
(thunar:6597): Gdk-WARNING **: Drag begun with existing context; aborting the preexisting drag
(thunar:6597): Gdk-WARNING **: Gdk-quartz-drag-drop, aborting
Comment 9 John Ralls 2011-11-19 19:40:57 UTC
Created attachment 201710 [details] [review]
Fix incorrect condition from earlier change

Please try this patch. I found that I'd screwed up the original condition for fixing bug 663182.
Comment 10 Pierre Rudloff 2011-11-20 15:13:04 UTC
It seems to work. Thanks.
Comment 11 John Ralls 2011-11-20 18:42:15 UTC
Pushed to gtk-2-24, gtk-3-2, and master.