Newly built Android Studio snap won't start

I believe that due to changes in snapcraft the newly built Android Studio snap does not start. If I install it from stable channel it works fine but if I rebuild with the same yaml that we have in the stable channel my snap won’t start. Below is the error I get.

# A fatal error has been detected by the Java Runtime Environment:
#  SIGSEGV (0xb) at pc=0x00007f510f037ac8, pid=30057, tid=0x00007f50afaee700
# JRE version: OpenJDK Runtime Environment (8.0_152-b01) (build 1.8.0_152-release-1024-b01)
# Java VM: OpenJDK 64-Bit Server VM (25.152-b01 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  []
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
# An error report file with more information is saved as:
# /home/om26er/java_error_in_STUDIO_30057.log
# 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.
Aborted (core dumped)
1 Like

Mind want to try to add build-attributes: no-patchelf to the part that adds the bits, it is probably a pre-built binary. You will lose guarantees for working in classic confinement but it will take you to the place you were in before.

That worked and yes, Android Studio is a prebuild binary. Is there a way I can fix that the “right” way ?

We need to figure out why patchelf is messing up java; if you have time maybe looking up if this is related