getsolus / packages

Solus Package Monorepo & Issue Tracker
45 stars 63 forks source link

ModemManager gives up during initializing with AT commands (T10410) #177

Open celticmagic opened 9 months ago

celticmagic commented 9 months ago
g66925 (#g66925), 2022-10-04 09:33:43 UTC

``` (ModemManager:3297): GLib-CRITICAL **: 11:29:24.964: g_regex_match_full: assertion 'regex != NULL' failed ModemManager[3297]: [1664875764.965020] [modem0/ttyUSB2/at] operation failure: 100 (Unknown error) ModemManager[3297]: [1664875764.965068] [modem0] couldn't load supported IP families: Unknown error ModemManager[3297]: [1664875764.965114] [modem0] loading power state... ModemManager[3297]: [1664875764.965152] [modem0/ttyUSB2/at] device open count is 3 (open) ModemManager[3297]: [1664875764.965199] [modem0/ttyUSB2/at] device open count is 2 (close) ModemManager[3297]: [1664875764.965245] [modem0/ttyUSB2/at] --> 'AT+CFUN?' ModemManager[3297]: [1664875764.975034] [modem0/ttyUSB2/at] <-- '+CFUN: 1OK' ModemManager[3297]: [1664875764.975270] [modem0] checking if unlock required... ModemManager[3297]: [1664875764.975300] [modem0/ttyUSB2/at] device open count is 3 (open) ModemManager[3297]: [1664875764.975342] [modem0/ttyUSB2/at] device open count is 2 (close) ModemManager[3297]: [1664875764.975385] [modem0/ttyUSB2/at] --> 'AT+CPIN?' ModemManager[3297]: [1664875764.985321] [modem0/ttyUSB2/at] <-- '+CPIN: SIM PINOK' malloc(): smallbin double linked list corrupted Aborted ``` It worked properly before upgrade which I performed 2022-09-29 15:08.
celticmagic commented 9 months ago
Rune Morling (@ermo), 2023-05-09 21:23:03 UTC

Is this still an issue?
celticmagic commented 9 months ago
g66925 (@g66925), 2023-05-17 11:29:15 UTC

Today eopkg upgrade was done and problem still persist. ``` ModemManager[2813]: [1684322657.565617] [ttyUSB3/at] <-- 'AT' (ModemManager:2813): GLib-CRITICAL **: 13:24:17.565: g_regex_match_full: assertion 'regex != NULL' failed ModemManager[2813]: [1684322657.565830] [ttyUSB2/at] <-- 'AT' (ModemManager:2813): GLib-CRITICAL **: 13:24:17.565: g_regex_match_full: assertion 'regex != NULL' failed malloc(): smallbin double linked list corrupted Aborted ```
celticmagic commented 9 months ago
Rune Morling (@ermo), 2023-05-18 12:11:58 UTC

@g66925 Thanks for responding. Will triage as Normal priority.
celticmagic commented 9 months ago
Rune Morling (@ermo), 2023-05-18 12:18:43 UTC

This appears to depend on (at least) four different components: - kernel (for qmi/mbim drivers) - https://dev.getsol.us/source/modem-manager/ - https://dev.getsol.us/source/libqmi/ - https://dev.getsol.us/source/libmbim/ It's been a few years since this saw a stack upgrade + modem enablement run. @joebonrichie / @HarveyDevel : guidance welcome?
celticmagic commented 9 months ago
g66925 (@g66925), 2023-05-18 12:32:16 UTC

I do not think it is related to qmi or mbim driver. QMI works properly. Problem appears when ModemManager is trying to exchagning AT commands with module through serial ttyUSB.
celticmagic commented 9 months ago
Joey Riches (@joebonrichie), 2023-05-18 13:00:12 UTC

Have you tried using `screen` to try sending AT commands to the modem manually? Similarly to this, https://unix.stackexchange.com/questions/89067/how-to-disable-pin-on-a-sim-card/313878#313878, how does it respond? Could you also provide the exact usb modem you are using with `lsusb` Also i'll note that I'm not sure anyone on the packaging team has hardware to test/update the ModemManager stack at the moment.
celticmagic commented 9 months ago
g66925 (@g66925), 2023-05-18 13:12:09 UTC

I can talk to device using picocom without any problems. I will check lsusb later.
celticmagic commented 9 months ago
Joey Riches (@joebonrichie), 2023-05-19 12:51:59 UTC

Does the modemmanager update help? `modem-manager, version: 1.18.12, release: 19`
ermo commented 2 weeks ago

@g66925 ping? Is this still an issue?