Search Issue Tracker
Fixed
Fixed in 2021.3.33f1, 2022.3.14f1, 2023.2.2f1, 2023.3.0a14
Votes
0
Found in
2021.3.30f1
2022.3.10f1
2023.1.14f1
2023.2.0b10
2023.3.0a6
Issue ID
UUM-49331
Regression
No
[WebGL] unityInstance.SendMessage crashes WebGL Runtime when passing a large string
Reproduction steps:
1. Create a new 3D project
2. Click File > Build Settings… > Select WebGL > Switch Platform
3. Click Edit > Project Settings… > Player > WebGL
4. Under Publishing Settings, set “Compression Format” to “Disabled”
5. Click File > Build Settings… > Build
6. Go to the build folder
7. Open “index.html” in your text editor
8. Find “script.onload = ()….” function location and above it enter “var gameInstance = null;”
9. Find “fullscreenButton.onclick …” function location and after it enter “gameInstance = unityInstance”
10. Save “index.html”, close the text editor
11. Open the Terminal in this directory
12. Run “python3 -m http.server“, and open the localhost link
13. In the WebGL application, open the development console for your browser
14. Enter “gameInstance.SendMessage("test", "test", "#".repeat(2**21))“ and press enter
Expected result: The repeated characters are printed out to the browser console
Actual result: WebGL runtime crashes
Reproducible with: 2021.3.30f1, 2022.3.10f1, 2023.1.14f1, 2023.2.0b10, 2023.3.0a6
Environment tested on: Ubuntu 23.04, Windows 10 Pro 22H2
Note: WebGL crashes due to “RuntimeError: index out of bounds”
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Add comment