Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AnotherEnd15 opened this issue Apr 24, 2024 · 4 comments
Open
Labels
bug Something isn't working

Comments

@AnotherEnd15
Copy link

描述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 AnotherEnd15 added the bug Something isn't working label Apr 24, 2024
@AnotherEnd15
Copy link
Author

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

@AnotherEnd15
Copy link
Author

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

@AnotherEnd15
Copy link
Author

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

@AnotherEnd15 AnotherEnd15 reopened this Apr 26, 2024
@Oooocean
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants