Skip to content

Blit Surface causes window to crash #328

Answered by chrishtr
sujaldev asked this question in Q&A
Discussion options

You must be logged in to vote

Interesting. SIGSEGV means that the program tried to read an illegal place memory, due to an error coding, usually a null dereference or use-after-free.

I tried WIDTH, HEIGHT = 1000, 1000 just now and it worked fine on my machine.

My guess is your code has a bug that the surfaces you're copy to and from via SDL_BlitSurface have different dimensions.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@sujaldev
Comment options

@chrishtr
Comment options

@chrishtr
Comment options

Answer selected by sujaldev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants