When using the iOS 7 simulators, everything is working great. When I use any of the iOS 8 simulators, almost everything works, except when I rotate the screen left, I immediately get an ex_bad_access from EAGLView.m on line 192.

Then:#2 0x014a4dd1 in -[UIView(CALayerDelegate) layoutSublayersOfLayer:] ()#44 0x014198b6 in UIApplicationMain ()#45 0x00118a83 in +[allegroAppDelegate run::] at /Users/josh/Downloads/allegro5-5.1/src/iphone/allegroAppDelegate.m:391Then:iphone_main.m line 63#46 0x00067716 in main at /Users/josh/Downloads/allegro5-5.1/src/iphone/iphone_main.m:63

Here is where Thread 7 (al_mangled_main thread is):#0 0x02a147ca in __psynch_cvwait ()#2 0x02a56bd9 in pthread_cond_wait$UNIX2003 ()#3 0x00158d7a in _al_cond_wait at /Users/josh/Downloads/allegro5-5.1/misc/Allegro 5 iOS/../../include/allegro5/platform/aintuthr.h:81#4 0x00158cf4 in al_wait_for_event at /Users/josh/Downloads/allegro5-5.1/src/events.c:392#5 0x000189d9 in _al_mangled_main at /Users/josh/Desktop/Allegro 5.1.9 iOS/AllegroIOSTest/AllegroIOSTest/main.mm:440#6 0x000675b0 in user_main at /Users/josh/Downloads/allegro5-5.1/src/iphone/iphone_main.m:19#7 0x000744c1 in thread_func_trampoline at /Users/josh/Downloads/allegro5-5.1/src/threads.c:80#8 0x0007d7a3 in thread_proc_trampoline at /Users/josh/Downloads/allegro5-5.1/src/unix/uxthread.c:44#9 0x02a525fb in _pthread_body ()#10 0x02a52485 in _pthread_start ()#11 0x02a57cf2 in thread_start ()

---I thought it only happened when I turn the device left, but as long as I have set the orientation as supported, it will cause this on iOS 8.1.

I can't seem to find a way to print a stack trace, but I'll just print it myself:

I think you can set up a trigger in XCode's debugger that fires on any exception/crash. then it should give you a backtrace on crash. Though i think it'd let you get a backtrace even if you don't if you find the debugger window.