Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discord crashes Ferdium when trying to share screen #1099

Closed
2 tasks done
AnghelRA opened this issue Apr 6, 2023 · 19 comments
Closed
2 tasks done

Discord crashes Ferdium when trying to share screen #1099

AnghelRA opened this issue Apr 6, 2023 · 19 comments
Labels
bug 🪲 Something isn't working linux Related to the Linux build

Comments

@AnghelRA
Copy link

AnghelRA commented Apr 6, 2023

Avoid duplicates

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issues tracker for a bug report similar to mine, in vain

Ferdium Version

6.2.6

What Operating System are you using?

Other Linux

Operating System Version

Nobara 37

What arch are you using?

x64

Last Known Working Ferdium version

No response

Expected Behavior

I want to share my screen in a discord call.

Actual Behavior

When I try to share my screen, ferdium crashes.

Steps to reproduce

  1. Open discord
  2. Join a server voice chat
  3. Press Share Your Screen

Debug link

https://debug.ferdium.org/60474834-6b78-4681-92ee-cb0135a49932

Screenshots

No response

Additional information

I am using the flatpak version of Ferdium on wayland with pipewire, with nvidia gpu and kde desktop. Had the same issue on garuda linux wayland, not reproducible on x11.

@AnghelRA AnghelRA added the bug 🪲 Something isn't working label Apr 6, 2023
@Alphrag Alphrag added the linux Related to the Linux build label Apr 7, 2023
@hadogenes
Copy link

It is electron bug
duplicate #1044

@vraravam
Copy link
Contributor

vraravam commented Apr 8, 2023

Electron just released a new version, which we have integrated to and released as a new nightly - please try it out and get back if this fixes your issue.

@SimonSchwendele
Copy link

@vraravam
I just updated to 6.2.7_nightly.4-1 and screensharing still crashes in Discord, Jitsi and Teams.

libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
...
...
Error occurred in handler for 'GUEST_VIEW_MANAGER_CALL': Error: Script failed to execute, this normally means an error was thrown. Check the renderer console for the error.
    at node:electron/js2c/renderer_init:2:16905
    at EventEmitter.<anonymous> (node:electron/js2c/renderer_init:2:11094)
    at EventEmitter.emit (node:events:513:28)
    at Object.onMessage (node:electron/js2c/renderer_init:2:9197)
Version: 6.2.7-nightly.4
Server: No Server
Electron: 24.0.0
Chrome: 112.0.5615.49
Node.js: 18.14.0
Platform: Linux 6.3
Arch: x64
Build date: Sat Apr 08 2023 02:50:16 GMT+0200 (Central European Summer Time)
Git SHA: 5661f54c
Git branch: nightly

Im on Fedora 37 using the rpm.

CPU: AMD Ryzen 9 6900HS with Radeon Graphics (16) @ 4.925GHz 
GPU: NVIDIA Geforce RTX 3070 Ti Laptop GPU
GPU: AMD ATI Radeon 680M 

@taz40
Copy link

taz40 commented Apr 12, 2023

I am experiencing the same issue on Arch linux with both the AUR and Appimage versions (both nightly).
The application segfaults immediately after attempting to start a screen share in discord.

Version: 6.2.7-nightly.4
Server: No Server
Electron: 24.0.0
Chrome: 112.0.5615.49
Node.js: 18.14.0
Platform: Linux 6.2
Arch: x64
Build date: Fri Apr 07 2023 18:50:16 GMT-0600 (Mountain Daylight Time)
Git SHA: 5661f54c
Git branch: nightly

System Info:

OS: ArcoLinux x86_64
CPU: Intel i5-8250U
GPU: Intel UHD Graphics 620
Desktop: SwayWM

@dan-myles
Copy link

dan-myles commented Apr 27, 2023

