Skip to content

A bug on autoupload files in Nextcloud Android app #14906

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
4 tasks done
DavidCamejo opened this issue May 20, 2025 · 0 comments
Open
4 tasks done

A bug on autoupload files in Nextcloud Android app #14906

DavidCamejo opened this issue May 20, 2025 · 0 comments

Comments

@DavidCamejo
Copy link

⚠️ Before posting ⚠️

  • This is a bug, not a question or an enhancement.
  • I've searched for similar issues and didn't find a duplicate.
  • I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • I agree to follow Nextcloud's Code of Conduct.

Steps to reproduce

A notification appeared saying: "Conflict sending file". When you click "Resolve Conflict" this text appears describing the error.

Expected behaviour

A screen should appear allowing you to choose which version of the file you want to upload.

Actual behaviour

Cause of error

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:4169)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4325)
    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101)
    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2574)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loopOnce(Looper.java:226)
    at android.os.Looper.loop(Looper.java:313)
    at android.app.ActivityThread.main(ActivityThread.java:8762)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
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:2285)
    at android.accounts.AccountManager.-$$Nest$mensureNotOnMainThread(Unknown Source:0)
    at android.accounts.AccountManager$AmsTask.internalGetResult(AccountManager.java:2391)
    at android.accounts.AccountManager$AmsTask.getResult(AccountManager.java:2429)
    at android.accounts.AccountManager$AmsTask.getResult(AccountManager.java:2344)
    at android.accounts.AccountManager.blockingGetAuthToken(AccountManager.java:1642)
    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.<init>(FileOperationHelper.kt:33)
    at com.nextcloud.client.di.AppModule.fileOperationHelper(AppModule.java:256)
    at com.nextcloud.client.di.AppModule_FileOperationHelperFactory.fileOperationHelper(AppModule_FileOperationHelperFactory.java:63)
    at com.nextcloud.client.di.DaggerAppComponent$AppComponentImpl.fileOperationHelper(DaggerAppComponent.java:6759)
    at com.nextcloud.client.di.DaggerAppComponent$AppComponentImpl.-$$Nest$mfileOperationHelper(Unknown Source:0)
    at com.nextcloud.client.di.DaggerAppComponent$ConflictsResolveActivitySubcomponentImpl.injectConflictsResolveActivity(DaggerAppComponent.java:2387)
    at com.nextcloud.client.di.DaggerAppComponent$ConflictsResolveActivitySubcomponentImpl.inject(DaggerAppComponent.java:2366)
    at com.nextcloud.client.di.DaggerAppComponent$ConflictsResolveActivitySubcomponentImpl.inject(DaggerAppComponent.java:2348)
    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:1419)
    at android.app.Activity.onCreate(Activity.java:1701)
    at androidx.core.app.ComponentActivity.onCreate(ComponentActivity.kt:68)
    at androidx.activity.ComponentActivity.onCreate(ComponentActivity.kt:332)
    at androidx.fragment.app.FragmentActivity.onCreate(FragmentActivity.java:216)
    at com.owncloud.android.ui.activity.BaseActivity.onCreate(BaseActivity.java:79)
    at com.owncloud.android.ui.activity.DrawerActivity.onCreate(DrawerActivity.java:1078)
    at com.owncloud.android.ui.activity.FileActivity.onCreate(FileActivity.java:212)
    at com.owncloud.android.ui.activity.ConflictsResolveActivity.onCreate(ConflictsResolveActivity.kt:69)
    at android.app.Activity.performCreate(Activity.java:8591)
    at android.app.Activity.performCreate(Activity.java:8570)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1384)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4150)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4325)
    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101)
    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2574)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loopOnce(Looper.java:226)
    at android.os.Looper.loop(Looper.java:313)
    at android.app.ActivityThread.main(ActivityThread.java:8762)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)

App information

  • ID: com.nextcloud.client
  • Version: 30310190
  • Build flavor: gplay

Device information

  • Brand: samsung
  • Device: r8q
  • Model: SM-G781B
  • Id: TP1A.220624.014
  • Product: r8qxxx

Firmware

  • SDK: 33
  • Release: 13
  • Incremental: G781BXXSFHYA1

Android version

13

Device brand and model

Samsung Galaxy S20 FE 5G

Stock or custom OS?

Stock

Nextcloud android app version

3.31.1

Nextcloud server version

30.0.8

Using a reverse proxy?

Yes

Android logs

No response

Server error logs

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant