TagStudioDev / TagStudio

A User-Focused Photo & File Management System
https://docs.tagstud.io/
GNU General Public License v3.0
4.88k stars 359 forks source link

[Bug]: Unable to run on fresh install Ubuntu 24.04 using X11 #393

Open faellacurcio opened 3 weeks ago

faellacurcio commented 3 weeks ago

Checklist

TagStudio Version

Alpha v9.3.2

Operating System & Version

Ubuntu 24.04

Description

I have found that the latest release of TagStudio won't open on my freshly installed (one month) Ubuntu 24.04 operating system. When I try to open I get the following:

❯ ./tagstudio
[ResourceManager] 4 resources registered
[QT DRIVER] Config File not specified, defaulting to /home/rafael/.config/TagStudio/TagStudio.ini
qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/rafael/Downloads/tagstudio_linux_x86_64/tagstudio/_internal/cv2/qt/plugins" 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, wayland, minimalegl, eglfs, vnc, offscreen, wayland-egl, vkkhrdisplay, linuxfb, minimal.

[1]    10938 IOT instruction (core dumped)  ./tagstudio

After googling a bit and tweaking around, I found that if I do login using "Ubuntu Wayland".

Expected Behavior

Open the program normally.

Steps to Reproduce

  1. Install Ubuntu 24.04
  2. Update/upgrade
  3. Download release from TagStudio
  4. Open Terminal and run ./tagstudio

Logs

❯ ./tagstudio [ResourceManager] 4 resources registered [QT DRIVER] Config File not specified, defaulting to /home/rafael/.config/TagStudio/TagStudio.ini qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin. qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/rafael/Downloads/tagstudio_linux_x86_64/tagstudio/_internal/cv2/qt/plugins" 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, wayland, minimalegl, eglfs, vnc, offscreen, wayland-egl, vkkhrdisplay, linuxfb, minimal.

[1] 10938 IOT instruction (core dumped) ./tagstudio

seakrueger commented 3 weeks ago

You're missing libxcb-cursor0 (running apt install libxcb-cursor0 should fix it)

Duplicate of #182

Bamowen commented 2 weeks ago

Had the same issue and @seakrueger message fixed it. I think we can close + Make an entry in the wiki

grapt0lite commented 1 week ago

Yes, try and check to see if it is a library or dependency issue before creating an issue. Thanks!