Skip to content

Comments

Fix: segfault when executable can't find image assets#3

Open
rilysh wants to merge 1 commit intozeropolis79:mainfrom
mystuffs:main
Open

Fix: segfault when executable can't find image assets#3
rilysh wants to merge 1 commit intozeropolis79:mainfrom
mystuffs:main

Conversation

@rilysh
Copy link

@rilysh rilysh commented May 30, 2023

Hello! This PR fixes the crash that happens when petsciirobots can't find image assets, which are located inside the SDL folder. Also, when an error occurred (e.g. if SDL fails to load) it doesn't seem like that the program exits but passes a NULL pointer which will also cause a segmentation fault. I've added exit(3) for this.

Referring the issue: #2

Copy link

@polluks2 polluks2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After "Failed to open audio device: ALSA: Couldn't open audio device: No such file or directory" please proceed in silence...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants