Bug 494381 - Unable to send SMS with spacebar 6.2.0
Summary: Unable to send SMS with spacebar 6.2.0
Status: RESOLVED FIXED
Alias: None
Product: spacebar
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: postmarketOS Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-09 23:20 UTC by brisk.wing4197
Modified: 2024-10-13 21:36 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description brisk.wing4197 2024-10-09 23:20:23 UTC
SUMMARY

SMS messages sent via Spacebar are never sent. When attempting to send a text message the message just sits in spacebar pending. Once I leave the page or close/reopen spacebar the message is no longer visible and the message is never sent no matter how long I wait.

Modem manager is manually able to send messages, so it isn't an issue there.

This seems to have stopped working when spacebar-daemon upgrade to 6.2.0. I tested this after installing spacebar 6.2.0 and it worked, but that was before I rebooted the device. So I suspect spacebar-daemon would have still been running 23.01.0 while spacebar would be 6.2.0.

STEPS TO REPRODUCE
1. Open Spacebar 6.2.0
2. Attempt to send a message
3. Try to confirm that the message was sent

OBSERVED RESULT

The message is never sent and is removed from the spacebar timeline as soon as it is refreshed (by returning to the main page or closing spacebar).

EXPECTED RESULT

Message should be sent.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.2.0
KDE Plasma Version: 6.2.0
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2

ADDITIONAL INFORMATION

The log from spacebar is below

```
futuresql: Running "SELECT Count(*) FROM Messages WHERE phoneNumber == ? AND read == False"
kf.quickcharts.datasource: ModelSource: Invalid role  -1 "color"
kf.quickcharts.datasource: ModelSource: Invalid role  -1 "color"
qrc:/MessagesPage.qml:300: Error: Invalid argument passed to formatDate():
qrc:/MessagesPage.qml:300: Error: Invalid argument passed to formatDate():
futuresql: Running "\n        SELECT\n            id,\n            phoneNumber,\n            text,\n            time,\n            read,\n            delivered,\n            sentByMe,\n            attachments,\n            smil,\n            fromNumber,\n            messageId,\n            deliveryReport,\n            readReport,\n            pendingDownload,\n            contentLocation,\n            expires,\n            size,\n            tapbacks\n        FROM Messages\n    WHERE phoneNumber == ? ORDER BY time DESC LIMIT 1"
futuresql: Running "SELECT Count(*) FROM Messages WHERE phoneNumber == ? AND read == False"
futuresql: Running "SELECT Count(*) FROM Messages WHERE phoneNumber == ? AND read == False"
futuresql: Running "SELECT Count(*) FROM Messages WHERE phoneNumber == ? AND read == False"
futuresql: Running "SELECT Count(*) FROM Messages WHERE phoneNumber == ? AND read == False"
futuresql: Running "SELECT Count(*) FROM Messages WHERE phoneNumber == ? AND read == False"
futuresql: Running "\n        SELECT\n            id,\n            phoneNumber,\n            text,\n            time,\n            read,\n            delivered,\n            sentByMe,\n            attachments,\n            smil,\n            fromNumber,\n            messageId,\n            deliveryReport,\n            readReport,\n            pendingDownload,\n            contentLocation,\n            expires,\n            size,\n            tapbacks\n        FROM Messages\n    WHERE phoneNumber == ? ORDER BY time DESC LIMIT 1"
futuresql: Running "\n        SELECT\n            id,\n            phoneNumber,\n            text,\n            time,\n            read,\n            delivered,\n            sentByMe,\n            attachments,\n            smil,\n            fromNumber,\n            messageId,\n            deliveryReport,\n            readReport,\n            pendingDownload,\n            contentLocation,\n            expires,\n            size,\n            tapbacks\n        FROM Messages\n    WHERE phoneNumber == ? ORDER BY time DESC LIMIT 1"
futuresql: Running "\n        SELECT\n            id,\n            phoneNumber,\n            text,\n            time,\n            read,\n            delivered,\n            sentByMe,\n            attachments,\n            smil,\n            fromNumber,\n            messageId,\n            deliveryReport,\n            readReport,\n            pendingDownload,\n            contentLocation,\n            expires,\n            size,\n            tapbacks\n        FROM Messages\n    WHERE phoneNumber == ? ORDER BY time DESC LIMIT 1"
futuresql: Running "\n        SELECT\n            id,\n            phoneNumber,\n            text,\n            time,\n            read,\n            delivered,\n            sentByMe,\n            attachments,\n            smil,\n            fromNumber,\n            messageId,\n            deliveryReport,\n            readReport,\n            pendingDownload,\n            contentLocation,\n            expires,\n            size,\n            tapbacks\n        FROM Messages\n    WHERE phoneNumber == ? ORDER BY time DESC LIMIT 1"
qrc:/MessagesPage.qml:300: Error: Invalid argument passed to formatDate():
futuresql: Running "\n        SELECT\n            id,\n            phoneNumber,\n            text,\n            time,\n            read,\n            delivered,\n            sentByMe,\n            attachments,\n            smil,\n            fromNumber,\n            messageId,\n            deliveryReport,\n            readReport,\n            pendingDownload,\n            contentLocation,\n            expires,\n            size,\n            tapbacks\n        FROM Messages\n    WHERE phoneNumber == ? ORDER BY time DESC LIMIT 1"
```

I don't see anything in the spacebar-daemon log.
Comment 1 brisk.wing4197 2024-10-09 23:43:36 UTC
Confirmed that downgrading spacebar-daemon to 24.05.0 with spacebar 24.05.0 or 6.2.0 both work. So it's an issue with spacebar-daemon 6.2.0
Comment 2 brisk.wing4197 2024-10-11 02:35:04 UTC
Just ran a bisect, this is the first bad commit

bf7951bfd16ad7061ae6c77114461c69d630648c is the first bad commit
commit bf7951bfd16ad7061ae6c77114461c69d630648c (HEAD)
Author: Nicolas Fella <nicolas.fella@gmx.de>
Date:   Fri Aug 30 00:18:18 2024 +0200

    Initialize KCrash
    
    To enable crash reporting

 .kde-ci.yml           |  1 +
 CMakeLists.txt        |  2 +-
 daemon/CMakeLists.txt |  1 +
 daemon/main.cpp       | 13 ++++++++++---
 src/CMakeLists.txt    |  1 +
 src/main.cpp          |  3 +++
 6 files changed, 17 insertions(+), 4 deletions(-)
Comment 3 brisk.wing4197 2024-10-11 08:11:58 UTC
This is fixed with: https://invent.kde.org/plasma-mobile/spacebar/-/merge_requests/171
Comment 4 brisk.wing4197 2024-10-13 21:36:34 UTC
Fixed with https://invent.kde.org/plasma-mobile/spacebar/-/merge_requests/171