Rare SIGSEGV on Linux in `todoapp` example
See original GitHub issueI accidentally found a rare bug while running the todoapp
example. It may not be related to compose or skia, but I still think it might be useful for users who have the same problem.
All tests were done inside VirtualBox, so they should be reproducible.
Bug (only in todoapp
example)
Bug happens when ./gradlew :desktop:run
called, web works fine.
Error message (may vary depending on the JDK):
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f7d4fa364b8, pid=5292, tid=5293
#
# JRE version: OpenJDK Runtime Environment AdoptOpenJDK-16.0.1+9 (16.0.1+9) (build 16.0.1+9)
# Java VM: OpenJDK 64-Bit Server VM AdoptOpenJDK-16.0.1+9 (16.0.1+9, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, serial gc, linux-amd64)
# Problematic frame:
# C 0x00007f7d4fa364b8
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h" (or dumping to /home/composetest/Downloads/compose-jb-master/examples/todoapp/desktop/core.5292)
#
# An error report file with more information is saved as:
# /home/composetest/Downloads/compose-jb-master/examples/todoapp/desktop/hs_err_pid5292.log
#
# If you would like to submit a bug report, please visit:
# https://github.com/AdoptOpenJDK/openjdk-support/issues
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Bug happens in EndeavourOS (arch distro) only in Cinnamon desktop environment (potentially in all GNOME environments) only using OpenJDK/AdoptOpenJDK 16.
Bug DOES NOT happen (tested in VirtualBox) in
- Ubuntu 20.04.3
- Linux Mint 20.3 (Cinnamon)
- EndeavourOS KDE Plasma
- EndeavourOS Cinnamon using OpenJDK 17 or using Zulu, Corretto, Liberica JDK 16
Other arch distros with GNOME environments were not tested. So the issue can be broader.
I attached some logs produced in EndeavourOS Cinnamon using OpenJDK (16.0.1 and 16.0.2), AdoptOpenJDK (16.0.1, hs and j9). endeavouros-cinnamon-error.zip
How to reproduce:
- latest EndeavourOS image should be chosen cinnamon during the installment.
- OpenJDK 16 or AdoptOpenJDK 16 (can easily be installed using https://sdkman.io/). For example:
sdk install java 16.0.2-open
sdk install java 16.0.1.hs-adpt
sdk install java 16.0.1.j9-adpt
- download and run
todoapp
example:./gradlew :desktop:run
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
Crash looks like this on JVM side
and native has
so could be an issue with two libharfbuzz.so (/home/composetest/.sdkman/candidates/java/16.0.1-open/lib/libharfbuzz.so vs /usr/lib/libharfbuzz.so.0).
@AzimMuradov could you try to run with property
skiko.rendering.laf.global
set to false?Thanks for your help!