(Solved) WebGL Blank Project Build Breaks (Unity 5.5.1f1, Chrome & FF)

I’ve built WebGL from Unity fine in the past (pre 5.5), but now any build that I try to run in the browser errors out while loading (in snippets below).

I’ve tested by creating a new blank project, saving the default scene, switching to WebGL as the target and hitting “build and run.” I get the same errors - in both Chrome and Firefox - using Unity 5.5.1f1. (I also get the same errors if I load the project through http-server via node.) I’ve tried stopping the engine stripping, just in case there was something essential being stripped accidentally, but no dice. Any help or debugging steps to try would be appreciated - thanks!

OS info: Windows 10, 64-bit, WebGL 2.0 capable graphics card
Chrome 56.0.2924.87
Firefox 51.0.1

UnityLoader.js:3545 run() called, but dependencies remain, so not running
Module.printErr @ UnityLoader.js:3545
run @ blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:18812
(anonymous) @ blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:18900
missing function: _ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_
Module.printErr @ UnityLoader.js:3545
__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_ @ blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:9843
__ZN10KeyWrapperINSt3__212basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEEC2ERKS7_ @ blob:http://127.0.0.1:8080/6d288545-f4ec-434c-9f7d-888586f2dab5:2039058
__ZN14dense_hash_mapI10KeyWrapperINSt3__212basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEP11Il2CppClassN6il2cpp5utils11StringUtils12StringHasherIS7_EENS1_8equal_toIS8_EENS5_INS1_4pairIKS8_SA_EEEEE13set_empty_keyERSJ_ @ blob:http://127.0.0.1:8080/6d288545-f4ec-434c-9f7d-888586f2dab5:1808763
dynCall_vii @ blob:http://127.0.0.1:8080/6d288545-f4ec-434c-9f7d-888586f2dab5:2110862
invoke_vii @ blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:15801
__ZN13Il2CppHashMapINSt3__212basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEP11Il2CppClassN6il2cpp5utils11StringUtils12StringHasherIS6_EENS0_8equal_toI10KeyWrapperIS6_EEENS4_INS0_4pairIKSG_S8_EEEEEC2EjRKSD_RKSH_ @ blob:http://127.0.0.1:8080/6d288545-f4ec-434c-9f7d-888586f2dab5:1485635
dynCall_viiii @ blob:http://127.0.0.1:8080/6d288545-f4ec-434c-9f7d-888586f2dab5:2084391
invoke_viiii @ blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:15769
__ZN19Il2CppMetadataCacheC2Ev @ blob:http://127.0.0.1:8080/6d288545-f4ec-434c-9f7d-888586f2dab5:1793777
__GLOBAL__sub_I_MetadataCache_cpp @ blob:http://127.0.0.1:8080/6d288545-f4ec-434c-9f7d-888586f2dab5:1790235
asm.__GLOBAL__sub_I_MetadataCache_cpp @ blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:17558
func @ blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:1644
callRuntimeCallbacks @ blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:971
ensureInitRuntime @ blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:995
doRun @ blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:18823
(anonymous) @ blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:18838
setTimeout (async)
run @ blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:18834
runCaller @ blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:18769
removeRunDependency @ blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:1188
(anonymous) @ blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:10
doCallback @ blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:5750
done @ blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:5761
done @ blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:4883
storeLocalEntry @ blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:4801
(anonymous) @ blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:4894
IDBFS.loadRemoteEntry.req.onsuccess @ blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:4820
IndexedDB (async)
loadRemoteEntry @ blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:4818
(anonymous) @ blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:4892
reconcile @ blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:4890
(anonymous) @ blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:4658
IDBFS.getRemoteSet.IDBFS.getDB.index.openKeyCursor.onsuccess @ blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:4746
IndexedDB (async)
IDBFS.getRemoteSet.IDBFS.getDB.index.openKeyCursor.onsuccess @ blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:4755
IndexedDB (async)
(anonymous) @ blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:4743
IDBFS.getDB.req.onsuccess
Uncaught abort(-1) at Error
    at jsStackTrace (blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:859:12)
    at stackTrace (blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:873:11)
    at abort (blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:18880:43)
    at __ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_ [std::__2::basic_string<char, std::__2::char_traits<char>, std::__2::allocator<char> >::basic_string(std::__2::basic_string<char, std::__2::char_traits<char>, std::__2::allocator<char> > const&)] (blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:9844:2)
    at __ZN10KeyWrapperINSt3__212basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEEC2ERKS7_ [KeyWrapper<std::__2::basic_string<char, std::__2::char_traits<char>, std::__2::allocator<char> > >::KeyWrapper(KeyWrapper<std::__2::basic_string<char, std::__2::char_traits<char>, std::__2::allocator<char> > > const&)] (blob:http://127.0.0.1:8080/6d288545-f4ec-434c-9f7d-888586f2dab5:2039058:2)
    at Array.__ZN14dense_hash_mapI10KeyWrapperINSt3__212basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEP11Il2CppClassN6il2cpp5utils11StringUtils12StringHasherIS7_EENS1_8equal_toIS8_EENS5_INS1_4pairIKS8_SA_EEEEE13set_empty_keyERSJ_ [dense_hash_map<KeyWrapper<std::__2::basic_string<char, std::__2::char_traits<char>, std::__2::allocator<char> > >, Il2CppClass*, il2cpp::utils::StringUtils::StringHasher<std::__2::basic_string<char, std::__2::char_traits<char>, std::__2::allocator<char> > >, std::__2::equal_to<KeyWrapper<std::__2::basic_string<char, std::__2::char_traits<char>, std::__2::allocator<char> > > >, std::__2::allocator<std::__2::pair<KeyWrapper<std::__2::basic_string<char, std::__2::char_traits<char>, std::__2::allocator<char> > > const, Il2CppClass*> > >::set_empty_key(KeyWrapper<std::__2::basic_string<char, std::__2::char_traits<char>, std::__2::allocator<char> > > const&)] (blob:http://127.0.0.1:8080/6d288545-f4ec-434c-9f7d-888586f2dab5:1808763:2)
    at Object.dynCall_vii (blob:http://127.0.0.1:8080/6d288545-f4ec-434c-9f7d-888586f2dab5:2110862:31)
    at invoke_vii (blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:15801:24)
    at Array.__ZN13Il2CppHashMapINSt3__212basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEP11Il2CppClassN6il2cpp5utils11StringUtils12StringHasherIS6_EENS0_8equal_toI10KeyWrapperIS6_EEENS4_INS0_4pairIKSG_S8_EEEEEC2EjRKSD_RKSH_ [Il2CppHashMap<std::__2::basic_string<char, std::__2::char_traits<char>, std::__2::allocator<char> >, Il2CppClass*, il2cpp::utils::StringUtils::StringHasher<std::__2::basic_string<char, std::__2::char_traits<char>, std::__2::allocator<char> > >, std::__2::equal_to<KeyWrapper<std::__2::basic_string<char, std::__2::char_traits<char>, std::__2::allocator<char> > > >, std::__2::allocator<std::__2::pair<KeyWrapper<std::__2::basic_string<char, std::__2::char_traits<char>, std::__2::allocator<char> > > const, Il2CppClass*> > >::Il2CppHashMap(unsigned int, il2cpp::utils::StringUtils::StringHasher<std::__2::basic_string<char, std::__2::char_traits<char>, std::__2::allocator<char> > > const&, std::__2::equal_to<KeyWrapper<std::__2::basic_string<char, std::__2::char_traits<char>, std::__2::allocator<char> > > > const&)] (blob:http://127.0.0.1:8080/6d288545-f4ec-434c-9f7d-888586f2dab5:1485635:2)
    at Object.dynCall_viiii (blob:http://127.0.0.1:8080/6d288545-f4ec-434c-9f7d-888586f2dab5:2084391:33)
    at invoke_viiii (blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:15769:26)
    at __ZN19Il2CppMetadataCacheC2Ev [Il2CppMetadataCache::Il2CppMetadataCache()] (blob:http://127.0.0.1:8080/6d288545-f4ec-434c-9f7d-888586f2dab5:1793777:2)
    at __GLOBAL__sub_I_MetadataCache_cpp (blob:http://127.0.0.1:8080/6d288545-f4ec-434c-9f7d-888586f2dab5:1790235:2)
    at asm.__GLOBAL__sub_I_MetadataCache_cpp (blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:17558:48)
    at func (blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:1644:3)
    at callRuntimeCallbacks (blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:971:4)
    at ensureInitRuntime (blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:995:2)
    at doRun (blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:18823:3)
    at blob:http://127.0.0.1:8080/83add0c6-a5e0-4a4c-b807-e0939116d8be:18838:4

Anything in the browser log?

The callstack is not familiar and an empty project seems to work fine here. Any chance you could submit a bug report and post the bug # here ?
thanks!

Salve, anche a me da quando sono passato alla versione Unity 5.5.1 i progetti che prima funzionavano bene se compilati per WebGL ora con questa versione vengono compilati ma non funzionano più in nessun browser nè in locale ne su internet e mi danno questi errori.
Potete suggerire un modo per poter far rifunzionare WebGL come nelle precedenti versioni di Unity?
Intanto disinstallo la 5.5.1 e reinstallo una versione vecchia.

2952017--218903--unityerror.png

This is not a known issue, so we really need a bug report in order to be able to investigate

Thanks for the quick reply. Nothing other than the snippets that I mentioned in the browser console. I’ll open up a bug report (and post the number here) when I get a chance this evening.

Bug report submitted: 879456. I tested it against an installation of the latest 5.5.1 patch before submitting - no luck with that fixing things.

thanks for the bug report. There is definitely something wrong with the generated build.

could you try to delete the Library folder, then re-build?

Deleted Library/ and re-built - unfortunately, I hit same errors.

I don’t know why this caused the problem, but it had something to do with my Unity installation being on a separate partition (C:/) from my Unity project files (E:/). I was able to take a previously “broken” webgl project from E:/, move it to C:/ and everything suddenly built fine again.