Cwtch UI message errors are broken #224
Labels
No Label
android
arch
backlog
blocked-on-external
bug
bugbash
component/bindings
component/bine
component/connectivity
component/cwtch
component/tapir
component/ui
cwtch-1.14
cwtch-1.15
cwtch-beta-1.1
cwtch-beta-1.10
cwtch-beta-1.11
cwtch-beta-1.12
cwtch-beta-1.13
cwtch-beta-1.2
cwtch-beta-1.3
cwtch-beta-1.4
cwtch-beta-1.5
cwtch-beta-1.5.x
cwtch-beta-1.6
cwtch-beta-1.7
cwtch-beta-1.8
cwtch-beta-1.9
design
duplicate
enhancement
flutter
funding-needed
help wanted
hybrid-groups
in-nightly
in-progress
invalid
ios
linux
mac
need-replication-or-investigation
ops
packaging
post-stable
question
questionable
requires-more-effort-than-we-can-spare
rust
scheduled
stable-blocker
tails
testing-needed
tests
tor
waiting-on-fix-confirmation
waiting-on-new-flutter-feature
whonix
windows
wontfix
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cwtch.im/cwtch-ui#224
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
2021/10/26 12:17:25 connections/engine.go [ERR ] failed to post a message to a group after 5 attempts
in the logscurrently there is a privatly shared 'Screencast from 2021-10-26 12:26:07 PM.webm' that goes with this issue demonstrating the last stage, private as it contains a contact list not in streamer mode as this was an unexpected, uneasy to reproduce issue
Something similar happened to me back on 2021-10-13. (See screenshot for context) I replied to this new user with "Greetings" not long after Sarah's reply. I shut down Cwtch not too long after that. The next time I opened Cwtch, my reply wasn't there. I began to wonder if I just hadn't hit send - except I'm pretty sure I did - so I second guessed myself and didn't report it. (I didn't see any error messages at the time but I might have missed it when I shut down. Nor did I notice the weird message reorder flicker - perhaps because no new messages came in until the next day?). Sadly, I doubt if I'd be able to pull a log entry for this after this amount of time. If Cwtch created its own log in MacOS it might be possible to find something, but anything that did get logged in the system log would be very tricky to find with my skill level ;)
this is a slightly different but related case. I sent two messages, but tor network was having issues, I lost connection to the server, reconnected, and could post new messages, but those two never errored out and kept getting pushed down the timeline (look at the time stamps in the image)
I did some digging into this yesterday, and came to the following conclusions:
Tor revently completely deprecated v2 onion services over the last week or so the number of services has increased significantly, and throuput and error rates have spiked (see: https://metrics.torproject.org/hidserv-rend-relayed-cells.html)
(1) has meant we've seen more error surfacing in Cwtch than we used to.
(2) Has surfaced a few cwtch-ui specific issues regarding handling of errored state messages e.g. the fall-back behaviour we include to reset message-pane message counts and because we don't "store" errored messages on the library side basically result in those messages getting replaced or collided with.
(3) is exacerbated in dual-pane mode by #200
We put off implementing #11 because up until now the Tor network has been mostly stable. It is probably now time to re-prioritize failed message handling.
I'll take a look into this with @erinn next week to see if we can get a (temp) fix in before 1.4.
Should be fixed in nightly: flwtch-v1.3.0-19-g2b8f-2021-11-01-23-04 ready for 1.4
Brilliant! Thank you :)