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

添加HOTFIX_ENABLE宏,在主线程中调用GC.WaitForPendingFinalizers导致死锁,有什么推荐修改方案吗? #1127

Open
yockguy opened this issue Mar 10, 2024 · 4 comments

Comments

@yockguy
Copy link

yockguy commented Mar 10, 2024

No description provided.

@chexiongsheng
Copy link
Collaborator

如果你在C#调用应该不会死锁。
你在lua还是C#调用?

@yockguy
Copy link
Author

yockguy commented Mar 13, 2024

如果你在C#调用应该不会死锁。 你在lua还是C#调用?

你好,在lua调用的,切场景时会触发一下

@chexiongsheng
Copy link
Collaborator

改为C#调应该可以解决问题,注意这个调用不能有lua代码参与

@yockguy
Copy link
Author

yockguy commented Mar 14, 2024

改为C#调应该可以解决问题,注意这个调用不能有lua代码参与

好的,现在改为在lua层设置个标志位,C#层在LateUpdate去触发手动GC,没遇到问题

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

2 participants