-
-
Notifications
You must be signed in to change notification settings - Fork 322
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
Crash when using a lot of tables #1083
Comments
Is there a way to work around this issue? |
what kind of crash you get? compiler crash or runtime crash? |
@fnc12 this is a runtime crash. Tested with MSVC 2022 17.3.4. It persistently happens when using |
what is error text? |
It is a stack overflow, :) Is there any way to make |
you can try to allocate your storage on heap using
|
@kelteseth It would be interesting whether you see an improvement with sqlite_orm v1.8.1. |
@kelteseth BTW thank you for providing the test case and the python script. It works for me - both at compile-time and run-time - using Visual C++ 17.5.3. |
@trueqbit thank you🎉! I didn't have the time yet to test it, will report back soon hopefully 😊 |
Can confirm it does work now in my project at work. Thanks, hopefully we will find the time to switch our db implementation and become a customer :3 |
I have a project with many tables, but every time I try to add the complete list of tables to my storage the app crashes. I created a python script that generates a complete test project with
structs
,sql
and themake_table
storage initialization (See Crash.zip).You can easily change the amount of generated tables in line 74 and 77. It always happens at about 40 (plus minus 10, I did not count)
make_table
.Crash.zip
If you like you can use the python script for future testing and test data generation.
The text was updated successfully, but these errors were encountered: