Closed mlogan closed 10 years ago
(also, the reproduction steps are for node.js, sorry for not being clear.)
I've made the beginnings of a WebIDL-based Box2D build, and this bug does seem to be due to customizeVTable
. It does not occur in optimized builds when using the WebIDL JSImplementation approach to implementing virtual methods in javascript.
Makes sense, customizeVTable
was a pretty horrible hack ;)
I guess there is no point in looking into it, given that we are moving to the WebIDL version.
Agreed.
I'm uncovering a bunch of features/bugfixes we need in webidl_binder.py, and filing PRs for them over in https://github.com/kripken/emscripten, which will all have to get merged before we can have working IDL-based bindings for box2d.js.
Hi again,
I was debugging some apparently impossible behavior - basically, my contact listener was getting BeginContact called continuously while two fixtures were in contact, and then I would get only one EndContact call when the contact ceased.
Rebuilding with
-profiling
, I found that the first contact event came from the expected code path (b2Contact::Update
), while subsequent events came from bogus code paths that made no sense.It appears that the culprit is the
-O3
in theLINK_OPTS
variable in the Makefile. If I remove that, I get a working build.Steps to reproduce:
LINK_OPTS =
(remove the-O3
), rerun the reproduction script.Hope this is enough to go on.