Search Issue Tracker
Duplicate
Votes
1
Found in
5.6.0f3
Issue ID
898628
Regression
Yes
WebAssembly throws out error when loading a scene through an Asset Bundle
Reproduction Steps:
1. Import project "WebAssembly".
2. Open scene "gMain".
3. In Player Settings, make sure "WebAssembly (Experimental)" is enabled.
4. Build and Run WebGL build with the current scene. (Development Build enabled)
5. Play build in a web browser.
Expected result: Scene is played, similar to a regular WebGL build.
Actual result: Browser gives out error "An error occurred running the Unity content on this page. See your browser JavaScript console for more info. The error was:
RuntimeError: integer overflow". (Call stack can be viewed in browser Inspector).
Reproducible with: 2017.1.0b6
Note #1: Even though the same scene does not give out an error if it's a WebGL build, it does not load the AssetBundle as it does in the Editor. This is also true if it's a Standalone Build.
Note #2: The project also has a script that loads a scene from an Asset Bundle. This is achieved by using AssetBundle.LoadFromFile and SceneManager.LoadScene. However, the scene seems to be broken and might be the reason why the script doesn't work in Standalone and WebGL Builds. (An image of the scene is attached)
Note #3: The Asset Bundle is created through a custom plugin. You can create the Asset Bundle following these reproduction steps:
1. Import project "AssetBundle"
2. Open scene "room_classic".
3. Switch platform to WebGL.
4. In the Menu, select "Windpw" -> "ContentIntegrator" -> "Assets" -> "AssetBundleNames".
5. Select "Export Asset Bundles".
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
- "The same field name is serialized multiple times in the class or its parent class" error is thrown when private variables are declared in the class and its parent class using underscore
- Graphics.Blit() performs the operation only to the last display when a multi-display environment is used
- [Windows] Multiple Separation Lines are present in the Light Create Menu
- Warning "Item m_LightProbeSystem not found in window PC_RPAsset" logged when navigating to RP Asset from Probe Volume Component
- Tessellation has poor performance in URP when rendered using Metal
This is a duplicate of issue #897782