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

lua跟jass大量混用的情况下, lua注册闭包给jass接口会导致崩溃 #197

Open
w4454962 opened this issue Apr 29, 2020 · 8 comments
Labels

Comments

@w4454962
Copy link

如题 亲测过 当jass里有大量的脚本代码 加上lua里也大量注册了 jass回调函数 会导致lua回调崩溃

具体原因是 uintptr_t trampoline_create(uintptr_t callback_, uintptr_t param1_, uintptr_t param2_) 所生成的 jass字节码 在特殊的情况下不准确 而产生的崩溃

我重新用另外一种方式实现 回调, 就解决该崩溃了。

果然这些千奇百怪的坑只有我踩到

@mex131
Copy link

mex131 commented May 19, 2020

感谢大佬膜拜大佬
我等不会底层的菜鸡, 碰到这种错误, 全是内存地址.. 内心的相当崩溃的~~
特地注册个号过来顶一下子~

@w4454962
Copy link
Author

内置lua引擎修复过这个问题了

@Sdator
Copy link

Sdator commented Jun 20, 2020

内置lua引擎修复过这个问题了

可有解决例子?

@w4454962
Copy link
Author

w4454962 commented Jun 20, 2020

~~

2 similar comments
@w4454962
Copy link
Author

w4454962 commented Sep 7, 2020

~~

@w4454962
Copy link
Author

w4454962 commented Dec 4, 2020

~~

@actboy168 actboy168 added the bug label Dec 4, 2020
@qq1053831109
Copy link

当jass里有大量code注册到2888表里的数组时 会有resize的操作!这个表能存多少jass啊? lua里传给cj的回调函数算是存到这个表里吗?

@w4454962
Copy link
Author

w4454962 commented Aug 19, 2021

当jass里有大量代码注册到2888表里的这个数组的时候会有调整大小的操作!表能存多少jass啊?lua里传给cj的哭闹函数到这个表吗?

  内置lua  跟 11平台的lua引擎 都修复了这个bug了   网易的大概没有, 上面我放了修复代码了。  

这个问题是脚本层不能解决的,不是你该管的。

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

No branches or pull requests

5 participants