Skip to content

Failed to execute 'stop' on 'AudioScheduledSourceNode': cannot call stop without calling start first. #2821

Description

@kulek1

Is there an existing issue for this?

  • I have searched the existing issues

I have read the contribution rules

AI authorship

Written by a human, no AI assistance

Current Behavior

The playback can throw:

48153.671943d8.js:2 Uncaught InvalidStateError: Failed to execute 'stop' on 'AudioScheduledSourceNode': cannot call stop without calling start first.

An error occurs on slower devices when the user rapidly presses play/pause.

Image

Expected Behavior

No errors in the console

Steps To Reproduce

  1. Go to https://alphatab.net/docs/playground/ (1.8.4)
  2. Open DevTools, go to Performance tab and set CPU: 20x slowdown
  3. Select random note from the playground and press play and pause very quickly
  4. Error is thrown in the console

Link to jsFiddle, CodePen, Project

No response

Version and Environment

1.8.4

Platform

Web

Anything else?

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Fields

Priority

None yet

Effort

None yet

Area

None yet

Platform

None yet

Work State

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions