Search Issue Tracker
Fixed
Fix In Review for 6000.5.X
Fixed in 6000.0.65f1, 6000.3.3f1, 6000.4.0b2, 6000.5.0a8
Votes
0
Found in
6000.0.58f1
6000.1.0a2
6000.1.17f1
6000.2.6f2
6000.3.0a1
6000.4.0a1
6000.5.0a1
Issue ID
UUM-126250
Regression
Yes
Regression for "WebGL build is missing "malloc" and "free" functions when passing "-sERROR_ON_UNDEFINED_SYMBOLS=0" to emscriptenArgs"
This bug regressed: https://jira.unity3d.com/browse/UUM-74261
The fix is missing in emscripten in Unity 6.1-6.5.
Reproduction steps:
- Open the attached “WebGLMissingMethodRepro.zip” project
- Open the “SampleScene” scene (Assets > Scenes)
- Build and Run for the WebGL (File > Build and Run)
- Observe the Player in the browser and turn on Developer Tools (press F12)
Expected result: No errors are thrown
Actual result: “missing function: malloc” and “missing function: free” errors are thrown in the browser’s Console
Reproducible with versions: 6000.0.58f1, 6000.1.0a2, 6000.2.0a1, 6000.3.0a1, 6000.4.0a1, 6000.5.0a1
Not reproducible with versions: 6000.0.11f1, 6000.1.0a1
\\
Tested on (OS): MacOS 15.7.1
\\
Notes:
- This PR needs to be ported to Emscripten 3.1.38.4-unity: https://github.com/Unity-Technologies/emscripten/pull/10 (missing in all branches after 3.1.38.1-unity)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Resolution Note:
Fixed in 6000.5.0a8
Resolution Note (fix version 6000.5.0a8):
Fixed in 6000.5.0a8