Rocket.Chat.Electron icon indicating copy to clipboard operation
Rocket.Chat.Electron copied to clipboard

RC-Electron starts with gray screen

Open aleadco opened this issue 2 years ago • 12 comments

Describe the bug When you start RC-Electron when turning on the PC it does not load the RC instance correctly. A gray screen is displayed. Users must go to View/Reload to reload the RC instance.

What operating system and which version? Windows 21H2 Which version of Rocket.Chat (Server)? 4.5.5 Which version of Rocket.Chat.Electron (Electron/Desktop)? 3.8.1 Is there any setting relevant changed? No

Screenshots image

aleadco avatar Apr 03 '22 00:04 aleadco

@jeanfbrito This is the problem I raised in https://github.com/RocketChat/Rocket.Chat.Electron/issues/2342#issuecomment-1085110383

aleadco avatar Apr 03 '22 00:04 aleadco

Same problem here. Neither reloading the server, deleting .config folder or downgrading to client 3.7 solved the problem. This what launching from the console I get:

rocketchat-desktop --enable-features=UseOzonePlatform --ozone-platform=wayland
(electron:50786): Gtk-WARNING **: 13:33:02.302: Theme parsing error: gtk.css:5624:48: The :prelight pseudo-class is deprecated. Use :hover instead.
[50786:0404/133302.351513:ERROR:object_proxy.cc(623)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.InvalidArgs: No such interface “org.freedesktop.portal.FileChooser”
[50786:0404/133302.351541:ERROR:select_file_dialog_linux_portal.cc(242)] Failed to read portal version property
[50786:0404/133302.362906:ERROR:cursor_loader.cc(116)] Failed to load a platform cursor of type kNull
[50835:0404/133302.429243:ERROR:gpu_init.cc(446)] Passthrough is not supported, GL is egl, ANGLE is
[50835:0404/133302.433828:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/unique_ptr.h:659: typename std::add_lvalue_reference<element_type>::type std::unique_ptr<blink::CSSSelector []>::operator[](std::size_t) const [_Tp = blink::CSSSelector [], _Dp = std::default_delete<blink::CSSSelector []>]: Assertion 'get() != pointer()' failed.

ZJaume avatar Apr 04 '22 11:04 ZJaume

the problem is related to electron. With electron 18, I also have the issue and it can't be resolved by reloading or resetting the app data. With electron 17, the issue is not existing. (Tested with Rocket.Chat 3.8.1 and 3.8.2) @jeanfbrito there might be some work needed to update to electron 18.

BSerpent86 avatar Apr 05 '22 10:04 BSerpent86

the problem is related to electron. With electron 18, I also have the issue and it can't be resolved by reloading or resetting the app data. With electron 17, the issue is not existing. (Tested with Rocket.Chat 3.8.1 and 3.8.2) @jeanfbrito there might be some work needed to update to electron 18.

Where you is using electron 18? We didn't updated to 18 yet. I tried version 18 but it has some building problems with macOS. Then we will need to wait to update to electron 18. For now, we are using electron 17.3.1 in the last release.

jeanfbrito avatar Apr 05 '22 10:04 jeanfbrito

Where you is using electron 18?

Arch Linux already updated to electron 18: https://archlinux.org/packages/community/x86_64/electron/ The https://aur.archlinux.org/packages/rocketchat-desktop package builds the Rocketchat App from source and uses the system's electron.

BSerpent86 avatar Apr 05 '22 11:04 BSerpent86

@BSerpent86 we are not the maintainers of this archlinux package. You think that changing from Electron 18 to 17 solved that? What exactly the version 17 of electron? Our last release is using 17.3.1, what version are you using that solved this grey screen?

jeanfbrito avatar Apr 05 '22 19:04 jeanfbrito

I want to fix that, but I cant reproduce to see what can be the problem.

jeanfbrito avatar Apr 05 '22 19:04 jeanfbrito

seems as if i'm in the same boat

$ electron --version
v18.0.1

the following leads to a gray screen (dev tools doesn't work either)

$ electron /usr/lib/rocketchat-desktop
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[4933:0405/235924.705434:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/unique_ptr.h:659: typename std::add_lvalue_reference<element_type>::type std::unique_ptr<blink::CSSSelector []>::operator[](std::size_t) const [_Tp = blink::CSSSelector [], _Dp = std::default_delete<blink::CSSSelector []>]: Assertion 'get() != pointer()' failed.
[4933:0405/235936.544810:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[4933:0405/235950.399123:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!

image

and using electron 17

$ electron17 --version
v17.3.1

everything works as expected

$ electron17 /usr/lib/rocketchat-desktop
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
[5261:0406/000609.645249:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
[5224:0406/000611.679496:ERROR:object_proxy.cc(623)] Failed to call method: org.freedesktop.ScreenSaver.GetActive: object_path= /org/freedesktop/ScreenSaver: org.freedesktop.DBus.Error.NotSupported: This method is not implemented
[5224:0406/000611.680193:ERROR:object_proxy.cc(623)] Failed to call method: org.gnome.ScreenSaver.GetActive: object_path= /: org.freedesktop.DBus.Error.UnknownMethod: Object does not exist at path “/”
[5261:0406/000613.768513:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[5261:0406/000613.947255:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[5261:0406/000613.959042:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!

image

rmaksimov avatar Apr 05 '22 21:04 rmaksimov

Very strange, but I updated to version 18 and on the time to build to OSX got some errors that is from version 18. Then we will stay at the version 17 for a time. But I'm talking about the Github releases, you cant use our packages from there for arch?

Em ter., 5 de abr. de 2022 às 18:20, Roman Maksimov < @.***> escreveu:

seems as if i'm in the same boat

$ electron --version

v18.0.1

the following leads to a gray screen (dev tools doesn't work either)

$ electron /usr/lib/rocketchat-desktop

libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)

[4933:0405/235924.705434:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.

/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../include/c++/11.2.0/bits/unique_ptr.h:659: typename std::add_lvalue_reference<element_type>::type std::unique_ptr<blink::CSSSelector []>::operator const [_Tp = blink::CSSSelector [], _Dp = std::default_delete<blink::CSSSelector []>]: Assertion 'get() != pointer()' failed.

[4933:0405/235936.544810:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!

[4933:0405/235950.399123:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!

[image: image] https://user-images.githubusercontent.com/2904679/161850686-eab41bff-2963-446a-8f4f-1e2669ca7b42.png

and using electron 17

$ electron17 --version

v17.3.1

everything works as expected

$ electron17 /usr/lib/rocketchat-desktop

libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)

[5261:0406/000609.645249:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.

[5224:0406/000611.679496:ERROR:object_proxy.cc(623)] Failed to call method: org.freedesktop.ScreenSaver.GetActive: object_path= /org/freedesktop/ScreenSaver: org.freedesktop.DBus.Error.NotSupported: This method is not implemented

[5224:0406/000611.680193:ERROR:object_proxy.cc(623)] Failed to call method: org.gnome.ScreenSaver.GetActive: object_path= /: org.freedesktop.DBus.Error.UnknownMethod: Object does not exist at path “/”

[5261:0406/000613.768513:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!

[5261:0406/000613.947255:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!

[5261:0406/000613.959042:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!

[image: image] https://user-images.githubusercontent.com/2904679/161850628-7a5ba7b7-436e-4716-8c70-75d1c6657d54.png

— Reply to this email directly, view it on GitHub https://github.com/RocketChat/Rocket.Chat.Electron/issues/2371#issuecomment-1089365834, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI7PCQLXJFPLBWU5H3YDITVDSVCFANCNFSM5SMG4ZDA . You are receiving this because you were mentioned.Message ID: @.***>

-- Atenciosamente, Jean Brito.

jeanfbrito avatar Apr 05 '22 21:04 jeanfbrito

There is no package for Arch, so I'm using the same repository mentioned above (https://aur.archlinux.org/packages/rocketchat-desktop)

rmaksimov avatar Apr 05 '22 21:04 rmaksimov

What kind of package is used in arch? Any one? I never used arch.

Em ter., 5 de abr. de 2022 às 18:56, Roman Maksimov < @.***> escreveu:

There is no package for Arch, so I'm using the same repository mentioned above (https://aur.archlinux.org/packages/rocketchat-desktop)

— Reply to this email directly, view it on GitHub https://github.com/RocketChat/Rocket.Chat.Electron/issues/2371#issuecomment-1089410672, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI7PCSJ5273QKOQVW5A34LVDSZHPANCNFSM5SMG4ZDA . You are receiving this because you were mentioned.Message ID: @.***>

-- Atenciosamente, Jean Brito.

jeanfbrito avatar Apr 05 '22 21:04 jeanfbrito

Building the AUR package with electron17 just works, so I think it's responsibility of the AUR maintainer (or whoever assumes the maintenance) to build the package with the same version that this project does.

ZJaume avatar Apr 06 '22 11:04 ZJaume

Building the AUR package with electron17 just works, so I think it's responsibility of the AUR maintainer (or whoever assumes the maintenance) to build the package with the same version that this project does.

I agree

jeanfbrito avatar Oct 05 '22 20:10 jeanfbrito