Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Drag and Drop from SWT to embbedded AWT frame (SWT_AWT) is broken on Linux GTK 3.22 (DND from SWT to embbedded AWT frame (SWT_AWT) is broken on Linux, application crashes in few minutes)
Drag and Drop from SWT to embbedded AWT frame (SWT_AWT) is broken on Linux GTK 3.22 [message #1820652] Fri, 24 January 2020 15:11
Serhiy Davydiuk is currently offline Serhiy DavydiukFriend
Messages: 6
Registered: March 2016
Junior Member
Does anyone know the root cause of this issue? Or any workaround that can help?


RedHat 7.4
GTK 3.22
OpenJDK 11.0.2

Create an SWT control and implement a DragSource for it (using SWT API),
then create an embedded AWT frame and implement a DropTarget for AWT component (using AWT API).
Drag and drop from SWT to AWT is broken: the AWT DropTarget does not receive drop events all the time. There are a lot of error messages from GTK and application crashes in few minutes (5-10m)

There is a bug in Bugzilla

It's broken on GTK3, on GTK2 works fine. Tested versions: SWT 4.6-4.13. Java 8, OpenJDK 11.

For testing used Eclipse's snippet

Crash log:

# A fatal error has been detected by the Java Runtime Environment:
# SIGSEGV (0xb) at pc=0x00007fe8f957ca03, pid=13753, tid=13754
# JRE version: OpenJDK Runtime Environment (11.0.2+9) (build 11.0.2+9)
# Java VM: OpenJDK 64-Bit Server VM (11.0.2+9, mixed mode, tiered, compressed oops, serial gc, linux-amd64)
# Problematic frame:
# C gtk_drag_finish+0x23
# Core dump will be written. Default location: Core dumps may be processed with "/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t e %P %I %h" (or dumping to /home/serhii/Workspace/Testing/core.13753)
# If you would like to submit a bug report, please visit:
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.

--------------- S U M M A R Y ------------

Command Line: -Dfile.encoding=UTF-8 DnDTest

Host: Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz, 1 cores, 15G, CentOS Linux release 7.4.1708 (Core)
Time: Thu Sep 19 07:03:44 2019 EDT elapsed time: 326 seconds (0d 0h 5m 26s)

--------------- T H R E A D ---------------

Current thread (0x00007fe924010000): JavaThread "main"

Stack: , sp=0x00007fe92d5886e0, free space=1021k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
C gtk_drag_finish+0x23

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J 658 org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(JZ)Z (0 bytes) @ 0x00007fe914759314
J 1052 c2 org.eclipse.swt.widgets.Display.readAndDispatch()Z (77 bytes) @ 0x00007fe91478038c [0x00007fe914780160+0x000000000000022c]
j DnDTest.main([Ljava/lang/String;)V+209
v ~StubRoutines::call_stub

siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x0000004000000003
Previous Topic:Cookies management
Next Topic:How to drag clabel,button,table widgesfrom left,right,top and bottom
Goto Forum:

Current Time: Wed Apr 14 12:13:01 GMT 2021

Powered by FUDForum. Page generated in 0.02173 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top