rizinorg / cutter

Free and Open Source Reverse Engineering Platform powered by rizin
https://cutter.re
GNU General Public License v3.0
15.9k stars 1.15k forks source link

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

Open Emilprivate opened 3 months ago

Emilprivate commented 3 months ago

Environment information

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 commented 3 months ago

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 commented 3 months ago

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