Thanks for your reply. I believed that I have overwritten the optimizer.exe in the correct location according to .emscripten. This is part of the log that I got before the crash in Aidan's optimizer. Unfortunately, I cannot share my project but I will copy this log to an issue in ayzim.
thread 'main' has overflowed its stack
DEBUG:root:EMCC_WASM_BACKEND tells us to use asm.js backend
splitting up js optimization into 124 chunks, using 40 cores (total: 301.94 MB)
Traceback (most recent call last):
File "E:\emsdk\emscripten\1.36.3\\em++", line 13, in <module>
emcc.run()
File "E:\emsdk\emscripten\1.36.3\emcc.py", line 1731, in run
JSOptimizer.flush()
File "E:\emsdk\emscripten\1.36.3\emcc.py", line 1643, in flush
run_passes(chunks[i], 'js_opts_' + str(i), just_split='receiveJSON' in chunks[i], just_concat='emitJSON' in chunks[i])
File "E:\emsdk\emscripten\1.36.3\emcc.py", line 1613, in run_passes
final = shared.Building.js_optimizer(final, passes, debug_level >= 4, JSOptimizer.extra_info, just_split=just_split, just_concat=just_concat)
File "E:\emsdk\emscripten\1.36.3\tools\shared.py", line 1741, in js_optimizer
ret = js_optimizer.run(filename, passes, NODE_JS, debug, extra_info, just_split, just_concat)
File "E:\emsdk\emscripten\1.36.3\tools\js_optimizer.py", line 544, in run
return temp_files.run_and_clean(lambda: run_on_js(filename, passes, js_engine, source_map, extra_info, just_split, just_concat))
File "E:\emsdk\emscripten\1.36.3\tools\tempfiles.py", line 64, in run_and_clean
return func()
File "E:\emsdk\emscripten\1.36.3\tools\js_optimizer.py", line 544, in <lambda>
return temp_files.run_and_clean(lambda: run_on_js(filename, passes, js_engine, source_map, extra_info, just_split, just_concat))
File "E:\emsdk\emscripten\1.36.3\tools\js_optimizer.py", line 446, in run_on_js
filenames = pool.map(run_on_chunk, commands, chunksize=1)
File "E:\emsdk\python\2.7.5.3_64bit\lib\multiprocessing\pool.py", line 250, in map
return self.map_async(func, iterable, chunksize).get()
File "E:\emsdk\python\2.7.5.3_64bit\lib\multiprocessing\pool.py", line 557, in get
raise self._value
AssertionError: Error in optimizer (return code 255):
ninja: build stopped: subcommand failed.