dashed / tetris-sdl-c

🕹️ A toy project implementing a simple tetris clone in C for learning SDL 2.x.
MIT License
78 stars 20 forks source link

The game instantly closes on macOS Big Sur #4

Open djevvy opened 3 years ago

djevvy commented 3 years ago

I followed the instructions but when I go to run Tetris-toy it instantly closes, here is what terminal said:

`Last login: Sat May 22 10:45:04 on ttys000 /Users/dylanevans/Downloads/tetris-sdl-c-master/tetris_toy ; exit;

The default interactive shell is now zsh. To update your account to use zsh, please run chsh -s /bin/zsh. For more details, please visit https://support.apple.com/kb/HT208050. Dylans-Air:~ dylanevans$ /Users/dylanevans/Downloads/tetris-sdl-c-master/tetris_toy ; exit; objc[2587]: Class SDLApplication is implemented in both /usr/local/lib/libSDL2-2.0.0.dylib (0x10adbce38) and /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib (0x10b1e0618). One of the two will be used. Which one is undefined. objc[2587]: Class SDLAppDelegate is implemented in both /usr/local/lib/libSDL2-2.0.0.dylib (0x10adbce88) and /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib (0x10b1e0668). One of the two will be used. Which one is undefined. objc[2587]: Class SDLTranslatorResponder is implemented in both /usr/local/lib/libSDL2-2.0.0.dylib (0x10adbcf00) and /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib (0x10b1e06e0). One of the two will be used. Which one is undefined. objc[2587]: Class SDLMessageBoxPresenter is implemented in both /usr/local/lib/libSDL2-2.0.0.dylib (0x10adbcf28) and /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib (0x10b1e0708). One of the two will be used. Which one is undefined. objc[2587]: Class SDL_cocoametalview is implemented in both /usr/local/lib/libSDL2-2.0.0.dylib (0x10adbcf78) and /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib (0x10b1e0758). One of the two will be used. Which one is undefined. objc[2587]: Class SDLOpenGLContext is implemented in both /usr/local/lib/libSDL2-2.0.0.dylib (0x10adbcfc8) and /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib (0x10b1e07a8). One of the two will be used. Which one is undefined. objc[2587]: Class SDLWindow is implemented in both /usr/local/lib/libSDL2-2.0.0.dylib (0x10adbd018) and /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib (0x10b1e07f8). One of the two will be used. Which one is undefined. objc[2587]: Class Cocoa_WindowListener is implemented in both /usr/local/lib/libSDL2-2.0.0.dylib (0x10adbd040) and /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib (0x10b1e0820). One of the two will be used. Which one is undefined. objc[2587]: Class SDLView is implemented in both /usr/local/lib/libSDL2-2.0.0.dylib (0x10adbd0b8) and /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib (0x10b1e0898). One of the two will be used. Which one is undefined. objc[2587]: Class METAL_RenderData is implemented in both /usr/local/lib/libSDL2-2.0.0.dylib (0x10adbd108) and /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib (0x10b1e08e8). One of the two will be used. Which one is undefined. objc[2587]: Class METAL_TextureData is implemented in both /usr/local/lib/libSDL2-2.0.0.dylib (0x10adbd158) and /usr/local/opt/sdl2/lib/libSDL2-2.0.0.dylib (0x10b1e0938). One of the two will be used. Which one is undefined. tetris_toy(2587,0x202dece00) malloc: error for object 0x7fa180963e10: pointer being freed was not allocated tetris_toy(2587,0x202dece00) malloc: set a breakpoint in malloc_error_break to debug Abort trap: 6 logout Saving session... ...copying shared history...cp: /Users/dylanevans/.bash_history: Permission denied

...saving history...-bash: /Users/dylanevans/.bash_history: Permission denied truncating history files... ...completed.

[Process completed]

`

thanks for reading :)