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

The browser has stopped opening. #14

Closed
machadofguilherme opened this issue Dec 24, 2024 · 28 comments
Closed

The browser has stopped opening. #14

machadofguilherme opened this issue Dec 24, 2024 · 28 comments

Comments

@machadofguilherme
Copy link

Plasma 6 with Wayland.
NixOS Unstable.

If you need some kind of log, I'll put it here.

@Icy-Thought
Copy link

Icy-Thought commented Dec 24, 2024

I am also using NixOS Unstable with the latest version of this browser and it is working just fine.

@machadofguilherme
Copy link
Author

@Icy-Thought Is that working well for you?

zen
Exiting due to channel error.
Crash Annotation GraphicsCriticalError: |[C0][GFX1-]: CompositorBridgeChild receives IPC close with reason=AbnormalShutdown (t=1.92195) fish: Tarefa 1, 'zen' encerrada pelo sinal SIGSEGV (Erro de fronteira de endereço (Falha de segmentação))

@Icy-Thought
Copy link

I am not getting that error at all though. Even if I launch the browser from the terminal.

1.0.2-b.4 (Firefox 133.0.3) (64-bit)

@Icy-Thought
Copy link

Icy-Thought commented Dec 24, 2024

Have you tried creating a new profile? Just move the browser files to a backup location and try opening it anew.

@machadofguilherme
Copy link
Author

Apparently that didn’t work either. Thank you for your suggestion.

@machadofguilherme
Copy link
Author

Anyone more willing to help me? Unfortunately the browser still does not open on both Xorg and Wayland. I do not know if the problem is related, however it started after I updated to the latest version. Even returning a version of the back, the browser still does not open.

@luisnquin
Copy link
Member

Hey @machadofguilherme, check out if this flake is working for you:

https://github.com/fufexan/zen-browser-flake

@machadofguilherme
Copy link
Author

@luisnquin
Unfortunately, the issue persists. Observe the output:
image

The content of my flake:

{
  description = "Flake que carrega configuration.nix para NixOS";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
    zen-browser.url = "github:fufexan/zen-browser-flake";
  };

  outputs = { self, nixpkgs, zen-browser, ... }: 
    let
      system = "x86_64-linux";
    in {
      nixosConfigurations = {
        hostname = nixpkgs.lib.nixosSystem {
          system = system;

          modules = [
            ./configuration.nix
            {
              config._module.args = {
                zen-browser = zen-browser;
                system = system;
              };
            }
          ];
        };
      };
    };
}

The file structure in /etc/nixos:

tree /etc/nixos
/etc/nixos
├── configuration.nix
├── flake.lock
├── flake.nix
├── hardware-configuration.nix
└── modules
    ├── boot
    │   └── default.nix
    ├── desktop
    │   ├── default.nix
    │   ├── drivers.nix
    │   ├── exclude-gnome.nix
    │   ├── gnome.nix
    │   └── server.nix
    ├── lang
    │   ├── default.nix
    │   ├── locale.nix
    │   └── timezone.nix
    ├── misc
    │   ├── config.nix
    │   ├── default.nix
    │   └── dev.nix
    ├── network
    │   ├── default.nix
    │   ├── dns.nix
    │   └── net.nix
    ├── security
    │   ├── default.nix
    │   ├── nix.nix
    │   └── sudo.nix
    ├── services
    │   ├── audio.nix
    │   ├── default.nix
    │   ├── print.nix
    │   ├── shell.nix
    │   ├── touchpad.nix
    │   └── virtual.nix
    └── system
        ├── default.nix
        ├── fonts.nix
        ├── packages.nix
        └── user.nix

The packages.nix file:

{ config, pkgs, ... }: {
  # Aplicações
  environment.systemPackages = with pkgs; [
    (config._module.args.zen-browser.packages.${config._module.args.system}.default)
    gnome-text-editor
    keychain
    openssl
    ptyxis
    loupe
  ];
}

Is there something wrong with my configuration?

@luisnquin
Copy link
Member

luisnquin commented Dec 25, 2024

I don't think so, you can discard that by running the following command:

$ nix run github:0xc000022070/zen-browser-flake

Did you ever had the browser running without crashing in your computer? Consider that this browser is still considered unstable and it just took away from alpha to beta a few weeks ago.

@machadofguilherme
Copy link
Author

Yeah, it worked perfectly until a few weeks ago. So I updated the system and the browser stopped working. I tried to go back to the previous version, but even returning the previous version the problem continued. I'll run your command line.

@machadofguilherme
Copy link
Author

machadofguilherme commented Dec 25, 2024

@luisnquin
The output of the command:

nix run github:0xc000022070/zen-browser-flake
Exiting due to channel error.
Crash Annotation GraphicsCriticalError: |[C0][GFX1-]: CompositorBridgeChild receives IPC close with reason=AbnormalShutdown (t=3.29432) Exiting due to channel error.
Crash Annotation GraphicsCriticalError: |[C0][GFX1-]: CompositorBridgeChild receives IPC close with reason=AbnormalShutdown (t=3.6055) fish: Tarefa 1, 'nix run github:0xc000022070/zen…' encerrada pelo sinal SIGSEGV (Erro de fronteira de endereço (Falha de segmentação))

@luisnquin
Copy link
Member

luisnquin commented Dec 25, 2024

Hmm let's try with other commit.

nix run 'github:0xc000022070/zen-browser-flake?ref=7ea856ec3fb1dc50dd6fc9c9cb9d46b46691fda7'

If that doesn't work unfortunately I won't be able to help you with this for now because I'm limited in resources until the next month.

@machadofguilherme
Copy link
Author

