Indeed it helped a lot, although it was not sufficient. The problem can occur if the folder is empty, but the following steps :
remove everything in that folder
clean up in the messages app any message that is marked for retry
restart ofono service
restart phone
did actually put the phone in a usable again state.
My guess is that there is a race condition in ofono (which explains why running it with debug logs could help). Questions for the dev : if it happens again, what kind of trace would be interesting ? Or a core dump ?
I had this problem twice since the upgrade on SFOS 5.0.0.29 with a german SIM and german UX and no workaround helped … Even the pulling out the sim and push it back brought no success and after hours and switching the fly mode ob and off it appeared suddenly back …
Insufficient because that was part of the solution (not doing it would not solve anything), but i had to also delete any message marked pending in messages app, restart ofono, and finally reboot the whole phone, to get it into usable state again.
Actually, i had a phone in a very pretty bad condition, where even devel-su would raise a Bus error. My wild guess is that dbus server has been oom-killed for some reason, or crashed, but i could not investigate more as nothing was responding correctly. It indeed all started with me trying to send an sms, which did not get delivered.
I had to hard reboot the phone, and that’s when the ofono problems came into play.
I need to raise a bug report for the former crash, but since this is my daily driver, bringing it back to an usable state was of higher priority on my list. And i honestly have no idea on how to reproduce the dbus crash. OTOH, the ofono crash seems pretty reproducible.
I deleted the SMS queue and how I mentioned in the former post, I tried to reboot 2 times and than plugging and unplugging the sim card, fly mode on / off and the issue remained and suddenly after a time after fly mode on / off the sim card was active again and since than it works …
Just a small comment about the steps provided: you should first stop ofono service, only then clear the tx_queue folder contents, then start ofono again.
Reboot should not be necessary, but doesn’t hurt either.
I will give it a try in this way next time it happens. Honestly I did not stop the daemon, just deleted the queue and made a systemctl restart ofono … But I hope that workaround will be not the only solution in the future …