Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application shuts down after ~5 seconds #78

Closed
mkoncek opened this issue Jun 12, 2023 · 7 comments
Closed

Application shuts down after ~5 seconds #78

mkoncek opened this issue Jun 12, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@mkoncek
Copy link

mkoncek commented Jun 12, 2023

Running on Fedora KDE 38 (Wayland).
Flatpak 1.15.4.

          ID: org.eclipse.Java
         Ref: app/org.eclipse.Java/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 4.26
     License: EPL-2.0
      Origin: flathub
  Collection: org.flathub.Stable
Installation: system
   Installed: 366.2 MB
     Runtime: org.gnome.Platform/x86_64/43
         Sdk: org.gnome.Sdk/x86_64/43

      Commit: 9dcab94c9496c6376fdfe145513d1ffe828489bcc702897a621d3d5858654a7e
      Parent: 4abeebe9319460bc1ad6fd079e3787e7e7a46095831ce3a7cd4d9ea63860f46a
     Subject: Update eclipse-java-2022-12-R-linux-gtk-x86_64.tar.gz to 2023-03 (33c0d079)
        Date: 2023-03-15 05:46:34 +0000

Running flatpak run org.eclipse.Java starts the program but after a few seconds it shuts down without any error message. The only text output is:

(process:2): Gtk-WARNING **: 13:44:36.785: Locale not supported by C library.
        Using the fallback 'C' locale.

(process:24): Gtk-WARNING **: 13:44:37.187: Locale not supported by C library.
        Using the fallback 'C' locale.

I don't know how to debug this.

@mkoncek
Copy link
Author

mkoncek commented Jun 14, 2023

Adding a log of strace.
log.txt

@akurtakov
Copy link
Collaborator

Would you please run flatpak run org.eclipse.Java -debug and see whether some hint pop ups in the log?

@akurtakov
Copy link
Collaborator

You can also try flatpak repair as you mentioned it works for you on another machine and the whole idea of the flatpak is to have the exact same runtime everywhere.

@mkoncek
Copy link
Author

mkoncek commented Oct 12, 2023

I ran debug then repair then debug again, it keeps crashing.

mkoncek@fedora:~$ flatpak run org.eclipse.Java -debug

(process:2): Gtk-WARNING **: 09:47:11.573: Locale not supported by C library.
        Using the fallback 'C' locale.
Start VM: /app/eclipse//plugins/org.eclipse.justj.openjdk.hotspot.jre.full.linux.x86_64_17.0.7.v20230425-1502/jre/bin/java
-Dosgi.requiredJavaVersion=17
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-Dosgi.dataAreaRequiresExplicitInit=true
-Dorg.eclipse.swt.graphics.Resource.reportNonDisposed=true
-Dsun.java.command=Eclipse
-Xms256m
-Xmx2048m
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-Dosgi.configuration.area=@user.home/.var/app/org.eclipse.Java/eclipse/configuration
--patch-module=java.base=/app/eclipse/flatpak-dev-shim.jar
-Dsun.boot.library.path=/app/lib
-jar /app/eclipse//plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar
-os linux
-ws gtk
-arch x86_64
-showsplash /app/eclipse//plugins/org.eclipse.epp.package.common_4.28.0.20230608-1200/splash.bmp
-launcher /app/eclipse/eclipse
-name Eclipse
--launcher.library /app/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.2.700.v20221108-1024/eclipse_11801.so
-startup /app/eclipse//plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar
--launcher.appendVmargs
-exitdata 8034
-product org.eclipse.epp.package.java.product
-debug
-vm /app/eclipse//plugins/org.eclipse.justj.openjdk.hotspot.jre.full.linux.x86_64_17.0.7.v20230425-1502/jre/bin/java
-vmargs
-Dosgi.requiredJavaVersion=17
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-Dosgi.dataAreaRequiresExplicitInit=true
-Dorg.eclipse.swt.graphics.Resource.reportNonDisposed=true
-Dsun.java.command=Eclipse
-Xms256m
-Xmx2048m
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-Dosgi.configuration.area=@user.home/.var/app/org.eclipse.Java/eclipse/configuration
--patch-module=java.base=/app/eclipse/flatpak-dev-shim.jar
-Dsun.boot.library.path=/app/lib
-jar /app/eclipse//plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar 
Configuration location:
    file:/home/mkoncek/.var/app/org.eclipse.Java/eclipse/configuration/
Configuration file:
    file:/home/mkoncek/.var/app/org.eclipse.Java/eclipse/configuration/config.ini loaded
Install location:
    file:/app/eclipse/
Configuration file:
    file:/app/eclipse/configuration/config.ini loaded
Loading timestamp file from:
         file:/home/mkoncek/.var/app/org.eclipse.Java/eclipse/configuration/   .baseConfigIniTimestamp
        No timestamp file found
Timestamps found: 
         config.ini in the base: 0
         remembered -1
Shared configuration location:
    file:/app/eclipse/configuration/
Framework located:
    file:/app/eclipse/plugins/org.eclipse.osgi_3.18.400.v20230509-2241.jar
Loading extension: reference:file:org.eclipse.osgi.compatibility.state_1.2.800.v20221116-1440.jar
        eclipse.properties not found
Framework classpath:
    file:/app/eclipse/plugins/org.eclipse.osgi_3.18.400.v20230509-2241.jar
    file:/app/eclipse/plugins/
    file:/app/eclipse/plugins/org.eclipse.osgi.compatibility.state_1.2.800.v20221116-1440.jar
Splash location:
    /app/eclipse//plugins/org.eclipse.epp.package.common_4.28.0.20230608-1200/splash.bmp

(process:25): Gtk-WARNING **: 09:47:11.929: Locale not supported by C library.
        Using the fallback 'C' locale.
Debug options:
    file:/home/mkoncek/.options not found
Time to load bundles: 72
SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.
Starting application: 2798

@mkoncek
Copy link
Author

mkoncek commented Oct 12, 2023

Note that I am also using Eclipse installed from the official website in my home directory, that runs fine.

@mkoncek
Copy link
Author

mkoncek commented Oct 12, 2023

On the other laptop where Eclipse can be run, the debug output additionally prints out this:

***WARNING: Detected: GTK_IM_MODULE=xim. This input method is unsupported and can cause graphical issues.
***WARNING: Unset GTK_IM_MODULE or set GTK_IM_MODULE=ibus if flicking is experienced. 

(Eclipse:24): Gtk-WARNING **: 16:49:02.304: Loading IM context type 'xim' failed

(Eclipse:24): Gtk-WARNING **: 16:49:02.345: Loading IM context type 'xim' failed

...

@mkoncek
Copy link
Author

mkoncek commented Oct 20, 2023

It turned out I had 2 installations of Eclipse, one system and one user.
After removing both of them and installing only a user one, this issue no longer happens.

@mkoncek mkoncek closed this as completed Oct 20, 2023
@Mailaender Mailaender added the bug Something isn't working label Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants