SchildiChat / SchildiChat-android

Matrix client / Element Android fork
https://schildi.chat/android/
Apache License 2.0
386 stars 49 forks source link

Changing Realm data can only be done from inside a transaction #155

Open jahway603 opened 1 year ago

jahway603 commented 1 year ago

Describe the bug A friend signed up recently for an account on the Matrix.org server. I attempted to send them a direct message and received the following error message: "Changing Realm data can only be done from inside a transaction"

To Reproduce Steps to reproduce the behavior:

  1. Either search for user's name or click on it in a room.
  2. Then attempt to Direct message them.
  3. Then it fails and I get "Changing Realm data can only be done from inside a transaction"

Expected behavior I should be able to successfully open a Direct message with them.

Screenshots schildichat-andr-error-huh

Smartphone (please complete the following information):

Additional context

Upstream relevance

Add any other context about the problem here.

SpiritCroc commented 1 year ago

Would be great if you can send a bug report with logs from the app after getting this error

jahway603 commented 1 year ago

@SpiritCroc can definitely do that, but not sure what setting(s) need to change to do so. Do I need to enable "Verbose logs" or should I enable some option(s) under the "Schildi-debugging" section?

SpiritCroc commented 1 year ago

I don't think it should be necessary to enable any logging options. Verbose may help though, don't know right now.

tna76874 commented 1 year ago

I confirm this bug on multiple devices. Deleting the cache is a temporary workaround - but after a while this error pops up again.

sigma2017 commented 1 year ago

Hello, I am using a private server installed by me and I got the same error: https://i.imgur.com/rSGGq5j.jpg This is a Schildichat bug, on element android and element web this error is not present.

sigma2017 commented 1 year ago

As confirmed to Matrix room SchildiChat Android, the issue is resolved by disabling Settings / Labs / Enable deferred DMs. Already tested, I was able to create a room with a new user, the error is not present anymore. Thank you @SpiritCroc!

SpiritCroc commented 1 year ago

Would still be great if somebody experiencing this (on the latest beta release) could send in a bug report with logs :)

mtris commented 1 year ago

Hello: I just duplicated the error and sent a bug report by shaking my phone to submit. I hope that it sent what you requested. Thank you very much for your time.

SpiritCroc commented 1 year ago

Hello: I just duplicated the error and sent a bug report by shaking my phone to submit. I hope that it sent what you requested. Thank you very much for your time.

Thank you! Unfortunately, there's not sufficient logging in v1.5.2, so I'm still waiting if this occurs on v1.5.8-based versions. There has been a new release yesterday (don't know when the official fdroid repo will have it), would be great if you can try again with that (or some recent beta).

mtris commented 1 year ago

Hello again: I updated to the v1.5.8, duplicated the error, and shook my phone to send a bug report. I hope this is useful. Thank you for your efforts and time. Sincerely,

SpiritCroc commented 1 year ago

Hello again: I updated to the v1.5.8, duplicated the error, and shook my phone to send a bug report. I hope this is useful. Thank you for your efforts and time. Sincerely,

On first glance looks useful, thanks!