-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Messages stuck on sending #18
Comments
Hello. I have the same problem, since session 2.6.0 and iOs 17.5, especially iOS 17.5. The ios app disconnects from the nodes when the app enters in the background and doesn't automatically connects again. I have to force the app to quit and open it again to reconnect to the nodes and the message is sent. Here are some logs. It often happens while in cellular network, no problem on wifi. com.loki-project.loki-messenger 2024-05-21--15-07-45-785.log |
I can confirm this one. Seeing the same issue. App needs to close and then reopen. Also seen this on the Ubuntu snap desktop app |
Thanks for reporting this issue, the
@obatard Thanks for sending through the logs and the info about the behaviour you are experiencing - this isn't actually all that obvious from the logs you have shared (there is no obvious issue in them except for a single request timeout) but luckily we've had someone internally who seems to be experiencing the same issue so we have additional logs we can compare In this case what seems to be happening is:
Once I've sorted out these stubborn crashes this one is next on the list and is planned to be included in oxen-io#976 |
Tracking this on Jira as: SES-1925 |
Version |
The problems are not fixed, there's no improvement, especially when we switch to the cellular network, connection to the nodes is lost and can't be established unless we kill the app and start the app again. This is an annoying bug because the messages are not sent. Here are some logs, before and after that I kill the app so the messages is sent. |
Hey @obatard, thanks for sharing these logs they were really helpful - I've opened a draft PR (oxen-io#981) to track the fixes for the 2.6.1 issues It looks like the notification extension might be suspending the network if you receive a push notification while the main app is running so I've reworked things to remove the networking logic from the notification extension (it looks like it never really ran long enough for it to be useful anyway) If this is the cause of your issue, while it's not ideal, you might be able to get around it by disabling Fast Mode while the app is open - otherwise we'll start testing the fixes linked and can hopefully get another update out soon (I haven't seen any crashes coming through so far so this one will hopefully be faster than the last one) |
What do you mean by "Fast mode" low energy, airplane mode, notifications? It sounds like a great workaround while waiting fot the fix but I can't see how to do that in iOS 17. Anyway I'll try to disable notifications and see if that works as a workaround. I just tried to disable all push notifications exception session app's and it worked all day, messages are sent when there's no other notifications. Sounds like it's really a notification issue. Thank you. |
@obatard We've just started the rollout of There is still one other odd case that we know of which can cause issues, but it's a bit more complicated (and should be rarer) so it'll have to be in another release
In Session notifications can either be in "Fast Mode" (using push notifications) or "Slow Mode" (relying solely on Background Fetching) - you can disable Fast Mode by turning the switch off within the Session app settings at |
It's actually worse than before the update. The messages are not sent when we switch from wifi to cellular and then randomly. Anyway it works well when we kill the app and disable all the notifications.
I just disabled the fast mode, I'll run some test and tell you. |
I ran some tests, no improvement whatsoever, notifications don't work and messages are not sent. I'll try to send some useful logs later. But to recap:
So, at the moment the bugs are not fixed, there are some workarounds though. |
Here are some additional logs, when the bug happens without push nitification involved. com.loki-project.loki-messenger 2024-06-27--11-56-44-191.log |
@obatard Thanks for the updated logs - there is nothing in particular jumping out as a root cause of the issue so I'm wondering if it's due to an optimisation we tried to add There an annoying behaviour where iOS will kill connections in an annoying way that isn't easily detectable when going to the background so, before it can, we shut down the connections ourselves. When returning from the background we try to "recover" the previous connection (ie. establish a new connection using the same path we previously had, but don't do a reachability test) which succeeds but I'm wondering if it just thinks it has succeeded but the path isn't actually reachable. I'll remove this "recovery" logic in At the very least it'll mean we can rule this behaviour out as the issue |
@obatard Sorry we've had to pull the removal of the "recovery" logic from On a separate note - do you happen to use a VPN while running Session? We've found that some VPNs block QUIC connections which could result in issues (see oxen-io/session-ios-temp#10) |
Actually, it's worse. Now we can't send file and pictures. It's just stuck at sending. On Ios, MacOS and Ipad.
I don't use any vpn. |
@obatard sorry for the delay on this - we were able to track down some issues which were affecting the network and impacting all platforms, an update to fix these issues has now been released so network operators should slowly start updating The issue could occur when a service node handling a I'd be interested to hear whether things seem to improve over the coming days (the update period is until July 23rd so it will hopefully continue to show improvements up until then)
Thanks for confirming this, just wanted to rule it out |
i'm on 2.6.2, iOS I am using VPN, its 1Blocker vpn |
I gave up session on ios for another messenger, because the bugs are not fixed and I can't rely on session for the moment. I will use it again when it will be stable again in a few months, and I'll probably continue to donate. That being said, the bugs are not fixed and there's no improvement at all. I will let another affected iOS user help you with this, I'm sorry but I don't have more time to spend on this. |
Network operators are still updating their service nodes, unfortunately there is a bit of a long tail with this process (ie. a large number update early and then it takes a while for others to update), since the onion request paths include 3 nodes it also means that if any one of those nodes haven't updated then you can run into this issue - attachments are affected more than standard messages because they are larger so, since the request takes longer to process, there is a higher chance that an un-upgraded node runs into an issue while the request is still going Where currently doing further testing to try to identify whether there are any other issues because attachments and requests going to Community conversations do seem like they might be disproportionately affected compared to standard requests |
Hey @obatard, fair enough - I'm sorry it's been taking us so long to resolve these issues but thank you for all the help you've given us debugging this issue and I hope to see you again in the future |
I tried today to send a photo to a single recipient chat, not a group/community one. Failed to send. |
Sorry, I wrote my previous response poorly - so when Session makes network requests they generally either have:
We were expecting the fixes which have been rolling out to the network to work for all requests but they seem to be mostly fixing requests which have a service node destination which means there is likely something else going on which impacts requests sent to a server destination which we're still investigating (due to the increased chance of having an un-updated node in the path it was hard to say whether the server destination issues were related to the initial fixes or not but enough operators have updated now that we can make that call) The other thing which has made this difficult is that our test network weren't showing either of these issues so we didn't become aware of them until they were out in the wild and users started reporting them to us 😞 |
Just an update on this for anyone keeping track - we've started rolling out a second network update to resolve the remaining issues related to file uploads/downloads and communicating with community conversations (more detail can be found here: https://oxen.io/blog/msnu-10-6-0 for anyone interested) The TL;DR version is that there was a limit on the number of concurrent requests that could be made to external servers combined with a bug in the library used to send requests which resulted in this limit being hit more frequently We've done thorough testing on this network update are are confident that it resolves the remaining issues so are rolling out updates across each of the platforms which includes logic to prioritise using a node that is running this updated version for the last node in the path - this change is mostly so that users who update to the new version ( A couple more things to note to avoid confusion: |
We've just rolled out versions We are aware of one remaining issue related to some VPNs blocking QUIC connections and are looking at options to address it but don't have any timelines at this stage |
I think I might be suffering from this issue. Session has not been able to connect to the loki network for several weeks now. Environment: Path indicator stays red and when you click on it for info, the leading circle spins interminably. Disabling the Adguard Pro VPN changes the path indicator from red to orange briefly, then it goes back to red. Session log file attached. |
Code of conduct
Self-training on how to write a bug report
Is there an existing issue for this?
Current Behavior
After using the Session IOS for a short while, if I send a message to any of my contacts it gets stuck on 'Sending'. This won't change unless I swipe off the app and clear it from my recent apps. Upon restarting the app the message will change from 'Sending' to 'Sent'.
Just switching apps won't resolve the issue.
Expected Behavior
Messages should change from 'Sending' to 'Sent' instantly.
Steps To Reproduce
No response
iOS Version
17.5.1
Session Version
2.6.0
Anything else?
No response
The text was updated successfully, but these errors were encountered: