| Summary: | [Andoird] Auto-save on app minimization fails under some circumstances | ||
|---|---|---|---|
| Product: | [Applications] krita | Reporter: | Dmitry Kazakov <dimula73> |
| Component: | General | Assignee: | Krita Bugs <krita-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | major | CC: | dra.w.p.il.e+bugskde, halla |
| Priority: | NOR | ||
| Version First Reported In: | git master (please specify the git hash!) | ||
| Target Milestone: | --- | ||
| Platform: | Android | ||
| OS: | Android 14.x | ||
| Latest Commit: | Version Fixed/Implemented In: | 5.2.13 | |
| Sentry Crash Report: | |||
|
Description
Dmitry Kazakov
2024-11-04 12:51:27 UTC
It seems like there is also case D, where Krita tries to start the service, but the system forbids it... Exception java.lang.RuntimeException: at android.app.ActivityThread.performPauseActivityIfNeeded (ActivityThread.java:5544) at android.app.ActivityThread.performPauseActivity (ActivityThread.java:5495) at android.app.ActivityThread.handlePauseActivity (ActivityThread.java:5447) at android.app.servertransaction.PauseActivityItem.execute (PauseActivityItem.java:48) at android.app.servertransaction.ActivityTransactionItem.execute (ActivityTransactionItem.java:60) at android.app.servertransaction.TransactionExecutor.executeLifecycleItem (TransactionExecutor.java:282) at android.app.servertransaction.TransactionExecutor.executeTransactionItems (TransactionExecutor.java:150) at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:93) at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2595) 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:8592) at java.lang.reflect.Method.invoke at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:580) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:878) Caused by android.app.BackgroundServiceStartNotAllowedException: at android.app.ContextImpl.startServiceCommon (ContextImpl.java:1946) at android.app.ContextImpl.startService (ContextImpl.java:1901) at android.content.ContextWrapper.startService (ContextWrapper.java:827) at org.krita.android.MainActivity.startForegroundServiceS (MainActivity.java:128) at org.krita.android.MainActivity.startServiceGeneric (MainActivity.java:111) at org.krita.android.MainActivity.onPause (MainActivity.java:102) at android.app.Activity.performPause (Activity.java:9165) at android.app.Instrumentation.callActivityOnPause (Instrumentation.java:1776) at android.app.ActivityThread.performPauseActivityIfNeeded (ActivityThread.java:5534) Setting to confirmed since we've seen this a lot. Should be fixed in 5.2.13 with the changes to the document saver service. |