arianne / stendhal

Stendhal is a fun friendly and free multiplayer online adventure game with an old school feel.
https://arianne-project.org
GNU General Public License v2.0
577 stars 200 forks source link

Sound Manager: Value being assigned is not a finite floating-point value #714

Open AntumDeluge opened 2 months ago

AntumDeluge commented 2 months ago

🐞 Describe the bug

Not sure how to consistently reproduce but occurs at times when I teleport as admin on local server. I can't tell if there are any sounds being affected. But sometimes the viewport goes black, which may or may not be related.

This is the error output in Firefox console:

Uncaught TypeError: HTMLMediaElement.volume setter: Value being assigned is not a finite floating-point value.
    $JSCompiler_StaticMethods_adjustForDistance$$ SoundManager.ts:610
    $JSCompiler_StaticMethods_playLocalizedEffect$$ SoundManager.ts:314
    $execute$ EventRegistry.ts:382
    $onEvent$ RPObject.ts:36
    $addChanges$ perception.js:424
    $applyPerceptionModifiedRPObjects$ perception.js:248
    apply perception.js:168
    $onPerception$ client-framework.js:210
    t19 message-factory.js:57
    $onMessage$ client-framework.js:114
    connect client-framework.js:52
    $startup$ Client.ts:185
    EventListener.handleEvent* main.js:21
21 SoundManager.ts:610:21

🌍 Environment

🔭 Additional information

This also may be related to, & the cause of, an issue where the viewport displays black (usually after teleport or zone change).