Hey guys, I'm looking for a bit of direction. I have a Nexus 5 on
OTA 11
Image 20191016-9670
If I reboot my nexus 5 and I receive an MMS message 4 filehandles are open to the one MMS file:
root@ubuntu-phablet:~# lsof 2>/dev/null | grep mms
root@ubuntu-phablet:~# lsof 2>/dev/null | grep mms
ubuntu-do 6059 phablet 10u REG 179,28 493 696937 /home/phablet/.local/share/nuntium/store/2b74cc3336f35c253c9929ded3fc64e7.mms
QDBusConn 6059 6060 phablet 10u REG 179,28 493 696937 /home/phablet/.local/share/nuntium/store/2b74cc3336f35c253c9929ded3fc64e7.mms
Qt\x20bea 6059 6061 phablet 10u REG 179,28 493 696937 /home/phablet/.local/share/nuntium/store/2b74cc3336f35c253c9929ded3fc64e7.mms
QNetworkA 6059 6068 phablet 10u REG 179,28 493 696937 /home/phablet/.local/share/nuntium/store/2b74cc3336f35c253c9929ded3fc64e7.mms
Then I send myself another MMS message it opens more and doesn't close the handle.
root@ubuntu-phablet:~# lsof 2>/dev/null | grep mms
ubuntu-do 6059 phablet 10u REG 179,28 493 696937 /home/phablet/.local/share/nuntium/store/2b74cc3336f35c253c9929ded3fc64e7.mms
ubuntu-do 6059 phablet 12u REG 179,28 169454 695879 /home/phablet/.local/share/nuntium/store/c8948176e77b5677d6d713d78c1d9f2d.mms
QDBusConn 6059 6060 phablet 10u REG 179,28 493 696937 /home/phablet/.local/share/nuntium/store/2b74cc3336f35c253c9929ded3fc64e7.mms
QDBusConn 6059 6060 phablet 12u REG 179,28 169454 695879 /home/phablet/.local/share/nuntium/store/c8948176e77b5677d6d713d78c1d9f2d.mms
Qt\x20bea 6059 6061 phablet 10u REG 179,28 493 696937 /home/phablet/.local/share/nuntium/store/2b74cc3336f35c253c9929ded3fc64e7.mms
Qt\x20bea 6059 6061 phablet 12u REG 179,28 169454 695879 /home/phablet/.local/share/nuntium/store/c8948176e77b5677d6d713d78c1d9f2d.mms
QNetworkA 6059 6068 phablet 10u REG 179,28 493 696937 /home/phablet/.local/share/nuntium/store/2b74cc3336f35c253c9929ded3fc64e7.mms
QNetworkA 6059 6068 phablet 12u REG 179,28 169454 695879 /home/phablet/.local/share/nuntium/store/c8948176e77b5677d6d713d78c1d9f2d.mms
QNetworkA 6059 6265 phablet 10u REG 179,28 493 696937 /home/phablet/.local/share/nuntium/store/2b74cc3336f35c253c9929ded3fc64e7.mms
QNetworkA 6059 6265 phablet 12u REG 179,28 169454 695879 /home/phablet/.local/share/nuntium/store/c8948176e77b5677d6d713d78c1d9f2d.mms
root@ubuntu-phablet:~# lsof 2>/dev/null | grep mms | wc -l
10
root@ubuntu-phablet:~# lsof 2>/dev/null | grep mms | wc -l
10
root@ubuntu-phablet:~# lsof 2>/dev/null | grep mms | wc -l
10
root@ubuntu-phablet:~#
Sending SMS messages does not affect this and they seem to be open forever. so I deleted one within the messages app and one from the command line:
root@ubuntu-phablet:~# rm -f /home/phablet/.local/share/nuntium/store/2b74cc3336f35c253c9929ded3fc64e7.mms
root@ubuntu-phablet:~# lsof 2>/dev/null | grep mms
ubuntu-do 6059 phablet 10u REG 179,28 493 696937 /home/phablet/.local/share/nuntium/store/2b74cc3336f35c253c9929ded3fc64e7.mms (deleted)
ubuntu-do 6059 phablet 12u REG 179,28 169454 695879 /home/phablet/.local/share/nuntium/store/c8948176e77b5677d6d713d78c1d9f2d.mms (deleted)
QDBusConn 6059 6060 phablet 10u REG 179,28 493 696937 /home/phablet/.local/share/nuntium/store/2b74cc3336f35c253c9929ded3fc64e7.mms (deleted)
QDBusConn 6059 6060 phablet 12u REG 179,28 169454 695879 /home/phablet/.local/share/nuntium/store/c8948176e77b5677d6d713d78c1d9f2d.mms (deleted)
Qt\x20bea 6059 6061 phablet 10u REG 179,28 493 696937 /home/phablet/.local/share/nuntium/store/2b74cc3336f35c253c9929ded3fc64e7.mms (deleted)
Qt\x20bea 6059 6061 phablet 12u REG 179,28 169454 695879 /home/phablet/.local/share/nuntium/store/c8948176e77b5677d6d713d78c1d9f2d.mms (deleted)
QNetworkA 6059 6068 phablet 10u REG 179,28 493 696937 /home/phablet/.local/share/nuntium/store/2b74cc3336f35c253c9929ded3fc64e7.mms (deleted)
QNetworkA 6059 6068 phablet 12u REG 179,28 169454 695879 /home/phablet/.local/share/nuntium/store/c8948176e77b5677d6d713d78c1d9f2d.mms (deleted)
QNetworkA 6059 6265 phablet 10u REG 179,28 493 696937 /home/phablet/.local/share/nuntium/store/2b74cc3336f35c253c9929ded3fc64e7.mms (deleted)
QNetworkA 6059 6265 phablet 12u REG 179,28 169454 695879 /home/phablet/.local/share/nuntium/store/c8948176e77b5677d6d713d78c1d9f2d.mms (deleted)
root@ubuntu-phablet:~# ps aux | grep 6059
phablet 6059 0.0 0.4 85028 7996 ? Sl 18:17 0:00 /usr/bin/ubuntu-download-manager
root 6747 0.0 0.0 5360 804 pts/26 S+ 18:22 0:00 grep --color=auto 6059
root@ubuntu-phablet:~#
And this just keeps going up for each MMS file I receive. I found this because I run my own python script to bridge SMS/MMS messages to Matrix/Riot and so I never touch this device. Its plugged in all the time and I only ever use matrix on a different device to text. Eventually it fails because there is too many open files... It's worth noteing that the above testing was done before I started my python script and the below was after a couple months of uptime/use.
This is how it looked before I rebooted my phone:
root@ubuntu-phablet:~# lsof 2> /dev/null | grep mms > /home/phablet/mmses.txt
root@ubuntu-phablet:~# cat /home/phablet/mmses.txt | wc -l
145844
root@ubuntu-phablet:~# head -n 4 /home/phablet/mmses.txt
grep 570 root 1w REG 179,28 0 568935 /home/phablet/mmses.txt
ubuntu-do 8553 phablet 10u REG 179,28 609 695571 /home/phablet/.local/share/nuntium/store/e2a5ea130f8eb7ede3b0ec70ab647fdf.mms
ubuntu-do 8553 phablet 12u REG 179,28 526 695574 /home/phablet/.local/share/nuntium/store/4982f92024847e396468c4b702ed41f1.mms
ubuntu-do 8553 phablet 14u REG 179,28 528 695577 /home/phablet/.local/share/nuntium/store/4a268d52bf7b3a62893889437f56aed8.mms
root@ubuntu-phablet:~# ps aux | grep 8553
root 3854 0.0 0.0 5360 540 pts/21 S+ 18:00 0:00 grep --color=auto 8553
phablet 8553 0.0 1.0 3112304 20864 ? Sl May17 0:22 /usr/bin/ubuntu-download-manager
root@ubuntu-phablet:~#
Is this a problem for anyone else?
I've never contributed to an open source project before and I'm pretty new to programming but I'd love to dig though the code myself. Anyone have any idea where I'd even start to look to find out where I'd need to close off these file handles? it seems like its in ubuntu-download-manager