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
    • 最新
    • 标签
主页 / computer / 问题 / 1779520
Accepted
J. Mini
J. Mini
Asked: 2023-04-18 16:07:28 +0800 CST2023-04-18 16:07:28 +0800 CST 2023-04-18 16:07:28 +0800 CST

我如何调试有时从 Xfce 面板中丢失的 Discord 图标?

  • 772

在 Xubuntu 22.04 上,我使用 Discord snap。它的小图标有时会从我的面板中消失,有时不会。我不确定它应该存在于 Indicator 插件中还是存在于 Status Tray Icons 中;那些似乎从未显示过的设置菜单。重新启动面板似乎永远无法解决面板上未显示图标的问题。它似乎只能通过重新启动来修复。

这是一些相关的终端输出。以下是图标无法显示时的示例。

~$ PANEL_DEBUG=1 xfce4-panel
xfce4-panel(main): version 4.16.3 on gtk+ 3.24.33 (3.24.29), glib 2.72.4 (2.68.3)
xfce4-panel(module-factory): reading /usr/share/xfce4/panel/plugins
xfce4-panel(application): found window manager after 1 tries
xfce4-panel(base-window): 0x564b8f52ff30: rgba visual=0x564b8f4fad90, compositing=true
xfce4-panel(base-window): 0x564b8f52ff30: rgba visual=0x564b8f4fad90, compositing=true
xfce4-panel(display-layout): 0x564b8f52ff30: display=:0.0{comp=true}, screen-0[0x564b8f4ee020]=[3520,1080] (eDP1=[0,180;1600,900], HDMI2=[1600,0;1920,1080])
xfce4-panel(positioning): 0x564b8f52ff30: screen=0x564b8f4ee020, monitors=2, output-name=(null), span-monitors=false, base=720,11
xfce4-panel(positioning): 0x564b8f52ff30: working-area: screen=0x564b8f4ee020, x=0, y=180, w=1600, h=900
xfce4-panel(struts): 0x564b8f52ff30: top=201, start_x=0, end_x=1599
xfce4-panel(external): register dbus path /org/xfce/Panel/Wrapper/1
xfce4-panel(module): new item (type=external-wrapper, name=whiskermenu, id=1)
xfce4-panel(external): whiskermenu-1: child spawned; pid=8657, argc=7
xfce4-panel(module): new item (type=object-type, name=launcher, id=13)
xfce4-panel(module): new item (type=object-type, name=launcher, id=15)
xfce4-panel(module): new item (type=object-type, name=launcher, id=14)
xfce4-panel(module): new item (type=object-type, name=directorymenu, id=18)
xfce4-panel(module): new item (type=object-type, name=tasklist, id=3)
xfce4-panel(module): new item (type=object-type, name=separator, id=4)
xfce4-panel(module): new item (type=object-type, name=clock, id=12)
xfce4-panel(external): register dbus path /org/xfce/Panel/Wrapper/6
xfce4-panel(module): new item (type=external-wrapper, name=notification-plugin, id=6)
xfce4-panel(external): notification-plugin-6: child spawned; pid=8658, argc=7
xfce4-panel(external): register dbus path /org/xfce/Panel/Wrapper/17
xfce4-panel(module): new item (type=external-wrapper, name=systray, id=17)
xfce4-panel(external): systray-17: child spawned; pid=8659, argc=7
xfce4-panel(external): register dbus path /org/xfce/Panel/Wrapper/2
xfce4-panel(module): new item (type=external-wrapper, name=indicator, id=2)
xfce4-panel(external): indicator-2: child spawned; pid=8660, argc=7
xfce4-panel(external): register dbus path /org/xfce/Panel/Wrapper/9
xfce4-panel(module): new item (type=external-wrapper, name=power-manager-plugin, id=9)
xfce4-panel(external): power-manager-plugin-9: child spawned; pid=8661, argc=7
xfce4-panel(external): register dbus path /org/xfce/Panel/Wrapper/10
xfce4-panel(module): new item (type=external-wrapper, name=pulseaudio, id=10)
xfce4-panel(external): pulseaudio-10: child spawned; pid=8662, argc=7
xfce4-panel(external): register dbus path /org/xfce/Panel/Wrapper/16
xfce4-panel(module): new item (type=external-wrapper, name=xfce4-clipman-plugin, id=16)
xfce4-panel(external): xfce4-clipman-plugin-16: child spawned; pid=8665, argc=7
xfce4-panel(external): systray-17: child is embedded; 7 properties in queue
xfce4-panel(systray): rgba visual is 0x560cb9491590
xfce4-panel(systray): registered manager on screen 0
xfce4-panel(external): whiskermenu-1: child is embedded; 7 properties in queue
xfce4-panel(external): pulseaudio-10: child is embedded; 7 properties in queue
xfce4-panel(external): power-manager-plugin-9: child is embedded; 7 properties in queue
xfce4-panel(external): indicator-2: child is embedded; 7 properties in queue
xfce4-panel(external): xfce4-clipman-plugin-16: child is embedded; 7 properties in queue
xfce4-panel(external): notification-plugin-6: child is embedded; 7 properties in queue

(wrapper-2.0:8658): Gtk-WARNING **: 09:00:12.357: Attempting to add a widget with type GtkToggleButton to a container of type XfcePanelPlugin, but the widget is already inside a container of type XfcePanelPlugin, please remove the widget from its existing container first.

(wrapper-2.0:8660): Gtk-WARNING **: 09:00:12.430: Theme parsing error: <data>:1:46: The style property GtkWidget:focus-padding is deprecated and shouldn't be used anymore. It will be removed in a future version

(wrapper-2.0:8660): Gtk-WARNING **: 09:00:12.430: Theme parsing error: <data>:1:78: The style property GtkWidget:focus-line-width is deprecated and shouldn't be used anymore. It will be removed in a future version

(wrapper-2.0:8660): Gtk-WARNING **: 09:00:12.430: Theme parsing error: <data>:1:108: The style property GtkButton:default-border is deprecated and shouldn't be used anymore. It will be removed in a future version

(wrapper-2.0:8660): Gtk-WARNING **: 09:00:12.430: Theme parsing error: <data>:1:136: The style property GtkButton:inner-border is deprecated and shouldn't be used anymore. It will be removed in a future version

(wrapper-2.0:8662): Gtk-WARNING **: 09:00:12.431: Negative content width -3 (allocation 1, extents 2x2) while allocating gadget (node button, owner PulseaudioButton)

(wrapper-2.0:8657): Gtk-WARNING **: 09:00:12.464: Negative content width -3 (allocation 1, extents 2x2) while allocating gadget (node button, owner GtkToggleButton)

(wrapper-2.0:8658): Gtk-WARNING **: 09:00:12.467: Negative content width -3 (allocation 1, extents 2x2) while allocating gadget (node button, owner GtkToggleButton)

(wrapper-2.0:8665): Gtk-WARNING **: 09:00:12.485: Negative content width -3 (allocation 1, extents 2x2) while allocating gadget (node button, owner GtkToggleButton)

(wrapper-2.0:8661): Gtk-WARNING **: 09:00:12.532: Negative content width -3 (allocation 1, extents 2x2) while allocating gadget (node button, owner PowerManagerButton)

从 Whisker 菜单打开 Discord 后,上述输出出现在同一个命令中

Discord 0.0.26
[8716:0418/090018.625660:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 8837: Permission denied (13)
libGL error: MESA-LOADER: failed to open i965: /snap/discord/151/gnome-platform/usr/lib/x86_64-linux-gnu/dri/i965_dri.so: cannot open shared object file: No such file or directory (search paths /snap/discord/151/gnome-platform/usr/lib/x86_64-linux-gnu/dri, suffix _dri)
libGL error: failed to load driver: i965
Starting app.
Starting updater.
2023-04-18T08:00:18.641Z [Modules] Modules initializing
2023-04-18T08:00:18.641Z [Modules] Distribution: remote
2023-04-18T08:00:18.641Z [Modules] Host updates: disabled
2023-04-18T08:00:18.641Z [Modules] Module updates: enabled
2023-04-18T08:00:18.641Z [Modules] Module install path: /home/[my-user-name]/snap/discord/151/.config/discord/0.0.26/modules
2023-04-18T08:00:18.641Z [Modules] Module installed file path: /home/[my-user-name]/snap/discord/151/.config/discord/0.0.26/modules/installed.json
2023-04-18T08:00:18.642Z [Modules] Module download path: /home/[my-user-name]/snap/discord/151/.config/discord/0.0.26/modules/pending
[8837:0418/090018.704384:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[8716:0418/090018.713061:ERROR:zygote_host_impl_linux.cc(273)] Failed to adjust OOM score of renderer with pid 8874: Permission denied (13)
[8874:0418/090018.738772:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
[8846:0418/090018.811681:ERROR:command_buffer_proxy_impl.cc(128)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
2023-04-18T08:00:18.852Z [Modules] No updates to install
2023-04-18T08:00:18.859Z [Modules] Host is up to date.
2023-04-18T08:00:18.866Z [Modules] Checking for module updates at https://discord.com/api/modules/stable/versions.json
2023-04-18T08:00:19.055Z [Modules] No module updates available.
Optional module ./ElectronTestRpc was not included.
[8716:0418/090019.221117:ERROR:object_proxy.cc(623)] Failed to call method: org.freedesktop.login1.Manager.Inhibit: object_path= /org/freedesktop/login1: org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.147" (uid=1000 pid=8716 comm="/snap/discord/151/usr/share/discord/Discord --use-" label="snap.discord.discord (enforce)") interface="org.freedesktop.login1.Manager" member="Inhibit" error name="(unset)" requested_reply="0" destination="org.freedesktop.login1" (uid=0 pid=1014 comm="/lib/systemd/systemd-logind " label="unconfined")
WEIGHT /home/[my-user-name]/snap/discord/151/.config/discord/0.0.26/modules/discord_krisp/NC_small_8k.thw
WEIGHT /home/[my-user-name]/snap/discord/151/.config/discord/0.0.26/modules/discord_krisp/NC_small_16k.thw
WEIGHT /home/[my-user-name]/snap/discord/151/.config/discord/0.0.26/modules/discord_krisp/c6.f.s.ced125.thw
WEIGHT /home/[my-user-name]/snap/discord/151/.config/discord/0.0.26/modules/discord_krisp/VAD_weight.thw
2023-04-18T08:00:21.698Z [Modules] Host is up to date.
2023-04-18T08:00:21.698Z [Modules] Checking for module updates at https://discord.com/api/modules/stable/versions.json
2023-04-18T08:00:21.701Z [Modules] No module updates available.

我怎样才能开始调试呢?

linux
  • 1 1 个回答
  • 30 Views

1 个回答

  • Voted
  1. Best Answer
    harrymc
    2023-04-18T17:20:01+08:002023-04-18T17:20:01+08:00

    您可能遇到过 [Bug] 图标无法可靠地显示在系统托盘中。

    那里的结论是,这是与 ayatana-indicator-application 的冲突。

    还包含一个用于重新启动 xfce4-panel 的脚本,对于某些人来说,它解决了问题:

    #!/bin/bash
    #Optionally sleep before restarting panel
    sleep ${1:-0}
    xfce4-panel -q
    xfce4-panel &
    
    • 1

相关问题

  • 如何让我的 Linux 机器看起来像是在运行 Windows?

  • 对于 cp 或 mv,是否有等同于 cd - 的东西?

  • 以 root 身份运行 docker 容器

  • 如何在域和 Linux 活动目录中启用指纹传感器

  • 如何在CentOS 7 中将Ctrl+C 永久更改为Ctrl+K?

Sidebar

Stats

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

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Vickel Firefox 不再允许粘贴到 WhatsApp 网页中? 2023-08-18 05:04:35 +0800 CST
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

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

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve