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

"size of C type is unknown or too large" #31

Open
Calandiel opened this issue Jul 1, 2022 · 1 comment
Open

"size of C type is unknown or too large" #31

Calandiel opened this issue Jul 1, 2022 · 1 comment

Comments

@Calandiel
Copy link

Calandiel commented Jul 1, 2022

I just got that error message. It's not really clear. Perhaps it should mention that size limit? I was trying to serialize ~100 megabytes of cdata (VLAs to be more precise)
I tried to follow the stack trace but it wasn't clear to me what exactly happened. In either case, here it is:


engine/bitser.lua:228: size of C type is unknown or too large


Traceback

[love "callbacks.lua"]:228: in function 'handler'
[C]: in function 'typeof'
engine/bitser.lua:228: in function <engine/bitser.lua:215>
engine/bitser.lua:266: in function 'serialize_value'
engine/bitser.lua:210: in function <engine/bitser.lua:181>
engine/bitser.lua:266: in function 'serialize_value'
engine/bitser.lua:272: in function 'serialize'
engine/bitser.lua:398: in function 'dumpLoveFile'
game/entities/world.lua:89: in function 'save'
game/scenes/game.lua:469: in function 'draw'
game/scene-manager.lua:41: in function 'draw'
main.lua:91: in function 'draw'
[love "callbacks.lua"]:168: in function <[love "callbacks.lua"]:144>
[C]: in function 'xpcall'
@gvx
Copy link
Owner

gvx commented Jul 2, 2022

That's unfortunate. Could you help me out by creating a minimal reproducible example? That would allow me to figure out if there is a way to fix this or at least figure out the exact limits so it can be documented.

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