# **Issue №849 opened by *[dlon](https://github.com/dlon)* at 2019-02-24 22:01:42** An 8-bit surface without a palette (masks (0xe0, 0x1c, 0x3, 0x0)) can cause a segfault for aapolygon, aacircle, aatrigon, and aaellipse. ```python3 from pygame import Surface, Color, init from pygame.gfxdraw import aacircle init() s = Surface(size=(512, 512), flags=0, depth=8, masks=(0xE0, 0x1C, 0x3, 0x0)) aacircle( s, 256, 256, 64, Color("red"), ) ``` System: pygame 1.9.5 / SDL2 / Python 3.7.2 (64-bit). Doesn't happen with SDL1.2. **Related Docs**: https://www.pygame.org/docs/ref/gfxdraw.html<hr> # Comments