Cocos Creator 3.0.0 spine 节点 销毁出问题了 Uncaught TypeError: Cannot read property ‘destroy’ of null

报错信息


renderable-2d.ts:363 Uncaught TypeError: Cannot read property ‘destroy’ of null
at Skeleton.onDestroy (renderable-2d.ts:363)
at Skeleton.onDestroy (skeleton.ts:1274)
at NodeActivator.destroyComp (node-activator.ts:265)
at Skeleton._onPreDestroy (component.ts:382)
at Skeleton._destroyImmediate (object.ts:322)
at Node._onPreDestroyBase (base-node.ts:1373)
at Node._onPreDestroy (base-node.ts:1257)
at Node._destroyImmediate (object.ts:322)
at Node._onPreDestroyBase (base-node.ts:1365)
at Node._onPreDestroy (base-node.ts:1257)
onDestroy @ renderable-2d.ts:363
onDestroy @ skeleton.ts:1274
destroyComp @ node-activator.ts:265
_onPreDestroy @ component.ts:382
_destroyImmediate @ object.ts:322
_onPreDestroyBase @ base-node.ts:1373
_onPreDestroy @ base-node.ts:1257
_destroyImmediate @ object.ts:322
_onPreDestroyBase @ base-node.ts:1365
_onPreDestroy @ base-node.ts:1257
_destroyImmediate @ object.ts:322
_onPreDestroyBase @ base-node.ts:1365
_onPreDestroy @ base-node.ts:1257
_destroyImmediate @ object.ts:322
_onPreDestroyBase @ base-node.ts:1365
_onPreDestroy @ base-node.ts:1257
_destroyImmediate @ object.ts:322
_deferredDestroy @ object.ts:166
mainLoop @ director.ts:895
_callback @ game.ts:706
requestAnimationFrame (async)
_callback @ game.ts:705
requestAnimationFrame (async)
_callback @ game.ts:705
requestAnimationFrame (async)
_callback @ game.ts:705
requestAnimationFrame (async)
_callback @ game.ts:705
requestAnimationFrame (async)
_callback @ game.ts:705
requestAnimationFrame (async)
_callback @ game.ts:705
requestAnimationFrame (async)
_callback @ game.ts:705
requestAnimationFrame (async)
_callback @ game.ts:705
requestAnimationFrame (async)
_callback @ game.ts:705
requestAnimationFrame (async)
_callback @ game.ts:705
requestAnimationFrame (async)
_callback @ game.ts:705
requestAnimationFrame (async)
_callback @ game.ts:705
requestAnimationFrame (async)
_callback @ game.ts:705
requestAnimationFrame (async)
_callback @ game.ts:705
requestAnimationFrame (async)
_callback @ game.ts:705
requestAnimationFrame (async)
_callback @ game.ts:705
requestAnimationFrame (async)
_callback @ game.ts:705
requestAnimationFrame (async)
_callback @ game.ts:705
requestAnimationFrame (async)
_callback @ game.ts:705
requestAnimationFrame (async)
_callback @ game.ts:705
requestAnimationFrame (async)
_callback @ game.ts:705
requestAnimationFrame (async)
_callback @ game.ts:705
requestAnimationFrame (async)
_callback @ game.ts:705
requestAnimationFrame (async)
_callback @ game.ts:705
requestAnimationFrame (async)
_callback @ game.ts:705
requestAnimationFrame (async)
_callback @ game.ts:705
requestAnimationFrame (async)
_callback @ game.ts:705
requestAnimationFrame (async)
_callback @ game.ts:705
requestAnimationFrame (async)
_callback @ game.ts:705
requestAnimationFrame (async)
_callback @ game.ts:705
requestAnimationFrame (async)
_callback @ game.ts:705
requestAnimationFrame (async)
_callback @ game.ts:705

这个是添加播放动画
this.nextSpine.node.setPosition(0, 0, 0)
this.setSpineInit(this.nextSpine, ‘animation’, true, true)
setSpineInit(vObject: sp.Skeleton, name: string, active: boolean = false, loop: boolean = false) {

    if (vObject.node.active != active) {

        vObject.node.active = active

        vObject.clearTracks();

        if (active) {

            vObject.setAnimation(0, "animation", loop);

        } else {

            this.nextSpine.node.setPosition(0, 100000, 0)

        }

    }

    // vObject.setEndListener(() => {

    //     vObject._cleanMaterialCache();

    //     vObject.destroyRenderData();

    // })

}

那个大佬帮忙看看
@wangzhe @panda @jare @308303735

石沉大海了