element-hq / element-desktop

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

Crash `Recvmsg error: Connection reset by peer (104) Trace/breakpoint trap (core dumped)` #648

Closed 5HT2 closed 5 months ago

5HT2 commented 2 years ago

Steps to reproduce

  1. Open element
    $ element-desktop
    /home/user/.config/Element exists: yes
    /home/user/.config/Riot exists: no
    No update_base_url is defined: auto update is disabled
    Fetching translation json for locale: en_EN
    Changing application language to en-us,en
    Fetching translation json for locale: en-us
    Fetching translation json for locale: en
    Resetting the UI components after locale change
    Resetting the UI components after locale change
    Changing application language to en-us
    Fetching translation json for locale: en-us
    Resetting the UI components after locale change
    [141732:0919/210047.337243:ERROR:broker_posix.cc(40)] Recvmsg error: Connection reset by peer (104)
    Trace/breakpoint trap (core dumped)
  2. Leave the client opened

Outcome

What did you expect?

No crash.

What happened instead?

Crash

Operating system

Arch Linux

Application version

element-desktop 1.11.4-1

How did you install the app?

aur

Homeserver

frogg.ie on docker running matrixdotorg/synapse:latest. Not sure how to get version from the container.

Will you send logs?

Yes

turt2live commented 2 years ago

This needs more information: what was going on before the crash? When did it start happening?

5HT2 commented 2 years ago

Attempting to open element from a fresh install crashed after a few seconds, whether I interacted with the window or not.

marjakm commented 2 years ago
[52:0922/214304.352622:ERROR:broker_posix.cc(40)] Recvmsg error: Connection reset by peer (104)
/app/bin/element: line 10:     3 Trace/breakpoint trap   (core dumped)

Also happens for me, in probably less than a minute after starting element.

I'm using arch linux and running it via flatpak https://flathub.org/apps/details/im.riot.Riot

Element version: 1.11.5
Olm version: 3.2.12
$ flatpak info im.riot.Riot                                                                                                                                                                                                                                                         

Element - Create, share, communicate, chat and call securely, and bridge to
other apps

          ID: im.riot.Riot
         Ref: app/im.riot.Riot/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 1.11.5
     License: Apache-2.0
      Origin: flathub
  Collection: org.flathub.Stable
Installation: user
   Installed: 290.6 MB
     Runtime: org.freedesktop.Platform/x86_64/22.08
         Sdk: org.freedesktop.Sdk/x86_64/22.08

      Commit: 2848ba4fb48183b7d02ae89d3ea6d5fc078d1424248f97092762ea955fabaa67
      Parent: 21ca5fd133f102bbef56dfe78b16969219bad3eded4a6b70d583be8bd5d08acc
     Subject: Update element-desktop_1.11.4-1_amd64.deb to 1.11.5 (c829e1e3)
        Date: 2022-09-13 22:19:44 +0000
5HT2 commented 2 years ago

I've found that if it doesn't happen in the first few minutes, it stays stable and doesn't happen again until I re-open element.

marjakm commented 2 years ago

I've found that if it doesn't happen in the first few minutes, it stays stable and doesn't happen again until I re-open element.

Can confirm that. Actually it has worked the last 2 times and I haven't updated anything.

nuke-web3 commented 2 years ago

Now I get this error over and over on startup before messages load on my client.

vector-im/element-web#22815 is related perhaps?

flatpak run im.riot.Riot -v
# normal startup... 
#......
Changing application language to en-us
Fetching translation json for locale: en-us
Resetting the UI components after locale change
[54:0929/091413.797476:ERROR:broker_posix.cc(40)] Recvmsg error: Connection reset by peer (104)
[54:0929/091413.798167:ERROR:broker_posix.cc(110)] Error sending sync broker message: Broken pipe (32)
[54:0929/091413.798484:ERROR:broker_posix.cc(110)] Error sending sync broker message: Broken pipe (32)
[53:0929/091007.745135:ERROR:broker_posix.cc(40)] Recvmsg error: Connection reset by peer (104)
/app/bin/element: line 10:     3 Trace/breakpoint trap   (core dumped) env TMPDIR="$XDG_RUNTIME_DIR/app/${FLATPAK_ID:-im.riot.Riot}" zypak-wrapper /app/Element/element-desktop $FLAGS "$@"

Using flatpack 1.11.18


Did an uninstall & reinstall, same behavior.

On the opening window the logout option was around long enough to select. Logging out and in again at least lets the app be stable for more than a few seconds so far :crossed_fingers: that resolves it. So far it is at least much more stable.

5HT2 commented 2 years ago

This is still happening as of 1.11.10-2

electron19 19.1.4-3
electron20-bin 20.3.4-1
element-desktop 1.11.10-2
element-web 1.11.10-2
t3chguy commented 2 years ago

@5HT2 1.11.10 isn't latest, 1.11.14 is.

5HT2 commented 2 years ago

It looks like the community package for element-desktop isn't updated but I can try the git version.

t3chguy commented 2 years ago

This bug seems to not yet have been reproduced on the official builds so is likely specific to the community package and needs to be fixed there

5HT2 commented 2 years ago

Is it possible it's to do with the electron version that's being used @t3chguy? Which one are you using?

t3chguy commented 2 years ago

@5HT2 https://github.com/vector-im/element-desktop/blob/develop/package.json#L73

5HT2 commented 2 years ago
~ ❯ electron20 -v
v20.3.4
~ ❯ which element-desktop
/usr/bin/element-desktop
~ ❯ cat /usr/bin/element-desktop
#!/bin/sh

exec electron20 /usr/lib/element/app.asar --disable-dev-mode "$@"
prototact commented 1 year ago

On fedora 37 and element-desktop installed through flatpak crashes for me too. I am using Wayland.

[3 zypak-helper] Wait found events, but sd-event found none
/home/<username>/.var/app/im.riot.Riot/config/Element exists: yes
/home/<username>/.var/app/im.riot.Riot/config/Riot exists: no
LaunchProcess: failed to execvp:
xdg-settings
Gtk-Message: 13:03:59.201: Failed to load module "canberra-gtk-module"
Gtk-Message: 13:03:59.201: Failed to load module "pk-gtk-module"
Gtk-Message: 13:03:59.202: Failed to load module "canberra-gtk-module"
Gtk-Message: 13:03:59.202: Failed to load module "pk-gtk-module"
[3:1211/130359.216754:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[3:1211/130359.216789:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
Starting auto update with base URL: https://packages.element.io/desktop/update/
Auto update not supported on this platform
Fetching translation json for locale: en_EN
Changing application language to en-us
Fetching translation json for locale: en-us
Resetting the UI components after locale change
Resetting the UI components after locale change
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
Changing application language to en-us
Fetching translation json for locale: en-us
Resetting the UI components after locale change
[50:1211/130411.537512:ERROR:broker_posix.cc(40)] Recvmsg error: Connection reset by peer (104)
/app/bin/element: line 10:     3 Trace/breakpoint trap   (core dumped) env TMPDIR="$XDG_RUNTIME_DIR/app/${FLATPAK_ID:-im.riot.Riot}" zypak-wrapper /app/Element/element-desktop $FLAGS "$@"
lcomrade commented 1 year ago

Flatpak 1.12.7, X11, Debian 11, Element 1.11.16:

leonidm@thinkpad:~$ flatpak  run im.riot.Riot 
/home/leonidm/.var/app/im.riot.Riot/config/Element exists: yes
/home/leonidm/.var/app/im.riot.Riot/config/Riot exists: no
LaunchProcess: failed to execvp:
xdg-settings
Gtk-Message: 18:53:51.825: Failed to load module "canberra-gtk-module"
Gtk-Message: 18:53:51.827: Failed to load module "canberra-gtk-module"
[3:1211/185351.869503:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[3:1211/185351.869597:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
Starting auto update with base URL: https://packages.element.io/desktop/update/
Auto update not supported on this platform
Fetching translation json for locale: en_EN
Changing application language to en-us
Fetching translation json for locale: en-us
Resetting the UI components after locale change
Resetting the UI components after locale change
libva error: /usr/lib/x86_64-linux-gnu/dri/intel-vaapi-driver/iHD_drv_video.so init failed
Changing application language to en-us
Fetching translation json for locale: en-us
Resetting the UI components after locale change
/app/bin/element: line 10:     3 Trace/breakpoint trap   env TMPDIR="$XDG_RUNTIME_DIR/app/${FLATPAK_ID:-im.riot.Riot}" zypak-wrapper /app/Element/element-desktop $FLAGS "$@"
leonidm@thinkpad:~$ 
martijnkruiten commented 1 year ago

For me removing ~/.var/app/im.riot.Riot/ was enough to fix the issue, which is essentially the same as what @NukeManDan did. Of course don't do this, unless you've got a backup of your encryption keys or have access to another verified session. I've not checked if just removing the cache is enough to fix the issue.

schildbach commented 1 year ago

Here is my version of the crash, on 1.11.16:

$ flatpak run im.riot.Riot
/home/aschildbach/.var/app/im.riot.Riot/config/Element exists: yes
/home/aschildbach/.var/app/im.riot.Riot/config/Riot exists: no
LaunchProcess: failed to execvp:
xdg-settings
Gtk-Message: 16:44:07.514: Failed to load module "canberra-gtk-module"
Gtk-Message: 16:44:07.515: Failed to load module "canberra-gtk-module"
[3:1214/164407.525563:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[3:1214/164407.525587:ERROR:bus.cc(399)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
Starting auto update with base URL: https://packages.element.io/desktop/update/
Auto update not supported on this platform
Fetching translation json for locale: en_EN
Changing application language to en-us
Fetching translation json for locale: en-us
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
Resetting the UI components after locale change
Resetting the UI components after locale change
Changing application language to en-us
Fetching translation json for locale: en-us
Resetting the UI components after locale change
/app/bin/element: line 10:     3 Trace/breakpoint trap   env TMPDIR="$XDG_RUNTIME_DIR/app/${FLATPAK_ID:-im.riot.Riot}" zypak-wrapper /app/Element/element-desktop $FLAGS "$@"
5HT2 commented 1 year ago

It looks like running yay -R element-desktop and then yay -S element-desktop.. fixed the issue..? I'm so confused as to what could be going on here, because when I reported this issue it was on a fresh install on a new computer.

schildbach commented 1 year ago

"Clear caches and reload" did not fix this issue for me.

5HT2 commented 1 year ago

Which ones did you clear? I didn't have to clear any caches manually, I just re-installed it from my package manager.

schildbach commented 1 year ago

Which ones did you clear? I didn't have to clear any caches manually, I just re-installed it from my package manager.

The one from the settings of the app itself.

xz-dev commented 1 year ago

When I enable "message search", it will been crash as title say, if I try disable it before the crash, it will not crash. Also I have a very bad network. So, it seems like something about network connect.

5HT2 commented 1 year ago

Message search requires some lib installed locally iirc

yajo commented 1 year ago

I just got the same problem after restablishing search index. Fedora 37, flathub package. Core dumped:

``` Process 54287 (element-desktop) of user 1001 dumped core. Module /app/Element/element-desktop with build-id c2d2095fe03cc81ac2bc09402197a79afd333e8f Module /usr/lib/x86_64-linux-gnu/pkcs11/p11-kit-client.so with build-id 97d25a744cd642fd2f3c960cbb080e2ec954ae80 Module /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.3.0 with build-id 94fd9c752f4eafd66cf368878c998f9f66d562c9 Module /usr/lib/x86_64-linux-gnu/libfreeblpriv3.so with build-id 2b957079483f8a71bab34c560b56d0e0a43ec0bd Module /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6 with build-id 67b73cfe3cb68c22da559526b2ccb86f1ea5631f Module /usr/lib/x86_64-linux-gnu/libsoftokn3.so with build-id 124ad7066ffcd0fd7643d32e66c5b59fa91df55d Module /usr/lib/x86_64-linux-gnu/libibus-1.0.so.5.0.526 with build-id 2cd0b618ff4c133345450ff6f3f57836af6e335c Module /usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules/im-ibus.so with build-id 63396ff6b4928d45ef1f25c5d0e81c6a0f1bb4de Module /app/lib/libdbusmenu-glib.so.4.0.12 with build-id ef51d32cf751b7195f4c92e67117509c44691fd9 Module /app/lib/libdbusmenu-gtk3.so.4.0.12 with build-id 4eb733d38cfe9954c34fc6fee39b499e82261780 Module /app/lib/libindicator3.so.7.0.0 with build-id 0dd78a4b49e5002f117ce184f95c230b6eca1a13 Module /app/lib/libappindicator3.so.1.0.0 with build-id d114ad28f624c7eb24569b280b5940c73cfa39cd Module /usr/lib/x86_64-linux-gnu/load-p11-kit-trust.so with build-id 52a72b506bab63db652f0ac1a6cc00bf67ac55d9 Module /usr/lib/x86_64-linux-gnu/libudev.so.1.7.4 with build-id 253d1f8c3522b2eebb9b0d8ea611bc80c1fc28aa Module /app/Element/resources/app.asar.unpacked/node_modules/matrix-seshat/native/index.node with build-id 762e4be189349d36f232cccd522caedd49f5fa17 Module /app/lib/libsqlcipher.so.0.8.6 with build-id 564b7431d015859ce8d8ed4ff5d8536adfbd75ff Module /app/Element/resources/app.asar.unpacked/node_modules/keytar/build/Release/keytar.node with build-id 023989c61be6dee569c66d970689f3e1639ad24b Module /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0 with build-id ecf8eb47aa4db7c3fa2cec544832544c0f560612 Module /usr/lib/x86_64-linux-gnu/librt.so.1 with build-id e7f048c6d09d613bd4d6e98d319a61248a2163c2 Module /app/lib/libsecret-1.so.0.0.0 with build-id 13aa7433610fa70931820abd580f270a612935a3 Module /usr/lib/x86_64-linux-gnu/libbrotlicommon.so.1.0.9 with build-id 165cea0bb1e1f71197a0a203526baae26a223646 Module /usr/lib/x86_64-linux-gnu/libgpg-error.so.0.33.0 with build-id 9c25e670a93b48890df6ca6135bb110aced6fa30 Module /usr/lib/x86_64-linux-gnu/libdatrie.so.1.4.0 with build-id 49dad4a6cb5857888bfb5f231d7bfbfda94fc68b Module /usr/lib/x86_64-linux-gnu/libbrotlidec.so.1.0.9 with build-id 7bf2edda77c9aaf25be64171bb6aa88dc660f188 Module /usr/lib/x86_64-linux-gnu/libbz2.so.1.0.8 with build-id 6715e0ff79cb06d9fe37cdf1cc94374b03e4361b Module /usr/lib/x86_64-linux-gnu/libgraphite2.so.3.2.1 with build-id 2ad517b7d5cbb9672c3f86a1ad41bc6b07014bf5 Module /usr/lib/x86_64-linux-gnu/libjpeg.so.62.3.0 with build-id 3242606d9d4a5607a6e302884334673f86c5c35f Module /usr/lib/x86_64-linux-gnu/libblkid.so.1.1.0 with build-id bb8aada482919520857a21924c2adebadf2cec88 Module /usr/lib/x86_64-linux-gnu/liblz4.so.1.9.4 with build-id 7a24266fa9b8dc0a1c2366691810e90eefbc1858 Module /usr/lib/x86_64-linux-gnu/libzstd.so.1.5.2 with build-id 3d144d1e1a8cc496e7d53255ff43c37492332876 Module /usr/lib/x86_64-linux-gnu/liblzma.so.5.2.6 with build-id d7aa7f8f99f7d1051a05ed26abf0a60f18bbc987 Module /usr/lib/x86_64-linux-gnu/libgcrypt.so.20.4.1 with build-id b7fd506cf5d04346407642a07a94e9a6aa8289a6 Module /usr/lib/x86_64-linux-gnu/libcap.so.2.66 with build-id c88c31a97401d7290d4182d378d1dcc775ebc01c Module /usr/lib/x86_64-linux-gnu/libwayland-server.so.0.21.0 with build-id 3373e75dbd53693676a3bc950ede26ebeab00340 Module /usr/lib/x86_64-linux-gnu/libpng16.so.16.38.0 with build-id 60b16391da99319407d9266b130af142fd381fa7 Module /usr/lib/x86_64-linux-gnu/libpixman-1.so.0.42.2 with build-id c67fdbe1e5872bedd00866b18f48edb70cdac4dc Module /usr/lib/x86_64-linux-gnu/libfreetype.so.6.18.3 with build-id e6ea1f887f44c0b3fab2a91905fb09a6f428307f Module /usr/lib/x86_64-linux-gnu/libfontconfig.so.1.12.0 with build-id 2cbb26163555d6ab1d950a841106c469c1795674 Module /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0.50200.0 with build-id d2c53fad6d661646b480710c60acd080c4dd06d5 Module /usr/lib/x86_64-linux-gnu/libepoxy.so.0.0.0 with build-id e346a5376af7c3a01d872484f02b11f06679bdd3 Module /usr/lib/x86_64-linux-gnu/libcrypto.so.3 with build-id 9564bffecc340cc24b430b66e0b8bb4c9bc19d89 Module /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0 with build-id 2f3f8b6c200883f7b6b3f1482e5a6bc79bc06f56 Module /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0 with build-id 11474351554680f34ea79cb77d6d17ea082b96c7 Module /usr/lib/x86_64-linux-gnu/libxcb-render.so.0.0.0 with build-id 63f46b636e8f5e3653df0c10d0efd11ec5081cd2 Module /usr/lib/x86_64-linux-gnu/libxcb-shm.so.0.0.0 with build-id c4da044d7e96415e5c04ed9c79857b833ab04486 Module /usr/lib/x86_64-linux-gnu/libthai.so.0.3.1 with build-id 077869fefb05a84aedb839a31bf7ea9be11659ae Module /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0.5000.12 with build-id c7713c9e7e360c3b114acdfe8c5956402b26bf2e Module /usr/lib/x86_64-linux-gnu/libfribidi.so.0.4.0 with build-id 338dddfd3e5f2b3f88d46bb553bbf064cdd159b8 Module /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0.4200.10 with build-id 25e3e5a73e3c3d9589c292d73b7fc8e56aa0e409 Module /usr/lib/x86_64-linux-gnu/libgdk-3.so.0.2404.31 with build-id d77295e5eead75860d4931722562119bb2b4296a Module /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.30 with build-id 304840bb5fe4ff04dd2cac7b44fb4be8e6e70bc6 Module /usr/lib/x86_64-linux-gnu/libwayland-client.so.0.21.0 with build-id 8ffcc7b7a49d885c08b69542706fc512b5c0b602 Module /usr/lib/x86_64-linux-gnu/libwayland-egl.so.1.21.0 with build-id 1175205fac7f4efe21dc9c7a5de4c91cc8c73a11 Module /usr/lib/x86_64-linux-gnu/libcairo-gobject.so.2.11600.0 with build-id f7b9009abfd3657771e7ce1d95cc4daa58150ced Module /usr/lib/x86_64-linux-gnu/libXi.so.6.1.0 with build-id 22002dff4b1b9331b86a37478905deebee04a2ce Module /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0.5000.12 with build-id 3d670fb9c04ad0b1c5c6b38be6b71610b1a8284f Module /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2 with build-id c1d97915a64a4fb80608cedd7bba0d48fb77dddd Module /usr/lib/x86_64-linux-gnu/libXinerama.so.1.0.0 with build-id ff49bc68b0fb54f6f939b31f8c2f49943387b35c Module /usr/lib/x86_64-linux-gnu/libssl.so.3 with build-id fe629c3bb56514b848176cde35a1f174c6bc6f2b Module /usr/lib/x86_64-linux-gnu/libplc4.so with build-id 2d8b97f57fe46c8cce178a77d52791235040780b Module /usr/lib/x86_64-linux-gnu/libmount.so.1.1.0 with build-id ddde5afbdf6f73729e619e77f0cd07ebb4d549ed Module /usr/lib/x86_64-linux-gnu/libpcre.so.1.2.13 with build-id afef3d8cd7c53c0de23e66b08e2a8c34cbe5af38 Module /usr/lib/x86_64-linux-gnu/libc.so.6 with build-id 5ea94c3ce758d3831e78ce23193aeae4f58b6030 Module /usr/lib/x86_64-linux-gnu/libplds4.so with build-id de0e926987ec161cad10a84d416732809a6616ab Module /usr/lib/x86_64-linux-gnu/libz.so.1.2.12 with build-id f0124c87b96c897a0a83a377de0211dbb368c6ee Module /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0.7200.4 with build-id 32b0d7829f58f5ceefd9d8a3993a7207d432582c Module /usr/lib/x86_64-linux-gnu/libsystemd.so.0.34.0 with build-id 6ea00248e724346e60e6df9f961fd0ed4bd80c4f Module /usr/lib/x86_64-linux-gnu/libatspi.so.0.0.1 with build-id 348134bbc0b9e15e60706b0a10a150b2a621c848 Module /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0 with build-id e200353db267c3ab4eb88225084292abda2fbafc Module /usr/lib/x86_64-linux-gnu/libxkbcommon.so.0.0.0 with build-id e3586470ecfb50ca5689ed7cba37475bfdeaf180 Module /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0 with build-id eeff8523930f9576bbce00f59a62f66d0c9b1eb4 Module /usr/lib/x86_64-linux-gnu/libm.so.6 with build-id 9cddc29349ede2ff5f072c2f14a801ca0a14361a Module /usr/lib/x86_64-linux-gnu/libcairo.so.2.11600.0 with build-id 7d7a77714a47f8b6a45d7dd0251ee4b44b8e5c46 Module /usr/lib/x86_64-linux-gnu/libgtk-3.so.0.2404.31 with build-id cea39941379161b4deeb936fcc79223590f3510d Module /usr/lib/x86_64-linux-gnu/libffi.so.8.1.2 with build-id d986323c8706795d4b003f11a07c7328fb56e5a9 Module /usr/lib/x86_64-linux-gnu/libgcc_s.so.1 with build-id 637c0706aeb28b6b429972a92371e241d68895e8 Module /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0 with build-id ffc71f2855d29d897a670e2b14816eef6ef68cae Module /usr/lib/x86_64-linux-gnu/libexpat.so.1.8.10 with build-id 5f168dde83200d1332d3543f67ab7078991a23a4 Module /usr/lib/x86_64-linux-gnu/GL/default/lib/libgbm.so.1.0.0 with build-id d8527bfd43887b2dae24d762ba4512b84ece3584 Module /usr/lib/x86_64-linux-gnu/libXrandr.so.2.2.0 with build-id c2dd4159acfc05e7bdec45d5d4e47ab5405f621f Module /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0 with build-id e3608cdd05b0f8e160b807462328069fddc2c9e0 Module /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0 with build-id e81dc6b8f602213da16dd69c32beb44ac0fde291 Module /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0.5000.12 with build-id 9e62241c3e9cb066f376dcd628d399fae4715b8e Module /usr/lib/x86_64-linux-gnu/libdbus-1.so.3.32.1 with build-id ee84c49f92d1b73e8b21c42242557f4baf8cc83f Module /usr/lib/x86_64-linux-gnu/libcups.so.2 with build-id 75ef18372b6043f6d788fc95ee92f9d63ed8d561 Module /usr/lib/x86_64-linux-gnu/libatk-bridge-2.0.so.0.0.0 with build-id 39e85d1b0ef1bd10f0e4fb57ee2c1cba926d53b7 Module /usr/lib/x86_64-linux-gnu/libatk-1.0.so.0.23609.1 with build-id abebb74407e7608d78cd9fa56a98866d33dacea4 Module /usr/lib/x86_64-linux-gnu/libnspr4.so with build-id b028801a913a5709c3d9c8f7ac02c2c29c7970a7 Module /usr/lib/x86_64-linux-gnu/libsmime3.so with build-id 743fd8faeac416e04caa6a10ee2e45051568ba7b Module /usr/lib/x86_64-linux-gnu/libnss3.so with build-id 0eecff106ba9c78f53e55fbc349dff7f9071f408 Module /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0.7200.4 with build-id 717acf1ace15d28cb6d2f6a9e579c710cde99cee Module /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.7200.4 with build-id 57ac1a5b4194089836b344fced9e58b30a16dfbf Module /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0.7200.4 with build-id 85ddb6d01f6275ae76f4ab81c04addbd0fcff57a Module /app/Element/libffmpeg.so with build-id 769d0269491ca2313fcd15d63059bac67bd8b1b3 Module /usr/lib/x86_64-linux-gnu/libXdamage.so.1.1.0 with build-id 0cb9da43b14c04a3b725c1b556d5ce85ccf41556 Module /usr/lib/x86_64-linux-gnu/libXcomposite.so.1.0.0 with build-id 91ec08e119de4f1222c1a522719dc1573368db1c Module /usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0 with build-id e653c866e14b9ce3373111376f5aec6e4da60323 Module /usr/lib/x86_64-linux-gnu/libnssutil3.so with build-id 049f9b643363c8b8d321fad5a30037939fbf0d8b Module /usr/lib/x86_64-linux-gnu/libpthread.so.0 with build-id f7a1ab4db9ed353871ac048779169c83906072dc Module /usr/lib/x86_64-linux-gnu/libdl.so.2 with build-id 82be18b3b822a95833e4b5d1382b5ee8fef9087a Module /app/lib/libzypak-preload-host-spawn-strategy.so with build-id 163537385147c2ea0d5b912009243c11dcc5c2c9 Module /app/lib/libzypak-preload-host.so with build-id 074c08b5086633a8ba9d6c4577a3d4af435efa8b Module /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 with build-id cee44c231b042f664d23a346f484e3d3740a8534 Module linux-vdso.so.1 with build-id 58385c6b9447568548ad5a82deb98e60ca25b3fa Stack trace of thread 3: #0 0x00005575779a8a8f n/a (/app/Element/element-desktop + 0x53a4a8f) vector-im/element-web#1 0x00005575779b11c8 n/a (/app/Element/element-desktop + 0x53ad1c8) vector-im/element-web#2 0x00005575779b0351 n/a (/app/Element/element-desktop + 0x53ac351) vector-im/element-web#3 0x00005575779a888c n/a (/app/Element/element-desktop + 0x53a488c) vector-im/element-web#4 0x00005575778c7319 n/a (/app/Element/element-desktop + 0x52c3319) vector-im/element-web#5 0x000055757785adb6 n/a (/app/Element/element-desktop + 0x5256db6) vector-im/element-web#6 0x000055757787a2f4 n/a (/app/Element/element-desktop + 0x52762f4) vector-im/element-web#7 0x000055757787aa36 n/a (/app/Element/element-desktop + 0x5276a36) vector-im/element-web#8 0x000055757782003f n/a (/app/Element/element-desktop + 0x521c03f) vector-im/element-web#9 0x000055757787b07c n/a (/app/Element/element-desktop + 0x527707c) vector-im/element-web#10 0x000055757783fe72 n/a (/app/Element/element-desktop + 0x523be72) vector-im/element-web#11 0x00005575769e99ef n/a (/app/Element/element-desktop + 0x43e59ef) vector-im/element-web#12 0x00005575769eb762 n/a (/app/Element/element-desktop + 0x43e7762) vector-im/element-web#13 0x00005575769e70fe n/a (/app/Element/element-desktop + 0x43e30fe) vector-im/element-web#14 0x0000557574aa6ce1 n/a (/app/Element/element-desktop + 0x24a2ce1) vector-im/element-web#15 0x0000557574aa7fcc n/a (/app/Element/element-desktop + 0x24a3fcc) vector-im/element-web#16 0x0000557574aa7dc1 n/a (/app/Element/element-desktop + 0x24a3dc1) vector-im/element-web#17 0x0000557574aa573f n/a (/app/Element/element-desktop + 0x24a173f) vector-im/element-web#18 0x0000557574aa5854 n/a (/app/Element/element-desktop + 0x24a1854) vector-im/element-web#19 0x000055757481c7cb n/a (/app/Element/element-desktop + 0x22187cb) vector-im/element-web#20 0x00007f7b59a0a8e3 n/a (/app/lib/libzypak-preload-host-spawn-strategy.so + 0xb48e3) vector-im/element-web#21 0x00007f7b57c2954a n/a (/usr/lib/x86_64-linux-gnu/libc.so.6 + 0x2954a) vector-im/element-web#22 0x00007f7b57c2960b n/a (/usr/lib/x86_64-linux-gnu/libc.so.6 + 0x2960b) vector-im/element-web#23 0x00007f7b59a0ab6c n/a (/app/lib/libzypak-preload-host-spawn-strategy.so + 0xb4b6c) vector-im/element-web#24 0x000055757448702a n/a (/app/Element/element-desktop + 0x1e8302a) ELF object binary architecture: AMD x86-64 ```

Like aforementioned, disabling local encrypted messages search index disables the crash. But I need searches! 😢

weeman1337 commented 1 year ago

Happened for me on start up. Nightly 2022122201 on 2022122201 installed via official deb repo

weeman1337 commented 1 year ago

Removing unsupported platform, because installed from official deb repo.

e00E commented 1 year ago

I experience this issue on an up to date Arch system with the Arch package. Same error as described in OP. For me it happens within 5 seconds on startup before the windows shows anything.

e00E commented 1 year ago

On an existing profile I get the same error as OP with broker_posix.cc. On a fresh profile I get

ERROR:ssl_client_socket_impl.cc(982)] handshake failed; returned -1, SSL error code 1, net_error -3

followed by segfaulting.

e00E commented 1 year ago

On my system this was fixed by unsetting --ozone-platform-hint=wayland in my electron config. I use this setting to make electron use wayland. This is likely an electron + wayland issue instead of an Element issue. Note that Arch recently switched to electron22 which likely caused the issue to appear.

freswa commented 1 year ago

Note that Arch recently switched to electron22 which likely caused the issue to appear.

I disagree. Downgrading the element-web package to 1.11.16 solves the issue. So the culprit is probably somewhere in this repo.

e00E commented 1 year ago

I'm not familiar with electron development but it seems unlikely that an electron app could do something that makes it crash only on wayland, without this being a bug in electron. I expect the app code to not know about low level details like the graphics environment. Maybe a recent change in element exercises the electron bug but it's still an electron bug. Although element might still want to work around the bug in that case. And it would be good to isolate it and forward it to electron.

noantiq commented 1 year ago

I experienced this crash throughout the last few days since I installed Element 1.11.17 as a flatpak on Fedora 37. Element usually crashes within a couple of seconds to minutes when I run it and often looses the whole session. Obviously very annoying.

turt2live commented 1 year ago

Please note that community platforms are not supported in this issue tracker - please report them upstream. We'll be investigating this from the Debian angle most likely.

poperigby commented 1 year ago

@turt2live Is Flatpak counted as a community platform?

turt2live commented 1 year ago

Yes, the flatpak is maintained by a community member: https://github.com/flathub/im.riot.Riot/

5HT2 commented 1 year ago

This is likely an electron + wayland issue instead of an Element issue.

As the person who reported the issue, I don't use Wayland period.

Operating System: Arch Linux
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.8
Kernel Version: 6.1.3-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i7-8665U CPU @ 1.90GHz
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
Manufacturer: LENOVO
Product Name: 20QD000LUS
System Version: ThinkPad X1 Carbon 7th
5HT2 commented 1 year ago

I experience this issue on an up to date Arch system with the Arch package. Same error as described in OP. For me it happens within 5 seconds on startup before the windows shows anything.

Can you try this like I did earlier? https://github.com/vector-im/element-desktop/issues/648

5HT2 commented 1 year ago

@e00E ping for the above comment

e00E commented 1 year ago

I do not have yay. Reinstalling the package through pacman does not fix the issue. Completely deleting my element profile folder does not fix the issue.

As the person who reported the issue, I don't use Wayland period.

Then we might be experiencing different bugs.

5HT2 commented 1 year ago

I'm no longer able to reproduce this issue after reinstalling the package (I'm also using Arch), so I am unfortunately not sure what's wrong here.

partizanna commented 1 year ago
/home/partizan/.config/Element exists: yes
/home/partizan/.config/Riot exists: no

(electron:118340): Gtk-WARNING **: 14:09:07.359: Theme parsing error: gtk.css:63:28: The :prelight pseudo-class is deprecated. Use :hover instead.

(electron:118340): Gtk-WARNING **: 14:09:07.359: Theme parsing error: gtk.css:73:35: The :prelight pseudo-class is deprecated. Use :hover instead.
No update_base_url is defined: auto update is disabled
Fetching translation json for locale: en_EN
Changing application language to en-us
Fetching translation json for locale: en-us
Resetting the UI components after locale change
Resetting the UI components after locale change
Changing application language to en-us
Fetching translation json for locale: en-us
Resetting the UI components after locale change
Trace/breakpoint trap

I still have this random crash, even with no interaction at all. Its also on Archlinux with version 1.11.17-1 and electron22. On previous version of electron and element everything was fine. I also tried to remove the config dir and setup a new.

kernel: traps: electron[118340] trap int3 ip:55e6ea890a6e sp:7ffc59e876b0 error:0 in electron[55e6e726a000+7267000]
This is the only thing in journal logs

makew0rld commented 1 year ago

I am also seeing this fixed (for now anyway) after uninstalling and reinstalling electron-desktop on Arch Linux.

harmathy commented 1 year ago

Reinstalling the package on Arch Linux does not fix the problem. It goes away when the message search index for encrypted rooms is completed. By disabling and re-enabling the message search I can reproduce this issue reliably.

msi-fs8

SpiritCroc commented 1 year ago

I started getting this kind of crash frequently with a self-built element fork (SchildiChat) on Arch linux, I think since the 1.11.17 merge. A week ago, I downgraded electron in element-desktop/package.json from version 22 back to 21, and it hasn't crashed anymore since then. So at least for me, looks like something broke with electron 22. From my experiments on my machine, it didn't relate to message search this time, but rather what happens when the client loses focus? Not sure. Using wayland/sway.

popcorn9499 commented 1 year ago

I have found two different packages on arch both I believe use older electron versions. The arch package for element-desktop version 1.11.15-1 with the corresponding element-web version seem to function properly without crashes and with search enabled. Also the element-desktop-nightly-bin package seems to work properly.

Had issues on both kde plasma x11 and kde plasma wayland.

damnms commented 1 year ago

same here on opensuse tumbleweed. i open it, start typing and after 5-10 seconds its just gone. this happens now over a week.

Orhideous commented 1 year ago

So, as far as I can see, it's not uncommon.

5HT2 commented 1 year ago

Is anybody in this thread on non-Arch able to try uninstalling the package, clearing all related caches and package caches, and reinstalling?

Doing yay -R element-desktop; yay -S element-desktop worked on Arch for me.

poperigby commented 1 year ago

I cleared the data of the Flatpak version and reinstalled it, and it's still happening.

ghost commented 1 year ago

Similar experience with the Flatpak on Void glibc with KDE Plasma, but my output is the following:

Starting auto update with base URL: https://packages.element.io/desktop/update/
Auto update not supported on this platform
Fetching translation json for locale: en_EN
Changing application language to en-us
Fetching translation json for locale: en-us
Resetting the UI components after locale change
[47:0214/101025.004099:ERROR:gpu_init.cc(523)] Passthrough is not supported, GL is egl, ANGLE is 
Resetting the UI components after locale change
Changing application language to en-us
Fetching translation json for locale: en-us
Resetting the UI components after locale change
Error getting the event index passphrase out of the secret store [Error: user interaction failed]
/app/bin/element: line 16:     3 Trace/breakpoint trap   env TMPDIR="$XDG_RUNTIME_DIR/app/${FLATPAK_ID:-im.riot.Riot}" zypak-wrapper /app/Element/element-desktop $FLAGS "$@"