nukeop / nuclear

Streaming music player that finds free music for you
https://nuclear.js.org/
GNU Affero General Public License v3.0
11.93k stars 1.03k forks source link

crash at startup on ubuntu 20.04 snap version #1656

Open gw3l opened 1 month ago

gw3l commented 1 month ago

Platform: ubuntu 20.04 snap version

Nuclear version: 0.6.31

Description of the issue: The application doesn't launch anymore, when I try to run in a shell I get the following "crashdump":

snap run nuclear
    main › (node:10287) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `nuclear --trace-deprecation ...` to show where the warning was created)
A JavaScript error occurred in the main process
Uncaught Exception:
Error: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /tmp/.org.chromium.Chromium.v4LrS4)
    at process.func [as dlopen] (electron/js2c/asar_bundle.js:5:1846)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:1138:18)
    at Object.func [as .node] (electron/js2c/asar_bundle.js:5:2073)
    at Module.load (internal/modules/cjs/loader.js:935:32)
    at Module._load (internal/modules/cjs/loader.js:776:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
    at Module.require (internal/modules/cjs/loader.js:959:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.@nuclear/scanner (/snap/nuclear/67/resources/app.asar/dist/main.js:4:9737553)
    at __webpack_require__ (/snap/nuclear/67/resources/app.asar/dist/main.js:1939:2675670)
    at Object../src/controllers/local-library.ts (/snap/nuclear/67/resources/app.asar/dist/main.js:4:9638351)
    at __webpack_require__ (/snap/nuclear/67/resources/app.asar/dist/main.js:1939:2675670)
    at Object../src/ioc.ts (/snap/nuclear/67/resources/app.asar/dist/main.js:4:9652658)
    at __webpack_require__ (/snap/nuclear/67/resources/app.asar/dist/main.js:1939:2675670)
    at Object../src/main.ts (/snap/nuclear/67/resources/app.asar/dist/main.js:4:9654748)
    at __webpack_require__ (/snap/nuclear/67/resources/app.asar/dist/main.js:1939:2675670)
    at /snap/nuclear/67/resources/app.asar/dist/main.js:1939:2677642
    at Object.<anonymous> (/snap/nuclear/67/resources/app.asar/dist/main.js:1939:2677702)
    at Module._compile (internal/modules/cjs/loader.js:1078:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10)
    at Module.load (internal/modules/cjs/loader.js:935:32)
    at Module._load (internal/modules/cjs/loader.js:776:14)
libGL error: MESA-LOADER: failed to open iris (search paths /snap/nuclear/67/gnome-platform/usr/lib/x86_64-linux-gnu/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open iris (search paths /snap/nuclear/67/gnome-platform/usr/lib/x86_64-linux-gnu/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast (search paths /snap/nuclear/67/gnome-platform/usr/lib/x86_64-linux-gnu/dri)
libGL error: failed to load driver: swrast 

Is this because of a wrong libc version in the electron/chromium executable ? Thanks a lot !

nukeop commented 1 month ago

Thanks for reporting this, somebody on Discord reported the same error using the .deb package and Appimage on Debian. Not sure yet what's causing this. I'll try to change ffmpeg packaging in the next release to see if it changes anything.

soumyadipbarman commented 1 month ago

I am also having the same issue. I tried installing it using a tar file, but the issue persists.

Is it entirely related to GLIBC ?? I checked that the version I have in my system is 2.31

ldd (Ubuntu GLIBC 2.31-0ubuntu9.16) 2.31
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.