nextcloud / nextcloud/android

App Crashing after opening 5 pictures

Open
#15,945 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

1. Open App
2. swipe through photos
3. App crashes

### Expected behaviour

Web App shows everything just fine. Android app crashes.

### Actual behaviour

App crashes after previewing of 5 pictures.

### Android version

16

### Device brand and model

Pixel 8a Google

### Stock or custom OS?

Stock

### Nextcloud android app version

30340090

### Nextcloud server version

Nextcloud Hub 10 (31.0.6)

### Using a reverse proxy?

No

### Android logs

### Cause of error

```java
java
Exception in thread "Thread-81" java.lang.OutOfMemoryError: Failed to allocate a 32 byte allocation with 1341808 free bytes and 1310KB until OOM, target footprint 536870912, growth limit 536870912; giving up on allocation because <1% of heap free after GC.
at java.util.ArrayList.iterator(ArrayList.java:1036)
at org.apache.harmony.xml.dom.InnerNodeImpl.getChildNodes(InnerNodeImpl.java:58)
at org.apache.jackrabbit.webdav.xml.ElementIterator.seek(ElementIterator.java:130)
at org.apache.jackrabbit.webdav.xml.ElementIterator.(ElementIterator.java:56)
at org.apache.jackrabbit.webdav.xml.ElementIterator.(ElementIterator.java:82)
at org.apache.jackrabbit.webdav.xml.DomUtil.getChildren(DomUtil.java:345)
at org.apache.jackrabbit.webdav.MultiStatusResponse.createFromXml(MultiStatusResponse.java:453)
at org.apache.jackrabbit.webdav.MultiStatus.createFromXml(MultiStatus.java:185)
at org.apache.jackrabbit.webdav.client.methods.DavMethodBase.processResponseBody(DavMethodBase.java:282)
at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1749)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
at com.owncloud.android.lib.common.OwnCloudClient.executeMethod(OwnCloudClient.java:192)
at com.owncloud.android.lib.resources.files.ReadFolderRemoteOperation.run(ReadFolderRemoteOperation.java:62)
at com.owncloud.android.lib.common.operations.RemoteOperation.execute(RemoteOperation.java:193)
at com.owncloud.android.operations.RefreshFolderOperation.fetchAndSyncRemoteFolder(RefreshFolderOperation.java:462)
at com.owncloud.android.operations.RefreshFolderOperation.run(RefreshFolderOperation.java:274)
at com.owncloud.android.lib.common.operations.RemoteOperation.run(RemoteOperation.java:387)
at java.lang.Thread.run(Thread.java:1119)
```

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

### Device information
* Brand: google
* Device: akita
* Model: Pixel 8a

* Product: akita

### Firmware
* SDK: 36
* Release: 16
* Incremental: 14331693

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