-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Problem since luabind replace by Sol2 #3452
Comments
Thanks, @karenzshea can you have a look? This could be related to the notes here. @fijemax can you tell us the Lua version you are using? 5.1 by chance? |
@daniel-j-h |
I can solved the problem by updating lua ? |
Maybe; you can give Lua 5.2 a try. But that's still an issue for us since we support both Lua 5.1 and Lua 5.2. Lua 5.3 has some garbage collection issues which make it consume way more memory during extraction. |
I can reproduce this, and unfortunately simply switching to Lua 5.2 doesn't fix it. Needs some more digging, but it looks like we're not binding everything we need to with Sol2. |
Hi, |
@fijemax the fix is not yet merged to |
For Lua 5.2 and 5.3, you can override the appropriate iteration metamethods ( For Lua 5.1, if and only if you want to use ipairs or pairs, you must hand the function a table of some sort (you have to serialize whatever data to a table). This makes it read-only and also makes it hard to modify elements during iteration (if that is what you require), but that's just how it goes (unless you iterate in some other manner). Note that using a numeric for loop and somehow associating some state data with that might also be beneficial for your purposes. |
@oxidase does you PR fully solve this problem? If so, could you close here. Otherwise it would be great if we could capture clearly whats left to do. |
I rebase this commit on master. |
@fijemax thanks for your feedback! Closed as partially implemented. Full solution would require dropping Lua 5.1 support and implementation of userdata meta functions for |
Since that luabind was replaced by Sol2 I can't iter on way's nodes.
My lua code :
The error exception :
The text was updated successfully, but these errors were encountered: