{"action":"opened","issue":{"url":"https://api.github.com/repos/kripken/emscripten/issues/5097","repository_url":"https://api.github.com/repos/kripken/emscripten","labels_url":"https://api.github.com/repos/kripken/emscripten/issues/5097/labels{/name}","comments_url":"https://api.github.com/repos/kripken/emscripten/issues/5097/comments","events_url":"https://api.github.com/repos/kripken/emscripten/issues/5097/events","html_url":"https://github.com/kripken/emscripten/issues/5097","id":218269701,"number":5097,"title":"Code using SDL 2.0 will not compile to WASM","user":{"login":"pbferre","id":4120008,"avatar_url":"https://avatars3.githubusercontent.com/u/4120008?v=3","gravatar_id":"","url":"https://api.github.com/users/pbferre","html_url":"https://github.com/pbferre","followers_url":"https://api.github.com/users/pbferre/followers","following_url":"https://api.github.com/users/pbferre/following{/other_user}","gists_url":"https://api.github.com/users/pbferre/gists{/gist_id}","starred_url":"https://api.github.com/users/pbferre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbferre/subscriptions","organizations_url":"https://api.github.com/users/pbferre/orgs","repos_url":"https://api.github.com/users/pbferre/repos","events_url":"https://api.github.com/users/pbferre/events{/privacy}","received_events_url":"https://api.github.com/users/pbferre/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-30T17:26:08Z","updated_at":"2017-03-30T17:26:08Z","closed_at":null,"body":"I had an issue where I was having trouble displaying image files created in the app on the browser page. I solved it by switching from SDL 1.2 to 2.0. However, the new code will not compile to WASM. It compiles to asm.js, although I can only use -O1 optimization. However, if I add the '-s WASM=1' switch, the asm2wasm.exe crashes with this message\r\n```\r\nAssertion failed: mappedGlobals.find(name) != mappedGlobals.end() ? true : (std::cerr << name.str << '\\n', false), file C:\\Users\\Patrick Ferre\\.emscripten_ports\\binaryen\\binaryen-version_30\\src\\asm2wasm.h, line 1575\r\n```\r\n\r\nOnce I close the program, I get this traceback\r\n```\r\nTraceback (most recent call last):\r\n  File \"C:\\Program Files\\Emscripten\\emscripten\\incoming\\\\emcc\", line 13, in <module>\r\n    emcc.run()\r\n  File \"C:\\Program Files\\Emscripten\\emscripten\\incoming\\emcc.py\", line 2170, in run\r\n    subprocess.check_call(cmd)\r\n  File \"C:\\Program Files\\Emscripten\\python\\2.7.5.3_64bit\\lib\\subprocess.py\", line 542, in check_call\r\n    raise CalledProcessError(retcode, cmd)\r\nsubprocess.CalledProcessError: Command '[u'C:\\\\Users\\\\Patrick Ferre\\\\.emscripten_ports\\\\binaryen\\\\binaryen-version_30\\\\bin\\\\asm2wasm', 'dither2.temp.asm.js', '--total-memory=16777216', '--emit-jsified-potential-traps', '-O1', '--mem-init=dither2.html.mem', '--mem-base=1024', '--wasm-only', '-o', 'dither2.wasm']' returned non-zero exit status -1073740791\r\n```\r\n\r\nIs there an issue with SDL 2.0, and the WASM compiler, or could this possibly be something in my code? It compiles the individual units correctly, into object files. I only get this error in the last step, combining the object files into the final html."}}
{"actor":{"display_login":"pbferre"}}