Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

WebGL Export error

Discussion in 'Editor & General Support' started by ki_ha1984, Jun 25, 2015.

  1. ki_ha1984

    ki_ha1984

    Joined:
    Aug 24, 2014
    Posts:
    111
    Hi to all,

    I built an application as webplayer and now i convert it to WebGL and i got those errors ?

    Code (CSharp):
    1. An error occured running the Unity content on this page. See your browser's JavaScript console for more info. The error was:
    2. uncaught exception: abort("Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 268435456, (2) compile with ALLOW_MEMORY_GROWTH which adjusts the size at runtime but prevents some optimizations, or (3) set Module.TOTAL_MEMORY before the program runs.") at jsStackTrace@file:///Users/theUser/Desktop/Synthe/250515/index/Release/index.js:1187:13
    3. stackTrace@file:///Users/theUser/Desktop/Synthe/250515/index/Release/index.js:1204:22
    4. abort@file:///Users/theUser/Desktop/Synthe/250515/index/Release/index.js:3504027:44
    5. enlargeMemory@file:///Users/theUser/Desktop/Synthe/250515/index/Release/index.js:1223:3
    6. Runtime.dynamicAlloc@file:///Users/theUser/Desktop/Synthe/250515/index/Release/index.js:368:161
    7. _sbrk@file:///Users/theUser/Desktop/Synthe/250515/index/Release/index.js:14311:23
    8. _malloc@file:///Users/theUser/Desktop/Synthe/250515/index/Release/index.js:3486087:16
    9. __ZN13MemoryManager16LowLevelAllocateEj [MemoryManager::LowLevelAllocate(unsigned int)]@file:///Users/ipet/Desktop/Synthe/250515/index/Release/index.js:921397:8
    10. __ZN17LowLevelAllocator6MallocEj [LowLevelAllocator::Malloc(unsigned int)]@file:///Users/theUser/Desktop/Synthe/250515/index/Release/index.js:924430:8
    11. __ZN21UnityDefaultAllocatorI17LowLevelAllocatorE8AllocateEji [Allocate? UnityDefaultAllocator<LowLevelAllocator?>(unsigned int, int)]@file:///Users/theUser/Desktop/Synthe/250515/index/Release/index.js:922606:8
    12. __ZN13MemoryManager8AllocateEji10MemLabelIdiPKci [MemoryManager::Allocate?1(unsigned int, int)]@file:///Users/theUser/Desktop/Synthe/250515/index/Release/index.js:920755:9
    13. __ZN13MemoryManager10ReallocateEPvji10MemLabelIdiPKci [MemoryManager::Reallocate?1(void*, unsigned int, int)]@file:///Users/theUser/Desktop/Synthe/250515/index/Release/index.js:920822:9
    14. __Z16realloc_internalPvji10MemLabelIdiPKci [realloc_internal?1(void*, unsigned int, int)]@file:///Users/theUser/Desktop/Synthe/250515/index/Release/index.js:920792:8
    15. __ZN17SharedTextureDataC2E10MemLabelIdii13TextureFormatiibb [SharedTextureData::SharedTextureData?1()]@file:///Users/theUser/Desktop/Synthe/250515/index/Release/index.js:1318354:12
    16. __ZN9Texture2D26AllocateScaledOrPaddedDataE13TextureFormat [Texture2D::AllocateScaledOrPaddedData?1()]@file:///Users/theUser/Desktop/Synthe/250515/index/Release/index.js:1328667:2
    17. __ZN9Texture2D25CreateScaledAndPaddedDataEPP17SharedTextureDataS2_ [Texture2D::CreateScaledAndPaddedData?2(SharedTextureData?S?**)]@file:///Users/theUser/Desktop/Synthe/250515/index/Release/index.js:1328245:9
    18. __ZN9Texture2D13UploadTextureEb [Texture2D::UploadTexture(bool)]@file:///Users/theUser/Desktop/Synthe/250515/index/Release/index.js:1327634:2
    19. __ZN9Texture2D13AwakeFromLoadE17AwakeFromLoadMode [Texture2D::AwakeFromLoad?1()]@file:///Users/theUser/Desktop/Synthe/250515/index/Release/index.js:1326543:2
    20. __ZN18AwakeFromLoadQueue34PersistentManagerAwakeSingleObjectER6Object17AwakeFromLoadMode [AwakeFromLoadQueue::PersistentManagerAwakeSingleObject?7(Object?1?&)]@file:///Users/theUser/Desktop/Synthe/250515/index/Release/index.js:1593828:2
    21. __ZN17PersistentManager48IntegrateObjectAndUnlockIntegrationMutexInternalEi [PersistentManager::IntegrateObjectAndUnlockIntegrationMutexInternal(int)]@file:///Users/theUser/Desktop/Synthe/250515/index/Release/index.js:1597914:4
    22. __ZN27TimeSliceAwakeFromLoadQueue19IntegrateTimeSlicedEi [TimeSliceAwakeFromLoadQueue::IntegrateTimeSliced(int)]@file:///Users/theUser/Desktop/Synthe/250515/index/Release/index.js:1494524:4
    23. __ZN13LoadOperation19IntegrateTimeSlicedEi [LoadOperation::IntegrateTimeSliced(int)]@file:///Users/theUser/Desktop/Synthe/250515/index/Release/index.js:1494320:8
    24. __ZN14PreloadManager26UpdatePreloadingSingleStepENS_21UpdatePreloadingFlagsE [PreloadManager::UpdatePreloadingSingleStep?N()]@file:///Users/theUser/Desktop/Synthe/250515/index/Release/index.js:1462113:9
    25. __ZN14PreloadManager35WaitForAllAsyncOperationsToCompleteEv [PreloadManager::WaitForAllAsyncOperationsToComplete()]@file:///Users/theUser/Desktop/Synthe/250515/index/Release/index.js:1462192:3
    26. __Z21PlayerStartFirstScenev [PlayerStartFirstScene()]@file:///Users/theUser/Desktop/Synthe/250515/index/Release/index.js:1460333:2
    27. __Z20PlayerLoadFirstScenev [PlayerLoadFirstScene()]@file:///Users/theUser/Desktop/Synthe/250515/index/Release/index.js:1460353:3
    28. _main@file:///Users/theUser/Desktop/Synthe/250515/index/Release/index.js:2554188:2
    29. callMain@file:///Users/theUser/Desktop/Synthe/250515/index/Release/index.js:3503898:15
    30. doRun@file:///Users/theUser/Desktop/Synthe/250515/index/Release/index.js:3503955:42
    31. run/<@file:///Users/theUser/Desktop/Synthe/250515/index/Release/index.js:3503966:7
    32. If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.

    Any idea ?

    Thank you in advance
     
  2. psyydack

    psyydack

    Joined:
    Aug 30, 2013
    Posts:
    93
  3. ki_ha1984

    ki_ha1984

    Joined:
    Aug 24, 2014
    Posts:
    111
    Thank you psyydack, also i notice that after i increase memory size more than 1024 the game is exported without building errors but with errors on the UI and the light. Put simply some UI objects does not work and the sensitivity of the light is full and all the colors are with problems, also some shaders does not appear.