-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Nexcloud stop to work while opening PDF Files #3994
Comments
Is this happening only on the first time you try to open a pdf? Can you provide us additional infos via logcat? https://github.com/nextcloud/android/blob/master/README.md#getting-debug-info-via-logcat |
Hello, please find attaches the log but sorry its a full part log as grep command not working on my windows 10 maybe you can find what you want. Thanks a lot for your help |
Hello, thanks for your help, so is it a nextcloud bug that will be fixed or do we have something to do from our side? Thanks Best Regards |
@ezaquarii do you have in idea how to fix this? |
Yes, it looks like it tries to call platform API level 28 down the road: @Handoz49 run it on Android 7, so this class does not exist in runtime and class loader complains - of course. Maybe there is some issue reported by google or there are some API-level specific instructions we should follow when integrating I'd rule out dead code elimination here, as the missing class is clearly in Android core framework that ships with the phone OS. Hard to say what happened without doing |
@Handoz49, did you try on any other Android 7 device? |
I did it on my Samsung s7 which is on Android 8 had the same problem |
@ezaquarii , I can try on other android 7.0 tomorrow but it will be the same model |
Thanks. No need to do more test for now. We have pretty good idea what's the immediate cause. Cheers.
…On May 14, 2019 8:22:46 PM UTC, Handoz49 ***@***.***> wrote:
@ezaquarii , I can try on other android 7.0 tomorrow but it will be the
same model
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#3994 (comment)
|
The referenced version code is release 3.2.1 final build. That version is quite old and long before we migrated to AndroidX... :/ |
Same problem in google samples: |
Relevant google issue: Here I found a possible workaround
More options we can consider:
|
Hmm, can this than be a blocker for the dark theme branch (running on 1.1.0 alpha lib releases) also since GPlay demands latest compile targets within a certain time frame is a target downgrade an option? Also cc @tobiasKaminsky for opinions. |
https://developer.android.com/distribute/best-practices/develop/target-sdk |
Then I think downgrade would be fine for now. |
@tobiasKaminsky @AndyScherzinger @Handoz49 The stacktrace was actually just a warning, not a crash. I was too fast to jump into conclusions, so let's forget about it. The true crash is hidden here:
Looks like an NPE in our own code. |
|
Fixes #3994 Signed-off-by: Chris Narkiewicz <[email protected]>
Listener reference was weak and there was no check for null, causing an NPE. Fixes #3994 Signed-off-by: Chris Narkiewicz <[email protected]>
@ezaquarii I will try tomorrow at work thanks |
@ezaquarii @AndyScherzinger @tobiasKaminsky |
@ezaquarii I think the crash above come from nextcloud which reinstall because of the MDM strategy while i was using the QA version |
Nice @ezaquarii! |
will this fix include in the next nexcloud update on the playstore? if yes how many times do you think it will take to have it? thanks a lot best regards |
Listener reference was weak and there was no check for null, causing an NPE. Fixes #3994 Signed-off-by: Chris Narkiewicz <[email protected]>
I will release a RC1 of upcoming version today, which can be get via beta program on gplay. |
Final release 3.6.2 has been published today so it should be available on Google Play very soon and wihtin some days via f-droid too. |
Hi,
We have just install a Nextcloud Server to change our owncloud solution but when using the last nextcloud playstore version on a samsung android tablet (android 7) the application stopped while opening or scrolling over a PDF file. Same issue with a samsung android phone. Can't check the Log as you removed the expert mode. So I tried to take an older APK : nextcloud-30020199.apk and it's working fine with it. Could you please tell us if it's a known problem which will be fixed because we will have a lot of android with nextcloud using google MDM to deploy and we can't do it with an old APK... Attached the error when application stop (in french sorry)
Best Regards
The text was updated successfully, but these errors were encountered: