Hello,
I am using code::blocks on Mac and I'm programming a game in SFML. There is several specific cases where a popup appears like in the screenshot attached and freezes my program. Pressing Ok or Cancel does nothing but crash code::blocks. One way to make the popup appear is by writing Texture backgroundTexture; followed by backgroundTexture.loadFromFile - and then it freezes - before I can write the full
backgroundTexture.loadFromFile("graphics/background.png");. The other way I can make the "debug report" appear is by pressing Settings > Scripting, and again, same thing. I have code completion turned off because otherwise grey squares appear instead of actual code completion (Seems to be a Mac issue).
I have read other people's reports where this has happened and have tried to both rename and remove cbKeyBinder10.ini, cbKeyBinder10.ini.bak, and default.conf inside ~/Library/Application Support/codeblocks/slope game 2 and no change has worked. Whatever I do to them is insignificant because they are remade again if the program starts without them and my changes remain there with no success.
If anyone knows how I could fix this issue (because I literally cannot move forward), I would gladly appreciate it.
Thanks
Here are a few suggestions to help you resolve the problem:
Update Code::Blocks: Ensure you are using the latest version, as updates often fix bugs.
Check SFML Setup: Verify that SFML is correctly installed and configured in Code::Blocks.
Run from Terminal: Try compiling and running your code directly from the Terminal to see if you get more detailed error messages.
Disable Scripting: If you don't need the scripting feature, consider disabling it to prevent unwanted popups.
Reset Configuration: Try deleting the entire configuration folder in ~/Library/Application Support/codeblocks to create fresh configuration files.
Check Permissions: Ensure Code::Blocks has the necessary permissions to read and write files.
Hopefully, one of these solutions will help you move forward. Good luck!