element-desktop icon indicating copy to clipboard operation
element-desktop copied to clipboard

element-desktop crash after ~15 seconds after start (killed by OOM-killer

Open progserega opened this issue 11 months ago • 5 comments

Steps to reproduce

  1. Where are you starting? What can you see? Debian 12 amd64, wayland I use my server rsprim.ru (debian 11 version: matrix-synapse-py3 1.89.0+bullseye1)

  2. What do you click? Crash aelement-desktop and element-desktop-nightly:

dpkg-query -l|grep element
ii  element-desktop                                             1.11.59                             amd64        
ii  element-io-archive-keyring                                  1.1                                 all          The packages.element.io repository keyring
ii  element-nightly                                             2024030801                          amd64        
  1. More steps… All above versions was crashed at simply start. But I try clear data-dir, but this was not help:
  2. I was try rm -rf ~/.config/Element-Nightly
  3. then start again
  4. login, wait sync
  5. GUI show 10-20 seconds (at this time top show that element-desktop eat RAM up to 5,3 Gb)
  6. crash

dmesg show:

[35622.939293]  in element-desktop-nightly[563b763e7000+800b000]
[35622.939298]  in element-desktop-nightly[563b763e7000+800b000]

in console:

/home/progserega/.config/Element-Nightly exists: yes
/home/progserega/.config/Riot-Nightly exists: no
Enabling Sentry with dsn=https://[email protected]/6 environment=nightly
[1249936:0309/164445.481778:ERROR:object_proxy.cc(577)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.InvalidArgs: Интерфейс «org.freedesktop.portal.FileChooser» отсутствует
[1249936:0309/164445.482386:ERROR:select_file_dialog_linux_portal.cc(285)] Failed to read portal version property
Starting auto update with base URL: https://packages.element.io/nightly/update/
Auto update not supported on this platform
Fetching translation json for locale: en_EN
Changing application language to ru
Fetching translation json for locale: ru
[1249997:0309/164445.636045:ERROR:gbm_wrapper.cc(75)] Failed to get fd for plane.: Нет такого файла или каталога (2)
[1249997:0309/164445.636233:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: Нет такого файла или каталога (2)
[1249997:0309/164445.636356:ERROR:gbm_wrapper.cc(75)] Failed to get fd for plane.: Нет такого файла или каталога (2)
[1249997:0309/164445.636412:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: Нет такого файла или каталога (2)
[1249997:0309/164445.636474:ERROR:gbm_wrapper.cc(75)] Failed to get fd for plane.: Нет такого файла или каталога (2)
[1249997:0309/164445.636517:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: Нет такого файла или каталога (2)
...
[1249997:0309/164445.639964:ERROR:gbm_wrapper.cc(75)] Failed to get fd for plane.: Нет такого файла или каталога (2)
[1249997:0309/164445.640002:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: Нет такого файла или каталога (2)
Resetting the UI components after locale change
Resetting the UI components after locale change
Changing application language to ru
Fetching translation json for locale: ru
Resetting the UI components after locale change
[1249936:0309/164447.735215:ERROR:nss_util.cc(357)] After loading Root Certs, loaded==false: NSS error code: -8018
[1249997:0309/164449.566550:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!

<--- Last few GCs --->

[1:0x1ee02463c000]     1472 ms: Scavenge 76.2 (86.1) -> 75.4 (93.4) MB, 69.70 / 0.00 ms  (average mu = 1.000, current mu = 1.000) allocation failure; 
[1:0x1ee02463c000]     1579 ms: Scavenge 83.2 (93.4) -> 83.9 (94.1) MB, 70.59 / 0.00 ms  (average mu = 1.000, current mu = 1.000) allocation failure; 
[1:0x1ee02463c000]     1681 ms: Scavenge 83.9 (94.1) -> 83.2 (101.4) MB, 101.02 / 0.00 ms  (average mu = 1.000, current mu = 1.000) allocation failure; 


<--- JS stacktrace --->

[1250006:0309/164540.433188:ERROR:v8_initializer.cc(789)] V8 javascript OOM (Scavenger: semi-space copy).
zsh: trace trap  element-desktop-nightly

Outcome

What did you expect?

What happened instead?

Operating system

debian 12

Application version

element-nightly 2024030801

How did you install the app?

official element.io repo for debian 12

Homeserver

matrix-synapse-py3 1.89.0+bullseye1

Will you send logs?

No

progserega avatar Mar 09 '24 06:03 progserega

Fixed after update element-desktop-night to

Element Nightly: 2024030901 Rust SDK 0.7.0 (b1918e9), Vodozemac 0.5.1

progserega avatar Mar 12 '24 22:03 progserega

Reproduce in last element-desktop 1.11.60 in such enveronment.

[98779:0314/064930.244499:ERROR:gbm_wrapper.cc(75)] Failed to get fd for plane.: Нет такого файла или каталога (2)
[98779:0314/064930.244566:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: Нет такого файла или каталога (2)
[98779:0314/064930.244650:ERROR:gbm_wrapper.cc(75)] Failed to get fd for plane.: Нет такого файла или каталога (2)
[98779:0314/064930.244716:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: Нет такого файла или каталога (2)
[98779:0314/064930.244799:ERROR:gbm_wrapper.cc(75)] Failed to get fd for plane.: Нет такого файла или каталога (2)
[98779:0314/064930.244866:ERROR:gbm_wrapper.cc(258)] Failed to export buffer to dma_buf: Нет такого файла или каталога (2)
Resetting the UI components after locale change
Resetting the UI components after locale change
Changing application language to ru
Fetching translation json for locale: ru
Resetting the UI components after locale change
[98717:0314/064931.788804:ERROR:nss_util.cc(357)] After loading Root Certs, loaded==false: NSS error code: -8018
[98779:0314/064933.399936:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!

<--- Last few GCs --->


<--- JS stacktrace --->

[98821:0314/065000.928035:ERROR:v8_initializer.cc(789)] V8 javascript OOM (Committing semi space failed.).
[98779:0314/065045.018160:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[98779:0314/065047.335063:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!
Error: ../src/amd/vulkan/radv_device.c:741: Device '/dev/dri/renderD128' is not using the AMDGPU kernel driver: Недопустимый аргумент (VK_ERROR_INCOMPATIBLE_DRIVER)

progserega avatar Mar 13 '24 20:03 progserega

Recheck on element-desktop version 1.11.65 (debian 12 official element.io repo):

/home/progserega/.config/Element exists: no
/home/progserega/.config/Riot exists: yes
Using legacy user data path: /home/progserega/.config/Riot
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 ru
Fetching translation json for locale: ru
Resetting the UI components after locale change
Resetting the UI components after locale change
Changing application language to ru
Fetching translation json for locale: ru
Resetting the UI components after locale change
[616714:0428/102613.626631:ERROR:nss_util.cc(357)] After loading Root Certs, loaded==false: NSS error code: -8018
[616787:0428/102614.965945:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[616787:0428/102614.967191:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[616787:0428/102614.984135:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!

<--- Last few GCs --->


<--- JS stacktrace --->

[616803:0428/102701.178666:ERROR:v8_initializer.cc(799)] V8 javascript OOM (Committing semi space failed.).
[616803:0428/102701.178673:ERROR:v8_initializer.cc(799)] V8 javascript OOM (MemoryChunk allocation failed during deserialization.).

In result - I see white empty screen of element-desktop.

progserega avatar Apr 28 '24 00:04 progserega

I am experiencing this same issue. I am using version 1.11.65 (ubuntu 22.04)

`/home/chris/.config/Element exists: yes /home/chris/.config/Riot exists: no 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 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 Fetching translation json for locale: en Resetting the UI components after locale change

<--- Last few GCs --->

[1:0x22bc078e0000] 1637 ms: Mark-Compact (reduce) 342.0 (364.9) -> 213.6 (219.4) MB, pooled: 0 MB, 113.97 / 0.00 ms (+ 0.0 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 114 ms) (average mu = 0.930, current[1:0x22bc078e0000] 1995 ms: Mark-Compact (reduce) 213.6 (219.4) -> 213.6 (218.4) MB, pooled: 0 MB, 357.31 / 0.00 ms (average mu = 0.764, current mu = 0.000) last resort; GC in old space requested

<--- JS stacktrace --->

[24397:0502/132310.442320:ERROR:v8_initializer.cc(799)] V8 javascript OOM (CALL_AND_RETRY_LAST). Error sending from webFrameMain: Error: Render frame was disposed before WebFrameMain could be accessed at s.send (node:electron/js2c/browser_init:2:84071) at _.send (node:electron/js2c/browser_init:2:69269) at App.beforeQuit (/opt/Element/resources/app.asar/lib/electron-main.js:550:82) at App.emit (node:events:514:28) at App.emit (node:domain:488:12) at click (/opt/Element/resources/app.asar/lib/tray.js:139:32) at MenuItem.click (node:electron/js2c/browser_init:2:29559) at a._executeCommand (node:electron/js2c/browser_init:2:34987) `

The problem is isolated to a single conversation, all others work fine. The other users had sent me 2 short voice messages which is pretty normal behavior and doesnt cause problems, but today I am unable to view this conversation anymore through element-desktop but works fine from the android element app.

I deleted those 2 voice messages from my phone that preceeded the crashing in hopes that it would clear the problem but it had no effect, the conversation with that user seems to be permanently polluted by something blowing out the javascript memory limit. The effected conversation will render fine for about 5-10 seconds after I open it and then the oom error gets generated and the whole element client turns white and I have to force close it and start back up and quickly change to another conversation to keep it from crashing again.

I monitored memory usage and while viewing any other conversation the memory usage for element stays at about 250mb of resident memory, soon as I click on the effected conversation it immediately and rapidly starts ballooning out until it hits about 5gb of resident memory and then crashes. I dont think its relevant as this seems to be a memory limit defined in javascript, but this system has 128gb of memory so it is not a memory shortage issue.

gamerscomplete avatar May 02 '24 20:05 gamerscomplete

Update on this problem. This is an intermittent issue that seems to go away on its own but does return. It stopped crashing when opening the message window with that user even with additional voice messages since I added my last comment, but the problem is back now with the same user and voice messages again. I tried using the web version at app.element.io but it also crashes the same way when opening the chat with that user. I have not been able to coorelate the length of messages at all as it seems to be random on what messages cause this behavior

gamerscomplete avatar May 14 '24 22:05 gamerscomplete