sedwards2009 / extraterm

The swiss army chainsaw of terminal emulators
https://extraterm.org
MIT License
2.53k stars 116 forks source link

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. #439

Open kruthoff opened 6 months ago

kruthoff commented 6 months ago

Version 0.76 doesn't start anymore on Pop!_OS 22.04 LTS x86_64. I've purged the app and have reinstalled it, without luck.

[akruthoff@gazelle-akr:~$ /opt/extratermqt/extratermqt 
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.

panic: Post "/command": unsupported protocol scheme ""

goroutine 1 [running]:
main.runCommand({0x0, 0x0}, 0xc0000e7ec8)
    /home/runner/work/extraterm-launcher/extraterm-launcher/cmd/extraterm-launcher/extraterm-launcher.go:200 +0x2e5
main.runOpenWindowAtCommand({0x0, 0x0}, {0xc00001c0dc, 0xf})
    /home/runner/work/extraterm-launcher/extraterm-launcher/cmd/extraterm-launcher/extraterm-launcher.go:135 +0xd4
main.main()
    /home/runner/work/extraterm-launcher/extraterm-launcher/cmd/extraterm-launcher/extraterm-launcher.go:40 +0x6a
[akruthoff@gazelle-akr:~$
sedwards2009 commented 5 months ago

Is this running on Xorg or Wayland as display server?

kruthoff commented 5 months ago

Is this running on Xorg or Wayland as display server?

Running on Xorg.

LackingCats commented 2 months ago

try running export QT_QPA_PLATFORM=xcb before starting it from the command line

paulrtcsjh commented 1 month ago

I have this issue too, same exact message. I am running Ubuntu 24.04 and using Xorg. Running export as LackingCats suggested did not change the result.

Ralms commented 2 weeks ago

Running into the same issue on Ubuntu 22.04.05 LTS.

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.

panic: Post "/command": unsupported protocol scheme ""

goroutine 1 [running]:
main.runCommand({0x0, 0x0}, 0xc0000dbec8)
    /home/runner/work/extraterm-launcher/extraterm-launcher/cmd/extraterm-launcher/extraterm-launcher.go:200 +0x2e5
main.runOpenWindowAtCommand({0x0, 0x0}, {0xc00001c0c4, 0xe})
    /home/runner/work/extraterm-launcher/extraterm-launcher/cmd/extraterm-launcher/extraterm-launcher.go:135 +0xd4
main.main()
    /home/runner/work/extraterm-launcher/extraterm-launcher/cmd/extraterm-launcher/extraterm-launcher.go:40 +0x6a

Doing the export QT_QPA_PLATFORM=xcb didn't fix it.

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.

panic: Post "/command": unsupported protocol scheme ""

goroutine 1 [running]:
main.runCommand({0x0, 0x0}, 0xc0000dbec8)
    /home/runner/work/extraterm-launcher/extraterm-launcher/cmd/extraterm-launcher/extraterm-launcher.go:200 +0x2e5
main.runOpenWindowAtCommand({0x0, 0x0}, {0xc00001c0c4, 0xe})
    /home/runner/work/extraterm-launcher/extraterm-launcher/cmd/extraterm-launcher/extraterm-launcher.go:135 +0xd4
main.main()
    /home/runner/work/extraterm-launcher/extraterm-launcher/cmd/extraterm-launcher/extraterm-launcher.go:40 +0x6a
niawag commented 1 week ago

I was having the same problem on a fresh Linux Mint 22 install, I solved it by installing qt5ct, setting QT_QPA_PLATFORMTHEME=qt5ct in /etc/environment and installing this: sudo apt-get install -qq libglu1-mesa-dev libx11-xcb-dev '^libxcb*'

I'm not sure if it is all needed but it was failling before the last round of installs. Hope it helps !

RedX2501 commented 16 hours ago

For me it was the missing libxcb-cursor0

 sudo apt install libxcb-cursor0

Was enough to solve the problem.