-
Notifications
You must be signed in to change notification settings - Fork 4
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 on Windows #13
Comments
Could you provide more details? Please clear the cache in |
Thank you for the quick reply! I've tried reinstalling everything a couple times. Now I get the error
during Even though the dll is right there, it even shows its path! I compiled the adapter using this command from a MSYS2 UCRT64 console: gcc -O3 -fPIC -shared -o libraylib-adapter.dll libraylib-adapter.x86_64-pc-windows-gnu.c -I /c/raylib/raylib/src -L /c/raylib/raylib/src -lraylib -lwinmm -lgdi32 Google isn't showing anything relevant for that message. Do you have any clue how to go on? |
Could you please try out the following steps to help troubleshoot the issue?
|
I got it to find all the libraries again by moving all the dlls to System32. ldd looks fine: $ ldd /c/Windows/System32/libraylib-adapter.dll
ntdll.dll => /c/WINDOWS/SYSTEM32/ntdll.dll (0x7ffd3b290000)
KERNEL32.DLL => /c/WINDOWS/System32/KERNEL32.DLL (0x7ffd390a0000)
KERNELBASE.dll => /c/WINDOWS/System32/KERNELBASE.dll (0x7ffd38990000)
msvcrt.dll => /c/WINDOWS/System32/msvcrt.dll (0x7ffd3ada0000)
ucrtbase.dll => /c/WINDOWS/System32/ucrtbase.dll (0x7ffd387d0000)
WINMM.dll => /c/Windows/System32/WINMM.dll (0x7ffd301d0000)
raylib.dll => /c/Windows/System32/raylib.dll (0x7ffc672c0000)
GDI32.dll => /c/WINDOWS/System32/GDI32.dll (0x7ffd39cf0000)
win32u.dll => /c/WINDOWS/System32/win32u.dll (0x7ffd38ea0000)
gdi32full.dll => /c/WINDOWS/System32/gdi32full.dll (0x7ffd386b0000)
msvcp_win.dll => /c/WINDOWS/System32/msvcp_win.dll (0x7ffd388f0000)
USER32.dll => /c/WINDOWS/System32/USER32.dll (0x7ffd3aa90000)
SHELL32.dll => /c/WINDOWS/System32/SHELL32.dll (0x7ffd39170000)
IMM32.DLL => /c/WINDOWS/System32/IMM32.DLL (0x7ffd39d20000)
There are no errors at compilation, even with all debug flags turned on. Although the error at runtime still persists:
|
This is strange. Raylib seems properly initialized, and the GLFW window is created, but SBCL doesn’t capture stack info when the error happens. Not sure about the cause, but could you try:
|
Thank you for your support! No luck yet, I'm afraid.
|
I would try to replicate this issue on Windows later. It would be helpful if you could narrow down the function where the error occurs in the example. |
Thank you! It seems to be (raylib:with-window ("test" (200 200))
(loop :until (raylib:window-should-close)
:do (raylib:with-drawing
(raylib:draw-text "Congrats!" 0 0 20 raylib:+lightgray+)))) |
Oh I'm not sure if that's relevant but I cloned the prebuild branch and not master. Just in case that changes something. |
Could |
Nope, same crash sadly |
As long as the adapters can be compiled, linked, and loaded by Lisp, that won't be a problem. |
If |
Hm, this clears the screen and does not crash. But the text is not showing at all: (raylib:with-window ("test" (800 600))
(loop :until (raylib:window-should-close)
:do
(raylib:with-drawing
(rlgl:clear-color 255 255 255 255)
(rlgl:clear-screen-buffers)
(raylib:draw-text "Congrats!" 190 200 20 raylib:+lightgray+)))) |
@shining-luna How about you try the adpaters I compiled? |
Been having similar issues to OP and here's something I'm confused about: what's |
The problem is that I cannot reproduce the issue in my MSYS2 environment at all. I've published a game on itch.io using SBCL +
If you've properly installed |
If the DLLs are being put inside |
As long as you add |
I moreso mean whether there's a difference between running the Windows release of SBCL versus compiling it from source in the MSYS2 environment and running that. That said, it didn't seem to yield any difference, so that probably isn't the issue... Also, I forgot to mention, but Nano Towers does work without issues; I tried borrowing the DLLs from there to see if they'd work better (and switched |
Hi, I tried to setup this library on Windows but when I try to run the basic-window example, it crashes with the following message
The text was updated successfully, but these errors were encountered: