Occasional loss of incoming messages
Bug description
Occasionally, Silence loses incoming messages. I get a notification on my Gadgetbridge-enabled device, but when unlocking tthe smarthpone's screen, there is no notification and nothing in Silence.
Looking at the logs it seems the phone does receive the message but fails to launch Silence to process it. I'm not sure why exactly that happens.
01-07 19:47:42.317 5639 5761 W BroadcastQueue: Unable to launch app org.smssecure.smssecure/10104 for broadcast Intent { act=android.provider.Telephony.SMS_DELIVER flg=0x18000010 cmp=org.s
mssecure.smssecure/.service.SmsListener (has extras) }: process is bad
01-07 19:47:42.324 5639 5761 W BroadcastQueue: Unable to launch app org.smssecure.smssecure/10104 for broadcast Intent { act=android.provider.Telephony.SMS_RECEIVED flg=0x19000010 (has ext
ras) }: process is bad
Earlier that day, it seems Silence failed to start:
1-07 11:37:45.125 5639 5699 W ActivityManager: Background start not allowed: service Intent { cmp=org.smssecure.smssecure/.service.KeyCachingService } to org.smssecure.smssecure/.service.KeyCachingService from pid=10179 uid=10104 pkg=org.smssecure.smssecure startFg?=false
01-07 11:37:45.126 10179 10198 E AndroidRuntime: FATAL EXCEPTION: JobConsumer-1
01-07 11:37:45.126 10179 10198 E AndroidRuntime: Process: org.smssecure.smssecure, PID: 10179
01-07 11:37:45.126 10179 10198 E AndroidRuntime: java.lang.IllegalStateException: Not allowed to start service Intent { cmp=org.smssecure.smssecure/.service.KeyCachingService }: app is in background uid UidRecord{fe6454d u0a104 CEM idle change:cached procs:1 seq(0,0,0)}
01-07 11:37:45.126 10179 10198 E AndroidRuntime: at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1577)
01-07 11:37:45.126 10179 10198 E AndroidRuntime: at android.app.ContextImpl.startService(ContextImpl.java:1532)
01-07 11:37:45.126 10179 10198 E AndroidRuntime: at android.content.ContextWrapper.startService(ContextWrapper.java:664)
01-07 11:37:45.126 10179 10198 E AndroidRuntime: at org.smssecure.smssecure.service.KeyCachingService.getMasterSecret(KeyCachingService.java:88)
01-07 11:37:45.126 10179 10198 E AndroidRuntime: at org.smssecure.smssecure.jobs.requirements.MasterSecretRequirement.isPresent(MasterSecretRequirement.java:19)
01-07 11:37:45.126 10179 10198 E AndroidRuntime: at org.whispersystems.jobqueue.Job.isRequirementsMet(Job.java:48)
01-07 11:37:45.126 10179 10198 E AndroidRuntime: at org.whispersystems.jobqueue.JobQueue.getNextAvailableJob(JobQueue.java:76)
01-07 11:37:45.126 10179 10198 E AndroidRuntime: at org.whispersystems.jobqueue.JobQueue.getNext(JobQueue.java:52)
01-07 11:37:45.126 10179 10198 E AndroidRuntime: at org.whispersystems.jobqueue.JobConsumer.run(JobConsumer.java:45)
01-07 11:37:45.131 5639 7203 W ActivityManager: Process org.smssecure.smssecure has crashed too many times: killing!
01-07 11:37:45.131 5639 7203 I ActivityManager: Killing 10179:org.smssecure.smssecure/u0a104 (adj 900): crash
Device info
- Device: Fairphone 2
- Android version: LineageOS 16.1
- Silence version: 0.16.12-unstable (installed from F-Droid)