NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.27k stars 14.25k forks source link

firefox: discord tab crashes, but not in firefox-bin #332540

Open nydragon opened 3 months ago

nydragon commented 3 months ago

Describe the bug

A clear and concise description of what the bug is.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Open discord in Firefox
  2. Join a voice call, private message or server
  3. Allow microphone access
  4. Have somebody else join
  5. UI does not react to clicks anymore, on hover effects are triggered however, no audio plays, after a while the tab crashes

Expected behavior

Discord to work as normal, as it does in firefox-bin

Screenshots

If applicable, add screenshots to help explain your problem.

image

Additional context

Looked for duplicates with is:issue discord label:"0.kind: bug" crash firefox is:open

Notify maintainers

@lovesegfault @Hexadecimaaal @taku0

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.43, NixOS, 24.11 (Vicuna), 24.11.20240728.52ec9ac`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.5`
 - channels(root): `"nixos-24.05"`
 - nixpkgs: `/nix/store/bcghcr9qwqmanpds017w75mcqda4fgab-source`

Add a :+1: reaction to issues you find important.

tiecia commented 3 months ago

I am experiencing this same issue. I am noticing the crash happens as soon as the other person speaks or in some way provides sound.

nativerv commented 3 months ago

Same, firefox-bin works, firefox crashes the discord tab and logs me out, nixpkgs rev 9a96f23c491c081b38eab96d22fa958043c9fa

k1gen commented 3 months ago

happens for me too. I can provide a backtrace: https://paste.rs/K1870.txt

patka-123 commented 2 months ago

Perhaps my crash is related. When I switch microphone inputs in Google Meet in Firefox my browser tab also crashes.

Is this any useful? https://crash-stats.mozilla.org/report/index/59e48fbb-3b77-469b-a790-f1f6a0240826

voronind-com commented 2 months ago

I have this issue on firefox-esr 128.1.0. There's no bin version for ESR. I created a request for it here https://github.com/NixOS/nixpkgs/issues/339217

sofiedotcafe commented 2 months ago

Happens too for me

voronind-com commented 2 months ago

Hope this gets fixed before 24.11, seems kinda important.

nydragon commented 2 months ago

Hope this gets fixed before 24.11, seems kinda important.

would be great to at least get an acknowledgment of the issue by the maintainers

nixos-discourse commented 1 month ago

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/ungoogled-chromium-bus-error-core-dumped/54117/1

DerRockWolf commented 3 weeks ago

The crash does not happen for me anymore...

Firefox: 131.0.3 nixpkgs: 2768c7d042a37de65bb1b5b3268fc987e534c49d

oxalica commented 3 weeks ago

The crash does not happen for me anymore...

Firefox: 131.0.3 nixpkgs: 2768c7d

I can still reproduce this crash on firefox 131.0.3 and nixpkgs 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0.

Repro:

  1. Click "User settings" iron on left-bottom side.
  2. Click "Voice & Video" on the left menu, and it should get access to your microphone and display the volume at real time in "Input sensitivity". It's working well yet.
  3. Under "MIC TEST" and click "Let's check" (should play the voice back to me), it will immediately trigger a tab crash.

I'm using KDE wayland and pipewire. Sound recording and playing work in other programs (eg. Telegram voice chat). According to the repro, it may be related to audio playback which other programs usually do not?

{
  security.rtkit.enable = true;
  services.pipewire = {
    enable = true;
    alsa.enable = true;
    pulse.enable = true;
  };
}
DerRockWolf commented 3 weeks ago

The crash does not happen for me anymore... Firefox: 131.0.3 nixpkgs: 2768c7d

I can still reproduce this crash on firefox 131.0.3 and nixpkgs 4c2fcb0.

Repro:

1. Click "User settings" iron on left-bottom side.

2. Click "Voice & Video" on the left menu, and it should get access to your microphone and display the volume at real time in "Input sensitivity". It's working well yet.

3. Under "MIC TEST" and click "Let's check" (should play the voice back to me), it will immediately trigger a tab crash.

I'm using KDE wayland and pipewire. Sound recording and playing work in other programs (eg. Telegram voice chat). According to the repro, it may be related to audio playback which other programs usually do not?

{
  security.rtkit.enable = true;
  services.pipewire = {
    enable = true;
    alsa.enable = true;
    pulse.enable = true;
  };
}

Now the tab is crashing. I think I've only tested if others can hear me, but not if I can hear them. Seems to be related to audio playback.

Sorry for the noise :)

DADA30000 commented 3 weeks ago

well it's half fixed for now at least edit: no it's not, for some reason I thought it was working in a call

DragonDev1906 commented 2 weeks ago

I've encountered the same issue with librewolf (131.0.3) on unstable:

 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.58, NixOS, 24.11 (Vicuna), 24.11pre698755.807e9154dcb1`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.9`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Edit: Some additional information in case it helps: Reverting to version 6.6.54 (boot menu) resolves this issue for me. I do not know if this is due to the kernel or other packages (mainly librewolf being on an older version that doesn't have this bug).

DADA30000 commented 1 week ago

@lovesegfault @Hexadecimaaal @taku0

JustScreaMy commented 1 week ago

I have encountered the same issue, whenever discord tries to use microphone, the tab freezes and crashes

Firefox: 132.0.1

https://crash-stats.mozilla.org/report/index/313384cb-a70b-42ed-a831-2a6730241113#tab-details

 - system: `"x86_64-linux"`
 - host os: `Linux 6.11.7, NixOS, 24.11 (Vicuna), 24.11.20241109.76612b1`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.10`
 - nixpkgs: `/nix/store/0sxsfzswhjck7f4sbsvznz285s4i7y64-source`