Skip to content

Conversation

@alperozturk96
Copy link
Collaborator

@alperozturk96 alperozturk96 commented Dec 5, 2025

  • Tests written, or not not needed
E  FATAL EXCEPTION: main
                                                                                                   Process: com.nextcloud.client, PID: 9860
                                                                                                   java.lang.RuntimeException: Unable to create application com.owncloud.android.MainApp: java.lang.IllegalArgumentException: PeriodicWorkRequests cannot be expedited
                                                                                                   	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7510)
                                                                                                   	at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
                                                                                                   	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2416)
                                                                                                   	at android.os.Handler.dispatchMessage(Handler.java:107)
                                                                                                   	at android.os.Looper.loopOnce(Looper.java:232)
                                                                                                   	at android.os.Looper.loop(Looper.java:317)
                                                                                                   	at android.app.ActivityThread.main(ActivityThread.java:8705)
                                                                                                   	at java.lang.reflect.Method.invoke(Native Method)
                                                                                                   	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)
                                                                                                   	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:886)
                                                                                                   Caused by: java.lang.IllegalArgumentException: PeriodicWorkRequests cannot be expedited
                                                                                                   	at androidx.work.PeriodicWorkRequest$Builder.buildInternal$work_runtime_release(PeriodicWorkRequest.kt:335)
                                                                                                   	at androidx.work.PeriodicWorkRequest$Builder.buildInternal$work_runtime_release(PeriodicWorkRequest.kt:56)
                                                                                                   	at androidx.work.WorkRequest$Builder.build(WorkRequest.kt:293)
                                                                                                   	at com.nextcloud.client.jobs.BackgroundJobManagerImpl.schedulePeriodicFilesSyncJob(BackgroundJobManagerImpl.kt:505)
                                                                                                   	at com.owncloud.android.utils.FilesSyncHelper.scheduleFilesSyncForAllFoldersIfNeeded(FilesSyncHelper.java:235)
                                                                                                   	at com.owncloud.android.MainApp.initSyncOperations(MainApp.java:627)
                                                                                                   	at com.owncloud.android.MainApp.onCreate(MainApp.java:341)
                                                                                                   	at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1386)
                                                                                                   	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7504)
                                                                                                   	at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0) 
                                                                                                   	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2416) 
                                                                                                   	at android.os.Handler.dispatchMessage(Handler.java:107) 
                                                                                                   	at android.os.Looper.loopOnce(Looper.java:232) 
                                                                                                   	at android.os.Looper.loop(Looper.java:317) 
                                                                                                   	at android.app.ActivityThread.main(ActivityThread.java:8705) 
                                                                                                   	at java.lang.reflect.Method.invoke(Native Method) 
                                                                                                   	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580) 
                                                                                                   	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:886) 
---

@alperozturk96
Copy link
Collaborator Author

/backport to stable-3.35

@alperozturk96 alperozturk96 merged commit b595eed into master Dec 5, 2025
16 of 19 checks passed
@alperozturk96 alperozturk96 deleted the fix/files-sync-work-crash branch December 5, 2025 14:40
@github-actions
Copy link

github-actions bot commented Dec 5, 2025

Codacy

SpotBugs

CategoryBaseNew
Bad practice4343
Correctness7474
Dodgy code260260
Experimental11
Internationalization77
Malicious code vulnerability33
Multithreaded correctness3434
Performance4848
Security1818
Total488488

@github-actions
Copy link

github-actions bot commented Dec 5, 2025

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/16071.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

@github-actions
Copy link

github-actions bot commented Dec 5, 2025

blue-Light-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants