You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

IntelliJ 2018.3启动卡顿报错,日志异常如何排查?

Troubleshooting IntelliJ 2018.3 Lag, GLX Error, and Log Path Issues

Hey there, let's tackle your problems one by one—they're mostly unrelated to the npm cache cleanup you did, so let's start with the most critical error first.

1. Fix the GLX Version Error (Root Cause of Lag/Startup Issues)

The error you're seeing (GLX version 1.3 or higher is required) is directly tied to IntelliJ's graphical rendering. IntelliJ relies on Java's Swing/AWT framework, which uses GLX (OpenGL Extension to the X Window System) for hardware acceleration. Your system's outdated GLX version is almost certainly causing the lag and startup failure. Here's how to fix it:

  • First, confirm your current GLX version:
    Run this command in your shell to verify:

    glxinfo | grep "GLX version"
    

    If the output shows GLX version: 1.2, that's confirmed as the problem.

  • Permanent fix: Update your graphics drivers:
    This is the best long-term solution. Depending on your GPU:

    • For NVIDIA GPUs: Install the official proprietary driver (avoid the open-source nouveau driver, as it often lacks support for newer GLX versions).
    • For AMD/Intel GPUs: Update your Mesa graphics libraries using your distro's package manager. For example, on Debian/Ubuntu:
      sudo apt update && sudo apt install mesa-utils
      
      On Fedora:
      sudo dnf update mesa
      
  • Temporary workaround (if you can't update drivers right now):
    Force IntelliJ to use software rendering instead of hardware acceleration:

    1. Open IntelliJ's VM options file. On Linux, this is usually located at ~/IdeaIC2018.3/bin/idea64.vmoptions (or idea.vmoptions for 32-bit systems).
    2. Add this line at the end of the file:
      -Dsun.java2d.opengl=false
      
    3. Save the file and restart IntelliJ. Alternatively, launch IntelliJ with this environment variable to bypass hardware acceleration temporarily:
      LIBGL_ALWAYS_SOFTWARE=1 ./idea.sh
      

2. Locate the Correct IntelliJ Log Files

The path ~/.IdeaIC2018.3/system/log might not contain the latest logs if IntelliJ failed to write to it during a faulty startup. Here's how to find the right logs:

  • If you can launch IntelliJ (even with lag):
    Go to Help > Show Log in File Manager (the exact wording varies by OS, but it will be similar). This will directly open the folder with the most up-to-date log files (like idea.log), which will include details about startup failures or lag.

  • If you can't launch IntelliJ:
    Check these alternative paths for Linux:

    • ~/.cache/JetBrains/IdeaIC2018.3/log
    • /tmp/idea-IdeaIC2018.3.log (temporary logs generated during failed startups)
      You can also start IntelliJ in debug mode to get real-time logs directly in your shell:
    ./idea.sh --debug
    

Short answer: No. The ~/.npm/__cacache folder is just npm's local package cache. Deleting it only affects how fast npm downloads packages in the future—it has no connection to IntelliJ's graphical rendering or startup process. The timing was likely a coincidence.


内容的提问来源于stack exchange,提问作者nadavgam

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.11 09:23:50