Skip to content
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

Error after leaving a group related to chatroom #1645

Closed
taoeffect opened this issue Jun 7, 2023 · 9 comments
Closed

Error after leaving a group related to chatroom #1645

taoeffect opened this issue Jun 7, 2023 · 9 comments
Assignees
Labels
App:Frontend Kind:Bug Note:Contracts Issues involving modifications to contracts Priority:High

Comments

@taoeffect
Copy link
Member

Problem

In my account on GIG, I was invited to join another group. Then I left that group. Some time later this error appeared:

[chelonia] ERROR 'Error' in processMutation for <op_ae|21XWnNPCeyhCGgatyS7JHAjT1sjMetSyNTCPeKKaMxRvLWKkdW of 21XWnNHw72vW9p4KbNLXggv827ByRJM2iiBVyhLZuEBkwUGCbD>: Can not leave the chatroom which greg are not part of Error: Can not leave the chatroom which greg are not part of

Screen Shot 2023-06-07 at 12 48 42 PM

Solution

Find and fix the problem.

@Silver-IT
Copy link
Member

Silver-IT commented Jun 15, 2023

@taoeffect, can you please upload the groupincome.db which makes this error? I tried many times in different cases, I can not produce that error.

PS: The previous database file groupincome.db doesn't make this error.

@Silver-IT
Copy link
Member

Silver-IT commented Jun 19, 2023

With this database(groupincome.db) you provided through DM recently, I can not produce the error your pointed.

@taoeffect taoeffect self-assigned this Jul 4, 2023
@taoeffect
Copy link
Member Author

@Silver-IT Let's go over this when you get back, as this is a fairly high-priority issue and we need to make sure we can fix this.

@Silver-IT
Copy link
Member

Silver-IT commented Sep 5, 2023

Using the groupincome.db, I didn't get the error which is described here in this issue but I got another error.
image

@Silver-IT
Copy link
Member

Finally, I met the error and noticed that two gi.contracts/chatroom/leave messages are created.

@Silver-IT
Copy link
Member

Oh, no. It's weird actually. I did produce that error only ONCE yesterday, and can not reproduce that error again yet.
It's needed to try more, but I guess this issue is related to the time taken to sync the contract (group or chatroom, not sure).

@Silver-IT
Copy link
Member

YES. Finally, I got this error again and I can share the steps to reproduce. It's easy to reproduce this error using Multi-Container Addon in Firefox. Let's say we have three tabs (tab1, tab2, tab3) with different session.

Steps to reproduce

  • tab1: user1 creates a group
  • tab2: user1 logs in (so totally two sessions for user1)
  • tab3: user2 joins the group
  • tab1: user1 leaves the group
  • tab3: BANG

@taoeffect
Copy link
Member Author

Since this issue is related to low-level details @corrideat is working on, I've reassigned him to it

@taoeffect
Copy link
Member Author

Closed in #1779

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
App:Frontend Kind:Bug Note:Contracts Issues involving modifications to contracts Priority:High
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants