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

[BUG] App crashes when receiving answer message in a thread #125

Open
julian-wls opened this issue Nov 20, 2024 · 2 comments
Open

[BUG] App crashes when receiving answer message in a thread #125

julian-wls opened this issue Nov 20, 2024 · 2 comments
Assignees
Labels
bug Something isn't working priority:high This should be fixed asap

Comments

@julian-wls
Copy link
Contributor

Describe the bug

When receiving a reply in any thread, the server tries to save the message in the database and crashes. The behavior was observed only partially, sometimes there were no issues saving the reply. This is probably connected to #62 and therefore PR #70

Stack trace:
android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: metis_post_context.client_post_id, metis_post_context.course_id, metis_post_context.conversation_id, metis_post_context.type, metis_post_context.server_id (code 1555 SQLITE_CONSTRAINT_PRIMARYKEY)

To Reproduce
Steps to reproduce the behavior:

  1. Open the App
  2. Send a reply in any thread
  3. The app might crash
@julian-wls julian-wls added bug Something isn't working priority:high This should be fixed asap labels Nov 20, 2024
@FelberMartin FelberMartin self-assigned this Nov 21, 2024
@FelberMartin
Copy link
Collaborator

I tried to reproduce the bug on develop and TS1 with test users 1 and 20 in threads for course and dm channels but could not reproduce the crash.
I sent thread replies with user20 in a thread in the #random channel in the web app and tried user1 in the android app for:

  • Being in the thread view
  • in the #random channel
  • in another channel
  • in the conversation overview

None of the environments caused a crash.
@julian-wls Can you try to reproduce the crash and give me some hints on what you did?

@julian-wls
Copy link
Contributor Author

I just tried to reproduce it again on develop and bugfix/communication/fix-message-live-insertion. Reproducing only worked for bugfix/communication/fix-message-live-insertion. I think when the crash happened when I had the main thread open not the the MetisThreadUI.

I will try to apply the changes introduced in #70 and check if the issue persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority:high This should be fixed asap
Projects
None yet
Development

No branches or pull requests

2 participants