IDEA doesn't start under WSL (Pengwin Debian-based distro)
The Idea Linux tarball starts with a splashscreen and then dies. Any ideas where to start troubleshooting? The console shows
$ intellij/bin/idea.sh
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Nov 19, 2019 10:55:28 AM java.util.prefs.FileSystemPreferences$6 run
WARNING: Prefs file removed in background /home/jbellis/.java/.userPrefs/prefs.xml
And the log file contains
$ cat ~/.IdeaIC2019.2/system/log/idea.log
2019-11-19 11:06:52,190 [ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2019-11-19 11:06:52,234 [ 44] INFO - #com.intellij.idea.Main - JNA library (64-bit) loaded in 29 ms
2019-11-19 11:06:52,263 [ 73] INFO - #com.intellij.idea.Main - IDE: IntelliJ IDEA (build #IC-192.7142.36, 29 Oct 2019 01:03)
2019-11-19 11:06:52,263 [ 73] INFO - #com.intellij.idea.Main - OS: Linux (4.4.0-18362-microsoft, amd64)
2019-11-19 11:06:52,264 [ 74] INFO - #com.intellij.idea.Main - JRE: 11.0.4+10-b304.77 (JetBrains s.r.o)
2019-11-19 11:06:52,265 [ 75] INFO - #com.intellij.idea.Main - JVM: 11.0.4+10-b304.77 (OpenJDK 64-Bit Server VM)
2019-11-19 11:06:52,265 [ 75] INFO - #com.intellij.idea.Main - JVM Args: -Xms128m -Xmx750m -XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -XX:CICompilerCount=2 -Dsun.io.useCanonPrefixCache=false -Djava.net.preferIPv4Stack=true -Djdk.http.auth.tunneling.disabledSchemes="" -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Djdk.attach.allowAttachSelf -Dkotlinx.coroutines.debug=off -Djdk.module.illegalAccess.silent=true -Dawt.useSystemAAFontSettings=lcd -Dsun.java2d.renderer=sun.java2d.marlin.MarlinRenderingEngine -Dsun.tools.attach.tmp.only=true -XX:ErrorFile=/home/jbellis/java_error_in_IDEA_%p.log -XX:HeapDumpPath=/home/jbellis/java_error_in_IDEA.hprof -Didea.paths.selector=IdeaIC2019.2 -Djb.vmOptionsFile=/home/jbellis/intellij/bin/idea64.vmoptions -Didea.platform.prefix=Idea -Didea.jre.check=true
2019-11-19 11:06:52,265 [ 75] INFO - #com.intellij.idea.Main - charsets: JNU=UTF-8 file=UTF-8
2019-11-19 11:06:52,527 [ 337] INFO - plication.impl.ApplicationImpl - CPU cores: 12; ForkJoinPool.commonPool: java.util.concurrent.ForkJoinPool@6e9480cd[Running, parallelism = 11, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]; factory: com.intellij.concurrency.IdeaForkJoinWorkerThreadFactory@333da03a
2019-11-19 11:06:52,566 [ 376] INFO - #com.intellij.idea.Main - WM detected: X410
2019-11-19 11:06:53,526 [ 1336] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE SHUTDOWN ------------------------------------------------------
2019-11-19 11:06:53,528 [ 1338] INFO - org.jetbrains.io.BuiltInServer - web server stopped
请先登录再写评论。
How did you configure the X Window Server? Do any other other Java Swing apps work for you (JEdit, NetBeans)?
JEdit works. I'm running the X410 server out of the box.
> Prefs file removed in background /home/jbellis/.java/.userPrefs/prefs.xml
Do you have correct permissions for this file? IDE needs to store data there.
https://youtrack.jetbrains.com/issue/IDEA-217511 might be related.
Yes, permissions are correct and `touch` works fine on that path.
The user agreement issue does look related since I don't ever see that dialog. Is there a way to manually write out the agreement flag to disk somewhere?
Try unpacking this file into the home directory: https://dl.dropboxusercontent.com/s/1052somde5oyspy/.local.tar.gz. Make sure the following path is created: ~/.local/share/JetBrains.
Thanks, that did something -- the splash screen no longer appears. But it still shuts down immediately.
Can you try running 2019.1 version from https://www.jetbrains.com/idea/download/previous.html first? Does it work?