{"action":"created","issue":{"url":"https://api.github.com/repos/kripken/emscripten/issues/3752","labels_url":"https://api.github.com/repos/kripken/emscripten/issues/3752/labels{/name}","comments_url":"https://api.github.com/repos/kripken/emscripten/issues/3752/comments","events_url":"https://api.github.com/repos/kripken/emscripten/issues/3752/events","html_url":"https://github.com/kripken/emscripten/issues/3752","id":105243682,"number":3752,"title":"Uncaught exception: TODO","user":{"login":"raptor","id":6452412,"avatar_url":"https://avatars.githubusercontent.com/u/6452412?v=3","gravatar_id":"","url":"https://api.github.com/users/raptor","html_url":"https://github.com/raptor","followers_url":"https://api.github.com/users/raptor/followers","following_url":"https://api.github.com/users/raptor/following{/other_user}","gists_url":"https://api.github.com/users/raptor/gists{/gist_id}","starred_url":"https://api.github.com/users/raptor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raptor/subscriptions","organizations_url":"https://api.github.com/users/raptor/orgs","repos_url":"https://api.github.com/users/raptor/repos","events_url":"https://api.github.com/users/raptor/events{/privacy}","received_events_url":"https://api.github.com/users/raptor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-07T16:26:23Z","updated_at":"2015-09-07T17:06:41Z","closed_at":null,"body":"Hi,\r\n\r\nI've got my code base compiling against the latest `incoming` branch.  When running it properly resizes the window but then throws an exception like so:\r\n```\r\nuncaught exception: TODO : jsStackTrace@file:///home/user/code/git/bitfighter/exe/bitfighter.js:1:42884\r\nstackTrace@file:///home/user/code/git/bitfighter/exe/bitfighter.js:1:43067\r\nFS.handleFSError@file:///home/user/code/git/bitfighter/exe/bitfighter.js:1:138097\r\n_bind@file:///home/user/code/git/bitfighter/exe/bitfighter.js:1:349914\r\njTc@file:///home/user/code/git/bitfighter/exe/bitfighter.js:9:411578\r\nKQc@file:///home/user/code/git/bitfighter/exe/bitfighter.js:9:350977\r\nwga@file:///home/user/code/git/bitfighter/exe/bitfighter.js:11:447823\r\nm_@file:///home/user/code/git/bitfighter/exe/bitfighter.js:11:223980\r\nOUb@file:///home/user/code/git/bitfighter/exe/bitfighter.js:5:150975\r\nrw@file:///home/user/code/git/bitfighter/exe/bitfighter.js:15:115385\r\nww@file:///home/user/code/git/bitfighter/exe/bitfighter.js:15:126779\r\ncallMain@file:///home/user/code/git/bitfighter/exe/bitfighter.js:24:45694\r\ndoRun@file:///home/user/code/git/bitfighter/exe/bitfighter.js:24:46521\r\nrun/<@file:///home/user/code/git/bitfighter/exe/bitfighter.js:24:46689\r\n```\r\nThis error seems to be thrown when calling this function in the `bitfighter.js` file:\r\n```\r\nsock.sock_ops.bind(sock,addr,port);\r\n```\r\nI've been looking around at the emscripten code but can't seem to find where an unresolved TODO may be for this.  Am I doing something wrong?\r\n\r\nMy linking command was:\r\n```\r\n/home/user/apps/emsdk_portable/emscripten/incoming/emcc -s USE_SDL=2 -s LEGACY_GL_EMULATION=1 -s GL_UNSAFE_OPTS=0 -s ALLOW_MEMORY_GROWTH=1 -DNDEBUG -O2 --preload-file /home/user/code/git/bitfighter/resource@/ -O2 @CMakeFiles/bitfighter.dir/objects1.rsp -o ../../exe/bitfighter.html -pthread ../../lib/liblua.a ../tnl/libtnl.a ../tomcrypt/libtomcrypt.so ../clipper/libclipper.a ../poly2tri/libpoly2tri.a -lm ../../lib/libphysfs.a -pthread --emscripten-cxx  (in /home/user/code/git/bitfighter/build/zap)\r\n```\r\nHere is the compiled project:  http://bitfighter.org/~raptor/bitfighter.zip\r\nAnd here is the `.bc` file:  http://bitfighter.org/~raptor/bitfighter.bc.zip\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/kripken/emscripten/issues/comments/138341248","html_url":"https://github.com/kripken/emscripten/issues/3752#issuecomment-138341248","issue_url":"https://api.github.com/repos/kripken/emscripten/issues/3752","id":138341248,"user":{"login":"kripken","id":173661,"avatar_url":"https://avatars.githubusercontent.com/u/173661?v=3","gravatar_id":"","url":"https://api.github.com/users/kripken","html_url":"https://github.com/kripken","followers_url":"https://api.github.com/users/kripken/followers","following_url":"https://api.github.com/users/kripken/following{/other_user}","gists_url":"https://api.github.com/users/kripken/gists{/gist_id}","starred_url":"https://api.github.com/users/kripken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kripken/subscriptions","organizations_url":"https://api.github.com/users/kripken/orgs","repos_url":"https://api.github.com/users/kripken/repos","events_url":"https://api.github.com/users/kripken/events{/privacy}","received_events_url":"https://api.github.com/users/kripken/received_events","type":"User","site_admin":false},"created_at":"2015-09-07T17:06:41Z","updated_at":"2015-09-07T17:06:41Z","body":"There is a `throw 'TODO'` in `mkport`, which makes sense if it happens in a call to bind. `mkport` was removed from incoming, perhaps trying with the latest code fixes this?"}}