nextcloud / nextcloud/android

Weird error on Github app GrapheneOS

Open
#15,804 0 comments 0 reactions 0 assignees View on GitHub
0. Needs triage bug
Dominant language
Kotlin
Stars
5.6k
Forks
2k
Avg merge
2d 18h
Merged PRs (30d)
92

Description

### ⚠️ Before posting ⚠️

- [x] This is a **bug**, not a question or an enhancement.
- [x] I've [searched for similar issues](https://github.com/nextcloud/android/issues) and didn't find a duplicate.
- [x] I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
- [x] I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/code-of-conduct/).

### Steps to reproduce

Hello! When I use the Nextcloud app on my phone, I always get an error screen with the following text: ### Cause of error
```java
Exception in thread "main" java.lang.IllegalStateException: Two different ViewHolders have the same stable ID. Stable IDs in your adapter MUST BE unique and SHOULD NOT change.
ViewHolder 1:GalleryRowHolder{f1be784 position=6 id=287835, oldPos=-1, pLpos:-1 not recyclable(1)}
View Holder 2:GalleryRowHolder{81ab7b3 position=5 id=287835, oldPos=-1, pLpos:-1} com.owncloud.android.ui.EmptyRecyclerView{62ef56f VFED..... ......ID 0,0-1080,2188 #7f0a02dc app:id/list_root}, adapter:com.owncloud.android.ui.adapter.GalleryAdapter@2aee03d, layout:androidx.recyclerview.widget.GridLayoutManager@3a0827c, context:com.owncloud.android.ui.activity.FileDisplayActivity@222569c
at androidx.recyclerview.widget.RecyclerView.handleMissingPreInfoForChangeError(RecyclerView.java:4778)
at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep3(RecyclerView.java:4702)
at androidx.recyclerview.widget.RecyclerView.dispatchLayout(RecyclerView.java:4367)
at androidx.recyclerview.widget.RecyclerView.consumePendingUpdateOperations(RecyclerView.java:2095)
at androidx.recyclerview.widget.RecyclerView$1.run(RecyclerView.java:468)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1570)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1579)
at android.view.Choreographer.doCallbacks(Choreographer.java:1179)
at android.view.Choreographer.doFrame(Choreographer.java:1104)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1553)
at android.os.Handler.handleCallback(Handler.java:995)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loopOnce(Looper.java:248)
at android.os.Looper.loop(Looper.java:338)
at android.app.ActivityThread.main(ActivityThread.java:9106)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:593)
at com.android.internal.os.ExecInit.main(ExecInit.java:50)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:371)

```

### App information
* ID: `com.nextcloud.client`
* Version: `30340090`
* Build flavor: `generic`

### Device information
* Brand: `google`
* Device: `tokay`
* Model: `Pixel 9`
* Id: `BP2A.250805.005`
* Product: `tokay`

### Firmware
* SDK: `36`
* Release: `16`
* Incremental: `2025100900`

This happens all the time, however, it particularly happens when I open large folders.
The app then crashes. I use GrapheneOS on a Google Pixel 9.
What should I do?

### Expected behaviour

The app running normally and not crashing with long-winded error messages.

### Actual behaviour

App crashing with the error message seen above.

### Android version

16

### Device brand and model

Google Pixel 9

### Stock or custom OS?

Custom (explain in "additional information")

### Nextcloud android app version

3.34.0

### Nextcloud server version

Can't find

### Using a reverse proxy?

I don't know

### Android logs

I can't find that directory

### Server error logs

```bash

```

### Additional information

I use GrapheneOS

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.