Hi, I have a project in Unity and I am trying to publish it online but the loader gets stuck at 90%. Before it did work but now it is not working anymore. I have tried everything like changed compression format in player settings, check decompression fallback, check data caching but still doesn’t work. What can be the problem?
are there any messages in the browser console? (F12)
There are no messages at all in the browser console of chrome and microsoft edge. This is the link of the project: https://www.oxvrlibrary.com/webgllatest/
In mozilla firefox browser however I get a popup with this message:
abort("Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 268435456, (2) compile with -s ALLOW_MEMORY_GROWTH=1 which allows increasing the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or (4) if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0 ") at jsStackTrace@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.framework.js:2:16241
stackTrace@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.framework.js:2:16412
abort@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.framework.js:2:747
abortOnCannotGrowMemory@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.framework.js:2:17274
enlargeMemory@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.framework.js:2:17728
boQ@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:54:318306
nhQ@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:54:184648
MXL@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:19:640682
g4M@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:51:501353
n4M@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:51:502443
o4M@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:51:502585
PfM@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:19:903698
f0M@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:51:449974
cqQ@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:54:328992
invoke_iiii@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.framework.js:2:340645
e0M@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:51:449598
ArQ@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:54:339481
invoke_vii@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.framework.js:2:359547
a0M@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:51:448179
_$M@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:51:445109
ehM@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:19:917864
ahM@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:19:914887
chM@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:19:916752
ArQ@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:54:339481
invoke_vii@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.framework.js:2:359547
FeM@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:19:887458
fHM@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:51:204994
g$j@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:31:49379
GSH@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:22:665425
KKi@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:5:458768
oqQ@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:54:330560
invoke_iiiii@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.framework.js:2:343487
dfM@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:19:891309
gfM@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:19:892337
fnM@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:51:32946
keM@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:19:883807
twM@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:51:113316
pGo@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:38:676938
KKi@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:5:458768
oqQ@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:54:330560
invoke_iiiii@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.framework.js:2:343487
dfM@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:19:891309
gfM@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:19:892337
fnM@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:51:32946
keM@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:19:883807
opQ@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:54:324188
invoke_ii@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.framework.js:2:331123
KSL@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:19:600737
iub@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:7:703669
eub@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:7:702656
Ytb@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:7:696518
Eqb@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:7:573525
Aqb@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:7:570411
E8c@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:9:819319
g7c@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:9:770795
tDd@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:6:581546
sDd@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:6:579518
qDd@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:6:578971
mDd@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:6:575690
cDd@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:6:570967
Tyd@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:6:425071
Syd@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.js:6:423063
callMain@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.framework.js:4:54542
doRun@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.framework.js:4:55215
run@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.framework.js:4:55394
runCaller@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.framework.js:4:54169
removeRunDependency@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.framework.js:2:20780
u/</<@https://www.oxvrlibrary.com/webgllatest/Build/webgl.asm.loader.js:1:4503
and I also get error in console:
Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 268435456, (2) compile with -s ALLOW_MEMORY_GROWTH=1 which allows increasing the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or (4) if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0
that memory error seems to bring lots of similar threads, can try some of those tips there,
Thanks for your help. I finally made it work using the documents you sent me.
In ProjectSettings.asset I changed:
webGLEmscriptenArgs:
To
webGLEmscriptenArgs: -s ALLOW_MEMORY_GROWTH=1
I changed:
webGLLinkerTarget: 0
To
webGLLinkerTarget: 1
And I also disabled compression format in player settings.