element-hq / element-x-android

Android Matrix messenger application using the Matrix Rust Sdk and Jetpack Compose
GNU Affero General Public License v3.0
1k stars 136 forks source link

Specific video message blow up the app #3552

Open hary777 opened 1 day ago

hary777 commented 1 day ago

Steps to reproduce

Incoming specific message with video. App crash and next open ask to send error log. I send crash log with description "Video message blow up the app"

This message crash the app. The message is bridged from mautrix meta bridge. { "age": 144537196, "content": { "body": "https://www.facebook.com/share/r/HPEvf4Ln4WEaYWh2/", "external_url": "https://www.facebook.com/share/r/HPEvf4Ln4WEaYWh2/", "fi.mau.meta.xma_fetch_status": "unsupported", "filename": "video.mp4", "format": "org.matrix.custom.html", "formatted_body": "<a href=\"https://www.facebook.com/share/r/HPEvf4Ln4WEaYWh2/\">https://www.facebook.com/share/r/HPEvf4Ln4WEaYWh2/</a>", "info": { "mimetype": "video/mp4", "size": 330894 }, "m.mentions": {}, "msgtype": "m.video", "url": "<CENSORED>" }, "event_id": "$-RgQd6vvv2LJ_tLnRb31cIkMmR8KQfpaGPq1k_cLcsE", "origin_server_ts": 1727279013004, "room_id": "<CENSORED>", "sender": "<CENSORED>", "type": "m.room.message", "unsigned": { "age": 144537196, "membership": "join" }, "user_id": "<CENSORED>" }

This message is the same video sended to other room with fractal client on desktop. The mobile app it correctly play video. { "age": 73478003, "content": { "body": "video.mp4", "info": { "duration": 14634, "h": 360, "mimetype": "video/mp4", "size": 330894, "w": 582 }, "msgtype": "m.video", "url": "<CENSORED>" }, "event_id": "<CENSORED>", "origin_server_ts": 1727341910611, "room_id": "<CENSORED>", "sender": "<CENSORED>", "type": "m.room.message", "unsigned": { "age": 73478003, "membership": "join", "transaction_id": "6a69eb7f5fa54d5cb9b4e1dc872355b9" }, "user_id": "<CENSORED>" }

Outcome

What did you expect?

Do not crash app. Open video or show "unsupported message".

What happened instead?

App crash and next open ask to send error log.

Your phone model

Motorola g32

Operating system version

Android 14 lineageos

Application version and app store

fdroid from this repo 0.6.4

Homeserver

Synapse 115

Will you send logs?

Yes

Are you willing to provide a PR?

No