Duplicate MMS Messages for images that failed to send when incorrect MMS Carrier Settings are chosen
Environment: chatty 0.7.2 (happened on all earlier versions as well as far as one year back), mmsd-tng v0.13.0, pureos10, modemmanager v1.18.6, L5, Mobile Phone, Awesim, SMIL for MMS enabled, purple plugin disabled, request delivery reports off;
Maybe related to duplicate message being received and/or not being able to delete messages/individual posts of mixed SMS/MMS messages, which contributes to this issue, in my case it's on the sending side mostly and am not using purple plugin: #287, #435, #484 .
Basically the same as: #606 (closed), #644 (closed), #617 (closed), https://forums.puri.sm/t/zombie-mms-messages/15894/3 except issue still persists in either individual or group messages as of April 2023, so maybe a regression?
Steps to repeat:
- select contact
- create mms message
- attach an image (no text added in message body)
- send message
Make sure message sending fails, either by selecting a large image that cannot be sent, or disconnecting the modem during send, mis-configure the proxy, or message server, or any other way you can think of. The little red "x", should now show in the image that was not sent.
Now use Chatty as usual, close it, open it, reboot phone, reconnected to mobile network, send messages to the same contact in 1. , receive messages from contact in 1. , use phone over several days. Observe the failed image repeatedly shows up in the message list. As a user you have to scroll past all the failed images to get to the last SMS message that was successfully received. The issue is its easy to miss new messages received since all you see is the failed image sent.
NOTE: the failed send image typically shows, and will never go away, after deleting the thread, and sending a new message to contact 1. deleting the chatty/mms and/or purple db will not remove the image after re-opening chatty. the image will come back. also here Friday indicates the image that failed to send 4 days ago.
Workaround: delete chatty messages, close chatty, clear memory in Gnome Usage App
for chatty, purge ~/.mms/modemmanager
, ~/.local/share/chatty/mms/
cache, re-open chatty and create new SMS/MMS message.
chatty -vvvv debug:
The debug it says mms appeared maybe that is the message. After i delete the conversation string with failed image sent (immediatelly on send i toggle off the power to the modem using HKS switch which causes it to not send - log not shown here) and reopen chatty with chatty -vvvv this is what shows (and after entering killall chatty). I can see on chatty opening only two messages initially, then the matrix is added, then the message i previously deleted shows and then all the user names show. The image was 1.2MB so was initially resized on failed sent (that log isnt shown). Another thing that stands out is there are a few mms APN setting errors (not sure those are temp app starting up type errors or permanent errors)
Further illustration: