Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 515035 - [Wayland] DnD on text causes null pointer exception
Summary: [Wayland] DnD on text causes null pointer exception
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.7   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 4.7 M7   Edit
Assignee: Ian Pun CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: swtWaylandImproveDnD
  Show dependency tree
 
Reported: 2017-04-10 09:48 EDT by Ian Pun CLA
Modified: 2017-04-28 09:43 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Pun CLA 2017-04-10 09:48:01 EDT
1) go to DnDExample and click "text" on the combo box

2) select parts of Text and move it over to the target

3) causes this error:

(SWT:10700): Gtk-CRITICAL **: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar
Exception in thread "main" org.eclipse.swt.SWTException: Data does not have correct format for type
	at org.eclipse.swt.dnd.DND.error(DND.java:287)
	at org.eclipse.swt.dnd.DND.error(DND.java:238)
	at org.eclipse.swt.dnd.TextTransfer.javaToNative(TextTransfer.java:71)
	at org.eclipse.swt.dnd.DragSource.dragGetData(DragSource.java:428)
	at org.eclipse.swt.dnd.DragSource.DragGetData(DragSource.java:224)
	at org.eclipse.swt.internal.gtk.OS._gtk_drag_get_data(Native Method)
	at org.eclipse.swt.internal.gtk.OS.gtk_drag_get_data(OS.java:7061)
	at org.eclipse.swt.dnd.DropTarget.drag_drop(DropTarget.java:411)
	at org.eclipse.swt.dnd.DropTarget.Drag_Drop(DropTarget.java:250)
	at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
	at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:9250)
	at org.eclipse.swt.widgets.Display.eventProc(Display.java:1252)
	at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
	at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2109)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4080)
	at org.eclipse.swt.examples.dnd.DNDExample.open(DNDExample.java:1332)
	at org.eclipse.swt.examples.dnd.DNDExample.main(DNDExample.java:115)
Comment 1 Eclipse Genie CLA 2017-04-11 15:05:48 EDT
New Gerrit change created: https://git.eclipse.org/r/94861
Comment 2 Eclipse Genie CLA 2017-04-11 15:05:51 EDT
New Gerrit change created: https://git.eclipse.org/r/94860
Comment 4 Eclipse Genie CLA 2017-04-19 12:27:15 EDT
New Gerrit change created: https://git.eclipse.org/r/95302