question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WebGL - Error when building with Unity 2021.2 Beta

See original GitHub issue

Hi there, I recently upgraded a project to Unity 2021.2.0b1 and found that it errors out whenever I try to do a WebGL build.

Building Library\Bee\artifacts\WebGL\build\debug_WebGL_wasm\build.js failed with output: emcc:WARNING: --llvm-lto ignored when using llvm backend emcc2: warning: EXTRA_EXPORTED_RUNTIME_METHODS is deprecated, please use EXPORTED_RUNTIME_METHODS instead [-Wdeprecated] emcc2: error: Packages/com.atteneder.ktx/Runtime/Plugins/WebGL/libktx_read.bc: No such file or directory ("Packages/com.atteneder.ktx/Runtime/Plugins/WebGL/libktx_read.bc" was expected to be an input file, based on the commandline arguments provided) UnityEditor.GenericMenu:CatchMenu (object,string[],int)

The error seems to be connected to the package in some way but the package exists and so does the .bc file it is looking for so I am absolutely stumped. I have tried it in an empty project and it works fine when the Ktx package is not included.

Any help greatly appreciated, been using KtxUnity for a little while now and its been great so thanks for all the effort.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
attenedercommented, Nov 10, 2021

This was fixed in KtxUnity 2.0.0. Sorry, I forgot to close this right away.

1reaction
attenedercommented, Jun 24, 2021

Hi @MarkTotem ,

Thanks for reporting! The new beta includes a much newer version of emscripten, which changed the way of static linking. For that reason I wanted to try it out soon, but you were faster 😃

I have to check myself, but I’m afraid the .bc binary is not compatible with the new emscripten anymore. I’ll try if I can get a build running.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to make WebGL development builds
Using Unity 2021.2.7f1. I always get this error when making WebGL development builds. However, non-development builds work and play just ...
Read more >
AssertionError in WebGL build on Unity 2021.2.8
The error is the following and occurs with 4-5 files. Building C:...\webgl-test\TemplateData\style.css failed with output: assert.js:385 throw ...
Read more >
Please fix the webGL error for the latest unity version.
I know that you're not supporting the Unity beta versions. But this function is deprecated starting from the Unity 2021.2.x beta release.
Read more >
Failed to build WebGL using PickandPlaceProject #366
Failed to build WebGL using PickandPlaceProject #366 ... Unity Hub: 3.0.0-beta.7. Unity Editor Version: 2021.2.18f1c1. Target Platform:WebGl.
Read more >
Project build fails and errors are thrown ... - Unity Issue Tracker
Project build fails and errors are thrown when building for WebGL platform with Exceptions disabled · 1. Open the attached project ("WebGL_2021.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found