<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>According to logcat, the last crash occured 2 days ago, in the meantime I have version 1.32.5 (from Play store), so it looks like this fixed the crash.</div>
<div> </div>
<div>Br,</div>
<div>Michael</div>
<div>
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"> </div>
<div name="quoted-content">
<div>
<div>Not sure how to debug this, but it's interesting. Did this start happening recently? Does version 1.32.5 fix it? If not, does allowing kdeconnect to send notifications fix it? Or uninstalling and installing again?</div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin: 0.0px 0.0px 0.0px 0.8ex;border-left: 1.0px solid rgb(204,204,204);padding-left: 1.0ex;">Hi,<br/>
<br/>
I am using KDE Connect 1.32.2 (downloaded APK from F-Droid) on a Galaxy S22 with Android v14. Android complains that KDE Connect crashes repeatedly.<br/>
<br/>
In logcat I found following Exceptions:<br/>
<br/>
09-23 18:43:15.760 30945 30945 E AndroidRuntime: FATAL EXCEPTION: main<br/>
09-23 18:43:15.760 30945 30945 E AndroidRuntime: Process: org.kde.kdeconnect_tp, PID: 30945<br/>
09-23 18:43:15.760 30945 30945 E AndroidRuntime: java.lang.RuntimeException: Unable to start service org.kde.kdeconnect.BackgroundService@ddb2aad with null: <a href="http://android.app" target="_blank">android.app</a>.ForegroundServiceStartNotAllowedException: Service.startForeground() not allowed due to mAllowStartForeground false: service org.kde.kdeconnect_tp/org.kde.kdeconnect.BackgroundService<br/>
09-23 18:43:15.760 30945 30945 E AndroidRuntime: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:5286)<br/>
09-23 18:43:15.760 30945 30945 E AndroidRuntime: at android.app.ActivityThread.-$$Nest$mhandleServiceArgs(Unknown Source:0)<br/>
09-23 18:43:15.760 30945 30945 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2531)<br/>
09-23 18:43:15.760 30945 30945 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)<br/>
09-23 18:43:15.760 30945 30945 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:230)<br/>
09-23 18:43:15.760 30945 30945 E AndroidRuntime: at android.os.Looper.loop(Looper.java:319)<br/>
09-23 18:43:15.760 30945 30945 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:8919)<br/>
09-23 18:43:15.760 30945 30945 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)<br/>
09-23 18:43:15.760 30945 30945 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578)<br/>
09-23 18:43:15.760 30945 30945 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)<br/>
09-23 18:43:15.760 30945 30945 E AndroidRuntime: Caused by: <a href="http://android.app" target="_blank">android.app</a>.ForegroundServiceStartNotAllowedException: Service.startForeground() not allowed due to mAllowStartForeground false: service org.kde.kdeconnect_tp/org.kde.kdeconnect.BackgroundService<br/>
09-23 18:43:15.760 30945 30945 E AndroidRuntime: at <a href="http://android.app" target="_blank">android.app</a>.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:54)<br/>
09-23 18:43:15.760 30945 30945 E AndroidRuntime: at <a href="http://android.app" target="_blank">android.app</a>.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:50)<br/>
09-23 18:43:15.760 30945 30945 E AndroidRuntime: at android.os.Parcel.readParcelableInternal(Parcel.java:4882)<br/>
09-23 18:43:15.760 30945 30945 E AndroidRuntime: at android.os.Parcel.readParcelable(Parcel.java:4864)<br/>
09-23 18:43:15.760 30945 30945 E AndroidRuntime: at android.os.Parcel.createExceptionOrNull(Parcel.java:3064)<br/>
09-23 18:43:15.760 30945 30945 E AndroidRuntime: at android.os.Parcel.createException(Parcel.java:3053)<br/>
09-23 18:43:15.760 30945 30945 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:3036)<br/>
09-23 18:43:15.760 30945 30945 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:2978)<br/>
09-23 18:43:15.760 30945 30945 E AndroidRuntime: at android.app.IActivityManager$Stub$Proxy.setServiceForeground(IActivityManager.java:7234)<br/>
09-23 18:43:15.760 30945 30945 E AndroidRuntime: at android.app.Service.startForeground(Service.java:862)<br/>
09-23 18:43:15.760 30945 30945 E AndroidRuntime: at org.kde.kdeconnect.BackgroundService$$ExternalSyntheticApiModelOutline0.m(R8$$SyntheticClass:0)<br/>
09-23 18:43:15.760 30945 30945 E AndroidRuntime: at org.kde.kdeconnect.BackgroundService.onStartCommand(BackgroundService.java:276)<br/>
09-23 18:43:15.760 30945 30945 E AndroidRuntime: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:5268)<br/>
09-23 18:43:15.760 30945 30945 E AndroidRuntime: ... 9 more<br/>
09-23 18:43:17.085 30977 30977 E AndroidRuntime: FATAL EXCEPTION: main<br/>
09-23 18:43:17.085 30977 30977 E AndroidRuntime: Process: org.kde.kdeconnect_tp, PID: 30977<br/>
09-23 18:43:17.085 30977 30977 E AndroidRuntime: java.lang.RuntimeException: Unable to start service org.kde.kdeconnect.BackgroundService@ddb2aad with null: <a href="http://android.app" target="_blank">android.app</a>.ForegroundServiceStartNotAllowedException: Service.startForeground() not allowed due to mAllowStartForeground false: service org.kde.kdeconnect_tp/org.kde.kdeconnect.BackgroundService<br/>
09-23 18:43:17.085 30977 30977 E AndroidRuntime: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:5286)<br/>
09-23 18:43:17.085 30977 30977 E AndroidRuntime: at android.app.ActivityThread.-$$Nest$mhandleServiceArgs(Unknown Source:0)<br/>
09-23 18:43:17.085 30977 30977 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2531)<br/>
09-23 18:43:17.085 30977 30977 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)<br/>
09-23 18:43:17.085 30977 30977 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:230)<br/>
09-23 18:43:17.085 30977 30977 E AndroidRuntime: at android.os.Looper.loop(Looper.java:319)<br/>
09-23 18:43:17.085 30977 30977 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:8919)<br/>
09-23 18:43:17.085 30977 30977 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)<br/>
09-23 18:43:17.085 30977 30977 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578)<br/>
09-23 18:43:17.085 30977 30977 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)<br/>
09-23 18:43:17.085 30977 30977 E AndroidRuntime: Caused by: <a href="http://android.app" target="_blank">android.app</a>.ForegroundServiceStartNotAllowedException: Service.startForeground() not allowed due to mAllowStartForeground false: service org.kde.kdeconnect_tp/org.kde.kdeconnect.BackgroundService<br/>
09-23 18:43:17.085 30977 30977 E AndroidRuntime: at <a href="http://android.app" target="_blank">android.app</a>.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:54)<br/>
09-23 18:43:17.085 30977 30977 E AndroidRuntime: at <a href="http://android.app" target="_blank">android.app</a>.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:50)<br/>
09-23 18:43:17.085 30977 30977 E AndroidRuntime: at android.os.Parcel.readParcelableInternal(Parcel.java:4882)<br/>
09-23 18:43:17.085 30977 30977 E AndroidRuntime: at android.os.Parcel.readParcelable(Parcel.java:4864)<br/>
09-23 18:43:17.085 30977 30977 E AndroidRuntime: at android.os.Parcel.createExceptionOrNull(Parcel.java:3064)<br/>
09-23 18:43:17.085 30977 30977 E AndroidRuntime: at android.os.Parcel.createException(Parcel.java:3053)<br/>
09-23 18:43:17.085 30977 30977 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:3036)<br/>
09-23 18:43:17.085 30977 30977 E AndroidRuntime: at android.os.Parcel.readException(Parcel.java:2978)<br/>
09-23 18:43:17.085 30977 30977 E AndroidRuntime: at android.app.IActivityManager$Stub$Proxy.setServiceForeground(IActivityManager.java:7234)<br/>
09-23 18:43:17.085 30977 30977 E AndroidRuntime: at android.app.Service.startForeground(Service.java:862)<br/>
09-23 18:43:17.085 30977 30977 E AndroidRuntime: at org.kde.kdeconnect.BackgroundService$$ExternalSyntheticApiModelOutline0.m(R8$$SyntheticClass:0)<br/>
09-23 18:43:17.085 30977 30977 E AndroidRuntime: at org.kde.kdeconnect.BackgroundService.onStartCommand(BackgroundService.java:276)<br/>
09-23 18:43:17.085 30977 30977 E AndroidRuntime: at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:5268)<br/>
09-23 18:43:17.085 30977 30977 E AndroidRuntime: ... 9 more<br/>
<br/>
Is this a bug, or just a lack of permissions? Do I need to grant something manually?<br/>
<br/>
Br,<br/>
Michael</blockquote>
</div>
</div>
</div>
</div>
</div>
</div></div></body></html>