Intellij IDEA not loading (most of the time) on Linux
Intellij IDEA only sometimes manages to load correctly on Arch Linux. What I mean by this, is that the window manages to start every time, but the UI itself isn't loading most times.
When launching IDEA via the command line I get this output:
OpenJDK 64-Bit Server VM warning: Archived non-system classes are disabled because the java.system.class.loader property is specified (value = "com.intellij.util.lang.PathClassLoader"). To use archived non-system classes, this property must not be set
CompileCommand: exclude com/intellij/openapi/vfs/impl/FilePartNodeRoot.trieDescend bool exclude = true
Authorization required, but no authorization protocol specified
Start Failed
Internal error. Please refer to https://jb.gg/ide/critical-startup-errors
java.lang.IllegalStateException: @NotNull method com/intellij/util/ui/EDT.getEventDispatchThread must not return null
at com.intellij.util.ui.EDT.$$$reportNull$$$0(EDT.java)
at com.intellij.util.ui.EDT.getEventDispatchThread(EDT.java:48)
at com.intellij.idea.StartupUtil$startApplication$appDeferred$1$rwLockHolderDeferred$1.invokeSuspend(StartupUtil.kt:231)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
Suppressed: java.awt.AWTError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.
at java.desktop/sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at java.desktop/sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:101)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
at java.desktop/sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:60)
at java.desktop/sun.awt.PlatformGraphicsInfo.createGE(PlatformGraphicsInfo.java:36)
at java.desktop/java.awt.GraphicsEnvironment$LocalGE.createGE(GraphicsEnvironment.java:93)
at java.desktop/java.awt.GraphicsEnvironment$LocalGE.<clinit>(GraphicsEnvironment.java:84)
at java.desktop/java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:106)
at java.desktop/sun.awt.X11.XToolkit.<clinit>(XToolkit.java:224)
at java.desktop/sun.awt.PlatformGraphicsInfo.createToolkit(PlatformGraphicsInfo.java:40)
at java.desktop/java.awt.Toolkit.getDefaultToolkit(Toolkit.java:599)
at java.desktop/java.awt.Toolkit.getEventQueue(Toolkit.java:1493)
at java.desktop/java.awt.EventQueue.isDispatchThread(EventQueue.java:1087)
at java.desktop/javax.swing.SwingUtilities.isEventDispatchThread(SwingUtilities.java:1493)
at java.desktop/javax.swing.text.StyleContext.reclaim(StyleContext.java:473)
at java.desktop/javax.swing.text.StyleContext.addAttribute(StyleContext.java:330)
at java.desktop/javax.swing.text.html.StyleSheet.addAttribute(StyleSheet.java:607)
at java.desktop/javax.swing.text.StyleContext$NamedStyle.addAttribute(StyleContext.java:1558)
at java.desktop/javax.swing.text.StyleContext$NamedStyle.setName(StyleContext.java:1368)
at java.desktop/javax.swing.text.StyleContext$NamedStyle.<init>(StyleContext.java:1315)
at java.desktop/javax.swing.text.StyleContext.addStyle(StyleContext.java:125)
at java.desktop/javax.swing.text.StyleContext.<init>(StyleContext.java:105)
at java.desktop/javax.swing.text.html.StyleSheet.<init>(StyleSheet.java:167)
at com.intellij.ide.ui.html.GlobalStyleSheetHolder.<clinit>(GlobalStyleSheetHolder.kt:34)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:467)
at com.intellij.idea.StartupUtil$preloadLafClasses$1.invokeSuspend(StartupUtil.kt:523)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
... 4 more
Suppressed: java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11.XToolkit
at java.desktop/sun.awt.PlatformGraphicsInfo.createToolkit(PlatformGraphicsInfo.java:40)
at java.desktop/java.awt.Toolkit.getDefaultToolkit(Toolkit.java:599)
at com.intellij.idea.StartupUtil$initAwtToolkit$1$1.invokeSuspend(StartupUtil.kt:424)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
... 4 more
Caused by: java.lang.ExceptionInInitializerError: Exception java.awt.AWTError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable. [in thread "DefaultDispatcher-worker-8"]
at java.desktop/sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at java.desktop/sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:101)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
at java.desktop/sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:60)
at java.desktop/sun.awt.PlatformGraphicsInfo.createGE(PlatformGraphicsInfo.java:36)
at java.desktop/java.awt.GraphicsEnvironment$LocalGE.createGE(GraphicsEnvironment.java:93)
at java.desktop/java.awt.GraphicsEnvironment$LocalGE.<clinit>(GraphicsEnvironment.java:84)
at java.desktop/java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:106)
at java.desktop/sun.awt.X11.XToolkit.<clinit>(XToolkit.java:224)
at java.desktop/sun.awt.PlatformGraphicsInfo.createToolkit(PlatformGraphicsInfo.java:40)
at java.desktop/java.awt.Toolkit.getDefaultToolkit(Toolkit.java:599)
at java.desktop/java.awt.Toolkit.getEventQueue(Toolkit.java:1493)
at java.desktop/java.awt.EventQueue.isDispatchThread(EventQueue.java:1087)
at java.desktop/javax.swing.SwingUtilities.isEventDispatchThread(SwingUtilities.java:1493)
at java.desktop/javax.swing.text.StyleContext.reclaim(StyleContext.java:473)
at java.desktop/javax.swing.text.StyleContext.addAttribute(StyleContext.java:330)
at java.desktop/javax.swing.text.html.StyleSheet.addAttribute(StyleSheet.java:607)
at java.desktop/javax.swing.text.StyleContext$NamedStyle.addAttribute(StyleContext.java:1558)
at java.desktop/javax.swing.text.StyleContext$NamedStyle.setName(StyleContext.java:1368)
at java.desktop/javax.swing.text.StyleContext$NamedStyle.<init>(StyleContext.java:1315)
at java.desktop/javax.swing.text.StyleContext.addStyle(StyleContext.java:125)
at java.desktop/javax.swing.text.StyleContext.<init>(StyleContext.java:105)
at java.desktop/javax.swing.text.html.StyleSheet.<init>(StyleSheet.java:167)
at com.intellij.ide.ui.html.GlobalStyleSheetHolder.<clinit>(GlobalStyleSheetHolder.kt:34)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:467)
at com.intellij.idea.StartupUtil$preloadLafClasses$1.invokeSuspend(StartupUtil.kt:523)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
... 4 more
Suppressed: [CIRCULAR REFERENCE: java.lang.IllegalStateException: @NotNull method com/intellij/util/ui/EDT.getEventDispatchThread must not return null]
-----
Your JRE: 17.0.7+7 amd64 (N/A)
/usr/lib/jvm/java-17-openjdk
Also, a UI exception occurred on an attempt to show the above message
java.lang.NoClassDefFoundError: Could not initialize class java.awt.GraphicsEnvironment$LocalGE
at java.desktop/java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:106)
at java.desktop/javax.swing.RepaintManager.<clinit>(RepaintManager.java:247)
at java.desktop/javax.swing.JComponent.repaint(JComponent.java:4891)
at java.desktop/java.awt.Component.repaint(Component.java:3405)
at java.desktop/javax.swing.text.JTextComponent.setEditable(JTextComponent.java:1818)
at java.desktop/javax.swing.text.JTextComponent.<init>(JTextComponent.java:323)
at java.desktop/javax.swing.JEditorPane.<init>(JEditorPane.java:254)
at java.desktop/javax.swing.JTextPane.<init>(JTextPane.java:100)
at com.intellij.idea.StartupErrorReporter.showMessage(StartupErrorReporter.java:85)
at com.intellij.idea.StartupErrorReporter.showMessage(StartupErrorReporter.java:39)
at com.intellij.idea.Main.main(Main.kt:71)
Caused by: java.lang.ExceptionInInitializerError: Exception java.awt.AWTError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable. [in thread "DefaultDispatcher-worker-8"]
at java.desktop/sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at java.desktop/sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:101)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
at java.desktop/sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:60)
at java.desktop/sun.awt.PlatformGraphicsInfo.createGE(PlatformGraphicsInfo.java:36)
at java.desktop/java.awt.GraphicsEnvironment$LocalGE.createGE(GraphicsEnvironment.java:93)
at java.desktop/java.awt.GraphicsEnvironment$LocalGE.<clinit>(GraphicsEnvironment.java:84)
at java.desktop/java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:106)
at java.desktop/sun.awt.X11.XToolkit.<clinit>(XToolkit.java:224)
at java.desktop/sun.awt.PlatformGraphicsInfo.createToolkit(PlatformGraphicsInfo.java:40)
at java.desktop/java.awt.Toolkit.getDefaultToolkit(Toolkit.java:599)
at java.desktop/java.awt.Toolkit.getEventQueue(Toolkit.java:1493)
at java.desktop/java.awt.EventQueue.isDispatchThread(EventQueue.java:1087)
at java.desktop/javax.swing.SwingUtilities.isEventDispatchThread(SwingUtilities.java:1493)
at java.desktop/javax.swing.text.StyleContext.reclaim(StyleContext.java:473)
at java.desktop/javax.swing.text.StyleContext.addAttribute(StyleContext.java:330)
at java.desktop/javax.swing.text.html.StyleSheet.addAttribute(StyleSheet.java:607)
at java.desktop/javax.swing.text.StyleContext$NamedStyle.addAttribute(StyleContext.java:1558)
at java.desktop/javax.swing.text.StyleContext$NamedStyle.setName(StyleContext.java:1368)
at java.desktop/javax.swing.text.StyleContext$NamedStyle.<init>(StyleContext.java:1315)
at java.desktop/javax.swing.text.StyleContext.addStyle(StyleContext.java:125)
at java.desktop/javax.swing.text.StyleContext.<init>(StyleContext.java:105)
at java.desktop/javax.swing.text.html.StyleSheet.<init>(StyleSheet.java:167)
at com.intellij.ide.ui.html.GlobalStyleSheetHolder.<clinit>(GlobalStyleSheetHolder.kt:34)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:467)
at com.intellij.idea.StartupUtil$preloadLafClasses$1.invokeSuspend(StartupUtil.kt:523)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
My system is running on Arch Linux with Hyprland and XWayland on the latest Nvidia proprietary drivers and an AMD x64 CPU.
I have these plugins installed:
- Atom Material Icons
- glsl-plugin-idea
- IdeaVim
- intellij-rainbow-brackets-lite
- Material Theme UI Lite
I don't think these are the problem though, as even without them being installed the problem sill occures. I am not very knowledgeable about IDEA though, so I don't know if there is maybe some cache I forgot to clear when reinstalling, that loaded them.
These are the directories I cleared:
- ~/.local/share/JetBrains/IdeaIC2023.1
- ~/.cache/JetBrains/IdeaIC2023.1
I reinstalled 2 times, without any success. Even though the first launch after every reinstall was successful, which leads me to believe it has something to do with caching.
I installed IDEA from the AUR, to be specific intellij-idea-community-edition version 4:2023.1.2-1. I tried intellij-idea-community-edition-git, but it coundn't satisfy the dependency java8-openjfx. Here is the exact Output I got after running : 'paru -S java8-openjfx'
:: Resolving dependencies...
:: Calculating conflicts...
:: Calculating inner conflicts...
Aur (1) java8-openjfx-8.u202-9
:: Proceed to review? [Y/n]: y
:: Downloading PKGBUILDs...
PKGBUILDs up to date
nothing new to review
fetching devel info...
==> Making package: java8-openjfx 8.u202-9 (Fri 16 Jun 2023 11:14:54 AM CEST)
==> Retrieving sources...
-> Found 8u202-ga.tar.bz2
-> Found gradle.properties
-> Found gradle-4.8-bin.zip
-> Found java8-openjfx-flags.patch
-> Found java8-openjfx-no-xlocale.patch
-> Found java8-openjfx-no-sys-sysctl.patch
-> Found java8-openjfx-CVE-2021-3517-fix.patch
-> Found java8-openjfx-CVE-2021-3522-fix.patch
-> Found java8-openjfx-include-iterator.patch
-> Found java8-openjfx-no-check-jfxrt-jar.patch
-> Found java8-openjfx-fix-java-version-check.patch
==> Validating source files with sha256sums...
8u202-ga.tar.bz2 ... Passed
gradle.properties ... Passed
gradle-4.8-bin.zip ... Passed
java8-openjfx-flags.patch ... Passed
java8-openjfx-no-xlocale.patch ... Passed
java8-openjfx-no-sys-sysctl.patch ... Passed
java8-openjfx-CVE-2021-3517-fix.patch ... Passed
java8-openjfx-CVE-2021-3522-fix.patch ... Passed
java8-openjfx-include-iterator.patch ... Passed
java8-openjfx-no-check-jfxrt-jar.patch ... Passed
java8-openjfx-fix-java-version-check.patch ... Passed
==> Making package: java8-openjfx 8.u202-9 (Fri 16 Jun 2023 11:14:56 AM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found 8u202-ga.tar.bz2
-> Found gradle.properties
-> Found gradle-4.8-bin.zip
-> Found java8-openjfx-flags.patch
-> Found java8-openjfx-no-xlocale.patch
-> Found java8-openjfx-no-sys-sysctl.patch
-> Found java8-openjfx-CVE-2021-3517-fix.patch
-> Found java8-openjfx-CVE-2021-3522-fix.patch
-> Found java8-openjfx-include-iterator.patch
-> Found java8-openjfx-no-check-jfxrt-jar.patch
-> Found java8-openjfx-fix-java-version-check.patch
==> Validating source files with sha256sums...
8u202-ga.tar.bz2 ... Passed
gradle.properties ... Passed
gradle-4.8-bin.zip ... Passed
java8-openjfx-flags.patch ... Passed
java8-openjfx-no-xlocale.patch ... Passed
java8-openjfx-no-sys-sysctl.patch ... Passed
java8-openjfx-CVE-2021-3517-fix.patch ... Passed
java8-openjfx-CVE-2021-3522-fix.patch ... Passed
java8-openjfx-include-iterator.patch ... Passed
java8-openjfx-no-check-jfxrt-jar.patch ... Passed
java8-openjfx-fix-java-version-check.patch ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
-> Extracting 8u202-ga.tar.bz2 with bsdtar
-> Extracting gradle-4.8-bin.zip with bsdtar
==> Starting prepare()...
patching file buildSrc/linux.gradle
patching file modules/media/src/main/native/gstreamer/projects/linux/avplugin/Makefile
patching file modules/media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile
patching file modules/media/src/main/native/gstreamer/projects/linux/gstreamer-lite/Makefile
patching file modules/media/src/main/native/jfxmedia/projects/linux/Makefile
patching file modules/media/src/main/native/gstreamer/projects/linux/glib-lite/Makefile
patching file modules/media/src/main/native/gstreamer/3rd_party/glib/glib-2.56.1/glib/gstrfuncs.c
patching file modules/web/src/main/native/Source/ThirdParty/libxslt/src/libxslt/xsltlocale.h
patching file modules/fxpackager/src/main/native/library/common/PosixPlatform.cpp
patching file entities.c
Hunk #1 succeeded at 666 (offset -38 lines).
patching file gst-libs/gst/tag/id3v2frames.c
patching file modules/web/src/main/native/Source/WTF/wtf/text/IntegerToStringConversion.h
patching file modules/web/src/main/native/Source/WTF/wtf/Vector.h
patching file build.gradle
patching file build.gradle
==> Sources are ready.
java8-openjfx-8.u202-9: parsing pkg list...
==> Making package: java8-openjfx 8.u202-9 (Fri 16 Jun 2023 11:15:09 AM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
FAILURE: Build failed with an exception.
* What went wrong:
Could not create service of type ScriptPluginFactory using BuildScopeServices.createScriptPluginFactory().
> Could not create service of type PluginResolutionStrategyInternal using BuildScopeServices.createPluginResolutionStrategy().
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 0s
==> ERROR: A failure occurred in build().
Aborting...
error: failed to build 'java8-openjfx-8.u202-9':
error: packages failed to build: java8-openjfx-8.u202-9
I hope someone has any idea about what's going on, because I certainly don't, and after trying for hours, I'm all out of Ideas.
请先登录再写评论。
So, as it turns out it was the Atom Material Icons Plugin. I have no Idea why removing it worked this time, but not the times before, but as it stands now, it works.
Hi,
The provided details do not point specifically to the plugin mentioned.
A custom installation can cause unpredicted problems. Please reinstall the IDE via one of our official channels, we recommend snap
If the issue persists, the following error message:
Can be related to this topic, so we recommend trying the steps mentioned.
Thanks Miguel Monteiro!
Installing it via snap worked! Now the plugins don't break it!
it worked. Thanks. mynorthsidehr