Bug 485707

Summary: Crash on startup on Android x86_64 platform
Product: [Applications] krita Reporter: Jeffrey Borcean <jeffrey>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: artsikye, dimula73, jeffrey, polov7062
Priority: NOR    
Version: 5.2.2   
Target Milestone: ---   
Platform: Android   
OS: Android 13.x   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: logcat
Error message displaying: Your application encountered a fatal error and cannot continue.
attachment-1809849-0.html

Description Jeffrey Borcean 2024-04-17 23:30:45 UTC
Created attachment 168630 [details]
logcat

SUMMARY
Launching the Android x86_64  build of Krita provided on Google Play crashes on startup displaying the error message:
Your application encountered a fatal error and cannot continue.

This issue is not present in the latest Krita 5.2 nightly android-x86_64 build 45a8d0c4. This version runs as expected.

STEPS TO REPRODUCE
1.  Install Krita from Google Play on an x86_64 Android Platform
2.  Open Krita

OBSERVED RESULT
Crash on startup.

EXPECTED RESULT
Load 

SOFTWARE/OS VERSIONS
  Build ABI: x86_64-little_endian-lp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: linux
  Kernel Version: 5.10.209-997258-gf0c17b1b32b5
  Pretty Productname: Android  (13.0)
  Product Type: android
  Product Version: 13.0
  Product Model: Google octopus


ADDITIONAL INFORMATION
The attached logcat file shows a number of refrences for failing to find arm64 shared libraries despite being on x86_64
Qt JAVA : Can't find '/data/app/~~LRMmQsqGl3I3Bar_0eBhjw==/org.krita-nCNR7fsBpqIOkVbD4kTXiQ==/lib/x86_64/libkritaimage_arm64-v8a.so
04-17 11:22:31.929  2437  2458 I Qt JAVA : Can't find '/system/lib/libkritaimage_arm64-v8a.so
Comment 1 Jeffrey Borcean 2024-04-17 23:33:41 UTC
Created attachment 168631 [details]
Error message displaying: Your application encountered a fatal error and cannot continue.

Screenshot of error displayed to user at time of crash.
Comment 2 Bug Janitor Service 2024-04-24 15:03:51 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/2131
Comment 3 Dmitry Kazakov 2024-04-25 12:08:40 UTC
Git commit ea024e096e4a4fcf4886cd77d31cdf6dfa295502 by Dmitry Kazakov, on behalf of Sharaf Zaman.
Committed on 25/04/2024 at 12:08.
Pushed by dkazakov into branch 'master'.

Fix issue with appbundle builder using libs.xml from arm64-v8a

We want to merge the xmls from other architecture builds now that we
have architecture name in Qt's new "multiarch" build.

M  +13   -0    build-tools/ci-scripts/build-android-appbundle.py
M  +8    -0    build-tools/ci-scripts/build-android-package.py
A  +51   -0    build-tools/ci-scripts/merge-libs-xml.py

https://invent.kde.org/graphics/krita/-/commit/ea024e096e4a4fcf4886cd77d31cdf6dfa295502
Comment 4 Dmitry Kazakov 2024-04-25 12:09:59 UTC
Git commit 3d9c732adb2aed26dd1dba95a8bfcaa56c81555f by Dmitry Kazakov, on behalf of Sharaf Zaman.
Committed on 25/04/2024 at 12:09.
Pushed by dkazakov into branch 'krita/5.2'.

Fix issue with appbundle builder using libs.xml from arm64-v8a

We want to merge the xmls from other architecture builds now that we
have architecture name in Qt's new "multiarch" build.

M  +13   -0    build-tools/ci-scripts/build-android-appbundle.py
M  +8    -0    build-tools/ci-scripts/build-android-package.py
A  +51   -0    build-tools/ci-scripts/merge-libs-xml.py

https://invent.kde.org/graphics/krita/-/commit/3d9c732adb2aed26dd1dba95a8bfcaa56c81555f
Comment 5 Freya Lupen 2024-04-25 13:43:19 UTC
*** Bug 485339 has been marked as a duplicate of this bug. ***
Comment 6 Freya Lupen 2024-04-25 13:43:25 UTC
*** Bug 485687 has been marked as a duplicate of this bug. ***
Comment 7 artsikye 2024-04-28 07:41:48 UTC
Created attachment 168963 [details]
attachment-1809849-0.html

When will this be solved?

On Thu, Apr 25, 2024, 3:43 PM Freya Lupen <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=485707
>
> Freya Lupen <penguinflyer2222@gmail.com> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>                  CC|                            |polov7062@gmail.com
>
> --- Comment #6 from Freya Lupen <penguinflyer2222@gmail.com> ---
> *** Bug 485687 has been marked as a duplicate of this bug. ***
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
Comment 8 Dmitry Kazakov 2024-04-29 09:08:41 UTC
Hi, artsikye!

The problem will be solved with the next release in the Play Market. We will try to make it as soon as possible, even though there are some technical issues for that. Meanwile, you could try installing the Krita Plus packages directly from the Krita's nightly builds: 

https://cdn.kde.org/ci-builds/graphics/krita/krita-5.2/