Pixi phaser bug must be fixed

I had a error with QICI destroying objects when i try to destroy an UIText.
First happen when i try to change state and throw the error.
then i started to destroy each object in scene one by one and when i reached this UIText throws and error
(i had to replace http://  with /
Error:[Error: Cannot read property 'game' of null]
qc-core-debug.js:210 TypeError: Cannot read property 'game' of null
    at PIXI.DisplayObject.maybeOutWorld (/192.168.0.20:5002/lib/qc-core-debug.js:23180:19)
    at PIXI.DisplayObject.destroy (/192.168.0.20:5002/lib/qc-core-debug.js:23147:10)
    at Phaser.Component.Destroy.destroy (/192.168.0.20:5002/lib/phaser.js:34994:34)
    at Phaser.Group.removeAll (h/192.168.0.20:5002/lib/phaser.js:22035:21)
    at Phaser.Group.destroy (/192.168.0.20:5002/lib/phaser.js:22124:10)
    at phaser.destroy (/192.168.0.20:5002/lib/qc-core-debug.js:5252:24)
    at Node.destroyImmediately (/192.168.0.20:5002/lib/qc-core-debug.js:5875:21)
    at //192.168.0.20:5002/lib/qc-core-debug.js:11132:14
    at Array.forEach (native)
    at World.preUpdate (/192.168.0.20:5002/lib/qc-core-debug.js:11131:22)Log.error @ qc-core-debug.js:210Phaser.RequestAnimationFrame.updateRAF @ qc-core-debug.js:10269_onLoop @ phaser.js:44904
Has invited:

DonFrag

Favor from:

now i was able to replicate it
 
y created a ui text as a child in heirachy. hten i changed  it to bitmap font then asigend and move a little
 
then when y try to destroy it throws and error and if I try to change it from bitmap font to System the editor collapses.
 

eric

Favor from:

It's a bug is 1.0.6, we will fix it in next version, currently you can change the qc-core-debug.js source code as below, adding a null check for this.stage varible
PIXI.DisplayObject.prototype.maybeOutWorld = function() {
if (this.game)
this.game._qc && this.game._qc.dirtyRectangle.redirectDirty(this._currWorldBounds);
else if (this.stage) {
this.stage.game._qc && this.stage.game._qc.dirtyRectangle.redirectDirty(this._currWorldBounds);
}
};

To reply to a question, please Login or registered