Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application Fails to Start - Missing Qt Platform Plugin "wayland" #3367

Open
1 of 3 tasks
Emilprivate opened this issue Jul 28, 2024 · 2 comments
Open
1 of 3 tasks

Application Fails to Start - Missing Qt Platform Plugin "wayland" #3367

Emilprivate opened this issue Jul 28, 2024 · 2 comments

Comments

@Emilprivate
Copy link

Emilprivate commented Jul 28, 2024

Environment information

  • Operating System: Manjaro Linux x86_64
  • Cutter version: 2.3.4
  • Obtained from:
    • Built from source
    • Downloaded release from Cutter website or GitHub
    • Distribution repository
  • File format: AppImage

Describe the bug

When attempting to run the Cutter AppImage (version 2.3.4) on my Linux system, the application fails to start. The error messages indicate missing platform plugins, specifically the "wayland" plugin, and rendering issues related to InvalidMatrix.

To Reproduce

Steps to reproduce the behavior:

  1. Download the AppImage file for Cutter (version 2.3.4).
  2. Make the file executable using chmod +x Cutter-v2.3.4-Linux-x86_64.AppImage.
  3. Run the AppImage using ./Cutter-v2.3.4-Linux-x86_64.AppImage.
  4. The application does not start, and the following error messages are displayed:
kf.windowsystem: Could not find any platform plugin
Extracting usr/share/icons/hicolor/scalable/apps/cutter.svg to "/home/esd/.local/share/icons/hicolor/scalable/apps/appimagekit_845503962ae84eb4fa2d4ea4579117a8_cutter.svg"

(process:41710): librsvg-WARNING **: 00:12:35.915: cannot render on a cairo_t with a failure status (status=InvalidMatrix)

(process:41710): librsvg-WARNING **: 00:12:35.915: rendering error: InvalidMatrix

(process:41710): librsvg-WARNING **: 00:12:35.916: cannot render on a cairo_t with a failure status (status=InvalidMatrix)

(process:41710): librsvg-WARNING **: 00:12:35.916: rendering error: InvalidMatrix
gtk-update-icon-cache: Cache file created successfully.
which: no gtk-update-icon-cache-3.0 in (/home/esd/.local/bin:/usr/local/bin:/usr/bin:/var/lib/snapd/snap/bin:/usr/local/sbin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)
which: no update-icon-caches in (/home/esd/.local/bin:/usr/local/bin:/usr/bin:/var/lib/snapd/snap/bin:/usr/local/sbin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)
qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

What have I tried?
yay -S qt5-wayland

@karliss
Copy link
Member

karliss commented Jul 28, 2024

What have I tried?
yay -S qt5-wayland

Installing system packages won't help you much if you are using a appimage. The whole point of Appimage is it's mostly selfcontained and uses bundled libraries (with few exceptions).

Do you have an environment variable forcing Qt to attempt using wayland backend QT_QPA_PLATFORM=wayland ? If you have you will have to unset it while running cutter Appimage or change value to QT_QPA_PLATFORM=xcb . Current cutter .Appimage release does not include Qt wayland backend, so forcing Qt to attempt using it will result in a failure similar to one you observed.

Alternatively since you are on Manjaro, it should have a reasonable up date version of cutter available in it's main repository. No need to use Appimage.

2.4 release should include the Qt wayland backend , you can download a development build here https://github.com/rizinorg/cutter/actions/runs/10125729318 . Download the Linux-x86_64.AppImage only qt6 build includes the wayland backend.

@0ryX
Copy link

0ryX commented Jul 29, 2024

I was just about to open an issue for something very similar on Arch Linux where I didn't see the rz-cutter package only cutter which was a tool for TCP/IP.

I've been trying to compile from source and running into build issues. If anyone else is coming here for similar issues you can use the following commands to locate the package:

sudo pacman -Ss cutter

OUTPUT:
core/b43-fwcutter 019-5
firmware extractor for the b43 kernel module
extra/cutter 1.04-3
TCP/IP Connection cutting on Linux Firewalls
and Routers
extra/python-cookiecutter 2.6.0-2
A command-line utility that creates projects
from project templates
extra/rz-cutter 2.3.4-7
Qt and C++ GUI for rizin reverse engineering
framework
extra/rz-ghidra 0.7.0-2
Deep ghidra decompiler integration for rizin
and rz-cutter
extra/vidcutter 6.0.5.2-1
Modern, simple to use, constantly evolving and
hella fast media cutter + joiner with
frame-accurate SmartCut technology

Showing this because you'll probably want rz-ghidra as well

sudo pacman -S rz-ghidra rz-cutter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants