D2s - calendar keeps crashing after upgrade to 3.0

Hi there,

the upgrade to 3.0 itself actually worked quite well - except for the homescreen reset (see Samsung S10e - Update to iodé 3.0 - #4 by rtfm98).

But since the upgrade, the calendar app (org.lineageos.etar) keeps crashing and has stopped reminding me of appointments.

logcat says:

[ 06-04 20:28:02.661  3986: 3986 E/AndroidRuntime ]
FATAL EXCEPTION: main
Process: org.lineageos.etar, PID: 3986
java.lang.RuntimeException: Unable to start receiver com.android.calendar.alerts.AlertReceiver: android.app.ForegroundServiceStartNotAllowedException: startForegroundService() not allowed due to mAllowStartForeground false: service org.lineageos.etar/com.android.calendar.alerts.AlertService
	at android.app.ActivityThread.handleReceiver(ActivityThread.java:4384)
	at android.app.ActivityThread.access$1600(ActivityThread.java:256)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2102)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loopOnce(Looper.java:201)
	at android.os.Looper.loop(Looper.java:288)
	at android.app.ActivityThread.main(ActivityThread.java:7870)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
Caused by: android.app.ForegroundServiceStartNotAllowedException: startForegroundService() not allowed due to mAllowStartForeground false: service org.lineageos.etar/com.android.calendar.alerts.AlertService
	at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:54)
	at android.app.ForegroundServiceStartNotAllowedException$1.createFromParcel(ForegroundServiceStartNotAllowedException.java:50)
	at android.os.Parcel.readParcelable(Parcel.java:3333)
	at android.os.Parcel.createExceptionOrNull(Parcel.java:2420)
	at android.os.Parcel.createException(Parcel.java:2409)
	at android.os.Parcel.readException(Parcel.java:2392)
	at android.os.Parcel.readException(Parcel.java:2334)
	at android.app.IActivityManager$Stub$Proxy.startService(IActivityManager.java:6028)
	at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1855)
	at android.app.ContextImpl.startForegroundService(ContextImpl.java:1831)
	at android.content.ContextWrapper.startForegroundService(ContextWrapper.java:779)
	at android.content.ContextWrapper.startForegroundService(ContextWrapper.java:779)
	at com.android.calendar.alerts.AlertReceiver.beginStartingService(AlertReceiver.java:134)
	at com.android.calendar.alerts.AlertReceiver.onReceive(AlertReceiver.java:830)
	at android.app.ActivityThread.handleReceiver(ActivityThread.java:4375)
	... 9 more

According to androidbugfix.com this could be a problem with a limitation introduced in Android 12, which I personally have no control over.

Are there other people with this problem or am I the only one?

Best regards
rtfm98

You may:

  • in App info / Battery, verify battery usage is on optimized or, preferably, unrestricted
  • in App info/ Storage and cache, clear calendar storage. It will only reset your app preferences, not the calendar events.
1 Like

Looks like this fixed the problem. Thanks a lot!