flathub / com.jetbrains.IntelliJ-IDEA-Ultimate

https://flathub.org/apps/details/com.jetbrains.IntelliJ-IDEA-Ultimate
15 stars 7 forks source link

Crashes after startup #178

Open Hanqnero opened 6 months ago

Hanqnero commented 6 months ago

Always Crashes after being open for several seconds

$ $ flatpak run com.jetbrains.IntelliJ-IDEA-Ultimate
idea-wrapper: Setting up NPM packages
idea-wrapper: Setting up Cargo packages
idea-wrapper: Setting up Python packages
idea-wrapper: Setting up Ruby packages
CompileCommand: exclude com/intellij/openapi/vfs/impl/FilePartNodeRoot.trieDescend bool exclude = true
2024-02-24 13:45:07,401 [   1360]   WARN - #c.i.s.ComponentManagerImpl - `preload=true` must be used only for core services (service=com.intellij.ae.database.core.baseEvents.fus.AddStatisticsEventLogListenerTemporary, plugin=com.jetbrains.ae.database)
2024-02-24 13:45:07,402 [   1361]   WARN - #c.i.s.ComponentManagerImpl - `preload=true` must be used only for core services (service=com.jetbrains.rdserver.statistics.BackendStatisticsManager, plugin=com.jetbrains.codeWithMe)
2024-02-24 13:45:07,460 [   1419]   WARN - #c.i.o.v.n.p.d.e.DurableEnumeratorFactory - [contentHashes.dat]: .valueToId map is out-of-sync with .valuesLog data -> rebuilding it
2024-02-24 13:45:07,479 [   1438]   WARN - #c.i.o.v.n.p.PersistentFSLoader - [VFS load problem]: VFS wasn't safely shut down: records.connectionStatus != SAFELY_CLOSED
2024-02-24 13:45:07,479 [   1438]   WARN - #c.i.o.v.n.p.PersistentFSLoader - [VFS load problem]: Content storage is not match content hash enumerator: contents.records(=0) != contentHashes.recordsCount(=1)
2024-02-24 13:45:07,491 [   1450]   WARN - #c.i.o.v.n.p.r.NotClosedProperlyRecoverer - file[#6]: contentId(=1) content fails to resolve. null
2024-02-24 13:45:07,496 [   1455]   WARN - #c.i.o.v.n.p.r.ContentStoragesRecoverer - ContentStorage check is failed: file[#6].content[contentId: 1] is broken, java.io.EOFException
2024-02-24 13:45:07,521 [   1480]   WARN - #c.i.o.v.n.p.r.ContentStoragesRecoverer - ContentStorage is found broken -> fixed by invalidating all the content refs (LocalHistory is lost)
Gtk-Message: 13:45:07.640: Failed to load module "canberra-gtk-module"
2024-02-24 13:45:07,825 [   1784]   WARN - #c.i.s.ComponentManagerImpl - com.intellij.psi.search.FilenameIndex initializer requests com.intellij.ide.plugins.PluginUtil instance
2024-02-24 13:45:08,133 [   2092]   WARN - #c.i.s.ComponentManagerImpl - com.intellij.lang.javascript.psi.jsdoc.impl.JSDocCustomTags initializer requests com.intellij.lang.javascript.JSDisposable instance

after crash refuses to launch before running rm on .lock file mentioned below.

$ flatpak run com.jetbrains.IntelliJ-IDEA-Ultimate dontReopenProjects
idea-wrapper: Setting up NPM packages
idea-wrapper: Setting up Cargo packages
idea-wrapper: Setting up Python packages
idea-wrapper: Setting up Ruby packages
CompileCommand: exclude com/intellij/openapi/vfs/impl/FilePartNodeRoot.trieDescend bool exclude = true
Cannot connect to already running IDE instance.
IllegalStateException: Process "/app/extra/IDEA-U/jbr/bin/java" (2) is still running.
If the process is an instance of the IDE, please collect the logs and contact support.
If it isn't, please delete the stale "/home/hq/.var/app/com.jetbrains.IntelliJ-IDEA-Ultimate/config/JetBrains/IntelliJIdea2023.3/.lock" file and restart the IDE.
x80486 commented 5 months ago

@Hanqnero, is this a new install or after upgrading? What operating system are you using?

Hanqnero commented 5 months ago

Sorry for not providing any details in the first place. It is a fresh install of Arch Linux (via archinstall)

System details:

If necessary can provide other details.

x80486 commented 5 months ago

@Hanqnero, this is almost the exact same setup I work with every day. I think this may be something specific to your machine, but would you be able to share the content of $HOME/.var/app/com.jetbrains.IntelliJ-IDEA-Ultimate/cache/JetBrains/IntelliJIdea$VERSION/log/idea.log?

It should give you a hint of what could really be the problem.

Hanqnero commented 5 months ago

Did a fresh install of the IntelliJ-IDEA flatpak, still crashes after opened for several seconds. Here is idea.log.

x80486 commented 5 months ago

You mentioned that the application crashes but I would expect to see an error somewhere in the logs.

The first error you posted can be solved by removing the file $HOME/.var/app/com.jetbrains.IntelliJ-IDEA-Ultimate/config/JetBrains/IntelliJIdea$VERSION/.lock.

mehmet-ercan commented 5 months ago

Hi, I encountered an error today while using IntelliJ on Fedora. I hadn't experienced any issues during the first two days of usage. The error occurred when I entered TTY mode on Fedora, although I'm uncertain about its connection to TTY mode. Regardless, the error recurs approximately every 2 or 3 hours. To resolve it, I delete the .lock file and restart IntelliJ.

Hanqnero commented 5 months ago

You mentioned that the application crashes but I would expect to see an error somewhere in the logs.

The first error you posted can be solved by removing the file $HOME/.var/app/com.jetbrains.IntelliJ-IDEA-Ultimate/config/JetBrains/IntelliJIdea$VERSION/.lock.

I have tried removing the .lock file, IDEA starts, asks for permission to send usage statistics, then opens project selection window and crashes on it. If for some reason provided idea.log is not complete. here is new idea.log with the case described in this message created just after reproducing the issue.

x80486 commented 5 months ago

I think you may have a problem with a plugin, the location for the same, or the license.

Can you try these (backup first if you think you are going to need anything):

$ flatpak uninstall --delete-data com.jetbrains.IntelliJ-IDEA-Ultimate

$ rm -fr /home/hq/.var/app/com.jetbrains.IntelliJ-IDEA-Ultimate/ — shouldn't be there anyway

$ rm -fr /home/hq/.java/

At this point you should have a clean slate to install again; then run: flatpak install flathub com.jetbrains.IntelliJ-IDEA-Ultimate