-
Notifications
You must be signed in to change notification settings - Fork 748
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
interpreter crashes after server boot when very large scd file is currently open #1823
Comments
a backtrace with debugging symbols might help. maybe pink @muellmusik, as afaict he implemented most of the document stuff for the ide |
It concerns all sc3.7 versions, both self-built and downloaded binary. I'm trying to find a reason in the system. a reinstall of qt5 didn't make a difference. |
ok, seems to be some file in the config data. |
OK, solved. It was a very large |
I was just about to ask "Time-Wave Synthesizer?" - then read your posting on sc-users. ;) |
Definitely caused a few grey hairs ;) |
btw, a backtrace with debugging symbols (read: line numbers) might help |
... or reading the code: ScIDE_SetDocTextMirror
putting several mb on the stack will cause a stack overflow. someone might want to change the code to use malloc/free instead. |
like this?
|
for make/ninja builds: |
Ah yes, thank you - actually I had configured it with these arguments. But maybe the crash report doesn't show the line numbers nevertheless. Hm, "user friendliness" ... |
well, unless you manually remove the |
ah, is it so - ok, I'll check again when I can |
@timblechmann is #1849 the right way to do it ? I tested opening a 14MB file, and although it took a long time, no crash occurred. |
@miguel-negrao yes, though the same code should also be used in the windows codepath. |
fixed in 044095a. |
I am not sure what is wrong with my system, but all builds, including the downloaded 3.7 binary crash the interpreter on server start. I've cleaned/rebuilt sc serveral times, and rebooted the system.
The text was updated successfully, but these errors were encountered: