Skip to content

Flatpak build should include wayland socket permission #1190

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

Closed
1 task done
fuzzy7k opened this issue May 26, 2025 · 1 comment
Closed
1 task done

Flatpak build should include wayland socket permission #1190

fuzzy7k opened this issue May 26, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@fuzzy7k
Copy link
Contributor

fuzzy7k commented May 26, 2025

Is there an existing issue for this?

  • I searched the existing issues and did not find anything similar.

Current Behavior

I started having instant segfaults when launching antimicrox. It started some time last year, so I can't recall what triggered it. Possibly an OS update.
I attempted downgrading the installed flatpak version, building from source, all produced the same segfault.

Looking at the backtrace, it is hung up in QT, at create PlatformIntegration().

#0  0x0000ffff83280610 in __pthread_kill_implementation () from /usr/lib/aarch64-linux-gnu/libc.so.6
#1  0x0000ffff832397ec in raise () from /usr/lib/aarch64-linux-gnu/libc.so.6
#2  0x0000ffff832248bc in abort () from /usr/lib/aarch64-linux-gnu/libc.so.6
#3  0x0000ffff837d6abc in QMessageLogger::fatal(char const*, ...) const () from /usr/lib/aarch64-linux-gnu/libQt5Core.so.5
#4  0x0000ffff83e3683c in QGuiApplicationPrivate::createPlatformIntegration() () from /usr/lib/aarch64-linux-gnu/libQt5Gui.so.5
#5  0x0000ffff83e36c28 in QGuiApplicationPrivate::createEventDispatcher() () from /usr/lib/aarch64-linux-gnu/libQt5Gui.so.5
#6  0x0000ffff83a050e8 in QCoreApplicationPrivate::init() () from /usr/lib/aarch64-linux-gnu/libQt5Core.so.5
#7  0x0000ffff83e39e80 in QGuiApplicationPrivate::init() () from /usr/lib/aarch64-linux-gnu/libQt5Gui.so.5
#8  0x0000ffff848e0218 in QApplicationPrivate::init() () from /usr/lib/aarch64-linux-gnu/libQt5Widgets.so.5
#9  0x0000aaaae671f604 in main (argc=<optimized out>, argv=<optimized out>) at /run/build/antimicrox/src/main.cpp:232

Expected Behavior

Not segfault

Steps To Reproduce

Install the app from flathub
Try to launch

Environment

Program Version 3.5.1
Program Compiled on May 26 2025 at 02:49:49
Built Against SDL 2.28.5
Running With SDL 2.28.5
Using Qt 5.15.10
Using Event Handler: uinput
Compositor type: wayland
Host OS: org.kde.Platform Version: 5.15-23.08 Architecture: arm64

Anything else?

Seemed like a permission issue, so I started looking at io.github.antimicrox.antimicrox.yml
and noticed that it is missing --socket=wayland. Adding that, it works fine again.

flatpak run --socket=wayland io.github.antimicrox.antimicrox

@fuzzy7k fuzzy7k added the bug Something isn't working label May 26, 2025
fuzzy7k added a commit to fuzzy7k/antimicrox that referenced this issue May 26, 2025
Without x11 support, and no wayland socket permission, the startup
segfaults.

fixes AntiMicroX#1190
@pktiuk
Copy link
Member

pktiuk commented Jun 5, 2025

@pktiuk pktiuk closed this as completed Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants