Jarrrk / HighLife

Open source feature configuration and issue tracker for the FiveM server HighLife Roleplay
https://highliferoleplay.net
71 stars 46 forks source link

Blocked attempt to create a WebMediaPlayer as there are too many WebMediaPlayers already in existence. See crbug.com/1144736#c27 #6577

Closed SupperRobin6394 closed 4 months ago

SupperRobin6394 commented 4 months ago

What happened?

Custom audio breaks after a long-ish play session, usually around the 2-3 hour mark. Making PD shifts of >3 hours difficult and requiring a relog.

Expected result

Audio to work

Reproduction steps

  1. Be in-game for LONG
  2. Use a lot of sound-things (mostly PD radio, handcuff sounds, etc.)
  3. Audio will break for specific sounds, eg. the old vehicle lock sounds, radio-beeps (PD specific), etc.
  4. Every time a sound is supposed to play a new error line will be in the F8 menu
  5. "Blocked attempt to create a WebMediaPlayer as there are too many WebMediaPlayers already in existence. See crbug.com/1144736#c27"

Importancy

There's a workaround

Additional information

image

Jarrrk commented 4 months ago

Pushed a fix, seems an issue while attempting to remove audio nodes from audio sources.

I've also fixed a potential memory leak with stopped sounds not truly stopping updating sound positions.