FreeTube icon indicating copy to clipboard operation
FreeTube copied to clipboard

[Bug]: JavaScript exception "spawn vlc ENOENT" when attempting to open video in VLC

Open Mothilal-M opened this issue 4 months ago • 1 comments

Guidelines

Describe the bug

When attempting to open a video using VLC (External Player), FreeTube crashes and throws a JavaScript exception in the main process (spawn vlc ENOENT). This indicates that the application is unable to locate or execute the VLC binary/command.

Steps to Reproduce:

  1. Open FreeTube and navigate to any video.
  2. Attempt to play or open the video using the VLC / External Player option.
  3. A popup appears with the JavaScript error and the application fails to launch VLC.
Image

Expected Behavior

FreeTube should successfully pass the video stream/URL to VLC and open the external player without throwing a JavaScript exception or crashing. If VLC is not installed or not found in the system PATH, the app should display a user-friendly error message rather than an uncaught JavaScript exception.

Issue Labels

accessibility issue

FreeTube Version

v0.25.0 Beta

Operating System Version

Windows 11

Installation Method

.exe

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

No response

Upload screenshots or videos

Screenshot 2026-07-18 234031.png

Additional Information

Error Message:

× Error
A JavaScript error occurred in the main process
Uncaught Exception:
Error: spawn vlc ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:287:19)
    at onErrorNT (node:internal/child_process:508:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)

### Nightly Build

- [ ] I have encountered this bug in the latest **official** [nightly build](https://docs.freetubeapp.io/development/nightly-builds), do not check this box if you are using an unofficial or custom build.

Mothilal-M avatar Jul 18 '26 18:07 Mothilal-M

inquires regarding external players migrated to https://github.com/FreeTubeApp/FreeTube/discussions/7789