Error running Capella under Linux (Ubuntu 23.04)

Hello.

I downloaded and unpacked Capella and attempted to run it under Ubuntu 23.04. Not trying to do anything fancy, I immediately ran into a problem. The download page said I should not hesitate to reach out on the forums, so here I am. :slight_smile:

Thanks.

./capella
WARNING: A terminally deprecated method in java.lang.System has been called
WARNING: System::setSecurityManager has been called by org.eclipse.osgi.internal.framework.SystemBundleActivator (file:/home/dave/Downloads/capella/plugins/org.eclipse.osgi_3.16.300.v20210525-1715.jar)
WARNING: Please consider reporting this to the maintainers of org.eclipse.osgi.internal.framework.SystemBundleActivator
WARNING: System::setSecurityManager will be removed in a future release
SWT WebKitGDBus: error creating DBus server Error binding to address (GUnixSocketAddress): No such file or directory
SWT WebKit: error initializing DBus server, dBusServer == 0

(Capella:103617): GLib-GIO-CRITICAL **: 14:37:01.635: g_dbus_server_get_client_address: assertion 'G_IS_DBUS_SERVER (server)' failed
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fe9ba83eb86, pid=103617, tid=103618
#
# JRE version: OpenJDK Runtime Environment Temurin-17.0.6+10 (17.0.6+10) (build 17.0.6+10)
# Java VM: OpenJDK 64-Bit Server VM Temurin-17.0.6+10 (17.0.6+10, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C  [libswt-gtk-4944r26.so+0x3eb86]  Java_org_eclipse_swt_internal_C_strlen+0xf
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to /home/dave/Downloads/capella/core.103617)
#
# An error report file with more information is saved as:
# /home/dave/Downloads/capella/hs_err_pid103617.log
Compiled method (n/a)   75877 6226     n 0       org.eclipse.swt.internal.C::strlen (native)
 total in heap  [0x00007feae9504910,0x00007feae9504c88] = 888
 relocation     [0x00007feae9504a70,0x00007feae9504aa0] = 48
 main code      [0x00007feae9504aa0,0x00007feae9504c80] = 480
 oops           [0x00007feae9504c80,0x00007feae9504c88] = 8
Compiled method (n/a)   75878 6226     n 0       org.eclipse.swt.internal.C::strlen (native)
 total in heap  [0x00007feae9504910,0x00007feae9504c88] = 888
 relocation     [0x00007feae9504a70,0x00007feae9504aa0] = 48
 main code      [0x00007feae9504aa0,0x00007feae9504c80] = 480
 oops           [0x00007feae9504c80,0x00007feae9504c88] = 8
#
# If you would like to submit a bug report, please visit:
#   https://github.com/adoptium/adoptium-support/issues
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

After a recent Fedora 37 to Fedora 38 upgrade I am also facing the same error in Talens Open Studio which uses eclipse. I spun up a fresh VM and installed Fedor 38 and Talens’s Open Studio and all works. I am trying to figure this out to get my Open Studio fixed post upgrade without a complete system rebuild but so far no luck. I Tried to get an answer on how to reoslve this using Chat GPT. Here is what comes back. I don’t know how to proceed. Any ideas?

AI Chat GPT provided information below

The error you provided seems to be related to a problem in the SWT (Standard Widget Toolkit) library for GTK (GIMP Toolkit) on a Linux system. Specifically, it indicates an issue with the strlen function in the C code of SWT.

To fix this issue, you could try the following steps:

Check for updates: Make sure that you have the latest version of SWT and GTK installed on your system. You can check for updates using your package manager or by visiting the websites of SWT and GTK.

Rebuild the library: If you have the source code of the library, you could try rebuilding it using a newer version of the SWT and GTK libraries.

Reinstall the library: If you don't have the source code or if rebuilding doesn't work, you could try reinstalling the library from a trusted source.

Contact the developer: If none of the above steps work, you could try contacting the developer of the library for support. They may have a solution or a patch for the issue.

It’s worth noting that the exact solution may depend on the specific version of the library and the system configuration. Therefore, it’s recommended to do some research and try different approaches until you find a solution that works for your particular case.

Below is the error which appears to be the same. Logged under related hs_err_pid file

A fatal error has been detected by the Java Runtime Environment:

SIGSEGV (0xb) at pc=0x00007f475443eb86, pid=9377, tid=9378

JRE version: OpenJDK Runtime Environment (Red_Hat-17.0.6.0.10-1.fc38) (17.0.6+10) (build 17.0.6+10)

Java VM: OpenJDK 64-Bit Server VM (Red_Hat-17.0.6.0.10-1.fc38) (17.0.6+10, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)

Problematic frame:

C [libswt-gtk-4944r26.so+0x3eb86] Java_org_eclipse_swt_internal_C_strlen+0xf

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/stephenmauersberg/core.9377)

If you would like to submit a bug report, please visit:

Log in to Red Hat Bugzilla

The crash happened outside the Java Virtual Machine in native code.

See problematic frame for where to report the bug.

Hey, the solution to this problem might be to create the directory “/tmp/SWT-GDBusServer”. This worked for me. Here is the Github issue: https://github.com/adoptium/adoptium-support/issues/785#issuecomment-1585740194

Interesting. I wonder if this error is unique to newer versions of Ubuntu? Worked fine for me out of the box on Ubuntu 22.04.2 LTS