wechat-miniprogram / minigame-unity-webgl-transform

Wechat Mini Game Unity engine adapter documents.
https://wechat-miniprogram.github.io/minigame-unity-webgl-transform/
MIT License
2.92k stars 453 forks source link

运行阶段-出现function signature mismatch 之后游戏卡死 #744

Open AnotherEnd15 opened 4 months ago

AnotherEnd15 commented 4 months ago

描述Bug

exception thrown: RuntimeError: function signature mismatch,RuntimeError: function signature mismatch at CloneObjectImpl(Object, Transform, vector_map<int, int, std::__2::less, stl_allocator<std::__2::pair<int, int>, (MemLabelIdentifier)1, 16> >&) (:wasm-function[22456]:0x694ac7) at CloneObject(Object&) (:wasm-function[22455]:0x693a0e) at Object_CUSTOM_Internal_CloneSingle(Il2CppObject*) (:wasm-function[76164]:0x1443d6e) at Object_Internal_CloneSingle_m24ECA1416702930DF5C316EA8B70D575315B636A (:wasm-function[20025]:0x5f9441) at Object_Instantiate_TisRuntimeObject_m90A1E6C4C2B445D2E848DB75C772D1B95AAC046A_gshared (:wasm-function[35806]:0xb4c3a0)

运行环境

环境:
Unity2021.3.18
微信小游戏包 04171424
流程: 下载首包+HybridCLR加载热更dll
在开发者工具/安卓环境都会出现这个问题
AnotherEnd15 commented 4 months ago

去掉了hybridCLR 问题依然存在 而且看堆栈 是UnityEngine.Object.Instantiate(prefab)这个触发的

AnotherEnd15 commented 4 months ago

已经知道问题了. 是HybridCLR这的. 应该是我用的版本对应的IL2CPP有点问题. 完全移除HybridCLR. 新目录打开后一切正常了

AnotherEnd15 commented 4 months ago

这两天打包又重复遇到了 原因未知. 这次已经没有HybridCLR干扰了 image GameObjectCenterPoolComponentSystem_Load 就是调用的UnityEngine.Object.Instantiate(prefab)

Oooocean commented 4 months ago

你好,是否能提供有问题的Unity工程,联系研发助手详细看看