Application doesn't warn about missing VLC dependency #35

Open
opened 2026-07-29 20:09:17 +09:00 by AnthonyKwon · 2 comments
Owner

Expected Behavior

App should warn about missing VLC dependency on its (or audio) open.

Actual Behavior

App freezes for a while(1~2 minutes) and throws error, and continues w/o audio player capability.
error shown on terminal:

Error occured while opening audio. Player will be disabled. Details:
File Open operation timed out.

Additional Context

try
{
//TODO: show static loading screen
// (animated loading is not viable due to VLC initialization freeze)
// start the task to open the audio file
Task.Run(() => _player.Open(audioPath));
// wait for the audio file to opened and player is ready
// workaround: rarely, this might take at least 1~2 minutes because of VLC initialization.
// set timeout long enough to user don't get timed out because of this.
for (int i = 0; i < 60 && _player.State == PlayerState.Nothing; i++)
await Task.Delay(1000);
// check if audio player is ready
if (_player.State == PlayerState.Nothing)
throw new FileLoadException("File Open operation timed out.", audioPath);
}


Current suspect is Task.Run(). It might not catch exception inside it's callback, so VLC exception might silently ignored. so app will just wait for 1 minute, and just throws FileLoadException since _player.State still stuck at PlayerState.Nothing.

## Expected Behavior App should warn about missing VLC dependency on its (or audio) open. ## Actual Behavior App freezes for a while(1~2 minutes) and throws error, and continues w/o audio player capability. error shown on terminal: ``` Error occured while opening audio. Player will be disabled. Details: File Open operation timed out. ``` ## Additional Context https://git.thonlog.com/AnthonyKwon/ti_lyricstudio/src/commit/7af8ce7ce80a1424cb6045f9097447b2096e053f/ti_lyricstudio/ViewModels/PlayerUI/PlayerUIWindowViewModel.cs#L111-L128 Current suspect is `Task.Run()`. It might not catch exception inside it's callback, so VLC exception might silently ignored. so app will just wait for 1 minute, and just throws `FileLoadException` since `_player.State` still stuck at `PlayerState.Nothing`.
Author
Owner

fixed by c6d8eda6b7.

fixed by c6d8eda6b7.
Author
Owner

oops, didn't mean to close it since MessageBox still not showing up.

oops, didn't mean to close it since MessageBox still not showing up.
AnthonyKwon added this to the 0.2.0.0 milestone 2026-07-30 01:24:51 +09:00
Sign in to join this conversation.
No description provided.