leaningtech-dev team mailing list archive
-
leaningtech-dev team
-
Mailing list archive
-
Message #00111
[Bug 1297966] Re: Allocation object (which uses inheritance) statically causes pointer not to work
I've identified the bug. The issue is that constant initialized class
instances do not have correct class metadata for up/down casting
support. Changed the title accordingly.
** Summary changed:
- Allocation object (which uses inheritance) statically causes pointer not to work
+ Constant initialized class instances do not have correct class metadata for up/down casting support
** Changed in: duetto
Status: New => Confirmed
** Changed in: duetto
Importance: Undecided => Medium
** Changed in: duetto
Assignee: (unassigned) => Alessandro Pignotti (a-pignotti)
--
You received this bug notification because you are a member of
Leaningtech Team, which is subscribed to Duetto.
https://bugs.launchpad.net/bugs/1297966
Title:
Constant initialized class instances do not have correct class
metadata for up/down casting support
Status in Duetto: C++ for the Web:
Confirmed
Bug description:
I have a bug to report, but unfortunately I am still not able to
reproduce it with a simple test case, so here it goes.
This revision of my software works fine with duetto:
https://github.com/ddiproietto/nontetris/commit/25b2dab412aaa71eeed4a9ec4acdb60cd19110f7
------------------------
However, the next commit
https://github.com/ddiproietto/nontetris/commit/172255ea9ff9f0c58980066d1b2dc6dce9cc9d59
introduces a weird bug: as soon as Box2D tries to report a collision the game stops working and the browser reports a javascript runtime error about Llistener.o not being defined in this line:
var tmp4725 = (Llistener.d[Llistener.o].a0);
You can see the problem in action here (when a piece reach a wall or the ground):
http://allievi.sssup.it/jacopone/cnontetris-testing/
------------------------
To avoid the problem I found an ugly simple fix for my code
https://github.com/ddiproietto/nontetris/commit/7879a417a98128090a5e3e27b783ca4f9f94ca01
that, surprisingly enough, works.
I'm sorry I wasn't able to investigate this further
To manage notifications about this bug go to:
https://bugs.launchpad.net/duetto/+bug/1297966/+subscriptions
References