Search Issue Tracker
Third Party Issue
Votes
0
Found in
2021.3.20f1
2022.2.10f1
2023.1.0b8
2023.2.0a6
Issue ID
UUM-30320
Regression
Yes
Error "Building Library/Bee/artifacts/WebGL/build/debug_WebGL_wasm/build.js failed" is thrown when building on the WebGL Platform
How to reproduce:
1. Open the project “IN_34006”
2. Press File → Build
Expected result: no errors in the Console
Actual result: errors in the Console
Reproducible with: 2021.3.20f1, 2022.2.10f1, 2023.1.0b8, 2023.2.0a6
Not reproducible with: 2020.3.46f1, 2021.2.0a21
Couldn't test with: 2021.2.0b1, 2021.2.9f1 (different build errors)
Reproducible on: Windows 10 Pro, macOS 13.2.1 (M1) (by the reporter)
Error:
”Building Library/Bee/artifacts/WebGL/build/debug_WebGL_wasm/build.js failed with output:
emcc2: warning: EXTRA_EXPORTED_RUNTIME_METHODS is deprecated, please use EXPORTED_RUNTIME_METHODS instead [-Wdeprecated]
system_libs:WARNING: main() is in the input files, but "_main" is not in EXPORTED_FUNCTIONS, which means it may be eliminated as dead code. Export it if you want main() to run.
emcc2: error: undefined exported symbol: "_gpxGetFreeSoundChannel" [-Wundefined] [-Werror]”
Note: couldn’t find the regressed version due to different errors in the Console when Build And Run
Comments (2)
-
VladislavShatl
Feb 12, 2025 08:50
I solved this problem with GamePix. The plugin has a script Emscripten, which changes PlayerSettings.WebGL. After deleting the plugin the settings remain the same. You need to reset PlayerSettings.WebGL to the default configuration.I did it like this:
public class WebGLSettingsReset : MonoBehaviour
{
[MenuItem("Tools/Reset WebGL Settings")]
public static void ResetWebGLSettings()
{
PlayerSettings.WebGL.emscriptenArgs = string.Empty;
PlayerSettings.WebGL.memorySize = 256;
PlayerSettings.WebGL.compressionFormat = WebGLCompressionFormat.Disabled;
PlayerSettings.WebGL.linkerTarget = WebGLLinkerTarget.Wasm ;
EditorApplication.RepaintHierarchyWindow();UnityEngine.Debug.Log("WebGL settings reset to default.");
}
} -
Kuhn-Hu
Mar 19, 2024 10:08
I had foud what happend with Bee issue :D
That's because if you use any package or API script incloude [DllImport("__Internal")],you need to have same name .jslib file you called, the file icon in Unity just like a piece of puzzle
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
- UI Builder “Fit viewport” button zooms to fit Canvas instead of the selected Element
- Crash on DrawGUITexture when rendering scene view window in a specific project
- [Android] Light2D with Light type "Spot" does not work in the Player on some Pixel devices
- [Android] Loading the asset using an old reference returns null even when the "FormerlySerializedAs" attribute is used
- Crash on ParticleSystemTrailGeometryJob::RenderJobCommon when changing trail Mode change with a large particle count
Resolution Note:
This is an issue with a 3rd party library from gamepix. We've reported the bug and forwarded it to them.