ModemManager 1.8.2 aborted by assertion in mm-bearer-qmi.c:1138:cleanup_event_report_unsolicited_events
I tests the app, which uses libmm-glib to control the SIM7600E-H modem. I connected the modem successful. Next I pull out the antenna to test the case of a too bad signal. So MM reports, that SQ is too bad, Access Tech. gsm/umts/unknown (instead of lte), but the state is still connected and 3gpp registration is home. Next for testing I do mm_modem_simple_disconnect - if the call ends with error Transaction timed out (it's quite often if a signal is bad; dbus proxy timeout is 60 sec) and right after do mm_modem_disable - then ModemManager is crashed by assertion.
Log fragments:
[6143]: <info> Modem /org/freedesktop/ModemManager1/Modem/3: state changed (connected -> disconnecting)
[6143]: <info> Modem /org/freedesktop/ModemManager1/Modem/3: state changed (disconnecting -> connected)
[6143]: <info> Modem /org/freedesktop/ModemManager1/Modem/3: state changed (connected -> disabling)
**
ERROR:/home/alexander/projects/3rd_part/ModemManager/src/mm-bearer-qmi.c:1138:cleanup_event_report_unsolicited_events: assertion failed: (*indication_id != 0)
[1]+ Aborted ModemManager
A little more details (with --debug):
[7569]: <debug> [1562171000.122345] Couldn't disconnect bearer '/org/freedesktop/ModemManager1/Bearer/2'
[7569]: <info> [1562171000.122411] Modem /org/freedesktop/ModemManager1/Modem/3: state changed (disconnecting -> connected)
[7569]: <info> [1562171000.124457] Modem /org/freedesktop/ModemManager1/Modem/3: state changed (connected -> disabling)
[7569]: <debug> [1562171000.124882] Modem /org/freedesktop/ModemManager1/Modem/3: signal quality updated (0)
[7569]: <debug> [1562171000.124954] Modem /org/freedesktop/ModemManager1/Modem/3: access technology changed (umts -> unknown)
[7569]: <debug> [1562171000.124992] Periodic signal checks disabled
[7569]: <debug> [1562171000.125030] Disconnecting bearer '/org/freedesktop/ModemManager1/Bearer/2'
**
ERROR:/home/alexander/projects/3rd_part/ModemManager/src/mm-bearer-qmi.c:1138:cleanup_event_report_unsolicited_events: assertion failed: (*indication_id != 0)
Aborted
If need - I can attach the full log file.
Edit:
I noted, that mm_modem_simple_disconnect reports 2 kinds of Transaction timed out error in different cases:
- QMI_CORE_ERROR (QMI_CORE_ERROR_TIMEOUT): GDBus.Error:org.freedesktop.libqmi.Error.Core.Timeout: Transaction timed out
- G_IO_ERROR (G_IO_ERROR_DBUS_ERROR): GDBus.Error:org.freedesktop.libqmi.Error.Core.Timeout: Transaction timed out
Seems, the second leads to abortion.