BloodHoundAD / BloodHound

Six Degrees of Domain Admin
GNU General Public License v3.0
9.57k stars 1.7k forks source link

White Screen on NixOS with BloodHound 4.3.1 (Electron 11.5.0) #717

Closed Mag1cByt3s closed 1 month ago

Mag1cByt3s commented 1 month ago

Describe the bug I am getting a white screen when launching BloodHound 4.3.1 (Electron 11.5.0) on NixOS using an Intel GPU. Bloodhound 4.3.1 (Electron 11.5.0) works on the same hardware on Arch and Kali Linux.

To Reproduce Steps to reproduce the behavior:

  1. Open Bloodhound
  2. Get a white screen

Expected behavior Bloodhound should open and display the login or automatically login when autologin is enabled in the config.

Screenshots

Additional context Add any other context about the problem here. If this bug is in the UI, open the console using Ctrl + Shift + I and see if there's any errors to attach here.

I tried to run BloodHound it like so:

 /nix/store/5v7n1hgzgl5sdj0357z6vkyc334241rv-bloodhound-4.3.1/lib/BloodHound/BloodHound ${NIXOS_OZONE_WL:+${WAYLAND_DISPLAY:+--ozone-platform-hint=auto+--enable-features=WaylandWindowDecorations}}
(node:9759) electron: The default of contextIsolation is deprecated and will be changing from false to true in a future release of Electron.  See https://github.com/electron/electron/issues/23506 for more information
[9759:0608/120749.666536:FATAL:gpu_data_manager_impl_private.cc(445)] GPU process isn't usable. Goodbye.
[1]    9759 trace trap

I also tried --no-sandbox --disable-gpu-sandbox but I get the same errors.

I also tried to run it like so:

/nix/store/5v7n1hgzgl5sdj0357z6vkyc334241rv-bloodhound-4.3.1/lib/BloodHound/BloodHound ${NIXOS_OZONE_WL:+${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --no-sandbox --disable-gpu-sandbox --in-process-gpu}}
(node:5776) electron: The default of contextIsolation is deprecated and will be changing from false to true in a future release of Electron.  See https://github.com/electron/electron/issues/23506 for more information
[5776:0608/114338.989975:FATAL:gpu_data_manager_impl_private.cc(445)] GPU process isn't usable. Goodbye.
[1]    5776 trace trap

The same error occurs.

In the browser developer console I saw this error:

bundle.js:69 Uncaught Error: EROFS: read-only file system, open '/nix/store/5d3b6y4rnfgcw2xmnlr0mkaqd3dnzaxr-hm_.configbloodhoundconfig.json.19215553'
    at Object.openSync (fs.js:466)
    at Object.func [as openSync] (electron/js2c/asar_bundle.js:5)
    at Function.e.exports.sync (bundle.js:69)
    at e.exports.set store [as store] (bundle.js:69)
    at new h (bundle.js:69)
    at new e.exports (bundle.js:25)
    at Module.<anonymous> (bundle.js:85)
    at n (bundle.js:1)
    at Object.<anonymous> (bundle.js:37)
    at n (bundle.js:1)

Other people do not seem to experience this issue.