[0.9.0] Mac crash on window resize

Place for things which are bugs but we have no idea how to solve them. Things related to hardware, libraries, strange setups, etc.
Post Reply
muzzy
Fast Inserter
Fast Inserter
Posts: 187
Joined: Sat Nov 23, 2013 7:17 am
Contact:

[0.9.0] Mac crash on window resize

Post by muzzy »

Upon resizing the window while playing, game crashed.

Code: Select all

Crashed Thread:  2

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000

Application Specific Information:
Assertion failed: (bitmap->flags & (ALLEGRO_MEMORY_BITMAP | ALLEGRO_OPENGL)), function _al_clear_bitmap_by_locking, file src/memdraw.c, line 57.
 

Thread 0:: Dispatch queue: com.apple.main-thread
0   libsystem_malloc.dylib        	0x00007fff870cf83e malloc_zone_malloc + 9
1   libsystem_malloc.dylib        	0x00007fff870d0290 malloc + 42
2   com.apple.CoreGraphics        	0x00007fff8924e448 std::__1::list<CG::Chunk, CG::Allocator<CG::Chunk> >::list(std::__1::list<CG::Chunk, CG::Allocator<CG::Chunk> > const&) + 64
3   com.apple.CoreGraphics        	0x00007fff8972eae9 std::__1::enable_if<__is_forward_iterator<CG::Path::Subpath*>::value, void>::type std::__1::vector<CG::Path::Subpath, CG::Allocator<CG::Path::Subpath> >::__construct_at_end<CG::Path::Subpath*>(CG::Path::Subpath*, CG::Path::Subpath*) + 43
4   com.apple.CoreGraphics        	0x00007fff8925cef1 std::__1::vector<CG::Path::Subpath, CG::Allocator<CG::Path::Subpath> >::vector(std::__1::vector<CG::Path::Subpath, CG::Allocator<CG::Path::Subpath> > const&) + 89
5   com.apple.CoreGraphics        	0x00007fff8925ce7d CG::Path::Sequence::copy() const + 67
6   com.apple.CoreGraphics        	0x00007fff8924baaa CG::Path::copy_on_write() + 26
7   com.apple.CoreGraphics        	0x00007fff8924b9d4 CG::Path::apply_transform(CGAffineTransform const&) + 34
8   com.apple.CoreGraphics        	0x00007fff892cfafb CGPathAddRects + 255
9   com.apple.CoreGraphics        	0x00007fff892cea85 CGContextClipToRects + 162
10  com.apple.AppKit              	0x00007fff8840dfc6 -[NSView _drawRect:clip:] + 2769
11  com.apple.AppKit              	0x00007fff8840b386 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 3199
12  com.apple.AppKit              	0x00007fff8840a201 -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] + 314
13  com.apple.AppKit              	0x00007fff88407209 -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 2828
14  com.apple.AppKit              	0x00007fff883e663a -[NSView displayIfNeeded] + 1680
15  com.apple.AppKit              	0x00007fff883e5f11 -[NSThemeFrame handleSetFrameCommonRedisplay] + 251
16  com.apple.AppKit              	0x00007fff883d0591 -[NSWindow _setFrameCommon:display:stashSize:] + 2662
17  com.apple.AppKit              	0x00007fff88bb9866 -[NSWindow(NSWindowResizing) _resizeWithEvent:] + 1342
18  com.apple.AppKit              	0x00007fff885983b4 -[NSTitledFrame mouseDown:] + 200
19  com.apple.AppKit              	0x00007fff8859819c -[NSThemeFrame mouseDown:] + 204
20  com.apple.AppKit              	0x00007fff884b3d08 -[NSWindow sendEvent:] + 11296
21  com.apple.AppKit              	0x00007fff88452744 -[NSApplication sendEvent:] + 2021
22  com.apple.AppKit              	0x00007fff882a2a29 -[NSApplication run] + 646
23  com.factorio.factorio         	0x0000000100662bbb _al_osx_run_main + 1595
24  com.factorio.factorio         	0x00000001006595c0 main + 16
25  com.factorio.factorio         	0x000000010003b618 start + 52

Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib        	0x00007fff85c98662 kevent64 + 10
1   libdispatch.dylib             	0x00007fff917df43d _dispatch_mgr_invoke + 239
2   libdispatch.dylib             	0x00007fff917df152 _dispatch_mgr_thread + 52

Thread 2 Crashed:
0   libsystem_kernel.dylib        	0x00007fff85c97866 __pthread_kill + 10
1   libsystem_pthread.dylib       	0x00007fff8f17335c pthread_kill + 92
2   libsystem_c.dylib             	0x00007fff930bfbba abort + 125
3   libsystem_c.dylib             	0x00007fff93089a5f __assert_rtn + 321
4   com.factorio.factorio         	0x0000000100609d0e _al_clear_bitmap_by_locking + 910
5   com.factorio.factorio         	0x0000000100623422 ogl_clear + 82
6   com.factorio.factorio         	0x00000001005ffb32 al_clear_to_color + 82
7   com.factorio.factorio         	0x00000001001c610c DrawEngine::drawLights() + 108
8   com.factorio.factorio         	0x00000001001c5f0e DrawEngine::render() + 110
9   com.factorio.factorio         	0x00000001001ade0f GameRenderer::render(RenderData const&) + 399
10  com.factorio.factorio         	0x00000001002af071 render() + 177
11  com.factorio.factorio         	0x00000001002af7ac tickStep(boost::timer::cpu_timer&, boost::timer::cpu_timer&, bool) + 1788
12  com.factorio.factorio         	0x00000001002afe51 run(char*, bool) + 305
13  com.factorio.factorio         	0x00000001002b15f7 _al_mangled_main + 4551
14  com.factorio.factorio         	0x0000000100662e87 +[AllegroAppDelegate app_main:] + 23
15  com.apple.Foundation          	0x00007fff8d83370b __NSThread__main__ + 1318
16  libsystem_pthread.dylib       	0x00007fff8f172899 _pthread_body + 138
17  libsystem_pthread.dylib       	0x00007fff8f17272a _pthread_start + 137
18  libsystem_pthread.dylib       	0x00007fff8f176fc9 thread_start + 13

Thread 3:
0   libsystem_kernel.dylib        	0x00007fff85c93a1a mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fff85c92d18 mach_msg + 64
2   com.apple.CoreFoundation      	0x00007fff8b3a1315 __CFRunLoopServiceMachPort + 181
3   com.apple.CoreFoundation      	0x00007fff8b3a0939 __CFRunLoopRun + 1161
4   com.apple.CoreFoundation      	0x00007fff8b3a0275 CFRunLoopRunSpecific + 309
5   com.apple.AppKit              	0x00007fff8844f1ce _NSEventThread + 144
6   libsystem_pthread.dylib       	0x00007fff8f172899 _pthread_body + 138
7   libsystem_pthread.dylib       	0x00007fff8f17272a _pthread_start + 137
8   libsystem_pthread.dylib       	0x00007fff8f176fc9 thread_start + 13

Thread 4:
0   libsystem_kernel.dylib        	0x00007fff85c93a1a mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fff85c92d18 mach_msg + 64
2   com.apple.CoreFoundation      	0x00007fff8b3a1315 __CFRunLoopServiceMachPort + 181
3   com.apple.CoreFoundation      	0x00007fff8b3a0939 __CFRunLoopRun + 1161
4   com.apple.CoreFoundation      	0x00007fff8b3a0275 CFRunLoopRunSpecific + 309
5   com.factorio.factorio         	0x000000010065f4f1 stream_proc + 465
6   com.factorio.factorio         	0x00000001006290b9 detached_thread_func_trampoline + 25
7   com.factorio.factorio         	0x000000010062889e thread_proc_trampoline + 14
8   libsystem_pthread.dylib       	0x00007fff8f172899 _pthread_body + 138
9   libsystem_pthread.dylib       	0x00007fff8f17272a _pthread_start + 137
10  libsystem_pthread.dylib       	0x00007fff8f176fc9 thread_start + 13

Thread 5:
0   libsystem_kernel.dylib        	0x00007fff85c97a3a __semwait_signal + 10
1   libsystem_c.dylib             	0x00007fff930dee60 nanosleep + 200
2   com.factorio.factorio         	0x0000000100628885 al_rest + 69
3   com.factorio.factorio         	0x000000010062a3e3 timer_thread_proc + 99
4   com.factorio.factorio         	0x000000010062889e thread_proc_trampoline + 14
5   libsystem_pthread.dylib       	0x00007fff8f172899 _pthread_body + 138
6   libsystem_pthread.dylib       	0x00007fff8f17272a _pthread_start + 137
7   libsystem_pthread.dylib       	0x00007fff8f176fc9 thread_start + 13

Thread 6:: AQConverterThread
0   libsystem_kernel.dylib        	0x00007fff85c97716 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fff8f174c3b _pthread_cond_wait + 727
2   com.apple.audio.toolbox.AudioToolbox	0x00007fff8f357808 CAGuard::Wait() + 52
3   com.apple.audio.toolbox.AudioToolbox	0x00007fff8f37844d AQConverterManager::AQConverterThread::Run() + 489
4   com.apple.audio.toolbox.AudioToolbox	0x00007fff8f37825a AQConverterManager::AQConverterThread::ConverterThreadEntry(void*) + 22
5   com.apple.audio.toolbox.AudioToolbox	0x00007fff8f357e5d CAPThread::Entry(CAPThread*) + 109
6   libsystem_pthread.dylib       	0x00007fff8f172899 _pthread_body + 138
7   libsystem_pthread.dylib       	0x00007fff8f17272a _pthread_start + 137
8   libsystem_pthread.dylib       	0x00007fff8f176fc9 thread_start + 13

