Skip to content
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

Crash before Login #13138

Open
4 tasks done
RealDiez opened this issue Jun 15, 2024 · 3 comments
Open
4 tasks done

Crash before Login #13138

RealDiez opened this issue Jun 15, 2024 · 3 comments
Labels
bug feature: authentication Authentication or accounts related performance: general/non-specific lag, ANR, etc and rarer exceptions/errors that don't have their own labels

Comments

@RealDiez
Copy link

RealDiez commented Jun 15, 2024

⚠️ Before posting ⚠️

  • This is a bug, not a question or an enhancement.
  • I've searched for similar issues and didn't find a duplicate.
  • I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • I agree to follow Nextcloud's Code of Conduct.

Steps to reproduce

  1. Reboot Device
  2. Start Nextcloud client app

Expected behaviour

Nextcloud client app starts and probably asks for login credentials.

Actual behaviour

App crashes

Android version

  • SDK: 25 * Release: 7.1.2 * Incremental: cd3927b4dc

Device brand and model

  • Brand: motorola * Device: cedric * Model: Moto G5 * Id: NJH47F * Product: lineage_cedric

Stock or custom OS?

Custom (explain in "additional information")

Nextcloud android app version

  • ID: com.nextcloud.client * Version: 30290090 * Build flavor: generic from F-DROID

Nextcloud server version

29.0.2

Using a reverse proxy?

I don't know

Android logs

As given by APP (NOTE: automatic issue creation does NOT work):

Cause of error

Exception in thread "main" java.lang.RuntimeException: Unable to start activity ComponentInfo{com.nextcloud.client/[com.nmc.android](http://com.nmc.android/).ui.LauncherActivity}: java.util.NoSuchElementException: No value present
    at [android.app](http://android.app/).ActivityThread.performLaunchActivity([ActivityThread.java:2684](http://activitythread.java:2684/))
    at [android.app](http://android.app/).ActivityThread.handleLaunchActivity([ActivityThread.java:2751](http://activitythread.java:2751/))
    at [android.app](http://android.app/).ActivityThread.-wrap12([ActivityThread.java](http://activitythread.java/))
    at [android.app](http://android.app/).ActivityThread$H.handleMessage([ActivityThread.java:1496](http://activitythread.java:1496/))
    at android.os.Handler.dispatchMessage([Handler.java:102](http://handler.java:102/))
    at android.os.Looper.loop([Looper.java:154](http://looper.java:154/))
    at [android.app](http://android.app/).ActivityThread.main([ActivityThread.java:6186](http://activitythread.java:6186/))
    at java.lang.reflect.Method.invoke(Native Method)
    at [com.android](http://com.android/).internal.os.ZygoteInit$[MethodAndArgsCaller.run](http://methodandargscaller.run/)([ZygoteInit.java:889](http://zygoteinit.java:889/))
    at [com.android](http://com.android/).internal.os.ZygoteInit.main([ZygoteInit.java:779](http://zygoteinit.java:779/))
Caused by: Exception in thread "main" java.util.NoSuchElementException: No value present
    at java.util.Optional.get([Optional.java:130](http://optional.java:130/))
    at com.nextcloud.client.mixins.SessionMixin.setAccount(SessionMixin.kt:58)
    at com.nextcloud.client.mixins.SessionMixin.onCreate(SessionMixin.kt:121)
    at com.nextcloud.client.mixins.MixinRegistry.onCreate(MixinRegistry.kt:43)
    at [com.owncloud.android](http://com.owncloud.android/).ui.activity.BaseActivity.onCreate([BaseActivity.java:72](http://baseactivity.java:72/))
    at [com.nmc.android](http://com.nmc.android/).ui.LauncherActivity.onCreate(LauncherActivity.kt:37)
    at [android.app](http://android.app/).Activity.performCreate([Activity.java:6684](http://activity.java:6684/))
    at [android.app](http://android.app/).Instrumentation.callActivityOnCreate([Instrumentation.java:1119](http://instrumentation.java:1119/))
    at [android.app](http://android.app/).ActivityThread.performLaunchActivity([ActivityThread.java:2637](http://activitythread.java:2637/))
    at [android.app](http://android.app/).ActivityThread.handleLaunchActivity([ActivityThread.java:2751](http://activitythread.java:2751/))
    at [android.app](http://android.app/).ActivityThread.-wrap12([ActivityThread.java](http://activitythread.java/))
    at [android.app](http://android.app/).ActivityThread$H.handleMessage([ActivityThread.java:1496](http://activitythread.java:1496/))
    at android.os.Handler.dispatchMessage([Handler.java:102](http://handler.java:102/))
    at android.os.Looper.loop([Looper.java:154](http://looper.java:154/))
    at [android.app](http://android.app/).ActivityThread.main([ActivityThread.java:6186](http://activitythread.java:6186/))
    at java.lang.reflect.Method.invoke(Native Method)
    at [com.android](http://com.android/).internal.os.ZygoteInit$[MethodAndArgsCaller.run](http://methodandargscaller.run/)([ZygoteInit.java:889](http://zygoteinit.java:889/))
    at [com.android](http://com.android/).internal.os.ZygoteInit.main([ZygoteInit.java:779](http://zygoteinit.java:779/))

App information

  • ID: com.nextcloud.client
  • Version: 30290090
  • Build flavor: generic

Device information

  • Brand: motorola
  • Device: cedric
  • Model: Moto G5
  • Id: NJH47F
  • Product: lineage_cedric

Firmware

  • SDK: 25
  • Release: 7.1.2
  • Incremental: cd3927b4dc

Server error logs

No response

Additional information

LineageOS 14.1

@RealDiez RealDiez added the bug label Jun 15, 2024
@joshtrichards joshtrichards added the feature: authentication Authentication or accounts related label Jun 15, 2024
@RealDiez
Copy link
Author

RealDiez commented Jul 2, 2024

Any progress? Currently, the app is useless to me / not functional at all.
I'd be happy to provide more information to solve this problem.

@joshtrichards
Copy link
Member

Nextcloud client app starts and probably asks for login credentials.

Is this a brand-new installation of the app?

@RealDiez
Copy link
Author

RealDiez commented Jul 8, 2024

No.

Though, not sure whether related:
The app worked without problem for years, then the SD card died (adopted storage). After inserting a new, blank SD card, I had to re-install the nextcloud app and re-setup everything. Then the app was working as expected.
After a reboot of the device, the trouble started.
I tried older versions of the nextcloud app (3.28) and the newest available version (3.29.1), without success. 3.29.1 doesn't even display the crash log, it just silently vanishes after the splash screen.

@joshtrichards joshtrichards added the performance: general/non-specific lag, ANR, etc and rarer exceptions/errors that don't have their own labels label Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug feature: authentication Authentication or accounts related performance: general/non-specific lag, ANR, etc and rarer exceptions/errors that don't have their own labels
Projects
None yet
Development

No branches or pull requests

2 participants