[Bug]: Always crashes on ARM 64 after a short time. #3321

Open
opened 2025-05-03 14:37:12 +00:00 by yuckdevchan · 10 comments
yuckdevchan commented 2025-05-03 14:37:12 +00:00 (Migrated from github.com)

Preflight Checklist

  • I use the latest version of YouTube Music (Application).
  • I have searched the issue tracker for a bug report that matches the one I want to file, without success.
  • I understand that th-ch/youtube-music has NO affiliation with Google or YouTube

YouTube Music (Application) Version

3.9.0

Checklists

What operating system are you using?

Other Linux

Operating System Version

Fedora Linux Asahi Remix 41 (Workstation Edition) aarch64

What CPU architecture are you using?

arm64 (including Apple Silicon)

Last Known Working YouTube Music (Application) version

No response

Reproduction steps

  1. Install youtube-music 3.9.0 from the RPM file
  2. Launch YouTube Music
  3. Wait for ~30 seconds
    App Crashes.

Expected Behavior

No crashing.

Actual Behavior

Crashing.

Enabled plugins

None; still crashes with all plugins disabled.

Additional Information

Log

$ youtube-music
Checking for beta autoupdate feature for deb/rpm distributions
Found package-type: rpm
[YTMusic] i18n loaded
[YTMusic] Loading all plugins
[YTMusic] Plugin in-app-menu::backend executed at 0.15ms
[YTMusic] Plugin lyrics-genius::backend executed at 0.35ms
[YTMusic] Plugin adblocker::backend executed at 0.25ms
[YTMusic] Plugin "lyrics-genius::menu" loaded
[YTMusic] Plugin "in-app-menu::menu" loaded
[YTMusic] Plugin "equalizer::menu" loaded
[YTMusic] Plugin "ambient-mode::menu" loaded
[YTMusic] Plugin "album-color-theme::menu" loaded
[YTMusic] Plugin "adblocker::menu" loaded
[YTMusic] Plugin "lyrics-genius::menu" loaded
[YTMusic] Plugin "in-app-menu::menu" loaded
[YTMusic] Plugin "equalizer::menu" loaded
[YTMusic] Plugin "ambient-mode::menu" loaded
[YTMusic] Plugin "album-color-theme::menu" loaded
[YTMusic] Plugin "adblocker::menu" loaded
[9370:0503/142444.691442:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: No such file or directory (2)
[9370:0503/142444.691515:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: No such file or directory (2)
[9370:0503/142444.691534:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: No such file or directory (2)
[9370:0503/142444.691550:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: No such file or directory (2)
[9370:0503/142444.691565:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: No such file or directory (2)
[9370:0503/142444.691579:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: No such file or directory (2)
[9370:0503/142444.691593:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: No such file or directory (2)
[9370:0503/142444.691606:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: No such file or directory (2)
[9370:0503/142444.691619:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: No such file or directory (2)
[9370:0503/142444.691632:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: No such file or directory (2)
[9370:0503/142444.691645:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: No such file or directory (2)
[9370:0503/142444.691659:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: No such file or directory (2)
[9370:0503/142444.691672:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: No such file or directory (2)
[9370:0503/142444.691685:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: No such file or directory (2)
[9370:0503/142444.691698:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: No such file or directory (2)
[9370:0503/142444.691710:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: No such file or directory (2)
[9370:0503/142444.692068:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: No such file or directory (2)
[9370:0503/142444.692084:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: No such file or directory (2)
[9370:0503/142444.692098:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: No such file or directory (2)
[9370:0503/142444.692110:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: No such file or directory (2)
[9370:0503/142444.692124:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: No such file or directory (2)
[9370:0503/142444.692136:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: No such file or directory (2)
[9370:0503/142444.692149:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: No such file or directory (2)
[9370:0503/142444.692161:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: No such file or directory (2)
[9370:0503/142444.692175:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: No such file or directory (2)
[9370:0503/142444.692187:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: No such file or directory (2)
[9370:0503/142444.692200:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: No such file or directory (2)
[9370:0503/142444.692212:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: No such file or directory (2)
[9370:0503/142444.692224:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: No such file or directory (2)
[9370:0503/142444.692237:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: No such file or directory (2)
[9370:0503/142444.692250:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: No such file or directory (2)
[9370:0503/142444.692262:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: No such file or directory (2)
Checking for update
Update for version 3.9.0 is not available (latest version: 3.9.0, downgrade is disallowed).
checkForUpdatesAndNotify called, downloadPromise is null
[9370:0503/142451.428740:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[9370:0503/142456.477747:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[9370:0503/142457.536962:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!
[YTMusic] Unresponsive Error!
{
"reason": "crashed",
"exitCode": 133
}
[9333:0503/142523.810471:ERROR:browser_main_loop.cc(278)] GLib-GObject: ../gobject/gsignal.c:2684: instance '0x2c040cecc0' has no handler with id '4201'
Error sending from webFrameMain: Error: Render frame was disposed before WebFrameMain could be accessed
at WebFrameMain.s.send (node:electron/js2c/browser_init:2:93094)
at WebContents._.send (node:electron/js2c/browser_init:2:76130)
at send (/opt/YouTube Music/resources/app.asar/dist/main/index.js:1353:25976)
at BrowserWindow. (/opt/YouTube Music/resources/app.asar/dist/main/index.js:640:6697)
at BrowserWindow.emit (node:events:536:35)

### Preflight Checklist - [x] I use the latest version of YouTube Music (Application). - [x] I have searched the [issue tracker](https://github.com/th-ch/youtube-music/issues) for a bug report that matches the one I want to file, without success. - [x] I understand that **th-ch/youtube-music has NO affiliation with Google or YouTube** ### YouTube Music (Application) Version 3.9.0 ### Checklists - [ ] I use the portable version of the YouTube Music Application. - [ ] I can reproduce this issue in the [official version of (WEB) YTM](https://music.youtube.com). ### What operating system are you using? Other Linux ### Operating System Version Fedora Linux Asahi Remix 41 (Workstation Edition) aarch64 ### What CPU architecture are you using? arm64 (including Apple Silicon) ### Last Known Working YouTube Music (Application) version _No response_ ### Reproduction steps 1. Install youtube-music 3.9.0 from the RPM file 2. Launch YouTube Music 3. Wait for ~30 seconds App Crashes. ### Expected Behavior No crashing. ### Actual Behavior Crashing. ### Enabled plugins None; still crashes with all plugins disabled. ### Additional Information <details> <summary>Log</summary> $ youtube-music Checking for beta autoupdate feature for deb/rpm distributions Found package-type: rpm [YTMusic] i18n loaded [YTMusic] Loading all plugins [YTMusic] Plugin in-app-menu::backend executed at 0.15ms [YTMusic] Plugin lyrics-genius::backend executed at 0.35ms [YTMusic] Plugin adblocker::backend executed at 0.25ms [YTMusic] Plugin "lyrics-genius::menu" loaded [YTMusic] Plugin "in-app-menu::menu" loaded [YTMusic] Plugin "equalizer::menu" loaded [YTMusic] Plugin "ambient-mode::menu" loaded [YTMusic] Plugin "album-color-theme::menu" loaded [YTMusic] Plugin "adblocker::menu" loaded [YTMusic] Plugin "lyrics-genius::menu" loaded [YTMusic] Plugin "in-app-menu::menu" loaded [YTMusic] Plugin "equalizer::menu" loaded [YTMusic] Plugin "ambient-mode::menu" loaded [YTMusic] Plugin "album-color-theme::menu" loaded [YTMusic] Plugin "adblocker::menu" loaded [9370:0503/142444.691442:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: No such file or directory (2) [9370:0503/142444.691515:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: No such file or directory (2) [9370:0503/142444.691534:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: No such file or directory (2) [9370:0503/142444.691550:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: No such file or directory (2) [9370:0503/142444.691565:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: No such file or directory (2) [9370:0503/142444.691579:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: No such file or directory (2) [9370:0503/142444.691593:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: No such file or directory (2) [9370:0503/142444.691606:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: No such file or directory (2) [9370:0503/142444.691619:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: No such file or directory (2) [9370:0503/142444.691632:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: No such file or directory (2) [9370:0503/142444.691645:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: No such file or directory (2) [9370:0503/142444.691659:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: No such file or directory (2) [9370:0503/142444.691672:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: No such file or directory (2) [9370:0503/142444.691685:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: No such file or directory (2) [9370:0503/142444.691698:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: No such file or directory (2) [9370:0503/142444.691710:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: No such file or directory (2) [9370:0503/142444.692068:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: No such file or directory (2) [9370:0503/142444.692084:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: No such file or directory (2) [9370:0503/142444.692098:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: No such file or directory (2) [9370:0503/142444.692110:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: No such file or directory (2) [9370:0503/142444.692124:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: No such file or directory (2) [9370:0503/142444.692136:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: No such file or directory (2) [9370:0503/142444.692149:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: No such file or directory (2) [9370:0503/142444.692161:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: No such file or directory (2) [9370:0503/142444.692175:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: No such file or directory (2) [9370:0503/142444.692187:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: No such file or directory (2) [9370:0503/142444.692200:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: No such file or directory (2) [9370:0503/142444.692212:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: No such file or directory (2) [9370:0503/142444.692224:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: No such file or directory (2) [9370:0503/142444.692237:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: No such file or directory (2) [9370:0503/142444.692250:ERROR:gbm_wrapper.cc(79)] Failed to get fd for plane.: No such file or directory (2) [9370:0503/142444.692262:ERROR:gbm_wrapper.cc(262)] Failed to export buffer to dma_buf: No such file or directory (2) Checking for update Update for version 3.9.0 is not available (latest version: 3.9.0, downgrade is disallowed). checkForUpdatesAndNotify called, downloadPromise is null [9370:0503/142451.428740:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times! [9370:0503/142456.477747:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times! [9370:0503/142457.536962:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times! [YTMusic] Unresponsive Error! { "reason": "crashed", "exitCode": 133 } [9333:0503/142523.810471:ERROR:browser_main_loop.cc(278)] GLib-GObject: ../gobject/gsignal.c:2684: instance '0x2c040cecc0' has no handler with id '4201' Error sending from webFrameMain: Error: Render frame was disposed before WebFrameMain could be accessed at WebFrameMain.s.send (node:electron/js2c/browser_init:2:93094) at WebContents._.send (node:electron/js2c/browser_init:2:76130) at send (/opt/YouTube Music/resources/app.asar/dist/main/index.js:1353:25976) at BrowserWindow.<anonymous> (/opt/YouTube Music/resources/app.asar/dist/main/index.js:640:6697) at BrowserWindow.emit (node:events:536:35) </details>
Owner

That's 100% an electron/chromium issue, and since you are on experimental GPU drivers, it's probably related to that.
Which sucks, because we can only fix it if electron has a fix for it.

Unless...it's caused by an electron function used improperly?
Could you run the app in dev mode? That way the stack trace should point to the correct line of the TypeScript source.
Might be an issue we can fix after all.

https://github.com/th-ch/youtube-music#dev

That's 100% an electron/chromium issue, and since you are on experimental GPU drivers, it's probably related to that. ~~Which sucks, because we can only fix it if electron has a fix for it.~~ Unless...it's caused by an electron function used improperly? Could you run the app in dev mode? That way the stack trace *should* point to the correct line of the TypeScript source. Might be an issue we can fix after all. https://github.com/th-ch/youtube-music#dev
yuckdevchan commented 2025-05-03 22:37:41 +00:00 (Migrated from github.com)

I can't seem to build the dev version. I ran the commands listed in the README and tried with dedupePeerDependents explicitly set to true and with --config.max_old_space=4096, however it still yielded the same build error. See build log for details.

Build Log $ pnpm dev

> youtube-music@3.9.0 dev /home/ethan/youtube-music
> cross-env NODE_OPTIONS=--enable-source-maps electron-vite dev --watch

(node:20304) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
vite v6.3.3 building SSR bundle for development...

watching for file changes...

build started...
✓ 3395 modules transformed.
Inspect report generated at /home/ethan/youtube-music/.vite-inspect/backend
node_modules/.pnpm/file-type@16.5.4/node_modules/file-type/core.js (1419:16): Use of eval in "node_modules/.pnpm/file-type@16.5.4/node_modules/file-type/core.js" is strongly discouraged as it poses security risks and may cause issues with minification.
rendering chunks (2)...
<--- Last few GCs --->

[20304:0xffff40820000] 17391 ms: Mark-Compact (reduce) 2038.3 (2086.6) -> 2038.0 (2085.1) MB, pooled: 0 MB, 304.06 / 0.00 ms (+ 0.0 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 307 ms) (average mu = 0.297,

<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

1: 0xffff466f74ac node::OOMErrorHandler(char const*, v8::OOMDetails const&) [/lib64/libnode.so.127]
2: 0xffff481d0bd0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/lib64/libnode.so.127]
3: 0xffff481d0db0 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/lib64/libnode.so.127]
4: 0xffff484225a4 [/lib64/libnode.so.127]
5: 0xffff4843ba50 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/lib64/libnode.so.127]
6: 0xffff48412ca4 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/lib64/libnode.so.127]
7: 0xffff48413874 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/lib64/libnode.so.127]
8: 0xffff483f0cf0 v8::internal::Factory::NewFillerObject(int, v8::internal::AllocationAlignment, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/lib64/libnode.so.127]
9: 0xffff488bb664 v8::internal::Runtime_AllocateInOldGeneration(int, unsigned long*, v8::internal::Isolate*) [/lib64/libnode.so.127]
10: 0xffff480799d4 [/lib64/libnode.so.127]
 ELIFECYCLE  Command failed with exit code 1.
FAIL

I can't seem to build the dev version. I ran the commands listed in the README and tried with `dedupePeerDependents` explicitly set to `true` and with `--config.max_old_space=4096`, however it still yielded the same build error. See build log for details. <details> <summary>Build Log</summary> $ pnpm dev \> youtube-music@3.9.0 dev /home/ethan/youtube-music \> cross-env NODE_OPTIONS=--enable-source-maps electron-vite dev --watch (node:20304) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time (Use \`node --trace-warnings ...\` to show where the warning was created) vite v6.3.3 building SSR bundle for development... watching for file changes... build started... ✓ 3395 modules transformed. Inspect report generated at /home/ethan/youtube-music/.vite-inspect/backend node_modules/.pnpm/file-type@16.5.4/node_modules/file-type/core.js (1419:16): Use of eval in "node_modules/.pnpm/file-type@16.5.4/node_modules/file-type/core.js" is strongly discouraged as it poses security risks and may cause issues with minification. rendering chunks (2)... <--- Last few GCs ---> [20304:0xffff40820000] 17391 ms: Mark-Compact (reduce) 2038.3 (2086.6) -> 2038.0 (2085.1) MB, pooled: 0 MB, 304.06 / 0.00 ms (+ 0.0 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 307 ms) (average mu = 0.297, <--- JS stacktrace ---> FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory ----- Native stack trace ----- 1: 0xffff466f74ac node::OOMErrorHandler(char const*, v8::OOMDetails const&) [/lib64/libnode.so.127] 2: 0xffff481d0bd0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/lib64/libnode.so.127] 3: 0xffff481d0db0 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/lib64/libnode.so.127] 4: 0xffff484225a4 [/lib64/libnode.so.127] 5: 0xffff4843ba50 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/lib64/libnode.so.127] 6: 0xffff48412ca4 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/lib64/libnode.so.127] 7: 0xffff48413874 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/lib64/libnode.so.127] 8: 0xffff483f0cf0 v8::internal::Factory::NewFillerObject(int, v8::internal::AllocationAlignment, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/lib64/libnode.so.127] 9: 0xffff488bb664 v8::internal::Runtime_AllocateInOldGeneration(int, unsigned long*, v8::internal::Isolate*) [/lib64/libnode.so.127] 10: 0xffff480799d4 [/lib64/libnode.so.127]  ELIFECYCLE  Command failed with exit code 1. FAIL </details>
Owner

huh

huh
yuckdevchan commented 2025-05-04 17:37:21 +00:00 (Migrated from github.com)

Not sure why that happens. Just can't build it on my machine.

Could you send my the rpm aarch64 dev build?

Not sure why that happens. Just can't build it on my machine. Could you send my the rpm aarch64 dev build?
Owner

Sure I'll try.
oof, can't cross-build, lemme set up a docker image, will take a bit

~~Sure I'll try.~~ oof, can't cross-build, lemme set up a docker image, will take a bit
Owner

After one hour of pain, I finally wrote this Dockerfile

# syntax=docker/dockerfile:1.7-labs
ARG DEBIAN_FRONTEND=noninteractive

FROM arm64v8/ubuntu:jammy AS node
ARG DEBIAN_FRONTEND

WORKDIR /tmp
RUN apt update && apt install wget -y && \
    wget https://nodejs.org/dist/v20.12.2/node-v20.12.2-linux-arm64.tar.gz && \
    tar -xf "node-v20.12.2-linux-arm64.tar.gz" && \
    cp -r "/tmp/node-v20.12.2-linux-arm64" "/etc/node-20.12.2"

FROM arm64v8/ubuntu:jammy
ARG DEBIAN_FRONTEND

COPY --from=node /etc/node-20.12.2 /etc/node-20.12.2
RUN apt update && apt install -y python3 make g++
RUN ln -s "/etc/node-20.12.2/bin/node" /usr/bin/node && \
    ln -s "/etc/node-20.12.2/bin/npm" /usr/bin/npm && \
    ln -s "/etc/node-20.12.2/bin/npx" /usr/bin/npx && \
    ln -s "/etc/node-20.12.2/bin/corepack" /usr/bin/corepack && \
    corepack enable pnpm

ARG CI=1
WORKDIR /app
COPY --exclude=node_modules --exclude=dist --exclude=pack . .
RUN pnpm install && \
    pnpm dist:linux:rpm-arm64

ENTRYPOINT ["/bin/bash"]

And enabled sourcemaps for release builds...

Image

And am currently building the rpm

After one hour of pain, I finally wrote this Dockerfile ```dockerfile # syntax=docker/dockerfile:1.7-labs ARG DEBIAN_FRONTEND=noninteractive FROM arm64v8/ubuntu:jammy AS node ARG DEBIAN_FRONTEND WORKDIR /tmp RUN apt update && apt install wget -y && \ wget https://nodejs.org/dist/v20.12.2/node-v20.12.2-linux-arm64.tar.gz && \ tar -xf "node-v20.12.2-linux-arm64.tar.gz" && \ cp -r "/tmp/node-v20.12.2-linux-arm64" "/etc/node-20.12.2" FROM arm64v8/ubuntu:jammy ARG DEBIAN_FRONTEND COPY --from=node /etc/node-20.12.2 /etc/node-20.12.2 RUN apt update && apt install -y python3 make g++ RUN ln -s "/etc/node-20.12.2/bin/node" /usr/bin/node && \ ln -s "/etc/node-20.12.2/bin/npm" /usr/bin/npm && \ ln -s "/etc/node-20.12.2/bin/npx" /usr/bin/npx && \ ln -s "/etc/node-20.12.2/bin/corepack" /usr/bin/corepack && \ corepack enable pnpm ARG CI=1 WORKDIR /app COPY --exclude=node_modules --exclude=dist --exclude=pack . . RUN pnpm install && \ pnpm dist:linux:rpm-arm64 ENTRYPOINT ["/bin/bash"] ``` And enabled `sourcemap`s for release builds... ![Image](https://github.com/user-attachments/assets/e368cb71-960c-4d40-84c0-57cdf9010ed5) And am currently building the rpm
Owner

yeah I give up, can't build that rpm, sorry buddy
I should have instead spent that time modifying the github action to make a release build with sourcemaps...

yeah I give up, can't build that rpm, sorry buddy I should have instead spent that time modifying the github action to make a release build with sourcemaps...
yuckdevchan commented 2025-05-05 10:19:54 +00:00 (Migrated from github.com)

Oh well. That's fine. Good luck with the github action thing.

Oh well. That's fine. Good luck with the github action thing.
Owner

Nah, I gave up, wasted too much time on this, someone else can pick this up

Nah, I gave up, wasted too much time on this, someone else can pick this up
JellyBrick commented 2025-05-10 13:51:27 +00:00 (Migrated from github.com)

This issue is caused by electron (Chromium).
See https://github.com/electron/electron/issues/32760

This issue is caused by electron (Chromium). See https://github.com/electron/electron/issues/32760
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: YTMD/youtube-music#3321
No description provided.