portfolio icon indicating copy to clipboard operation
portfolio copied to clipboard

Portfolio performance crashes after opening an example porfolio

Open vojtapolasek opened this issue 2 years ago • 5 comments

PP crashes when I open the example file and view the "performance" tab. I think it is due to problems when presenting accessibility information to a screenreader, but just guessing. I am attaching the error output produced by JVM.

To Reproduce hs_err_pid250758.log

Steps to reproduce the behavior:

  1. Start PP
  2. start Orca screenreader (Linux needed)
  3. click "open example file"
  4. click view -> performance

Expected behavior The program does not crash.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Linux, Arch Linux
  • Version 0.64.4

vojtapolasek avatar Jul 23 '23 15:07 vojtapolasek

@vojtapolasek You're using the OpenJDK JRE version 20 but PP is designed for version 17. You need to downgrade your JRE version for PP purposes.

Morpheus1w3 avatar Jul 23 '23 18:07 Morpheus1w3

OK I switched to 17, here is the new log. hs_err_pid292062.log

vojtapolasek avatar Jul 23 '23 18:07 vojtapolasek

@vojtapolasek the crash happens in the native parts (read: SWT) which PP is using. To my understanding, Eclipse has crashes on Wayland - see here eclipse-platform/eclipse.platform.swt#158 I see that a couple mentions of wayland in the the crash. Can you try disabling Wayland? https://linuxconfig.org/how-to-enable-disable-wayland-on-ubuntu-22-04-desktop

buchen avatar Jul 23 '23 19:07 buchen

Hello @buchen , I am not running Wayland. I am running Mate desktop and it does not support Wayland. I tried to make sure by examining environment variables as stated here: https://stackoverflow.com/questions/45536141/how-i-can-find-out-if-a-linux-system-uses-wayland-or-x11 But it is absolutely possible that the accessibility technology is causing the crash. However, I am not sure how to help you debug that. Do you have some steps I could follow?

vojtapolasek avatar Jul 29 '23 19:07 vojtapolasek

Not sure if it's related, but running the flatpak version of Portfolio Performance won't even open a file, and yes I verified permissions (with Flatseal) allowed file opening. However, I spotted this under processes: /app/jre/bin/java -XX:+IgnoreUnrecognizedVMOptions -Dosgi.requiredJavaVersion=17 --add-modules=ALL-SYSTEM -XX:+UseG1GC -XX:+UseStringDeduplication -Xms512m -Xmx1g -Djdk.gtk.version=3 -jar /app/portfolio//plugins. The double // is my concern.

dkragen avatar Jun 05 '24 17:06 dkragen