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

[4.4 Beta3] A Web Audio malfunction that causes the entire game to stop. #102911

Closed
SkanerSoft opened this issue Feb 16, 2025 · 2 comments · Fixed by #102955
Closed

[4.4 Beta3] A Web Audio malfunction that causes the entire game to stop. #102911

SkanerSoft opened this issue Feb 16, 2025 · 2 comments · Fixed by #102955

Comments

@SkanerSoft
Copy link

SkanerSoft commented Feb 16, 2025

Tested versions

4.4 Beta 3

System information

Ubuntu 22.04, Chromium

Issue description

An error occurs at any time while the game im gameplay:

Image

index.js:9 Uncaught InvalidStateError: Failed to execute 'stop' on 'AudioScheduledSourceNode': cannot call stop without calling start first.
    at SampleNode._pause (index.js:9:168760)
    at SampleNode.pause (index.js:9:165983)
    at SampleNode.pauseSampleNode (index.js:9:164123)
    at Object.sample_set_pause (index.js:9:175865)
    at _godot_audio_sample_set_pause (index.js:9:181003)
    at 0a684d66:0x51b2e
    at 0a684d66:0x168ccc8
    at 0a684d66:0x168c8f8
    at 0a684d66:0x147ac38
    at 0a684d66:0x147e48f

See - https://pn-games.com/play/audio-test

Open Developer Tools -> Console -> Try test

Steps to reproduce

It's just that the play/stop methods are called periodically for sounds.

In this case, the stop method is preceded by a playing check, something like

if snd.playing:
    snd.stop()

Minimal reproduction project (MRP)

web-audio-error.zip

Export this to HTML5 Application and run. Instructoin is inside.

@SkanerSoft
Copy link
Author

So far, the only information I've been able to find from the error text is here. I assume this applies to the JavaScript part of the engine.

https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/stop

What is written here very accurately describes the error that the browser debugging console shows me.

@SkanerSoft
Copy link
Author

Updated.

@adamscott adamscott moved this from Unassessed to Very Bad in 4.x Release Blockers Feb 17, 2025
@adamscott adamscott moved this from For team assessment to Fix pending review in Audio Issue Triage Feb 17, 2025
@adamscott adamscott moved this from For team assessment to Fix pending review in Platforms Issue Triage Feb 17, 2025
@github-project-automation github-project-automation bot moved this from Fix pending review to Done in Audio Issue Triage Feb 18, 2025
@github-project-automation github-project-automation bot moved this from Fix pending review to Done in Platforms Issue Triage Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Very Bad
Status: Done
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants