As mentioned in my MSEngine topic, I've noticed an issue with the screen shimmering, I thought it was because of how I was playing with textures too much but it hasn't gone away when I've simplified the render process
.
On a different topic I'm afraid the intermittent drawing failures remain, also I've been getting seg faults that may or may not be related, this first one came after a test in which nothing was displayed on the screen, I then pressed escape to quit and that triggered the crash.
Crashed Thread: 3
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
abort() called
*** error for object 0x7ffcb9e58720: incorrect checksum for freed object - object was probably modified after being freed.
Thread 0:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fffdd02a34a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fffdd029797 mach_msg + 55
2 com.apple.CoreFoundation 0x00007fffc7784434 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fffc77838c1 __CFRunLoopRun + 1361
4 com.apple.CoreFoundation 0x00007fffc7783114 CFRunLoopRunSpecific + 420
5 com.apple.HIToolbox 0x00007fffc6ce3ebc RunCurrentEventLoopInMode + 240
6 com.apple.HIToolbox 0x00007fffc6ce3cf1 ReceiveNextEventCommon + 432
7 com.apple.HIToolbox 0x00007fffc6ce3b26 _BlockUntilNextEventMatchingListInModeWithFilter + 71
8 com.apple.AppKit 0x00007fffc527ca54 _DPSNextEvent + 1120
9 com.apple.AppKit 0x00007fffc59f87ee -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796
10 com.apple.AppKit 0x00007fffc52713db -[NSApplication run] + 926
11 sphererun 0x000000010c78913e _al_osx_run_main + 1312
12 sphererun 0x000000010c7df5c9 main + 16
13 libdyld.dylib 0x00007fffdcf03235 start + 1
Thread 1:
0 libsystem_kernel.dylib 0x00007fffdd03244e __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fffdd11c48e _pthread_wqthread + 1023
2 libsystem_pthread.dylib 0x00007fffdd11c07d start_wqthread + 13
Thread 2:
0 libsystem_kernel.dylib 0x00007fffdd03244e __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fffdd11c621 _pthread_wqthread + 1426
2 libsystem_pthread.dylib 0x00007fffdd11c07d start_wqthread + 13
Thread 3 Crashed:
0 libsystem_kernel.dylib 0x00007fffdd031d42 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fffdd11f457 pthread_kill + 90
2 libsystem_c.dylib 0x00007fffdcf97420 abort + 129
3 libsystem_malloc.dylib 0x00007fffdd091f5d szone_error + 626
4 libsystem_malloc.dylib 0x00007fffdd087f0d tiny_free_list_remove_ptr + 292
5 libsystem_malloc.dylib 0x00007fffdd09c914 tiny_free_no_lock + 1484
6 libsystem_malloc.dylib 0x00007fffdd09d0d5 free_tiny + 671
7 libGPUSupportMercury.dylib 0x00007fffd5457ecd gldDestroyTexture + 39
8 libGFXShared.dylib 0x00007fffcbbd2e3a gfxDestroyPluginTexture + 60
9 GLEngine 0x0000000111e90801 gleFreeTextureObject + 36
10 GLEngine 0x0000000111e6031e gleUnbindDeleteHashNamesAndObjects + 179
11 GLEngine 0x0000000111d62b1c glDeleteTextures_Exec + 671
12 sphererun 0x000000010c7deeec ogl_destroy_bitmap + 115
13 sphererun 0x000000010c7ca680 al_destroy_bitmap + 179
14 sphererun 0x000000010c7b170e al_convert_bitmap + 1066
15 sphererun 0x000000010c7b1a1f _al_convert_to_memory_bitmap + 158
16 sphererun 0x000000010c7dad30 destroy_display + 273
17 sphererun 0x000000010c74bd3b screen_free + 51 (screen.c:147)
18 sphererun 0x000000010c73c5d0 shutdown_engine + 142 (main.c:485)
19 sphererun 0x000000010c73b97d _al_mangled_main + 1085 (main.c:154)
20 sphererun 0x000000010c788c0a +[AllegroAppDelegate app_main:] + 23
21 com.apple.Foundation 0x00007fffc91a68ad __NSThread__start__ + 1243
22 libsystem_pthread.dylib 0x00007fffdd11c93b _pthread_body + 180
23 libsystem_pthread.dylib 0x00007fffdd11c887 _pthread_start + 286
24 libsystem_pthread.dylib 0x00007fffdd11c08d thread_start + 13
I then ran it again and got a black screen but it quit nicely when I pressed escape.
The next two attempts it ran smoothly and displayed everything.
The next attempt it displayed everything but on pressing escape I got:
Crashed Thread: 2
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000ffffffff8
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]
VM Regions Near 0xffffffff8:
MALLOC_LARGE_REUSABLE 00000001253aa000-000000012600a000 [ 12.4M] rw-/rwx SM=PRV
-->
STACK GUARD 0000700009e19000-0000700009e1a000 [ 4K] ---/rwx SM=NUL stack guard for thread 1
Thread 0:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fffdd02a34a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fffdd029797 mach_msg + 55
2 com.apple.CoreFoundation 0x00007fffc7784434 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fffc77838c1 __CFRunLoopRun + 1361
4 com.apple.CoreFoundation 0x00007fffc7783114 CFRunLoopRunSpecific + 420
5 com.apple.HIToolbox 0x00007fffc6ce3ebc RunCurrentEventLoopInMode + 240
6 com.apple.HIToolbox 0x00007fffc6ce3cf1 ReceiveNextEventCommon + 432
7 com.apple.HIToolbox 0x00007fffc6ce3b26 _BlockUntilNextEventMatchingListInModeWithFilter + 71
8 com.apple.AppKit 0x00007fffc527ca54 _DPSNextEvent + 1120
9 com.apple.AppKit 0x00007fffc59f87ee -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796
10 com.apple.AppKit 0x00007fffc52713db -[NSApplication run] + 926
11 sphererun 0x0000000107d0013e _al_osx_run_main + 1312
12 sphererun 0x0000000107d565c9 main + 16
13 libdyld.dylib 0x00007fffdcf03235 start + 1
Thread 1:
0 libsystem_kernel.dylib 0x00007fffdd03244e __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fffdd11c48e _pthread_wqthread + 1023
2 libsystem_pthread.dylib 0x00007fffdd11c07d start_wqthread + 13
Thread 2 Crashed:
0 libsystem_malloc.dylib 0x00007fffdd087ecc tiny_free_list_remove_ptr + 227
1 libsystem_malloc.dylib 0x00007fffdd09c945 tiny_free_no_lock + 1533
2 libsystem_malloc.dylib 0x00007fffdd09d0d5 free_tiny + 671
3 com.apple.AMDRadeonX4000GLDriver 0x000000010dcb75e4 0x10dc1f000 + 624100
4 libGPUSupportMercury.dylib 0x00007fffd5457eba gldDestroyTexture + 20
5 libGFXShared.dylib 0x00007fffcbbd2e3a gfxDestroyPluginTexture + 60
6 GLEngine 0x000000010d417801 gleFreeTextureObject + 36
7 GLEngine 0x000000010d3e731e gleUnbindDeleteHashNamesAndObjects + 179
8 GLEngine 0x000000010d2e9b1c glDeleteTextures_Exec + 671
9 sphererun 0x0000000107d55eec ogl_destroy_bitmap + 115
10 sphererun 0x0000000107d41680 al_destroy_bitmap + 179
11 sphererun 0x0000000107d2870e al_convert_bitmap + 1066
12 sphererun 0x0000000107d28a1f _al_convert_to_memory_bitmap + 158
13 sphererun 0x0000000107d51d30 destroy_display + 273
14 sphererun 0x0000000107cc2d3b screen_free + 51 (screen.c:147)
15 sphererun 0x0000000107cb35d0 shutdown_engine + 142 (main.c:485)
16 sphererun 0x0000000107cb297d _al_mangled_main + 1085 (main.c:154)
17 sphererun 0x0000000107cffc0a +[AllegroAppDelegate app_main:] + 23
18 com.apple.Foundation 0x00007fffc91a68ad __NSThread__start__ + 1243
19 libsystem_pthread.dylib 0x00007fffdd11c93b _pthread_body + 180
20 libsystem_pthread.dylib 0x00007fffdd11c887 _pthread_start + 286
21 libsystem_pthread.dylib 0x00007fffdd11c08d thread_start + 13
This was followed by 3 more tests where everything worked correctly.
The next attempt had a graphical anomaly where everything was drawn in the top corner of the screen as if it had been scaled down massively (I had not made any change to the code though).