element-hq / element-desktop

A glossy Matrix collaboration client for desktop.
https://element.io
GNU Affero General Public License v3.0
1.15k stars 261 forks source link

Image upload dialog is frozen #687

Open bodqhrohro opened 1 year ago

bodqhrohro commented 1 year ago

Steps to reproduce

  1. Hit the attachment icon.
  2. Pick an image file.

Outcome

An image preview box is displayed, but from then on the window is frozen. I cannot send the file. I cannot close the dialog. The cursor does not change while I move it over the window. The window keeps in this state even after I minimize it to the tray and restore. I only have to restart element-desktop.

This does not apply to the web version in Chromium, only to the Electron app.

There are no new messages in stderr, and as it's completely frozen, I cannot invoke /rageshake.

Had it also in 1.11.18.

Operating system

Debian GNU/Linux 12

Application version

Element version 1.11.28, olm version 3.2.12

How did you install the app?

https://packages.element.io/debian

Homeserver

matrix.org

Will you send logs?

No

t3chguy commented 1 year ago

This dialog is part of Electron

andybalaam commented 1 year ago

I just tried this in Element Nightly on Ubuntu MATE 22.04 and it worked for me, so I marked this as "uncommon". If we hear from more people we shoulld change that label.

Twi1ightSparkle commented 6 months ago

I have this issue on Fedora 39. Element freezes when dragging an image or a file onto the timeline. The upload modal also fails to get the file size.

screenshot_2024-04-02T13-32-46Z

Element version: 1.11.63 Crypto version: Rust SDK 0.7.0 (b1918e9), Vodozemac 0.5.1

Opening the Electron dev tools was working while everything else was frozen, used the console to rageshake (linked above) before quitting and restarting Element. I cannot send any files or images, so can reproduce reliably if needed.

Twi1ightSparkle commented 6 months ago

For anyone else stumbling across this, I replaced the Flatpak with the tarball from https://packages.element.io/desktop/install/linux/glibc-x86-64/index.html and now uploads are working again.