SchildiChat / SchildiChat-android

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

Crash & rendering issues during matrix.org downtime #206

Closed solonovamax closed 9 months ago

solonovamax commented 10 months ago

Describe the bug There were issues with rendering markup, followed by a crash. This happened while the matrix.org servers were down/unresponsive. I submitted a crash report at around 10:28, EST. My account is @solonovamax:matrix.org.

To Reproduce Unsure how to reproduce. This happened during the matrix.org outage at around 10:20 EST.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

Additional context

Upstream relevance

solonovamax commented 10 months ago

Update: I can now reliably reproduce in a specific room. it is most likely one of two messages. I will look into it further in a few hours and see if I can narrow down the exact cause of it.

Element displays the following message when it occurs

Element encountered an issue when rendering content of event with id '[omitted]'

and then does not render the content of the message at all. Schildi must have a fallback to show the raw message contents if it cannot be rendered properly. The labs I have enabled on Element are:

I will upstream this issue later, once I have narrowed down the cause.

SpiritCroc commented 10 months ago

In Element, can you enable developer options and long press the message, then "view source" and copy what it shows there to paste here?

solonovamax commented 10 months ago

In Element, can you enable developer options and long press the message, then "view source" and copy what it shows there to paste here?

I will narrow down exactly which part of the message is causing it later, and then send conteny that can reproduce it. If I cannot narrow it down, I will provide the original message/a link to the channel. However, I'd prefer if I can keep the message contents private if possible. But, I am willing to share if it is needed.

SpiritCroc commented 10 months ago

Yes of course, if you can narrow it down even better :+1:

solonovamax commented 10 months ago

I cannot for the life of me figure out how to reproduce it in a clean environment, so I cannot narrow it down.

Logs give no information as to what is happening, either. And, I'm having issues with compiling SC so I can't debug it in my IDE.

Would you like me to invite you to the room it occurred in? (I'll invite you directly, or invite any other users upon request, I don't want to give a public invite link, however, just to avoid spam)

solonovamax commented 10 months ago

I just realized I never attached the screenshot of the issue.

Here is that: Screenshot_2023-08-20_10-06-50

SpiritCroc commented 10 months ago

Ah, I thought it crashed?

If you're willing to invite me and in case I get the same issue, that of course could help. Note that I'll be in vacation now for 3 weeks, so I haven't even looked at the logs yet - if you want, I can also try finding the issue based on logs first only before you invite me. But you probably won't hear from me for the next 3 weeks anyway.

In case you invite me, please use @spiritcroc:matrix.org (don't want to join random rooms with my own homeserver)

solonovamax commented 10 months ago

I cannot reproduce the crash, however the rendering issues can be reproduced. I'll send an invite rn