LuDong
LuDong
两三个项目碰到了这个问题,Unity版本含2017和2019 堆栈如下图(来自sin,thx)   有几个怀疑的点: 1. 多线程锁的问题,日志中发现在signal处理函数中,std::mutex会失效,全改成了pthread,看起来没问题 2. std::map 和 static link的问题, 把map换成了c版的,hash函数直接cache size取余。 新增了个分支, 做了些改动: https://github.com/noodle1983/UnityAndroidIl2cppPatchDemo-libboostrap/tree/crash_in_map_test 来自sin的反馈,暂时没有崩溃;另外还有加载场景卡死的问题,无日志,原因不明,未深入。 求测。
最近项目支持中遇到的, 日志 ``` il2cpp : [f1431494]shadow apk in fopen: /data/app/com.xxx.xxx-Ky_RNzCxgS6S8Frk2_85IA==/base.apk, fd:0x000000ca, file*: 0xed504108 il2cpp : [f1431494]fseek -> 0xed504108 at 0x00000000 with type 2 il2cpp : [f1431494]ftell -> 0xed504108 at 0x107fc46f...
堆栈:  涉及机型:  如果有朋友能有相关机型测试,或能重现,还望告知, 谢谢!
 unitytest目录加了个测试用例,确实能看到日志是错乱的 先全部用mutex fix