fuuu, I got the same problem and finnally solved it
But firstly, where and when you got that Error.
For me, it happened when I recalled the
function of the layer. When the Init() is called, cocos2d-x automatically sets touchEnable = false at first, and somehow, I don’t understand, the command
in my Init() function causes the error accidentally. So the solution is that I setTouchEnable=false by myself before recalling the Init() function, something like this:@ this->setTouchEnable=false; this::init();@