AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1509596
Accepted
jgosar
jgosar
Asked: 2024-04-05 20:45:24 +0800 CST2024-04-05 20:45:24 +0800 CST 2024-04-05 20:45:24 +0800 CST

自最新更新以来 IntelliJ 崩溃

  • 772

今天早上 IntelliJ 从版本 2023.3 更新到了 2024.1,从那以后它就不再工作了。我使用的是 Ubuntu 22.04。

当我尝试运行它时,它会打开几秒钟,然后除终端之外的所有当前正在运行的应用程序都将关闭。

我在 idea.log 中看不到任何特别有趣的内容:

[removed this very long log from the question because it did not contain anything related to the issue]

我试过:

  • 重新启动计算机
  • 卸载并重新安装 IntelliJ
  • 再次下载并运行 IntelliJ 2023.3
  • 禁用 OOM 杀手:如何在 Ubuntu 22.04 中禁用 systemd OOM 进程杀手?
  • 重命名此处列出的 IntelliJ Configuration/Plugins/System 目录:https://intellij-support.jetbrains.com/hc/en-us/articles/206544519-Directories-used-by-the-IDE-to-store-settings -缓存插件和日志?页=3

唯一有效的方法是以 root 身份而不是我自己运行 IntelliJ,但我不想这样做,除非这是最后的手段。

然后我看了看/var/log/syslog,在那里我发现了这个:

systemd[3656]: Started snap.intellij-idea-ultimate.intellij-idea-ultimate-f57e7f9d-943c-4fd7-a013-2536fe031f75.scope.
gnome-shell[45831]: malloc(): unaligned tcache chunk detected
gnome-shell[45831]: (EE)
gnome-shell[45831]: (EE) Backtrace:
gnome-shell[45831]: (EE) 0: /usr/bin/Xwayland (0x5a5623050000+0x165369) [0x5a56231b5369]
gnome-shell[45831]: (EE) 1: /usr/bin/Xwayland (0x5a5623050000+0x165472) [0x5a56231b5472]
gnome-shell[45831]: (EE) 2: /lib/x86_64-linux-gnu/libc.so.6 (0x7aa585e00000+0x42520) [0x7aa585e42520]
gnome-shell[45831]: (EE) 3: /lib/x86_64-linux-gnu/libc.so.6 (pthread_kill+0x12c) [0x7aa585e969fc]
gnome-shell[45831]: (EE) 4: /lib/x86_64-linux-gnu/libc.so.6 (raise+0x16) [0x7aa585e42476]
gnome-shell[45831]: (EE) 5: /lib/x86_64-linux-gnu/libc.so.6 (abort+0xd3) [0x7aa585e287f3]
gnome-shell[45831]: (EE) 6: /lib/x86_64-linux-gnu/libc.so.6 (0x7aa585e00000+0x89676) [0x7aa585e89676]
gnome-shell[45831]: (EE) 7: /lib/x86_64-linux-gnu/libc.so.6 (0x7aa585e00000+0xa0cfc) [0x7aa585ea0cfc]
gnome-shell[45831]: (EE) 8: /lib/x86_64-linux-gnu/libc.so.6 (0x7aa585e00000+0xa53dc) [0x7aa585ea53dc]
gnome-shell[45831]: (EE) 9: /usr/bin/Xwayland (0x5a5623050000+0xf9d92) [0x5a5623149d92]
gnome-shell[45831]: (EE) 10: /usr/bin/Xwayland (0x5a5623050000+0xa72ce) [0x5a56230f72ce]
gnome-shell[45831]: (EE) 11: /usr/bin/Xwayland (0x5a5623050000+0x34c63) [0x5a5623084c63]
gnome-shell[45831]: (EE) 12: /lib/x86_64-linux-gnu/libc.so.6 (0x7aa585e00000+0x29d90) [0x7aa585e29d90]
gnome-shell[45831]: (EE) 13: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0x80) [0x7aa585e29e40]
gnome-shell[45831]: (EE) 14: /usr/bin/Xwayland (0x5a5623050000+0x36495) [0x5a5623086495]
gnome-shell[45831]: (EE)
gnome-shell[45831]: (EE)
gnome-shell[45831]: Fatal server error:
gnome-shell[45831]: (EE) Caught signal 6 (Aborted). Server aborting
gnome-shell[45831]: (EE)
gnome-shell[3923]: Connection to xwayland lost
pulseaudio[3715]: X11 I/O error handler called
google-chrome.desktop[45806]: [45913:45913:0405/133205.156084:ERROR:connection.cc(61)] X connection error received.
pulseaudio[3715]: X11 I/O error exit handler called, preparing to tear down X11 modules
gnome-shell[3923]: X Wayland crashed; attempting to recover
systemd[3656]: Stopped target GNOME session X11 services.
systemd[3656]: Stopping GNOME XSettings service...
systemd[3656]: org.gnome.SettingsDaemon.XSettings.service: Main process exited, code=exited, status=1/FAILURE
gnome-shell[3923]: Using public X11 display :0, (using :1 for managed services)
systemd[3656]: org.gnome.SettingsDaemon.XSettings.service: Failed with result 'exit-code'.
systemd[3656]: Stopped GNOME XSettings service.
systemd[3656]: Stopped target GNOME session X11 services.
systemd[3656]: app-gnome-google\x2dchrome-45799.scope: Consumed 5.204s CPU time.
systemd[3656]: snap.intellij-idea-ultimate.intellij-idea-ultimate-f57e7f9d-943c-4fd7-a013-2536fe031f75.scope: Consumed 26.830s CPU time.

由于堆栈跟踪中提到了 Wayland,我尝试按照此处所述禁用它:https://jumpcloud.com/support/troubleshooting-remote-assist-disable-wayland-or-gpu-rendering-for-linux

这只会让问题变得更糟,因为除了所有应用程序崩溃之外,我现在还必须在崩溃后重新登录 Ubuntu。

新的堆栈跟踪非常相似:

intellij-idea-ultimate_intellij-idea-ultimate.desktop[70499]: 2024-04-05 13:59:13,248 [   1792]   WARN - #c.i.s.ComponentManagerImpl - com.intellij.platform.ide.menu.GlobalMenuLinux <clinit> requests com.intellij.openapi.application.Experiments instance. Class initialization must not depend on services. Consider using instance of the service on-demand instead.
intellij-idea-ultimate_intellij-idea-ultimate.desktop[70499]: 2024-04-05 13:59:13,521 [   2065]   WARN - #c.i.e.t.TargetBasedSdks - SDK target configuration data is absent
intellij-idea-ultimate_intellij-idea-ultimate.desktop[70499]: 2024-04-05 13:59:13,526 [   2070]   WARN - #c.i.e.t.TargetBasedSdks - SDK target configuration data is absent
intellij-idea-ultimate_intellij-idea-ultimate.desktop[70499]: 2024-04-05 13:59:13,527 [   2071]   WARN - #c.i.e.t.TargetBasedSdks - SDK target configuration data is absent
intellij-idea-ultimate_intellij-idea-ultimate.desktop[70499]: 2024-04-05 13:59:14,056 [   2600]   WARN - #c.i.u.x.Binding - No accessors for java.awt.Color. This means that state class cannot be serialized properly. Please see https://jb.gg/ij-psoc
intellij-idea-ultimate_intellij-idea-ultimate.desktop[70499]: 2024-04-05 13:59:14,895 [   3439]   WARN - #c.i.s.ComponentManagerImpl - com.github.copilot.platform.state.ToolWindowRegistrationSettings <clinit> requests com.github.copilot.platform.state.ToolWindowRegistrationSettings instance. Class initialization must not depend on services. Consider using instance of the service on-demand in>
systemd[3656]: snap.snapd-desktop-integration.snapd-desktop-integration.service: Scheduled restart job, restart counter is at 138.
systemd[3656]: Stopped Service for snap application snapd-desktop-integration.snapd-desktop-integration.
systemd[3656]: Started Service for snap application snapd-desktop-integration.snapd-desktop-integration.
snapd-desktop-i[70805]: Failed to do gtk init. Waiting for a new session with desktop capabilities.
/usr/libexec/gdm-x-session[55967]: malloc(): unaligned tcache chunk detected
/usr/libexec/gdm-x-session[55967]: (EE)
/usr/libexec/gdm-x-session[55967]: (EE) Backtrace:
/usr/libexec/gdm-x-session[55967]: (EE) 0: /usr/lib/xorg/Xorg (OsLookupColor+0x139) [0x5b8231699ab9]
/usr/libexec/gdm-x-session[55967]: (EE) 1: /lib/x86_64-linux-gnu/libc.so.6 (__sigaction+0x50) [0x7d49e1a42520]
/usr/libexec/gdm-x-session[55967]: (EE) 2: /lib/x86_64-linux-gnu/libc.so.6 (pthread_kill+0x12c) [0x7d49e1a969fc]
/usr/libexec/gdm-x-session[55967]: (EE) 3: /lib/x86_64-linux-gnu/libc.so.6 (raise+0x16) [0x7d49e1a42476]
/usr/libexec/gdm-x-session[55967]: (EE) 4: /lib/x86_64-linux-gnu/libc.so.6 (abort+0xd3) [0x7d49e1a287f3]
/usr/libexec/gdm-x-session[55967]: (EE) 5: /lib/x86_64-linux-gnu/libc.so.6 (__fsetlocking+0x426) [0x7d49e1a89676]
/usr/libexec/gdm-x-session[55967]: (EE) 6: /lib/x86_64-linux-gnu/libc.so.6 (timer_settime+0x2cc) [0x7d49e1aa0cfc]
/usr/libexec/gdm-x-session[55967]: (EE) 7: /lib/x86_64-linux-gnu/libc.so.6 (malloc+0x33c) [0x7d49e1aa53dc]
/usr/libexec/gdm-x-session[55967]: (EE) 8: /usr/lib/xorg/Xorg (SetGlyphPicture+0x15d) [0x5b82315f311d]
/usr/libexec/gdm-x-session[55967]: (EE) 9: /usr/lib/xorg/Xorg (AddTraps+0x347a) [0x5b82315fb8da]
/usr/libexec/gdm-x-session[55967]: (EE) 10: /usr/lib/xorg/Xorg (SendErrorToClient+0x365) [0x5b8231523635]
/usr/libexec/gdm-x-session[55967]: (EE) 11: /usr/lib/xorg/Xorg (InitFonts+0x3c4) [0x5b82315276b4]
/usr/libexec/gdm-x-session[55967]: (EE) 12: /lib/x86_64-linux-gnu/libc.so.6 (__libc_init_first+0x90) [0x7d49e1a29d90]
/usr/libexec/gdm-x-session[55967]: (EE) 13: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0x80) [0x7d49e1a29e40]
/usr/libexec/gdm-x-session[55967]: (EE) 14: /usr/lib/xorg/Xorg (_start+0x25) [0x5b8231510605]
/usr/libexec/gdm-x-session[55967]: (EE)
/usr/libexec/gdm-x-session[55967]: (EE)
/usr/libexec/gdm-x-session[55967]: Fatal server error:
/usr/libexec/gdm-x-session[55967]: (EE) Caught signal 6 (Aborted). Server aborting
/usr/libexec/gdm-x-session[55967]: (EE)
/usr/libexec/gdm-x-session[55967]: (EE)
/usr/libexec/gdm-x-session[55967]: Please consult the The X.Org Foundation support
/usr/libexec/gdm-x-session[55967]: #011 at http://wiki.x.org
/usr/libexec/gdm-x-session[55967]:  for help.
/usr/libexec/gdm-x-session[55967]: (EE) Please also check the log file at "/home/jgosar/.local/share/xorg/Xorg.1.log" for additional information.
/usr/libexec/gdm-x-session[55967]: (EE)
/usr/libexec/gdm-x-session[55967]: (II) AIGLX: Suspending AIGLX clients for VT switch
snapd-desktop-i[70805]: Checking session /org/freedesktop/login1/session/_325...
snapd-desktop-i[70805]: Is a desktop session! Forcing a reload.
snapd-desktop-i[70805]: Loop exited. Forcing reload.
/usr/libexec/gdm-x-session[55967]: (EE) Server terminated with error (1). Closing log file.

/home/jgosar/.local/share/xorg/Xorg.1.log根本不包含任何有用的信息

有人对我还可以尝试什么有任何建议吗?

xorg
  • 5 5 个回答
  • 2420 Views

5 个回答

  • Voted
  1. Best Answer
    artur
    2024-04-06T04:50:47+08:002024-04-06T04:50:47+08:00

    这不是 IntelliJ 的问题。今天(2024 年 4 月 5 日)还有更多应用程序停止工作。这是 X11/wayland 更新。虽然没有补丁,但请返回到以前的版本(如果您确定没有人可以访问您的计算机 - https://auscert.org.au/bulletins/ESB-2024.2065/):

    乌班图22.04

    须藤 cd /tmp
    sudo wget https://launchpad.net/~ubuntu-security-propose/+archive/ubuntu/ppa/+build/27692766/+files/xserver-xorg-core_21.1.4-2ubuntu1.7~22.04.8_amd64.deb
    sudo dpkg -i xserver-xorg-core_21.1.4-2ubuntu1.7~22.04.8_amd64.deb
    
    sudo wget https://launchpad.net/~ubuntu-security-propose/+archive/ubuntu/ppa/+build/27692766/+files/xserver-common_21.1.4-2ubuntu1.7~22.04.8_all.deb
    sudo dpkg -i xserver-common_21.1.4-2ubuntu1.7~22.04.8_all.deb
    
    sudo wget https://launchpad.net/~ubuntu-security-propose/+archive/ubuntu/ppa/+build/27692760/+files/xwayland_22.1.1-1ubuntu0.11_amd64.deb
    sudo dpkg -i xwayland_22.1.1-1ubuntu0.11_amd64.deb
    

    乌班图20.04

    sudo wget https://launchpad.net/~ubuntu-security-propose/+archive/ubuntu/ppa/+build/27692773/+files/xserver-xorg-core_1.20.13-1ubuntu1~20.04.15_amd64.deb
    sudo dpkg -i xserver-xorg-core_1.20.13-1ubuntu1~20.04.15_amd64.deb
    
    sudo wget https://launchpad.net/~ubuntu-security-propose/+archive/ubuntu/ppa/+build/27692773/+files/xserver-common_1.20.13-1ubuntu1~20.04.15_all.deb
    sudo dpkg -i xserver-common_1.20.13-1ubuntu1~20.04.15_all.deb
    
    sudo wget https://launchpad.net/~ubuntu-security-propose/+archive/ubuntu/ppa/+build/27692773/+files/xwayland_1.20.13-1ubuntu1~20.04.15_amd64.deb
    sudo dpkg -i xwayland_1.20.13-1ubuntu1~20.04.15_amd64.deb

    ...然后重新启动

    • 21
  2. Javier Noval
    2024-04-05T21:44:07+08:002024-04-05T21:44:07+08:00

    我在 Android Studio(也基于 IntelliJ)上遇到了类似的问题。我的 xorg 堆栈跟踪看起来与你的相同。

    就我而言,解决方法是将编辑器字体渲染从灰度更改回子像素。这可以在不启动 IDE 的情况下通过手动编辑 XML 配置来完成:

    • 对于 IntelliJ:~/.config/JetBrains/<your_version>/options/other.xml
    • 对于 Android Studio:~/.config/Google/<your_version>/options/other.xml

    在这两种情况下,您都需要删除以下行:

    <option name="editorAAType" value="Greyscale" />
    

    我想如果您(也)在 IDE 中使用灰度字体渲染,可能会出现类似的情况,这不是我的情况。

    • 2
  3. Gabriel Saraiva
    2024-04-07T00:52:00+08:002024-04-07T00:52:00+08:00

    阿图尔的回答对我有用!(Ubuntu 23.10,从 22.04 全新升级,试图解决该问题)。

    由于我使用 KDE 而不是 Gnome,我只是绕过了 dpkg 上的using参数xwayland_1.20.13的依赖性检查,并且在重新启动后就可以工作了。libmutter-13-0--ignore-depends

    dpkg --ignore-depends=libmutter-13-0 -i xwayland_22.1.1-1ubuntu0.11_amd64.deb

    • 2
  4. eppe
    2024-04-08T20:20:05+08:002024-04-08T20:20:05+08:00

    对于 Ubuntu 23.10,以下内容可以帮助我解决该问题(临时):

    1. 转到 XML 配置(对于 IntelliJ):

      ~/.config/JetBrains/<your_version>/options/other.xml
      
    2. 并删除恰好两行:

      <option name="ideAAType" value="Greyscale" />
      <option name="editorAAType" value="Greyscale" />
      
    • 0
  5. DrCabry
    2024-04-09T00:17:33+08:002024-04-09T00:17:33+08:00

    对于 Ubuntu 22.04 和 IntelliJ 2024.1,更改 IDE 和编辑器的抗锯齿设置对我有用。

    修改不需要启动IDE,进去即可

    ~/.config/JetBrains/<your_version>/options/other.xml
    

    并删除线

    <option name="ideAAType" value="Greyscale" />
    <option name="editorAAType" value="Greyscale" />
    

    为了选择默认的抗锯齿(子像素)

    • 0

相关问题

  • 如何从命令行重新启动 X Window Server?

  • xorg 中是否有用于更改视频驱动程序的 GUI?

  • 类似于 Eyefinity 的东西?

  • 如何重置我的键盘布局?

  • 帮助让 Flash 播放器在第二个屏幕上工作?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve