Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seeking .flac files at the end causes a "no supported source" exception #3534

Closed
srdecny opened this issue Jan 30, 2024 · 2 comments
Closed
Labels

Comments

@srdecny
Copy link

srdecny commented Jan 30, 2024

Bug description

When loading a. .flac file into the waveform and then seeking very close to the end produces a Uncaught (in promise) DOMException: Failed to load because no supported source was found. exception.

Environment

  • Browser: Chrome

Minimal code snippet

const ws = WaveSurfer.create({
  container: '#waveform',
  url: 'xxx.flac',
})

ws.on('interaction', () => {
  ws.play()
})


and then click near the end of the file. Observe the error in the console

Expected result

It should not crash

Obtained result

Screen.Recording.2024-01-30.at.14.22.46.mov
@srdecny srdecny added the bug label Jan 30, 2024
@srdecny srdecny changed the title Seeking. .flac files at the end causes a "no supported source" exception Seeking .flac files at the end causes a "no supported source" exception Jan 30, 2024
@katspaugh
Copy link
Owner

I doubt we can do anything about the root cause but the crashing will be silenced in #3532

@katspaugh
Copy link
Owner

Closing as a duplicate of #3556 (it has more info there).

@katspaugh katspaugh closed this as not planned Won't fix, can't repro, duplicate, stale Mar 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants