qiuhqing <qiuhqing <at> gmail.com> writes: > double rgb[805*805*3]; > CAIRO_FORMAT_ARGB32, Also be aware that ARGB32 should be 805 * 805 * 4. Your static array is too small, even if it works directly on the stack like this.