Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Will_Croxford · Dec 02, 2018 at 06:05 PM · webglmemorymemory-leakgithub

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


Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

105 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges