rpm-unity-sdk-core icon indicating copy to clipboard operation
rpm-unity-sdk-core copied to clipboard

VoiceHandler memory access out of bounds on WebGL

Open baaskoen opened this issue 1 year ago • 2 comments

Describe the bug When the assigned audio clip in the VoiceHandler script is played in the browser, the app will crash as soon as the audio stops playing. Happens on all browsers. The audio clip will play just fine, the exception is thrown when it ends.

Files

I'm using an empty project with no modifications, only an imported character and a tiny mp3 file.

To Reproduce

  1. Import a RPM character
  2. Add the VoiceHandler component
  3. Set AudioProvider to "AudioClip" on that component
  4. Assign a random audio clip (I had the same error on different audio files)
  5. Build to WebGL and play the audio (via canvas button for example, or play on awake)

Expected behavior There should be no memory exception. When playing the audio manually without the VoiceHandler on a differen unity node produces no error.

Screenshots

Screenshot 2024-10-02 at 09 56 14

Screenshot 2024-10-02 at 09 56 31

Desktop (please complete the following information):

  • Ready Player Me Core version: 7.2.0
  • Ready Player Me WebView version: ?
  • glTFast version: 6.0.1
  • Unity Editor version [e.g. 2021.2.1f1]: 2022.3.40f1
  • Render Pipeline and version [e.g. Universal Render Pipeline 12.0]: URP 14.0.11
  • Operating System [e.g. Windows, Mac, Linux ]: Any browser.
  • Platform: [e.g. Editor , Windows Player, iOS]: Any browser.

additionally (if significant for the bug):

  • Any browser running on Macbook Pro

baaskoen avatar Oct 02 '24 08:10 baaskoen