Re: [AD] Patch for fixing missing NSAutoreleasePools |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
On 27 May 2012, at 14:40 , Evert Glebbeek wrote: > Well, the backtrace I posted points to /Users/eglebbk/Program/Allegro5/5.1/src/opengl/ogl_draw.c:355. It looks like a missing vtable entry or a null-pointer dereference. Hmm. Interesting, I recompiled in DEBUG mode (as opposed to RelWithDebInfo) and the code seems to crash in a different location (I get a window, which wasn't the case before). I added an assert to check whether bmp->extra is not NULL (it was used but not tested), that doesn't seem to be the problem though. Backtrace: #0 0x0000000000000000 in ?? () #1 0x00000001000e8300 in ogl_flush_vertex_cache (disp=0x100242ab0) at /Users/eglebbk/Program/Allegro5/5.1/src/opengl/ogl_draw.c:356 #2 0x00000001000e4a8f in draw_quad (bitmap=0x100265be0, tint={r = 1, g = 1, b = 1, a = 1}, sx=0, sy=0, sw=320, sh=200, flags=0) at /Users/eglebbk/Program/Allegro5/5.1/src/opengl/ogl_bitmap.c:281 #3 0x00000001000e4ec0 in ogl_draw_bitmap_region (bitmap=0x100265be0, tint={r = 1, g = 1, b = 1, a = 1}, sx=0, sy=0, sw=320, sh=200, flags=0) at /Users/eglebbk/Program/Allegro5/5.1/src/opengl/ogl_bitmap.c:370 #4 0x0000000100025c75 in _bitmap_drawer (bitmap=0x100265be0, tint={r = 1, g = 1, b = 1, a = 1}, sx=0, sy=0, sw=320, sh=200, flags=0) at /Users/eglebbk/Program/Allegro5/5.1/src/bitmap.c:314 #5 0x0000000100026069 in _draw_tinted_rotated_scaled_bitmap_region (bitmap=0x100265be0, tint={r = 1, g = 1, b = 1, a = 1}, cx=0, cy=0, angle=0, xscale=1, yscale=1, sx=0, sy=0, sw=320, sh=200, dx=0, dy=0, flags=0) at /Users/eglebbk/Program/Allegro5/5.1/src/bitmap.c:376 #6 0x0000000100026110 in al_draw_tinted_bitmap_region (bitmap=0x100265be0, tint={r = 1, g = 1, b = 1, a = 1}, sx=0, sy=0, sw=320, sh=200, dx=0, dy=0, flags=0) at /Users/eglebbk/Program/Allegro5/5.1/src/bitmap.c:388 #7 0x00000001000261f6 in al_draw_tinted_bitmap (bitmap=0x100265be0, tint={r = 1, g = 1, b = 1, a = 1}, dx=0, dy=0, flags=0) at /Users/eglebbk/Program/Allegro5/5.1/src/bitmap.c:399 #8 0x0000000100026245 in al_draw_bitmap (bitmap=0x100265be0, dx=0, dy=0, flags=0) at /Users/eglebbk/Program/Allegro5/5.1/src/bitmap.c:408 #9 0x00000001000058f3 in _al_mangled_main (argc=1, argv=0x7fff5fbfef08) at /Users/eglebbk/Program/Allegro5/5.1/examples/ex_shader.cpp:234 #10 0x00000001000b9c4e in call_user_main () at /Users/eglebbk/Program/Allegro5/5.1/src/macosx/osx_app_delegate.m:214 #11 0x00000001000b9c9e in +[AllegroAppDelegate app_main:] (self=0x100128798, _cmd=0x1000f0f5a, arg=0x0) at /Users/eglebbk/Program/Allegro5/5.1/src/macosx/osx_app_delegate.m:226 #12 0x00007fff83d68204 in __NSThread__main__ () #13 0x00007fff8381cfd6 in _pthread_start () #14 0x00007fff8381ce89 in thread_start () Log file attached. Evert
Attachment:
allegro.log
Description: Binary data
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |