NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
16.77k stars 13.18k forks source link

FreeTube Not Playing Audio On Pop!_OS 22.04 #208149

Open czhang03 opened 1 year ago

czhang03 commented 1 year ago

Issue description

FreeTube App is not playing audio when installed with nix, but plays just fine when installed from flatpak via pop shop.

I don't know if this is related to https://github.com/NixOS/nixpkgs/issues/158474

here is the terminal output I get from nix version when playing a video:

Gtk-Message: 17:02:59.230: Failed to load module "appmenu-gtk-module"
Gtk-Message: 17:02:59.271: Failed to load module "canberra-gtk-module"
Gtk-Message: 17:02:59.271: Failed to load module "canberra-gtk-module"
[74813:1228/170259.292121:ERROR:angle_platform_impl.cc(43)] Display.cpp:1004 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
ERR: Display.cpp:1004 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
[74813:1228/170259.292184:ERROR:gl_display.cc(508)] EGL Driver message (Critical) eglInitialize: glXQueryExtensionsString returned NULL
[74813:1228/170259.292202:ERROR:gl_display.cc(920)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[74813:1228/170259.292300:ERROR:angle_platform_impl.cc(43)] Display.cpp:1004 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
ERR: Display.cpp:1004 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
[74813:1228/170259.292328:ERROR:gl_display.cc(508)] EGL Driver message (Critical) eglInitialize: glXQueryExtensionsString returned NULL
[74813:1228/170259.292348:ERROR:gl_display.cc(920)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[74813:1228/170259.292365:ERROR:gl_ozone_egl.cc(23)] GLDisplayEGL::Initialize failed.
[74813:1228/170259.293164:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[74820:1228/170259.301196:ERROR:angle_platform_impl.cc(43)] Display.cpp:1004 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
ERR: Display.cpp:1004 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
[74820:1228/170259.301253:ERROR:gl_display.cc(508)] EGL Driver message (Critical) eglInitialize: glXQueryExtensionsString returned NULL
[74820:1228/170259.301273:ERROR:gl_display.cc(920)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[74820:1228/170259.301370:ERROR:angle_platform_impl.cc(43)] Display.cpp:1004 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
ERR: Display.cpp:1004 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
[74820:1228/170259.301395:ERROR:gl_display.cc(508)] EGL Driver message (Critical) eglInitialize: glXQueryExtensionsString returned NULL
[74820:1228/170259.301414:ERROR:gl_display.cc(920)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[74820:1228/170259.301443:ERROR:gl_ozone_egl.cc(23)] GLDisplayEGL::Initialize failed.
[74820:1228/170259.302242:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
TypeError: Cannot destructure property 'value' of 'object null' as it is null.
    at /nix/store/442fh1agim8j1r5kanlnjnbcr3g122xj-freetube-0.18.0/share/freetube/resources/app.asar/dist/main.js:2:240841
    at async _ (/nix/store/442fh1agim8j1r5kanlnjnbcr3g122xj-freetube-0.18.0/share/freetube/resources/app.asar/dist/main.js:2:240797)
    at async App.<anonymous> (/nix/store/442fh1agim8j1r5kanlnjnbcr3g122xj-freetube-0.18.0/share/freetube/resources/app.asar/dist/main.js:2:247098)
(node:74776) UnhandledPromiseRejectionWarning: Error: Cannot create a secure cookie from an insecure URL
(Use `electron --trace-warnings ...` to show where the warning was created)
(node:74776) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:74776) UnhandledPromiseRejectionWarning: Error: Cannot create a secure cookie from an insecure URL
(node:74776) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)

Steps to reproduce

Install nix via default config, install freetube via "nix-env -iA nixpkgs.freetube", then play any video on freetube, there is no audio.

Technical details

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

this path will be fetched (0.00 MiB download, 0.00 MiB unpacked):
  /nix/store/szznid54xdgn4idxym2dsg166swah5dc-nix-info
copying path '/nix/store/szznid54xdgn4idxym2dsg166swah5dc-nix-info' from 'https://cache.nixos.org'...
 - system: `"x86_64-linux"`
 - host os: `Linux 6.0.12-76060006-generic, Pop!_OS, 22.04 LTS, nobuild`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.12.0`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
oldlamps commented 1 year ago

I'm having this same issue on a fresh install of FreeTube. The fix related to https://github.com/NixOS/nixpkgs/issues/158474 does not appear to have gone through for non-NixOS users, possibly?

tomodachi94 commented 2 months ago

Pinging maintainers @ryneeverett and @alyaeanyx :)