I have been working on a pygame project for a while now and started making the intro screens.
Running the game and going through the intro screens works fine, but when I reach the main_loop() the game starts but quickly crashes afterwards.
I had no problems with the main_loop() before this and was at a point I could go from intro_loop() to main_loop() and it worked, Its after I added story_screen_1() that now the main_loop() crashes with this error:
Error Message
/usr/local/bin/python3 "/Users/brucepouncey/Game_0/venv/Game_0_MASTERcopy.py"
Python(1323,0x101931380) malloc: *** error for object 0x1040b64f0:pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Process finished with exit code 134 (interrupted by signal 6: SIGABRT)
So I back-tracked and removed everything I had implemented, back to the point that it was working.
But the same error occured and now my main_loop() isnt even running even when its alone, I get the same error.
Iv been over my code numerous times removing and moving things around and still no luck.
I can usually pinpoint an error through its message but this one is a first. If I can know what this error message means I will hopefully be able to find the source of the bug.
Alot of answers iv searched for are related to C languages and Im not familiar with them.