- Home /
WebGL Build Out of Memory Github Pages Not on Local Host
Hi, My WebGL build 256MB runs on local host with Firefox, Edge or Chrome. But when I put on Github Pages, with 256MB or 512MB, loading bar stops before the end, and shows Out of Memory error. I am new to WebGL builds, but can anyone explain why it may not give memory errors in local host, but will online?
I was also getting couple of those memory leak messages in console when running in the Editor in case relevant, 'JobTempAlloc has allocations that are more than 4 frames old - this is not allowed and likely a leak', but I didn't create any jobs in my code as don't really know what job is yet, I understand Unity creates internal 'jobs' whatever they are. It runs fine in the Editor though.
FYI it's at: https://londonwillgeorge.github.io/PlayHellsBells/
It does have full stack trace, in Chrome stack trace from beginning is as below, with first enlarge memory array error shown right at bottom here (stopped pasting after this):
UnityLoader.js:4 [UnityCache] indexedDB database could not be opened
h1.js:48 Uncaught t {sentMessage: {…}, name: "MessageListenerError", message: "Chrome messaging error in content.send(): Could no…tablish connection. Receiving end does not exist.", extra: undefined, stack: "MessageListenerError: Chrome messaging error in co…tablish connection. Receiving end does not exist."}
(anonymous) @ h1.js:48
setTimeout (async)
_e.readyException @ h1.js:48
(anonymous) @ h1.js:48
l @ h1.js:48
c @ h1.js:48
setTimeout (async)
(anonymous) @ h1.js:48
u @ h1.js:48
fireWith @ h1.js:48
fire @ h1.js:48
u @ h1.js:48
fireWith @ h1.js:48
c @ h1.js:48
(anonymous) @ h1.js:48
i @ h1.js:25
i._settlePromiseFromHandler @ h1.js:25
i._settlePromise @ h1.js:25
i._settlePromise0 @ h1.js:25
i._settlePromises @ h1.js:25
o._drainQueue @ h1.js:25
o._drainQueues @ h1.js:25
drainQueues @ h1.js:25
Promise.then (async)
a @ h1.js:25
o._queueTick @ h1.js:25
s @ h1.js:25
d.hasDevTools.o.settlePromises @ h1.js:25
i._reject @ h1.js:25
i._rejectCallback @ h1.js:25
(anonymous) @ h1.js:25
(anonymous) @ h1.js:116
sendResponseAndClearCallback @ VM30 extensions::messaging:417
disconnectListener @ VM30 extensions::messaging:435
EventImpl.dispatchToListener @ VM23 extensions::event_bindings:403
publicClassPrototype.(anonymous function) @ VM29 extensions::utils:138
EventImpl.dispatch_ @ VM23 extensions::event_bindings:387
EventImpl.dispatch @ VM23 extensions::event_bindings:409
publicClassPrototype.(anonymous function) @ VM29 extensions::utils:138
dispatchOnDisconnect @ VM30 extensions::messaging:378
UnityLoader.js:3 You can reduce your startup time if you configure your web server to host .unityweb files using gzip compression.
blob:https://londonwillgeorge.github.io/ce156e6d-4749-4ce6-a289-cf4380a75a77:2 no boot config - using default values
(Filename: Line: 118)
_JS_Log_Dump @ blob:https://londonwillgeorge.github.io/ce156e6d-4749-4ce6-a289-cf4380a75a77:2
iha @ blob:https://londonwillgeorge.github.io/2f1e8f5a-6863-4d45-80a4-1e2ff89a76c4:4674
bha @ blob:https://londonwillgeorge.github.io/2f1e8f5a-6863-4d45-80a4-1e2ff89a76c4:4665
Yga @ blob:https://londonwillgeorge.github.io/2f1e8f5a-6863-4d45-80a4-1e2ff89a76c4:2883
sZb @ blob:https://londonwillgeorge.github.io/2f1e8f5a-6863-4d45-80a4-1e2ff89a76c4:5507
callMain @ blob:https://londonwillgeorge.github.io/ce156e6d-4749-4ce6-a289-cf4380a75a77:4
doRun @ blob:https://londonwillgeorge.github.io/ce156e6d-4749-4ce6-a289-cf4380a75a77:4
run @ blob:https://londonwillgeorge.github.io/ce156e6d-4749-4ce6-a289-cf4380a75a77:4
runCaller @ blob:https://londonwillgeorge.github.io/ce156e6d-4749-4ce6-a289-cf4380a75a77:4
removeRunDependency @ blob:https://londonwillgeorge.github.io/ce156e6d-4749-4ce6-a289-cf4380a75a77:2
(anonymous) @ blob:https://londonwillgeorge.github.io/ce156e6d-4749-4ce6-a289-cf4380a75a77:2
doCallback @ blob:https://londonwillgeorge.github.io/ce156e6d-4749-4ce6-a289-cf4380a75a77:2
done @ blob:https://londonwillgeorge.github.io/ce156e6d-4749-4ce6-a289-cf4380a75a77:2
reconcile @ blob:https://londonwillgeorge.github.io/ce156e6d-4749-4ce6-a289-cf4380a75a77:2
(anonymous) @ blob:https://londonwillgeorge.github.io/ce156e6d-4749-4ce6-a289-cf4380a75a77:2
(anonymous) @ blob:https://londonwillgeorge.github.io/ce156e6d-4749-4ce6-a289-cf4380a75a77:2
IndexedDB (async)
(anonymous) @ blob:https://londonwillgeorge.github.io/ce156e6d-4749-4ce6-a289-cf4380a75a77:2
(anonymous) @ blob:https://londonwillgeorge.github.io/ce156e6d-4749-4ce6-a289-cf4380a75a77:2
IndexedDB (async)
getDB @ blob:https://londonwillgeorge.github.io/ce156e6d-4749-4ce6-a289-cf4380a75a77:2
getRemoteSet @ blob:https://londonwillgeorge.github.io/ce156e6d-4749-4ce6-a289-cf4380a75a77:2
(anonymous) @ blob:https://londonwillgeorge.github.io/ce156e6d-4749-4ce6-a289-cf4380a75a77:2
getLocalSet @ blob:https://londonwillgeorge.github.io/ce156e6d-4749-4ce6-a289-cf4380a75a77:2
syncfs @ blob:https://londonwillgeorge.github.io/ce156e6d-4749-4ce6-a289-cf4380a75a77:2
(anonymous) @ blob:https://londonwillgeorge.github.io/ce156e6d-4749-4ce6-a289-cf4380a75a77:2
syncfs @ blob:https://londonwillgeorge.github.io/ce156e6d-4749-4ce6-a289-cf4380a75a77:2
(anonymous) @ blob:https://londonwillgeorge.github.io/ce156e6d-4749-4ce6-a289-cf4380a75a77:2
(anonymous) @ blob:https://londonwillgeorge.github.io/ce156e6d-4749-4ce6-a289-cf4380a75a77:2
callRuntimeCallbacks @ blob:https://londonwillgeorge.github.io/ce156e6d-4749-4ce6-a289-cf4380a75a77:2
preRun @ blob:https://londonwillgeorge.github.io/ce156e6d-4749-4ce6-a289-cf4380a75a77:2
run @ blob:https://londonwillgeorge.github.io/ce156e6d-4749-4ce6-a289-cf4380a75a77:4
runCaller @ blob:https://londonwillgeorge.github.io/ce156e6d-4749-4ce6-a289-cf4380a75a77:4
removeRunDependency @ blob:https://londonwillgeorge.github.io/ce156e6d-4749-4ce6-a289-cf4380a75a77:2
applyMemoryInitializer @ blob:https://londonwillgeorge.github.io/ce156e6d-4749-4ce6-a289-cf4380a75a77:4
useRequest @ blob:https://londonwillgeorge.github.io/ce156e6d-4749-4ce6-a289-cf4380a75a77:4
setTimeout (async)
(anonymous) @ blob:https://londonwillgeorge.github.io/ce156e6d-4749-4ce6-a289-cf4380a75a77:4
UnityLoader.loadCode.Module @ UnityLoader.js:4
o.onload @ UnityLoader.js:4
load (async)
loadCode @ UnityLoader.js:4
processAsmFrameworkJob @ UnityLoader.js:4
a.callback @ UnityLoader.js:3
setTimeout (async)
a.complete @ UnityLoader.js:3
UnityLoader.loadCode.Module @ UnityLoader.js:4
o.onload @ UnityLoader.js:4
load (async)
loadCode @ UnityLoader.js:4
processAsmCodeJob @ UnityLoader.js:4
a.callback @ UnityLoader.js:3
setTimeout (async)
a.complete @ UnityLoader.js:3
(anonymous) @ UnityLoader.js:4
r.worker.onmessage @ UnityLoader.js:3
UnityLoader.js:4 Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 536870912, (2) compile with -s ALLOW_MEMORY_GROWTH=1 which adjusts the size at runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY to a higher value before the program runs, or if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0
Your answer
Follow this Question
Related Questions
webgl memory leak 1 Answer
0 or Blank Ref Count Items in Memory Profiler 0 Answers
Memory Leak caused by Multi Threading 1 Answer
200MB file save causing unity memory to increase by over a gigabyte 1 Answer
WebGL memory size in Player Settings? 2 Answers