Same thing. I honestly thought it would work out, but the result was exactly the same.
I will be rooting for you.

@deftdawg
Copy link

Same error happens for me, I get a segfault... I was able to reproduce @machadofguilherme's error when running (had to remove the single quotes)

nix run github:0xc000022070/zen-browser-flake?ref=7ea856ec3fb1dc50dd6fc9c9cb9d46b46691fda7

However I could run it with

MOZ_ENABLE_WAYLAND=0 nix run --impure github:0xc000022070/zen-browser-flake?ref=7ea856ec3fb1dc50dd6fc9c9cb9d46b46691fda7

So I'm using the lastest like this for now:

MOZ_ENABLE_WAYLAND=0 zen

@machadofguilherme
Copy link
Author

I tried your method. Is this black screen when starting up normal?
image

After waiting for a while, it opened normally.
image

However, you need to keep the terminal open.

@deftdawg
Copy link

deftdawg commented Dec 28, 2024

Yup same thing happens for me, it looks like video acceleration is buggy/broken on my SteamDeck AMD APU; I don't have the issue on my Desktop/RX6900... I'm still inclined to believe it's AMD's fault, unless you have a different GPU type.

@machadofguilherme
Copy link
Author

Yes, this is an AMD integrated card. If this is the case, this should occur on any device with this characteristic, considering that my machine is a notebook.

@Irgendeinwer
Copy link

Irgendeinwer commented Dec 28, 2024

I have the same issue:

➜  ~ nix run github:0xc000022070/zen-browser-flake
Exiting due to channel error.
Crash Annotation GraphicsCriticalError: |[C0][GFX1-]: CompositorBridgeChild receives IPC close with reason=AbnormalShutdown (t=1.04513) [1]    59132 segmentation fault (core dumped)  nix run github:0xc000022070/zen-browser-flake

I'm on NixOS 25.05.20241227.634fd46 (Warbler) x86_64

  • GPU: AMD RX 6600

When running zen in safe mode:

➜  ~ zen --safe-mode
Crash Annotation GraphicsCriticalError: |[0][GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt (t=6.23533) [GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
[Parent 59389, Main Thread] WARNING: failed to duplicate file descriptor: Bad file descriptor: file /home/runner/work/desktop/desktop/engine/ipc/glue/SharedMemory_posix.cpp:56
[Parent 59389, Main Thread] WARNING: failed to duplicate file descriptor: Bad file descriptor: file /home/runner/work/desktop/desktop/engine/ipc/glue/SharedMemory_posix.cpp:56
[Parent 59389, Main Thread] WARNING: failed to duplicate file descriptor: Bad file descriptor: file /home/runner/work/desktop/desktop/engine/ipc/glue/SharedMemory_posix.cpp:56
[Parent 59389, Main Thread] WARNING: failed to duplicate file descriptor: Bad file descriptor: file /home/runner/work/desktop/desktop/engine/ipc/glue/SharedMemory_posix.cpp:56
[Parent 59389, Main Thread] WARNING: failed to duplicate file descriptor: Bad file descriptor: file /home/runner/work/desktop/desktop/engine/ipc/glue/SharedMemory_posix.cpp:56
[Parent 59389, Main Thread] WARNING: failed to duplicate file descriptor: Bad file descriptor: file /home/runner/work/desktop/desktop/engine/ipc/glue/SharedMemory_posix.cpp:56
[Parent 59389, Main Thread] WARNING: failed to duplicate file descriptor: Bad file descriptor: file /home/runner/work/desktop/desktop/engine/ipc/glue/SharedMemory_posix.cpp:56

Setting MOZ_ENABLE_WAYLAND to 0 make zen launch normally (of course with very poor performance).

@hugocornago
Copy link

I'm facing the same issue as @Irgendeinwer, with an AMD RX5700XT after updating my flakes.

@luisnquin
Copy link
Member

luisnquin commented Dec 28, 2024

I'm not sure I can help a lot in this, I don't have that specific hardware, I can't find any bug report like this in the zen repository so maybe we're lacking some packages.

@machadofguilherme
Copy link
Author

@luisnquin
I created an issue there and let's see what happens next.
zen-browser/desktop#4031

@BlueFox1616
Copy link
Contributor

i also have the same problem only this worked MOZ_ENABLE_WAYLAND=0 zen

@deftdawg
Copy link

This is a most certainly nix AMD/RoCM update related issue.

It will apply to you if you both:

  1. have an AMD GPU/APU
  2. track nix-unstable (I don't know if stable gets backports, if not it should be unaffected)

I recently updated my Desktop that previously worked to the latest unstable and it broke just like my deck, I booted back 15 generations to my last Dec 23 build and the browser 1.0.2b-5 opens no problem with full acceleration.

@machadofguilherme I would recommend you close zen-browser/desktop#4031 and instead track the resolution of NixOS/nixpkgs#368672... There was breakage caused by either the bump from GCC13 -> GCC14 or some amd libs.

You may or may not want to leave this open until that's resolved to catch people with the same issue.

@machadofguilherme
Copy link
Author

After updating the system. I tried to open Zen and it opened normally. Quick and without errors.
I don't know what happened, but I believe it should be some component. Some package or dependency that was directly affecting the browser on AMD video cards.

How's it for you?
image

@BlueFox1616
Copy link
Contributor

it got fixed for me too

@mauro-balades
Copy link

Do you guys need anything from me?

@BlueFox1616
Copy link
Contributor

Nope it was fixed . It was an issue with a dependency @mr-cheff

@BlueFox1616
Copy link
Contributor

Someone close this issue it is no longer a problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants