-
Notifications
You must be signed in to change notification settings - Fork 984
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
Missing messages and chats after quitting and re-opening #6114
Comments
From Slack:
|
Eventually got the same problem: after reopening application (around 1 hour) some messages are lost. Log: https://drive.google.com/file/d/1scrMBbrMdRVfIUabVaDXhNveFkUbAEmr/view?usp=sharing But after reopening app chat histrory is fetched fully. |
On desktop messages are never re-fetched for me. |
Not sure if this is related, but I logged out, created a new account, logged out of that, and logged into my original account. Status seemed to be download messages again and reset all the read counters. Eg many have 9+ unread messages even though no are new and I saw them before I logged out. |
Have same issue, seems to apply at least partially to mobile nightlies too. |
Same if you delete a contact and app quits, it appears to come back. We should make sure we preserve basic durability etc properties for our database, it seems like whatever is done now is rather flaky. |
From Slack:
|
@oskarth
Something is wrong with this behavior? |
Sorry, I meant 'delete chat'. Chat reappears. |
@churik This is happening to me pretty reliably now on both desktop and mobile. On desktop I have 60 chats open on desktop and about 50 open on mobile. It seems that saving becomes a problem when there are many many public channels and 1-1 messages. Perhaps the app is always doing something (fetching, etc) that it never gets around to saving. @rasom or @yenda mentioned something like this happens during the last desktop call. |
@oskarth chat re-appearing upon receiving a new message is the expected behavior (it's a bit counter intuitive but we had discussions about this in the past, basically we need a |
@cammellos Fairly certain it was with old previous messages. Though in any case that's less of an issue than messages/contacts disappearing, which seems to indicate something is seriously wrong with DB persistence logic. |
@chadyj So far I have been unable to replicate the issue, but I created PR where suspected area of code (db handling) is done in synchronous way, which should help is investigate the issue, because:
Here is the PR - #6195 |
Ok, there are my observations according to #6114 (comment).
All unread messages are left unread, chats don't reappear after deleting, chat list is preserved on mobile and desktop. One strange thing I noticed that messages disappear on replies, so some events created previously on nightly 08/10/2018 are vanished. I used separate user for test and compress all data, link for debug. |
We figured out that one of the major reason why chats and/or messages disappear (or re-appear like in #6114 (comment)) is that after For example your account has only #status public channel with message history. Then account faced #5204 issue (which is the soft error pop-up) but you keep using the app: you join 5 more new chats and received 100 new messages #status public chat. In order to reproduce from scratch:
Actual result: There is no #cryptokitties-co chat and Contact1 keep using the app normally and all is OK(re-logins keeps the history), but there is a Contact2 in the list with persistent 'Add to Contacts' option. If you tap it again, #5204 bug may not even fire up again but all further history won't be kept on Desktop app. |
I think I know what's going on, looking into this (basically one of the devices has not received the initial |
@cammellos in case it can help: messages are vanished after #6210 as well. |
@churik thanks, I think there are 2 issues, one is the error we see one that is more problematic is that if a write to the database fails, all consequent writes seems to be failing, I'll investigate. |
Awesome investigation and repro @Serhy |
User Story
As a user, I want messages to not vanish so that I can read them :).
Description
Type: Bug
Every day I've been chatting a lot with Status Desktop Mac in 1-1 and public chats, but after quitting and re-opening the app I've seen many messages vanish.
Sometimes I still see the chat channel (eg #status-desktop) but messages are removed. Sometimes all but 1 message is removed, other times there are seemingly random messages removed.
Other times the chat channel is gone too.
So far I haven't been able to notice a pattern.
It has happened both when I quit for the night, then install Status desktop in the morning.
Also happens when I quit for 20 minutes then re-open.
5 other people have reported this on Slack.
UPDATE: This is also happening on mobile
Expected behavior
Visible message remain in the app.
Actual behavior
Messages vanish.
Reproduction
I can't reliably repro. But try talking lots. Quitting. Then re-open the app.
Additional Information
comment: # (Android or iOS.)
The text was updated successfully, but these errors were encountered: