Android: Crash on first Start (1.4.2)

Created on 11 Aug 2017  路  25Comments  路  Source: nextcloud/android

Actual behaviour

I Installed Nextcloud from f-droid after first start Nextclud crashed.

Expected behaviour

nextcloud do start

Steps to reproduce

  1. install nextcloud
  2. start nextcloud
  3. see Question for Storrage access and in background of this pop-up the crash information pop-up.

Environment data

Android version: 6.0.1

Device model: Fairphone 2

Stock or customized system: FP Open 17.07.6
https://code.fairphone.com/projects/fp-osos/user/fairphone-open-source-os-downloads.html

Nextcloud app version: 1.4.2

Logs

Log-next-2017-08-11-02.28.31.txt

```
NOTE: Be super sure to remove sensitive data like passwords, note that everybody can look here! You can use the Issue Template application to prefill some of the required information: https://apps.nextcloud.com/apps/issuetemplate

bug

All 25 comments

I can replicate on the Google play beta 2.0.0 RC

@mario @tobiaskaminsky @andyscherzinger app is unusable and I'm back on one of the dev APKs for now

I tested following Version from f-droid:

  • 1.4.2 = Crash
  • 1.4.1 = Crash
  • 1.4.1 RC2 = works without Problem.

@jasonbayton can you give us a logcat?
@Mannshoch is this a typo or do you really mean 1.4.1 rc2?
edit: overlooked logcat by @Mannshoch

Possible cause in logcat by @Mannshoch

InputDispatcher,Android-System,channel 'f18cc21 com.nextcloud.client/com.owncloud.android.ui.activity.FileDisplayActivity (server)' ~ Channel is unrecoverably broken and will be disposed!

No that's correct:

screenshot_20170814-120218

@Mannshoch do you have some more output of logcat? Though there is an error captured, I doubt that this is the real cause of your problem.

@Mannshoch searching for fairphone 2 and the error of your logcat, I get this link:
https://github.com/microg/android_packages_apps_GmsCore/issues/370

Do you use some kind of custom google apps?
Can/want you try the google play store beta release?
https://play.google.com/apps/testing/com.nextcloud.client

At moment I'm not able to get Google apps, but I'll test an actual GMSCore.

This might fix it: #1362
@Mannshoch do you installed oc client in parallel?

No.
Fresh Installation after Factory reset.

Feedback:

  1. Upgrade from 1.4.1 Rc2 to 1.4.2 worked and also nextcloud worked after that.
  2. Remove and reinstall Nexcloud -> Crash

Conclusion: Crash in 1.4.2 only happened if no account already exist

  1. Upgraded GMSCore to 0.2.4-103 -> no effect.
  2. Uninstalled GMSCore -> no effect

Conclusion -> GMSCore is not the source of this error

@Mannshoch can you try it with RC4, found via google play store (as beta tester)?

Sry, but I do not have Google Palystore installed

@Mannshoch now it is also available on fdroid: https://f-droid.org/packages/com.nextcloud.client/
For the RC5 you have manually go to "versions" and select it.

@tobiasKaminsky @mario could this be the originating issue when looking at the log:

2017-08-31 04:45:26,INFORMATION,AccountAuthenticator,
Unknown,Adding account with type nextcloud and auth token null

@jasonbayton do you have a test account I can test this with?

To some extends reading through the comments it seems to be an account creation issue, so when an account has been present it worked and for a fresh install the account created was corrupt.

KO. Hoping this is fixed with new RC by some magic PR that touched account creation code. We'll see xD

Sorry @mario I didn't see your account request :o
You can always use the demo server as I can normally replicate there too?

My 5 cents regarding account creation:

Switched from OwnCloud to NextCloud, so deinstalled OC android app, and installed current 1.4.2 F-Droid NextCloud android app.

Android 4.4.2

result: Nextcloud app crashes reproducible on start.

Installed NextCloud "dev" app, version 20170903, also from F-Droid. Works like a charm :)

For any store running Nextcloud 12+ you need to run at least 1.4.3 (not available on f-droid) or go for 2.0.0RC6.

Somewhat weird...or maybe my lack of knowledge about F-Droid:

1.: for me, the nextcloud app crashes BEFORE I'm even able to select a server to connect to, so no chance for the 1.4.2, app to "detect" that my expected server to be connected might be 12.x

  1. No idea why, maybe because if the * (star) in F-Droid's version history for nextcloud app, 1.4.2 is installed. Although much later, newer versions exists, e.g. 2.0.0RC5 and 2.0.0RC6.

Selected explicitly 2.0.0RC6 -> no crashes anymore

1.4.2 had an issue on some phones which led to the app crashing right during start.

fixed via 2.0.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AndyScherzinger picture AndyScherzinger  路  3Comments

rainer042 picture rainer042  路  3Comments

JSoko picture JSoko  路  3Comments

JSoko picture JSoko  路  3Comments

AndyScherzinger picture AndyScherzinger  路  3Comments