Search Issue Tracker

By Design

Votes

0

Found in

2019.1.0a12

Issue ID

1108361

Regression

No

WASM memory growth is broken if threadsSupport is enabled

WebGL

-

-e: see title, build works when adding a specific memory size
--this is a regression in emscripten itself

-repro:
--open attached project
--build&run for webgl
--notice it works
--open Editor\EnableThreads.cs
--remove "PlayerSettings.WebGL.memorySize = 512;"
--recompile
--build and run
--NOTICE build fails in browser with error:

Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 16777216, (2) compile with -s ALLOW_MEMORY_GROWTH=1 which allows increasing the size at runtime, or (3) if you want malloc to return NULL (0) instead of this abort, compile with -s ABORTING_MALLOC=0

  1. Resolution Note (2019.3.X):

    This is currently expected behavior. Wasm multithreading does not currently support memory growth, but one must use a fixed size. We should document this as a limitation. Wasm working group is in the middle of speccing this scenario, after which the fix will propagate its way to Emscripten for us to utilize.

Comments (3)

  1. shubhamswaraj2021

    Aug 18, 2020 04:41

    good one <a href="https://www.lyricsauto.com">lyricsauto</a>

  2. MartinSof

    May 05, 2020 05:01

    Hello There. I found your blog using msn. This is an extremely well written article. I will be sure to bookmark it and return to read more of your useful information. Thanks for the post. I’ll certainly comeback. http://couponcodes365.us
    http://couponcodes365.us/store/resurge-coupon-codes/
    http://couponcodes365.us/store/yoga-burn-discount-coupon/
    http://couponcodes365.us/store/unlock-your-hip-flexors-coupons/
    http://couponcodes365.us/store/leptitox-coupon-codes/

  3. IzumiTsutsui

    Jan 24, 2020 09:04

    Important isssue I believe the solution will be found soon. I hope I could apply it for https://hotcasinoonline.jp/ to make the process better and more accurate.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.