Bug 502719

Summary: 5.3 nightly: Crash when launching app
Product: [Applications] krita Reporter: art1 <commend_unmanned410>
Component: * UnknownAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: penguinflyer2222
Priority: NOR Keywords: regression
Version First Reported In: nightly build (please specify the git hash!)   
Target Milestone: ---   
Platform: Android   
OS: Android 14.x   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description art1 2025-04-12 17:41:18 UTC
SUMMARY
Crash when launching the app (the latest nightly at the time of this post). Happens on a clean install.

STEPS TO REPRODUCE
Launch the app after installing

OBSERVED RESULT
Crash

EXPECTED RESULT
No crash

SOFTWARE/OS VERSIONS
Android 15
Arm64 APK
5.3 nightly
git 7b77d225
Comment 1 Freya Lupen 2025-04-28 19:36:58 UTC
Confirming that the arm64 Android 5.3.0-prealpha-a05ebc35 nightly crashes on startup.
Error message:
> qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
> This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
> Available platform plugins are: android.
Comment 2 Freya Lupen 2025-04-29 17:11:49 UTC
Git commit 1a8ef4c757e2bd8feecd6c16e2d43c5e3a83fd6c by Freya Lupen.
Committed on 29/04/2025 at 17:09.
Pushed by freyalupen into branch 'master'.

Fix loading Qt platform plugin on Android

Revert to checking HAVE_X11 before setting the platform plugin to xcb,
checking Q_OS_LINUX includes Android which has its own platform plugin.

M  +1    -1    krita/main.cc

https://invent.kde.org/graphics/krita/-/commit/1a8ef4c757e2bd8feecd6c16e2d43c5e3a83fd6c