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

2.0.2版本在多层await调用后 再加载资源,会出现对象和实例不同步的情况(偶现) #719

Open
icyXk opened this issue Jul 21, 2022 · 0 comments

Comments

@icyXk
Copy link

icyXk commented Jul 21, 2022

Unity版本
2020.3.8

ILRuntime版本
2.0.2

问题
在多层调用await之后,会出现加载资源后,资源物体是创建了的,但对象为空的情况。(偶现 偶现概率和await用的频率有关)

解决步骤
1.和蓝大反映情况后,建议我使用master版的ILRuntime,替换后在development模式下,确实解决了问题。
2.但在打release的情况,还是会出现这种情况(概率似乎有所变小),根本原因是release模式编译的il2cpp代码和debug模式下是不一样的(用对比工具可以看出)
3.由于项目组不希望发布带development水印的版本,开始寻找 如何使用debug编译il2cpp代码和release版本的其他配置。
4.经过替换资源文件,实现了无水印的 带debug模式il2cpp的包,该问题解决!
如果大佬有更简单的办法,可以指导一下。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant