Skip to content

< 1 BPM tempos lead to endless loops #2465

@Danielku15

Description

@Danielku15

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

#2462

When the tempo in files is almost 0 (0.111 in the provided file) this leads to an endless loop and hang in alphaTab.

Expected Behavior

alphaTab should handle such values correctly without hanging endlessly. Playback might be endless as it is not or hardly progressing, but we should not cause internal hangs.

Steps To Reproduce

#2462
https://github.com/user-attachments/files/24348564/index.zip

Link to jsFiddle, CodePen, Project

No response

Version and Environment

[AlphaTab][VersionInfo] alphaTab 1.7.1
alphaTab.js:1607 [AlphaTab][VersionInfo] commit: e487b958158892679a115693547661dc49a78e16
alphaTab.js:1607 [AlphaTab][VersionInfo] build date: 2025-12-02T16:54:46.381Z
alphaTab.js:1607 [AlphaTab][VersionInfo] High DPI: 1
alphaTab.js:1607 [AlphaTab][VersionInfo] Platform: Browser
alphaTab.js:1607 [AlphaTab][VersionInfo] WebPack: false
alphaTab.js:1607 [AlphaTab][VersionInfo] Vite: false
alphaTab.js:1607 [AlphaTab][VersionInfo] Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36
alphaTab.js:1607 [AlphaTab][VersionInfo] Window Size: 1821x1032
alphaTab.js:1607 [AlphaTab][VersionInfo] Screen Size: 1920x1080

Platform

Web

Anything else?

No response

Metadata

Metadata

Assignees

Labels

area-playerRelated to the audio playback engine.platform-allAffects all platformsstate-acceptedThis is a valid topic to work on.

Type

Projects

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions