tijder / SmsMatrix

A simple SMS <--> Matrix bridge.
https://matrix.to/#/#smsmatrix:matrix.org
GNU General Public License v3.0
213 stars 37 forks source link

App crash on phone call #49

Open supermamie opened 5 years ago

supermamie commented 5 years ago

The app crash when I receive a phone call, initiate a phone call, or end a phone call. This is not 100% of the time, but very frequent.

I don't have a logcat for this error but I can try to install the needed tools to provide it if needed.

Note : I'm using LineageOS 15.1 without the google play services (and had the same error with OmniRom, without the play services too)

sans titre

tijder commented 5 years ago

Thanks for creating the issue. If you could create/upload a log it would be helpful. If you have android studio, then you could get the log from there. If you know you way with the command line you could maybe use: adb shell logcat > log.txt Just to be sure the app got all the permissions it needs?

supermamie commented 5 years ago

It seems to happen only when I call/receive a call from somebody who never sent me any sms Here is the logcat (I hope I forgot nothing while cleaning it) logcat.txt

When the call is from/to someone with previous sms, the calls are logged correctly in Matrix.

tijder commented 5 years ago

02-22 08:54:25.386: E/AndroidRuntime(32716): java.lang.RuntimeException: Unable to start receiver eu.droogers.smsmatrix.ReceiverListener: java.lang.IllegalStateException: Not allowed to start service Intent { cmp=eu.droogers.smsmatrix/.MatrixService (has extras) }: app is in background uid UidRecord{5a1fad6 u0a124 RCVR idle change:uncached procs:1 seq(0,0,0)}

I think this is the error. On Stackoverlfow I found this https://stackoverflow.com/questions/51353493/not-allowed-to-start-service-intent-android-oreo. When I have time I will try to fix it.