Starting browser support from snap package error

Using the dbeaver-ce snap package when trying to use an item in the settings with browser support, the dbeaver-ce package crashes with an error:

Start Browser Support [org.eclipse.ui.browser 3.6.1100.v20210118-1327]
SWT WebKitGDBus: error creating DBus server Error binding to address: Permission denied
SWT WebKit: error initializing DBus server, dBusServer == 0

(DBeaver:43797): GLib-GIO-CRITICAL **: 15:42:17.071: 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=0x00007f11cc308e16, pid=43797, tid=43798
#
# JRE version: OpenJDK Runtime Environment AdoptOpenJDK-11.0.11+9 (11.0.11+9) (build 11.0.11+9)
# Java VM: OpenJDK 64-Bit Server VM AdoptOpenJDK-11.0.11+9 (11.0.11+9, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C  [libswt-gtk-4942r22.so+0x36e16]  Java_org_eclipse_swt_internal_C_strlen+0xf
#
# Core dump will be written. Default location: core.43797 (may not exist)
#
# An error report file with more information is saved as:
# /home/riednyko/hs_err_pid43797.log

(WebKitWebProcess:43877): Gtk-WARNING **: 15:42:17.099: Theme parsing error: gtk.css:1566:23: 'font-feature-settings' is not a valid property name
Compiled method (nm)   24182 4097     n 0       org.eclipse.swt.internal.C::strlen (native)
 total in heap  [0x00007f12272d7b90,0x00007f12272d7f28] = 920
 relocation     [0x00007f12272d7d08,0x00007f12272d7d38] = 48
 main code      [0x00007f12272d7d40,0x00007f12272d7f20] = 480
 oops           [0x00007f12272d7f20,0x00007f12272d7f28] = 8
Compiled method (nm)   24182 4097     n 0       org.eclipse.swt.internal.C::strlen (native)
 total in heap  [0x00007f12272d7b90,0x00007f12272d7f28] = 920
 relocation     [0x00007f12272d7d08,0x00007f12272d7d38] = 48
 main code      [0x00007f12272d7d40,0x00007f12272d7f20] = 480
 oops           [0x00007f12272d7f20,0x00007f12272d7f28] = 8
Compiled method (nm)   24186 4097     n 0       org.eclipse.swt.internal.C::strlen (native)
 total in heap  [0x00007f12272d7b90,0x00007f12272d7f28] = 920
 relocation     [0x00007f12272d7d08,0x00007f12272d7d38] = 48
 main code      [0x00007f12272d7d40,0x00007f12272d7f20] = 480
 oops           [0x00007f12272d7f20,0x00007f12272d7f28] = 8

(WebKitWebProcess:43877): Gtk-WARNING **: 15:42:17.106: Theme parsing error: gtk.css:3618:25: 'font-feature-settings' is not a valid property name

(WebKitWebProcess:43877): Gtk-WARNING **: 15:42:17.108: Theme parsing error: gtk.css:4080:23: 'font-feature-settings' is not a valid property name
#
# 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.
#

Please tell me what could be the problem? Perhaps something needs to be added to the config snapcraft.yaml?

install snappy-debug and run it in a second terminal … then run your app and see if there are any confinement errors and potentially also interface suggestions to add the right plugs to your snapcraft.yaml …

I added all the missing plugins that the snappy-debug showed, but the problem remained.

This is what debug displays now:

= AppArmor =
Time: Jun 3 13:00:36
Log: apparmor=“DENIED” operation=“open” profile=“snap.dbeaver-ce.dbeaver-ce” name="/sys/fs/cgroup/memory/user.slice/user-1000.slice/user@1000.service/memory.limit_in_bytes" pid=80964 comm=433120436F6D70696C657254687265 requested_mask=“r” denied_mask=“r” fsuid=1000 ouid=0
File: /sys/fs/cgroup/memory/user.slice/user-1000.slice/user@1000.service/memory.limit_in_bytes (read)
Suggestions:

  • adjust program to not access ‘/sys/fs/cgroup/memory/user.slice/user-1000.slice/user@1000.service/memory.limit_in_bytes’
  • adjust program to not access ‘/sys/fs/cgroup/memory/user.slice/user-[0-9].slice/user@[0-9].service/memory.limit_in_bytes’

And after selecting anything related to opening the web browser, the snap application is closed and the error that I attached above is displayed.

Start Browser Support [org.eclipse.ui.browser 3.6.1100.v20210118-1327]
SWT WebKitGDBus: error creating DBus server Error binding to address: Permission denied
SWT WebKit: error initializing DBus server, dBusServer == 0