nextcloud / nextcloud/android

Out of memory error when listing directory with a lot of files

Open
#16,676 3 comments 0 reactions 0 assignees View on GitHub
0. Needs triage bug hotspot: larger folder handling performance: OOM :brain:
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

1. go to all files
2. open directory with a lot of files in it
3. if didn't load, swipe down to refresh

![Image](https://github.com/user-attachments/assets/8a23668b-cd5f-4e67-852c-de6d15291533)

### Expected behaviour

should list all your files

![Image](https://github.com/user-attachments/assets/91715c07-f011-483f-90b0-5498e5346ff1)

### Actual behaviour

Out of memory error

### Android version

16

### Device brand and model

Samsung s22ultra

### Stock or custom OS?

Stock

### Nextcloud android app version

33.0.0

### Nextcloud server version

32.0.6

### Using a reverse proxy?

I don't know

### Android logs

_No response_

### Server error logs

```bash

```

### Additional information

_No response_

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.