Skip to content

Nextcloud error on uploading from android phone #15599

@poison4o

Description

@poison4o

⚠️ 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

Just wanted to resolve conflict with existing image on the phone and on the server, or continue on uploading the images

Expected behaviour

On the mobile app from the menu on the left in Uploads sub menu, when press the play/pause button to continue the process of uploading

Actual behaviour

Throws an exception

Cause of error

Exception in thread "main" java.lang.IllegalStateException: Data cannot occupy more than 10240 bytes when serialized
    at androidx.work.Data$Companion.toByteArrayInternalV1(Data_.kt:703)
    at androidx.work.Data$Builder.build(Data_.kt:525)
    at com.nextcloud.client.jobs.BackgroundJobManagerImpl.startFilesUploadJob(BackgroundJobManagerImpl.kt:619)
    at com.nextcloud.client.jobs.upload.FileUploadHelper.cancelAndRestartUploadJob(FileUploadHelper.kt:266)
    at com.nextcloud.client.jobs.upload.FileUploadHelper.removeFileUpload(FileUploadHelper.kt:232)
    at com.owncloud.android.ui.activity.ConflictsResolveActivity.keepServer(ConflictsResolveActivity.kt:232)
    at com.owncloud.android.ui.activity.ConflictsResolveActivity.setupOnConflictDecisionMadeListener$lambda$2(ConflictsResolveActivity.kt:120)
    at com.owncloud.android.ui.activity.ConflictsResolveActivity.$r8$lambda$6FnIf0B4_DmOehP3NUTy7knzSd4(Unknown Source:0)
    at com.owncloud.android.ui.activity.ConflictsResolveActivity$$ExternalSyntheticLambda2.conflictDecisionMade(D8$$SyntheticClass:0)
    at com.owncloud.android.ui.activity.ConflictsResolveActivity.conflictDecisionMade(ConflictsResolveActivity.kt:254)
    at com.owncloud.android.ui.dialog.ConflictsResolveDialog.okButtonClick(ConflictsResolveDialog.kt:173)
    at com.owncloud.android.ui.dialog.ConflictsResolveDialog.createDialogBuilder$lambda$3(ConflictsResolveDialog.kt:149)
    at com.owncloud.android.ui.dialog.ConflictsResolveDialog.$r8$lambda$xIUnTbOJgazIEAs84OIxWW3HhwQ(Unknown Source:0)
    at com.owncloud.android.ui.dialog.ConflictsResolveDialog$$ExternalSyntheticLambda3.onClick(D8$$SyntheticClass:0)
    at androidx.appcompat.app.AlertController$ButtonHandler.handleMessage(AlertController.java:167)
    at android.os.Handler.dispatchMessage(Handler.java:107)
    at android.os.Looper.loopOnce(Looper.java:282)
    at android.os.Looper.loop(Looper.java:387)
    at android.app.ActivityThread.main(ActivityThread.java:9500)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:600)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1005)

App information

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

Device information

  • Brand: realme
  • Device: RE6081L1
  • Model: RMX5056
  • Id: UKQ1.231108.001
  • Product: RMX5056EEA

Firmware

  • SDK: 35
  • Release: 15
  • Incremental: V.R4T2.1f4bb0f-1-222c0

Android version

15

Device brand and model

Realme 14 pro 5g

Stock or custom OS?

Stock

Nextcloud android app version

3.32.3

Nextcloud server version

31.0.8

Using a reverse proxy?

Yes

Android logs

Cause of error

Exception in thread "main" java.lang.IllegalStateException: Data cannot occupy more than 10240 bytes when serialized
    at androidx.work.Data$Companion.toByteArrayInternalV1(Data_.kt:703)
    at androidx.work.Data$Builder.build(Data_.kt:525)
    at com.nextcloud.client.jobs.BackgroundJobManagerImpl.startFilesUploadJob(BackgroundJobManagerImpl.kt:619)
    at com.nextcloud.client.jobs.upload.FileUploadHelper.cancelAndRestartUploadJob(FileUploadHelper.kt:266)
    at com.nextcloud.client.jobs.upload.FileUploadHelper.removeFileUpload(FileUploadHelper.kt:232)
    at com.owncloud.android.ui.activity.ConflictsResolveActivity.keepServer(ConflictsResolveActivity.kt:232)
    at com.owncloud.android.ui.activity.ConflictsResolveActivity.setupOnConflictDecisionMadeListener$lambda$2(ConflictsResolveActivity.kt:120)
    at com.owncloud.android.ui.activity.ConflictsResolveActivity.$r8$lambda$6FnIf0B4_DmOehP3NUTy7knzSd4(Unknown Source:0)
    at com.owncloud.android.ui.activity.ConflictsResolveActivity$$ExternalSyntheticLambda2.conflictDecisionMade(D8$$SyntheticClass:0)
    at com.owncloud.android.ui.activity.ConflictsResolveActivity.conflictDecisionMade(ConflictsResolveActivity.kt:254)
    at com.owncloud.android.ui.dialog.ConflictsResolveDialog.okButtonClick(ConflictsResolveDialog.kt:173)
    at com.owncloud.android.ui.dialog.ConflictsResolveDialog.createDialogBuilder$lambda$3(ConflictsResolveDialog.kt:149)
    at com.owncloud.android.ui.dialog.ConflictsResolveDialog.$r8$lambda$xIUnTbOJgazIEAs84OIxWW3HhwQ(Unknown Source:0)
    at com.owncloud.android.ui.dialog.ConflictsResolveDialog$$ExternalSyntheticLambda3.onClick(D8$$SyntheticClass:0)
    at androidx.appcompat.app.AlertController$ButtonHandler.handleMessage(AlertController.java:167)
    at android.os.Handler.dispatchMessage(Handler.java:107)
    at android.os.Looper.loopOnce(Looper.java:282)
    at android.os.Looper.loop(Looper.java:387)
    at android.app.ActivityThread.main(ActivityThread.java:9500)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:600)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1005)

App information

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

Device information

  • Brand: realme
  • Device: RE6081L1
  • Model: RMX5056
  • Id: UKQ1.231108.001
  • Product: RMX5056EEA

Firmware

  • SDK: 35
  • Release: 15
  • Incremental: `V.R4T2.1f4bb0f-1-222c0

Server error logs

No logs for now everything seems to be ok on the server

Additional information

This happens when automatic upload should start , I have tried to upload manually I didn't get any error, also a lots of time when I try to click on "Uploads" the app exit

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions