SIGBUS is, in many cases an equivalent to SIGSEGV. It means it happens when you write to the memory that is not allocated to your program, for instance. I guess that was just the case (writing to window outside the allocated area for the whole screen).
It should not end with such an error, however. The function you use to draw should notice that the location is out of the available area size and exit with a more 'gentle' error.
|