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 at language.d:431 during startup #121
Comments
Thanks for the report! I haven't tested on MacOS at all -- only Windows and Linux -- and this feedback is extremely valuable. A fresh checkout of master (fe114c5) didn't reproduce the error here. I'll dissect the source, and keep you updated when I have a theory. :-) |
Forgot to include information about the exception itself:
So it seems to be a null pointer dereference. |
I've added debugging asserts around the crashing source line, and around Please pull master again, and run |
Not entirely sure about this, but this might have something to do with threads. I printed the id of the current thread where |
Thanks for the tips! I've changed some initialization code. Please pull master (fa9c3e4) again, and see if the bug still manifests. Background info: Your findings fit into my mental image of where the bug may lie. The program works like this:
I conjecture that lines like |
Pulled fa9c3e4: still crashes on |
I found the following in the DAllegro5 readme:
Might this have something to do with our issue? |
I found the bug! It's in DAllegro5. On macOS they call
But they don't call After fixing this, Lix doesn't crash in language.d anymore and a window opens up :) yay. |
Btw this works fine now even without fa9c3e4, if you want to revert that. |
Excellent debugging! Awesome to see it running on MacOS. I didn't have any new good ideas yesterday. Over night, I thought about replacing all module constructors with code that I call by hand. Running all initialization manually might be better if the module constructors took a long time to run. My module constructors all run fast enough that running them twice, once for |
I'm compiling this on macOS; installed dmd, dub, A5, and ran
dub
in the project root directory. The program immediately crashes. Here's the relevant stack trace from the crash log:Hope this helps.
Edit: I reproduced this with the latest master (fe114c5).
The text was updated successfully, but these errors were encountered: