Skip to content

[Bug] 特定 Linux 環境下啟動程式時直接中止(可在乾淨環境變數下正常啟動) #26

Description

@LianSheng197

是否已有現有的問題回報?

  • 我已經檢查並確認沒有人回報過這個問題

預期行為

程式應正常啟動並顯示介面。

目前行為

程式立即中止並顯示錯誤訊息。

(process:509232): Gtk-ERROR **: 02:09:15.128: GTK 2/3 symbols detected. Using GTK 2/3 and GTK 4 in the same process is not supported
Trace/breakpoint trap

重現步驟

  1. 在我的環境裡 (Zorin OS 17.3)
  2. 下載 TREM-Lite-3.1.5-linux-amd64.deb
  3. 安裝 sudo dpkg -i /path/to/TREM-Lite-3.1.5-linux-amd64.deb
  4. 執行 trem-lite
  5. BANG!!

環境資訊

  • OS: Zorin OS 17.3 x86_64 (Ubuntu 22.04 based)
  • Kernel: 6.8.0-87-generic
  • Shell: bash 5.1.16

如果需要更多系統資訊再跟我說~

其他補充?

若在清空環境變數的情況下啟動程式,則可以有限度執行(沒有聲音):

env -i HOME=$HOME DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY trem_lite

但是上面那個太粗暴了,在我的環境裡,底下這個指令可以正常啓動有聲音的,不過我不能保證其他有 GTK 衝突的環境是否也能:

env -i \
  HOME=$HOME \
  DISPLAY=$DISPLAY \
  XAUTHORITY=$XAUTHORITY \
  XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR \
  DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS \
  trem_lite
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions