Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Crashing/ Crashes related to sound settings in WebGL

Discussion in 'WebGL' started by IllTemperedTunas, Nov 18, 2021.

  1. IllTemperedTunas

    IllTemperedTunas

    Joined:
    Aug 31, 2012
    Posts:
    608
    Was having lots of issues with crashes until I figured out that if any sounds were set to streaming it would instantly crash the build.

    Best setting for webGL is "decompress on load", it'll avoid tons of issues, not just crashes. I really wish this information was stickied somewhere, or noted more prominently in the editor when you switch to OpenGL, it's a major issue and can take quite a lot of time to figure out if you have lots of sounds, since the sound issues will affect sounds that have the proper settings of there are sounds that don't have proper settings, and in every other build type this isn't an issue.
     
    Last edited: Nov 18, 2021
    KamilCSPS and xagustudios like this.
  2. MarcelPursche

    MarcelPursche

    Unity Technologies

    Joined:
    Mar 3, 2021
    Posts:
    44
    Hi!
    What version of Unity are you using? There have been a lot of improvements and bugfixes for the Audio support on the WebGL platform.
     
    IllTemperedTunas likes this.
  3. IllTemperedTunas

    IllTemperedTunas

    Joined:
    Aug 31, 2012
    Posts:
    608
    Been mostly up to date for a long time. I just got the newest version when I saw you guys fixed looping issues regarding webGL, excited to try them in the coming days. Thus far some music tracks would loop, and others wouldn't, and no matter what I tried nothing fixed them.

    Thanks for taking the time to check through these older posts, Marcel. I'll reply to this thread if the problem gets sorted or not in the near future, music not looping is the only truly major problem I can think of with the web build as it stands, you guys have done a fantastic job of making porting to web a breeze.

    I'll also try a quick setup to see if the old crash issues are resolved or not
     
  4. IllTemperedTunas

    IllTemperedTunas

    Joined:
    Aug 31, 2012
    Posts:
    608
    After some quick tests it would appear that all the prior issues regarding sound are resolved. Music is looping and various settings no longer appear to be crashing the web build.

    Good stuff.
     
  5. IllTemperedTunas

    IllTemperedTunas

    Joined:
    Aug 31, 2012
    Posts:
    608
    Just had an instance where the music stopped looping in my web build, so this issue with music tracks not looping is still a thing.