EventDispatcher::dispatchEvent crash

Hi all, we are seeing tons of these in 3.17.2 any ideas how we can fix it?

Thank you!

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** pid: 0, tid: 0 >>> com.xxx.game <<< backtrace:
#00 pc 000000000012c768 <unknown>
#01 pc 00000000006ae608 /data/app-lib/ com.xxx.game-2/libMyGame.so
#02 pc 00000000006aa77c /data/app-lib/ com.xxx.game-2/libMyGame.so
#03 pc 00000000006a5f0c /data/app-lib/ com.xxx.game-2/libMyGame.so (cocos2d::EventDispatcher::dispatchEventToListeners(cocos2d::EventDispatcher::EventListenerVector*, std::__ndk1::function<bool (cocos2d::EventListener*)> const&)+444)
#04 pc 00000000006a6670 /data/app-lib/ com.xxx.game-2/libMyGame.so (cocos2d::EventDispatcher::dispatchEvent(cocos2d::Event*)+312)

Do you dispatching your custom events in your game? if so then make sure whatever you do, do it in cocos thread.

Yes, we are dispatching them within the same thread.