js调用原生方法报错:Native thread exiting without having called DetachCurrentThread

  • Creator 版本:2.2.2

  • 目标平台: iOS(IOS表现类似) / Android

  • 详细报错信息,包含调用堆栈:
    Native thread exiting without having called DetachCurrentThread (maybe it's going to use a pthread_key_create destructor?): Thread[26,tid=22808,Native,Thread*=0x7f32c2d000,peer=0x134530a0,"Thread-1190"]

  • 重现方式:js 通过jsb.reflection.callStaticMethod 调用安卓 原生方法

  • 手机型号:OPPO R9m

  • 出现概率:在长时间使用游戏时会出现

你解决了吗

没有,项目死了就没管

我在xmlhttprequest请求的时候报这个错误, Native thread exiting without having called DetachCurrentThread (maybe it’s going to use a pthread_key_create destructor?): Thread[26,tid=2216,Native,Thread*=0xafcfaf00,peer=0x12ca9ee0,“Thread-158”]
2022-07-05 16:25:31.057 2099-2216/org.cocos2d.demo D/JniHelper: JniHelper::getJavaVM(), pthread_self() = -1815107280
(必现)creator版本2.4.3