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

CS.System.IO.Path.GetExtension 导致卡死 #1114

Open
jerry-zeng opened this issue Jan 24, 2024 · 0 comments
Open

CS.System.IO.Path.GetExtension 导致卡死 #1114

jerry-zeng opened this issue Jan 24, 2024 · 0 comments

Comments

@jerry-zeng
Copy link

Unity2021.3 + xlua2.1.16,其实跟xlua版本没有关系,Unity升级之后就出现了,表现是未响应,跟死循环很像。
目前只出现在没有执行Generate Code的时候,执行完就没事,但编辑器状态不是很想总是生成。

代码的话是因为用了C#那边的遍历目录接口,然后回调在lua写的,回调里面刚好又用到了 CS.System.IO.Path.GetExtension(path)

不遍历,只执行一次 CS.System.IO.Path.GetExtension() 会报:
BadImageFormatException: Cannot box IsByRefLike type 'System.ReadOnlySpan`1'
(wrapper native-to-managed) PathWrap6022.GetExtension6027(intptr)

这2个泛型都加到[BlackList]了,应该跟上面没关系吧?不加也一样的。
typeof(Span<>),
typeof(ReadOnlySpan<>),

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