Skip to content

[GTK3] JVM crash when copying data (when there are no seats) #2853

@jonahgraham

Description

@jonahgraham

While working on #2768 to get tests wayland tests running on I consistently see a crash like this:

#  SIGSEGV (0xb) at pc=0x0000774d6acc7741, pid=2214417, tid=2214423
#
# JRE version: OpenJDK Runtime Environment Temurin-21.0.5+11 (21.0.5+11) (build 21.0.5+11-LTS)
# Java VM: OpenJDK 64-Bit Server VM Temurin-21.0.5+11 (21.0.5+11-LTS, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C  [libgdk-3.so.0+0x83741]  gdk_wayland_selection_add_targets_libgtk_only+0x1f1
Stack: [0x0000774dfc300000,0x0000774dfc400000],  sp=0x0000774dfc3f9f30,  free space=999k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libgdk-3.so.0+0x83741]  gdk_wayland_selection_add_targets_libgtk_only+0x1f1
C  [libgtk-3.so.0+0x2ab8c8]  gtk_selection_add_targets+0x118
C  [libgtk-3.so.0+0x3b919b]
C  [libgtk-3.so.0+0x3b3554]  gtk_clipboard_set_with_owner+0x74
C  [libswt-pi3-gtk-4972r1.so+0x569de]  Java_org_eclipse_swt_internal_gtk3_GTK3_gtk_1clipboard_1set_1with_1owner+0x1f
j  org.eclipse.swt.dnd.ClipboardProxy.setData(Lorg/eclipse/swt/dnd/Clipboard;[Ljava/lang/Object;[Lorg/eclipse/swt/dnd/Transfer;I)Z+263
j  org.eclipse.swt.dnd.Clipboard.setContents([Ljava/lang/Object;[Lorg/eclipse/swt/dnd/Transfer;I)V+127
j  org.eclipse.swt.tests.junit.Test_org_eclipse_swt_dnd_Clipboard.test_LocalClipboard(I)V+33

I think I have identified why - no seat when running weston headless.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions