nextcloud / nextcloud/android

Crash when opening "Activities"

Open
#14,991 2 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

1. Install app and register with Nextcloud server (in my case. https://uni-bonn.sciebo.de ).
2. Open up "Activities" in the app (or click on a push notification leading you there).

### Expected behaviour

Activities should be shown like in web or desktop client.

### Actual behaviour

Crash with trace below.

### Android version

16

### Device brand and model

Google Pixel 9 (tokay)

### Stock or custom OS?

Stock

### Nextcloud android app version

3.31.4

### Nextcloud server version

Version 29.0.15 Enterprise

### Using a reverse proxy?

No

### Android logs

Crash log shown by app itself:

### Cause of error
```java
Exception in thread "AsyncTask #2" java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$4.done(AsyncTask.java:415)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:434)
at java.util.concurrent.FutureTask.setException(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:322)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:651)
at java.lang.Thread.run(Thread.java:1119)
Caused by: Exception in thread "AsyncTask #2" java.lang.NumberFormatException: For input string: "3646423948"
at java.lang.Integer.parseInt(Integer.java:781)
at java.lang.Integer.parseInt(Integer.java:897)
at com.owncloud.android.lib.resources.activities.GetActivitiesRemoteOperation.run(GetActivitiesRemoteOperation.java:117)
at com.owncloud.android.lib.common.operations.RemoteOperation.execute(RemoteOperation.java:208)
at com.owncloud.android.ui.activities.data.activities.ActivitiesServiceApiImpl$GetActivityListTask.doInBackground(ActivitiesServiceApiImpl.java:87)
at com.owncloud.android.ui.activities.data.activities.ActivitiesServiceApiImpl$GetActivityListTask.doInBackground(ActivitiesServiceApiImpl.java:53)
at android.os.AsyncTask$3.call(AsyncTask.java:394)
at java.util.concurrent.FutureTask.run(FutureTask.java:317)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:651)
at java.lang.Thread.run(Thread.java:1119)

```

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

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

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

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