Thread 7:: com.apple.audio.IOThread.client
0   libsystem_kernel.dylib        	0x00007fff85c93a1a mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fff85c92d18 mach_msg + 64
2   com.apple.audio.CoreAudio     	0x00007fff9338d918 HALB_MachPort::SendMessageWithReply(unsigned int, unsigned int, unsigned int, unsigned int, mach_msg_header_t*, bool, unsigned int) + 98
3   com.apple.audio.CoreAudio     	0x00007fff9338d8a6 HALB_MachPort::SendSimpleMessageWithSimpleReply(unsigned int, unsigned int, int, int&, bool, unsigned int) + 42
4   com.apple.audio.CoreAudio     	0x00007fff9338c02e HALC_ProxyIOContext::IOWorkLoop() + 950
5   com.apple.audio.CoreAudio     	0x00007fff9338bbcd HALC_ProxyIOContext::IOThreadEntry(void*) + 97
6   com.apple.audio.CoreAudio     	0x00007fff9338ba8d HALB_IOThread::Entry(void*) + 75
7   libsystem_pthread.dylib       	0x00007fff8f172899 _pthread_body + 138
8   libsystem_pthread.dylib       	0x00007fff8f17272a _pthread_start + 137
9   libsystem_pthread.dylib       	0x00007fff8f176fc9 thread_start + 13

Thread 8:
0   libsystem_kernel.dylib        	0x00007fff85c97716 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fff8f174c3b _pthread_cond_wait + 727
2   com.factorio.factorio         	0x0000000100411a4b boost::condition_variable::wait(boost::unique_lock<boost::mutex>&) + 75
3   com.factorio.factorio         	0x000000010035e9cd Thread::loop() + 173
4   com.factorio.factorio         	0x0000000100777e39 thread_proxy + 137
5   libsystem_pthread.dylib       	0x00007fff8f172899 _pthread_body + 138
6   libsystem_pthread.dylib       	0x00007fff8f17272a _pthread_start + 137
7   libsystem_pthread.dylib       	0x00007fff8f176fc9 thread_start + 13

Thread 9:
0   libsystem_kernel.dylib        	0x00007fff85c97e6a __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff8f173f08 _pthread_wqthread + 330
2   libsystem_pthread.dylib       	0x00007fff8f176fb9 start_wqthread + 13

Thread 10:
0   libsystem_kernel.dylib        	0x00007fff85c97716 __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fff8f174c3b _pthread_cond_wait + 727
2   com.factorio.factorio         	0x00000001006046eb al_wait_for_event + 59
3   com.factorio.factorio         	0x00000001005e16cc _al_kcm_feed_stream + 108
4   com.factorio.factorio         	0x0000000100629aa9 thread_func_trampoline + 233
5   com.factorio.factorio         	0x000000010062889e thread_proc_trampoline + 14
6   libsystem_pthread.dylib       	0x00007fff8f172899 _pthread_body + 138
7   libsystem_pthread.dylib       	0x00007fff8f17272a _pthread_start + 137
8   libsystem_pthread.dylib       	0x00007fff8f176fc9 thread_start + 13

Thread 11:

Thread 2 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x0000000104ef7000  rcx: 0x0000000104ef61a8  rdx: 0x0000000000000000
  rdi: 0x000000000000e30b  rsi: 0x0000000000000006  rbp: 0x0000000104ef61d0  rsp: 0x0000000104ef61a8
   r8: 0x00000000ffffe000   r9: 0x0000000000000039  r10: 0x0000000008000000  r11: 0x0000000000000206
  r12: 0x00000001007d76a8  r13: 0x00000001007d76e3  r14: 0x0000000000000006  r15: 0x00000001007d7698
  rip: 0x00007fff85c97866  rfl: 0x0000000000000206  cr2: 0x000000010163c000
  
Logical CPU:     0
Error Code:      0x02000148
Trap Number:     133

RaffRich
Burner Inserter
Burner Inserter
Posts: 8
Joined: Mon Feb 17, 2014 5:12 pm
Contact:

Re: [0.9.0] Mac crash on window resize

Post by RaffRich »

Yes, I can confirm this. The game also crashes when I'm switching from or to fullscreen mode. I'm using Mac/OSX, too.

immerhungrig
Inserter
Inserter
Posts: 30
Joined: Fri Oct 04, 2013 7:01 pm
Contact:

Re: [0.9.0] Mac crash on window resize

Post by immerhungrig »

I've no problems with OSX Maverics and fullscreen mode.

RaffRich
Burner Inserter
Burner Inserter
Posts: 8
Joined: Mon Feb 17, 2014 5:12 pm
Contact:

Re: [0.9.0] Mac crash on window resize

Post by RaffRich »

@immerhungrig Playing in fullscreen mode is not the problem. The problem is when you resize the factorio window or switching to fullscreen mode or to windowed mode, the game crashes. I'm using OSX Mavericks (Version 10.9.1)

immerhungrig
Inserter
Inserter
Posts: 30
Joined: Fri Oct 04, 2013 7:01 pm
Contact:

Re: [0.9.0] Mac crash on window resize

Post by immerhungrig »

I understand but the game crashes not for me with resizing :)

slpwnd
Factorio Staff
Factorio Staff
Posts: 1835
Joined: Sun Feb 03, 2013 2:51 pm
Contact:

Re: [0.9.0] Mac crash on window resize

Post by slpwnd »

I am afraid this is some allegro shenanigans related to destroying the display and creating it again. Something similar as earlier bug with crash in OSX Maverics on shutdown.

Post Reply

Return to “1 / 0 magic”