nextcloud / nextcloud/android

Upload file conflict error

Open
#15,327 0 comments 1 reaction 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

I use Android 15 under Samsung's OneUI 7. It's the latest update as of 8/8/2025.

I have updated the snaps and other software on my server. I have Ubuntu Plucky Puffin. I have rebooted the server twice. I have uninstalled and reinstalled the Android client and ensured it's updated. I can't seem to solve this issue. It came on suddenly without any incidents.

### Expected behaviour

My phone automatically uploads files, but occasionally, because of phone shutdowns or reinstalling the Nextcloud client, files that are already uploaded attempt to upload again. I receive a file conflict message and get a resolve conflict notification.

### Actual behaviour

It has been working until now, but for some reason, the client either claims it cannot open the resolution window or gives a screen dump lately.

### Android version

Android 15 One UI 7

### Device brand and model

SM S918M Galaxy S23 Ultra.

### Stock or custom OS?

Stock

### Nextcloud android app version

3.32.2

### Nextcloud server version

31.0.7

### Using a reverse proxy?

Yes

### Android logs

### Cause of error
```java
Exception in thread "main" java.lang.RuntimeException: Unable to start activity ComponentInfo{com.nextcloud.client/com.owncloud.android.ui.activity.ConflictsResolveActivity}: java.lang.IllegalStateException: calling this from your main thread can lead to deadlock
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4454)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4685)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:112)
at android.app.servertransaction.TransactionExecutor.executeNonLifecycleItem(TransactionExecutor.java:174)
at android.app.servertransaction.TransactionExecutor.executeTransactionItems(TransactionExecutor.java:109)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:81)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2895)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loopOnce(Looper.java:257)
at android.os.Looper.loop(Looper.java:342)
at android.app.ActivityThread.main(ActivityThread.java:9634)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:619)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:929)
Caused by: Exception in thread "main" java.lang.IllegalStateException: calling this from your main thread can lead to deadlock
at android.accounts.AccountManager.ensureNotOnMainThread(AccountManager.java:2273)
at android.accounts.AccountManager.-$$Nest$mensureNotOnMainThread(Unknown Source:0)
at android.accounts.AccountManager$AmsTask.internalGetResult(AccountManager.java:2379)
at android.accounts.AccountManager$AmsTask.getResult(AccountManager.java:2412)
at android.accounts.AccountManager$AmsTask.getResult(AccountManager.java:2332)
at android.accounts.AccountManager.blockingGetAuthToken(AccountManager.java:1630)
at com.owncloud.android.lib.common.accounts.AccountUtils.getCredentialsForAccount(AccountUtils.java:126)
at com.owncloud.android.lib.common.OwnCloudAccount.loadCredentials(OwnCloudAccount.java:111)
at com.owncloud.android.lib.common.OwnCloudClientManager.getClientFor(OwnCloudClientManager.java:102)
at com.nextcloud.client.network.ClientFactoryImpl.create(ClientFactoryImpl.java:38)
at com.nextcloud.client.jobs.operation.FileOperationHelper.(FileOperationHelper.kt:33)
at com.nextcloud.client.di.AppModule.fileOperationHelper(AppModule.java:256)
at com.nextcloud.client.di.AppModule_FileOperationHelperFactory.fileOperationHelper(AppModule_FileOperationHelperFactory.java:56)
at com.nextcloud.client.di.DaggerAppComponent$AppComponentImpl.fileOperationHelper(DaggerAppComponent.java:6737)
at com.nextcloud.client.di.DaggerAppComponent$ConflictsResolveActivitySubcomponentImpl.injectConflictsResolveActivity(DaggerAppComponent.java:2386)
at com.nextcloud.client.di.DaggerAppComponent$ConflictsResolveActivitySubcomponentImpl.inject(DaggerAppComponent.java:2365)
at com.nextcloud.client.di.DaggerAppComponent$ConflictsResolveActivitySubcomponentImpl.inject(DaggerAppComponent.java:2347)
at dagger.android.DispatchingAndroidInjector.maybeInject(DispatchingAndroidInjector.java:113)
at dagger.android.DispatchingAndroidInjector.inject(DispatchingAndroidInjector.java:134)
at dagger.android.AndroidInjection.inject(AndroidInjection.java:181)
at dagger.android.AndroidInjection.inject(AndroidInjection.java:55)
at com.nextcloud.client.di.ActivityInjector.onActivityCreated(ActivityInjector.kt:18)
at android.app.Application.dispatchActivityCreated(Application.java:387)
at android.app.Activity.dispatchActivityCreated(Activity.java:1579)
at android.app.Activity.onCreate(Activity.java:1889)
at androidx.core.app.ComponentActivity.onCreate(ComponentActivity.kt:68)
at androidx.activity.ComponentActivity.onCreate(ComponentActivity.kt:328)
at androidx.fragment.app.FragmentActivity.onCreate(FragmentActivity.java:216)
at com.owncloud.android.ui.activity.BaseActivity.onCreate(BaseActivity.java:73)
at com.owncloud.android.ui.activity.DrawerActivity.onCreate(DrawerActivity.java:1066)
at com.owncloud.android.ui.activity.FileActivity.onCreate(FileActivity.java:217)
at com.owncloud.android.ui.activity.ConflictsResolveActivity.onCreate(ConflictsResolveActivity.kt:72)
at android.app.Activity.performCreate(Activity.java:9363)
at android.app.Activity.performCreate(Activity.java:9332)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1526)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4436)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4685)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:112)
at android.app.servertransaction.TransactionExecutor.executeNonLifecycleItem(TransactionExecutor.java:174)
at android.app.servertransaction.TransactionExecutor.executeTransactionItems(TransactionExecutor.java:109)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:81)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2895)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loopOnce(Looper.java:257)
at android.os.Looper.loop(Looper.java:342)
at android.app.ActivityThread.main(ActivityThread.java:9634)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:619)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:929)

```

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

### Device information
* Brand: `samsung`
* Device: `dm3q`
* Model: `SM-S918N`
* Id: `AP3A.240905.015.A2`
* Product: `dm3qksx`

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

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