nextcloud / nextcloud/android

Crash on fairphone 6 running /e/os when opening large folder

Open
#17,050 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

Open app to large folder of a hundred or so files.

### Expected behaviour

The app should not crash.

### Actual behaviour

### Cause of error
```java
Exception in thread "main" java.lang.OutOfMemoryError: Failed to allocate a 56 byte allocation with 65280 free bytes and 63KB until OOM, target footprint 268435456, growth limit 268435456; giving up on allocation because <1% of heap free after GC.
at com.owncloud.android.operations.FolderRefreshScheduler$checkAndRefreshIfETagChanged$result$1.invokeSuspend(FolderRefreshScheduler.kt:74)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:34)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:101)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:113)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:589)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:823)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:720)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:707)

```

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

### Device information
* Brand: `Fairphone`
* Device: `FP6`
* Model: `Fairphone 6`
* Id: `BP1A.250505.005`
* Product: `lineage_FP6`

### Firmware
* SDK: `35`
* Release: `15`
* Incremental: `1770822901`

### Android version

/e/os 3.5

### Device brand and model

fairphone 6

### Stock or custom OS?

Custom (explain in "additional information")

### Nextcloud android app version

330010090

### Nextcloud server version

33.0.2

### Using a reverse proxy?

No

### Android logs

_No response_

### Server error logs

```bash

```

### Additional information

I will add more from a computer. Opening from my phone right now.

May be duplicate of #9903 ?

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.