-
Notifications
You must be signed in to change notification settings - Fork 22
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
Client goes crazy after receiving group message #61
Comments
Quick correction: the group appears as a clickable item in the group list, its name is just the empty string. |
The scenario is the following:
Somewhere in there, something goes wrong. Looking at the code, my guess is that with the client being online, the sync request is sent and then the client does not "see" the next time that a request was already sent (but of course, the reply is last in the queue of incoming messages). So, I see two possible solutions:
I am also looking into fixing the situation altogether, but that is not as simple as I thought. |
…minutes after the last. This should help issue #61
Just for my understanding: how are unseen messages determined? The sync request targets the group admin who directly responds, as it seems. But only with the member list. There were four messages send to the group since I switched to openMittsu, I received nr. 2 and 4. So my client is basically waiting for the other two? They won't arrive no matter how long I wait, the group just fills up with sync requests and responses. Sometimes there are many minutes between new messages of this kind, and then it starts going crazy again. I tried "trust others" which lead to an explosion in CPU consumption and a freeze of my laptop for several minutes. Then, the group name appeared and also other types of sync responses (containing the group name). Interestingly, the group name vanishes and re-appears as new messages are sent/received. Now, with over 5000 sync messages in the group, I decided to disconnect. Seeing that you're working on the issue right now, just let me know when I should test something. |
This is extremely weird behavior. I will add some debugging statements for this case and then we can investigate. There is a difference between unseen and unreceived. Since your client does not know about the other messages, its not waiting for them. |
Have you made any progress on this, e.g. adding the debug statements you mentioned? A few weeks ago I started using the latest master. It still sends these requests, however, the frequency is much lower and it does not escalate anymore. What's about these sync messages in the database? Can I savely delete them? They pollute the message log quite a bit, especially in the group that has 6000 of them. |
I am sorry, I was/am swarmed with work. I added a bunch of debug statements, so please try again and report back what you see! |
No worries, as you see, it took me some time to respond as well. It is divided into three blocks which somehow correlate with my observations. Then (second block) someone else in the group sent a message which was displayed. Later (third block) I enabled the option from above. Now I saw the first message I talked about as well as the group title (also some other messages arrived in that group). Unfortunately the third block is polluted with some private messages as it appears. Fun fact: there is another group owned by me. The sender of the first message I talked about also sent a message to that group, which didn't show up. After enabling the accept option it did (I think you can see it in the log). The name of that group still is not set, but I guess this makes sense since I'm the owner and my client does not know the name. If you need more specific testing, just let me know. Maybe we can also setup a synthetic group for that. |
Can be closed. I also had this issue with large groups. The exponential backoff has fixed this for me. FYI, I'm running this version:
|
After I receive a group message, my client sents the following message
which is immediately replied as
This quickly repeats for about 100 times and also continues after disconnect/connect.
It appears in a separate chat window which does not have a name.
The group itself does not appear in the contacts list, but all group members made an appearance.
The log output has the following form:
(of course I have replaced the IDs with <>).
Now, is this a bug?
Do I have to add the group explicitly somehow (I started from my plain Threema ID, see #60 – the first message of a contact just added the contact and opened a chat window containing the message, so I'd expect the same for groups)?
The text was updated successfully, but these errors were encountered: