element-hq / element-android

A Matrix collaboration client for Android.
https://element.io/
GNU Affero General Public License v3.0
3.38k stars 725 forks source link

App crashes when trying to send a message #8206

Open weeman1337 opened 1 year ago

weeman1337 commented 1 year ago

Steps to reproduce

  1. Try to send a message

Outcome

What did you expect?

Can send message

What happened instead?

App crashes

Your phone model

No response

Operating system version

11 (API 30) 2108161927-REL

Application version and app store

1.5.26

Homeserver

matrix.org

Will you send logs?

Yes

Are you willing to provide a PR?

No

bmarty commented 1 year ago

Seems to be caused by the WYSIWYG library:

Caused by: uniffi.wysiwyg_composer.InternalException: called Result::unwrap() on an Err value: PoisonError { .. }
at uniffi.wysiwyg_composer.ComposerModel.getContentAsHtml(wysiwyg_composer.kt:169)
at io.element.android.wysiwyg.EditorEditText.getHtmlOutput(EditorEditText.kt:9)
at im.vector.app.features.home.room.detail.composer.RichTextComposerLayout.getFormattedText(RichTextComposerLayout.kt:16)