When manually switching electron version to "electron": "21.4.2" in the package.json, and building from latest git commit 6.2.7-nighty.7, ferdium will not crash when sharing screen. However screensharing still does not work as no QT menu is popping up to select screen as it does in Chrome, however this is definitely a separate issue.

                 `ooo/                   OS: Arch Linux x86_64
                `+oooo:                  Host: MS-7D08 1.0
               `+oooooo:                 Kernel: 6.2.12-arch1-1
               -+oooooo+:                Uptime: 14 hours, 38 mins
             `/:-:++oooo+:               Packages: 762 (pacman)
            `/++++/+++++++:              Shell: zsh 5.9
           `/++++++++++++++:             Resolution: 2560x1440
          `/+++ooooooooooooo/`           DE: Hyprland
         ./ooosssso++osssssso+`          Theme: Layan-Dark [GTK3]
        .oossssso-````/ossssss+`         Terminal: tmux
       -osssssso.      :ssssssso.        CPU: Intel i9-10900K (20) @ 5.300GHz
      :osssssss/        osssso+++.       GPU: NVIDIA GeForce RTX 3080
     /ossssssss/        +ssssooo/-       Memory: 3231MiB / 31991MiB

@SimonSchwendele
Copy link

Still broken on 6.3.0-nightly-8...
Guess we'll have to wait a long while longer

@vraravam
Copy link
Contributor

no one is working on this atm. so please do not spam for each nightly that this is still not fixed.

@maurerle
Copy link

maurerle commented Jun 7, 2023

Just want to mention that this is not limited to Discord but also crashes in other apps for example MS Teams.
Maybe the title should be changed here.

But of course, this issue still occurs on 6.4.0 (including nightly) using Debian 12 Bookworm with Wayland

Downgrading to v6.2.3 helped for me:
https://github.com/ferdium/ferdium-app/releases/tag/v6.2.3

@AnghelRA
Copy link
Author

I just downloaded v6.4.1-nightly.4 and the issue is fixed, it looks like electron was updated to use xdg-desktop-portal.

@SimonSchwendele
Copy link

I just downloaded v6.4.1-nightly.4 and the issue is fixed, it looks like electron was updated to use xdg-desktop-portal.

Apparently you're right.
For some reason I have to select an application before I can choose to share the whole screen :/

When sharing the whole screen it however freezes after a few seconds and flooding my terminal with:

[22753:0715/151121.000978:ERROR:shared_screencast_stream.cc(940)] Dropping DMA-BUF modifier: 72057594037927935 and trying to renegotiate stream parameters
[22753:0715/151121.012640:ERROR:egl_dmabuf.cc(608)] Failed to record frame: Error creating EGLImage - EGL_NOT_INITIALIZED

But those might be as well gnome/mutter/pipewire errors

@srwi
Copy link
Contributor

srwi commented Sep 2, 2023

This crash will be fixed by upgrading to electron 26.0 as it includes the corresponding fix: electron/electron#39264
According to my understanding this fix is not backported to older versions of electron.

Unfortunately upgrading to 26.0 causes #1317. Currently that issue was solved by downgrading to electron 25.

@mcmxcdev
Copy link
Contributor

mcmxcdev commented Sep 2, 2023

Pretty bad double bind situation, but fixing Ferdium not working at all is more important than the screen sharing bug.

Ideally, we will be able to upgrade to Electron v26 again once all the issues of a new major version are ironed out and have both bugs fixed.

@srwi
Copy link
Contributor

srwi commented Sep 3, 2023

It looks like #1317 is caused by this electron bug: electron/electron#39515

As soon as that is fixed we should be able to upgrade to electron 26 again and in turn get the screen sharing bug fixed.

@392781
Copy link

392781 commented Sep 29, 2023

@srwi @mcmxcdev not only is screensharing broken, Discord doesn't connect to voice at all anymore with latest version of Ferdium. Their webapp works fine but Ferdium hangs on "RTC Connecting..."

@mcmxcdev
Copy link
Contributor

@392781 You can find the solution for the Discord call issue you are having here: #611 (comment)

@392781
Copy link

392781 commented Sep 29, 2023

Thank you @mcmxcdev!

@AnghelRA
Copy link
Author

AnghelRA commented Oct 4, 2023

On ferdium 6.5.1 screen sharing is working for me

@mcmxcdev
Copy link
Contributor

For anyone still encountering issues, there is now a nightly release available using Electron v27: https://github.com/ferdium/ferdium-app/releases/tag/v6.5.3-nightly.3

@mcmxcdev
Copy link
Contributor

This should now also be fixed in the latest stable: https://github.com/ferdium/ferdium-app/releases/tag/v6.6.0

Let me know if this is not the case ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working linux Related to the Linux build
Projects
None yet
Development

No branches or pull requests