Bug 452340 - Instant crash on Android
Summary: Instant crash on Android
Status: CONFIRMED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Android Android 11.x
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-06 17:04 UTC by Luca
Modified: 2022-11-06 14:40 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Okular crashes instantly when opening (2.14 MB, video/webm)
2022-05-09 16:56 UTC, Jack Hill
Details
ADB log (7.81 KB, text/plain)
2022-05-15 11:20 UTC, Jack Hill
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luca 2022-04-06 17:04:28 UTC
Instant crash on Okular for Android (F-Droid version, Okular 1.3.0). No feedback nor "the app does not respond" pops up, simply it doesn't open.
***

STEPS TO REPRODUCE
1. Buy a OnePlus Nord 2, I guess. Then install the app from F-Droid
2. Open Okular
3. Look at the screen to see nothing is happening

OBSERVED RESULT
Nothing

EXPECTED RESULT
At least, a welcome screen or something

SOFTWARE/OS VERSIONS
Android 11
Comment 1 Albert Astals Cid 2022-04-06 20:41:47 UTC
Can you try installing this apk and confirming if it works for you? 

https://binary-factory.kde.org/job/Okular_Nightly_android-arm64/lastSuccessfulBuild/artifact/okularkirigami-arm64-v8a.apk
Comment 2 Luca 2022-04-07 13:30:07 UTC
(In reply to Albert Astals Cid from comment #1)
> Can you try installing this apk and confirming if it works for you? 
> 
> https://binary-factory.kde.org/job/Okular_Nightly_android-arm64/
> lastSuccessfulBuild/artifact/okularkirigami-arm64-v8a.apk

Sadly, it doesn't.
Yet this time, at least, Android says "Okular keeps closing, try to repair it by clearing data" or something like that (I'm Italian, my phone is in Italian, it's a rough translation).
Comment 3 Bug Janitor Service 2022-04-22 04:35:04 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2022-05-07 04:35:01 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 5 Albert Astals Cid 2022-05-07 09:09:51 UTC
This needs checking still
Comment 6 Jack Hill 2022-05-09 16:56:58 UTC
Created attachment 148681 [details]
Okular crashes instantly when opening

Can confirm on Android 12, CalyxOS 3.5.1 installed from the F-Droid nightly repo
Comment 7 Jack Hill 2022-05-15 11:20:38 UTC
Created attachment 148845 [details]
ADB log

log from ADB
Comment 8 Aachman (AarKiMos) 2022-05-15 12:05:12 UTC
Log says 'failed to find libssl3' but its in the apk. Crashes on android 12 may be explained with this https://developer.android.com/about/versions/12/behavior-changes-12#uses-native-library 
TLDR: need to add <uses-native-library> tag to manifest for each non-NDK native lib. 
Seems to be a simple fix but there might be quite a lot of libs.
Comment 9 Albert Astals Cid 2022-05-15 21:14:18 UTC
(In reply to Aachman (AarKiMos) from comment #8)
> Log says 'failed to find libssl3' but its in the apk. Crashes on android 12
> may be explained with this
> https://developer.android.com/about/versions/12/behavior-changes-12#uses-
> native-library 
> TLDR: need to add <uses-native-library> tag to manifest for each non-NDK
> native lib. 
> Seems to be a simple fix but there might be quite a lot of libs.

I don't think that applies here, see the sentence

Non-NDK native shared libraries that are provided by silicon vendors or device manufacturers are not accessible by default if the app is targeting Android 12 (API level 31) or higher. 

We're neither a "silicon vendors or device manufacturers" nor we're targetting "API level 31"
Comment 10 Jan Bidler 2022-08-14 19:25:40 UTC
Just wanted to add that this issue happens on Android 7.0 as well.
Comment 11 Jack Hill 2022-11-06 14:40:22 UTC
Can no longer reproduce since I updated to Android 13