nextcloud / nextcloud/android

Playing video causes out of memory on S24

Open
#15,026 1 comment 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

### Cause of error
```java
Exception in thread "SyncAdapterThread-1" java.lang.OutOfMemoryError: Failed to allocate a 144640 byte allocation with 1354112 free bytes and 1322KB until OOM, target footprint 536870912, growth limit 536870912; giving up on allocation because <1% of heap free after GC.
at org.apache.jackrabbit.webdav.MultiStatus.getResponses(MultiStatus.java:128)
at com.owncloud.android.lib.resources.files.ReadFolderRemoteOperation.readData(ReadFolderRemoteOperation.java:133)
at com.owncloud.android.lib.resources.files.ReadFolderRemoteOperation.run(ReadFolderRemoteOperation.java:70)
at com.owncloud.android.lib.common.operations.RemoteOperation.execute(RemoteOperation.java:193)
at com.owncloud.android.operations.RefreshFolderOperation.fetchAndSyncRemoteFolder(RefreshFolderOperation.java:428)
at com.owncloud.android.operations.RefreshFolderOperation.run(RefreshFolderOperation.java:246)
at com.owncloud.android.lib.common.operations.RemoteOperation.execute(RemoteOperation.java:193)
at com.owncloud.android.syncadapter.FileSyncAdapter.synchronizeFolder(FileSyncAdapter.java:273)
at com.owncloud.android.syncadapter.FileSyncAdapter.syncChildren(FileSyncAdapter.java:348)
at com.owncloud.android.syncadapter.FileSyncAdapter.synchronizeFolder(FileSyncAdapter.java:292)
at com.owncloud.android.syncadapter.FileSyncAdapter.syncChildren(FileSyncAdapter.java:348)
at com.owncloud.android.syncadapter.FileSyncAdapter.synchronizeFolder(FileSyncAdapter.java:292)
at com.owncloud.android.syncadapter.FileSyncAdapter.syncChildren(FileSyncAdapter.java:348)
at com.owncloud.android.syncadapter.FileSyncAdapter.synchronizeFolder(FileSyncAdapter.java:292)
at com.owncloud.android.syncadapter.FileSyncAdapter.syncChildren(FileSyncAdapter.java:348)
at com.owncloud.android.syncadapter.FileSyncAdapter.synchronizeFolder(FileSyncAdapter.java:292)
at com.owncloud.android.syncadapter.FileSyncAdapter.onPerformSync(FileSyncAdapter.java:186)
at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:354)

```

### App information
* ID: `com.nextcloud.client`
* Version: `30310490`
* Build flavor: `gplay`

### Device information
* Brand: `samsung`
* Device: `e1q`
* Model: `SM-S9210`
* Id: `AP3A.240905.015.A2`
* Product: `e1qzhx`

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

### Expected behaviour

Shouldn't crashed.

### Actual behaviour

App crashed if I switch between applications during playing video, it first became laggy then crashed.

### Android version

15

### Device brand and model

Samsung S24

### Stock or custom OS?

Stock

### Nextcloud android app version

3.31.4

### Nextcloud server version

20.0.2

### 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.