Search Issue Tracker
Active
Votes
32
Found in
2021.2
2021.2.0f1
2022.1
Issue ID
1377787
Regression
No
[WebGL] [wasm] Uncaught RuntimeError exception is thrown when calling a native function from a static linked library
Reproduction steps:
1. Open the project from the GitHub repository provided by the user
2. Switch Platform to WebGL in Build Settings
3. Build and Run
4. Wait for the build to run
Expected result: A Cube with a Texture applied to its Material can be seen
Actual result: Running the build fails and errors are logged in the browser: "Uncaught RuntimeError: null function or function signature", "An abnormal situation has occurred: the PlayerLoop internal function has been called recursively"
Reproducible with: 2021.2.2f1, 2022.1.0a15
Could not test with: 2019.4.32f1, 2020.3.23f1, 2021.1.28f1 (namespace and native library errors after downgrade)
Note:
- Not reproducible in Development Build
- The tested native library supports only WebGL (f. e. it would error in Play Mode)
Comments (3)
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
- Crash with multiple stack traces when playing video on a render texture with low-end graphics devices
- Circle handle of the Game view scale slider bar disappears when the scale is set to 1x
- Asset Bundles non-deterministic behavior with CRCs and hash when a video has Transcoding enabled and Sprite Atlas has an override option enabled
- [Quality Hackweek] Errors "InvalidOperationException: EnsureRunningOnMainThread can only be called from the main thread" and "NullReferenceException" shown when switching build platforms with Muse Texture package installed
- "Importer(DefaultImporter) generated inconsistent result for asset" warnings are thrown when reimporting the "URP" texture
Mulik
May 13, 2023 12:07
Reproduce on Unity LTS Release
2021.3.22f1.
DrViJ
Jan 13, 2022 22:38
I've added commit that makes native plugin work to reproduce this bug in 2022.2.0b3
1) take my repo
2) checkout commit under tag WorksInDevBuild_2022.2.0b3
3) try to build in development mode: it works
4) try to build without development mode: it throws exception.
p.s. the error will be in both dev/nondev modes if ThrowExceptions is not set to None.
DrViJ
Nov 18, 2021 15:16
p.s. I recommend to build from the tag "Unity2021.2.0f1_DEV_BUILD_WORLS_ONLY", cause its 100% reproducible commit