Strange crashes on Lion when entering Advisor screens

tobiasn

Warlord
Joined
Nov 24, 2003
Messages
265
Location
Norway
Hi,

I got the following rig playing Steam BTS, 3.19:

2,4 GHz Intel Core i7
8 GB 1333 MHz DDR3
AMD Radeon HD 6770M 1024 MB
OS X Lion 10.7.3

All should be peachy, right? But the game crashes a lot all of a sudden, and it's always (i think) related to when I enter one of the advisor screens.

I do use BUG - any knows bugs with BUG? Anyone else got this problem? I'm kinda clueless.

Thank god for SSD, I've reloaded 10-15 times the last few hours.
 
Make sure you have anti-aliasing turned off in the Graphics/Video settings.

You could try posting a crash report, it might point at the general area where the problem lies, but my guess would be that it's a graphics issue.

Crash reports can be found by opening the /Applications/Utilities/Console app. Make sure the Log List is showing in the left panel, and find the ~/Library/CrashReporter entry. Look in that list for Civ4 BtS entries, and select a recent one. The log should display in the right hand panel. Copy the first 100 lines or so, and paste them into a post here.
 
Here's the latest crash report. Happened as I entered diplo screen:

Spoiler :

Process: Civilization IV Beyond the Sword [424]
Path: /Users/USER/Library/Application Support/Steam/*/Civilization IV Beyond the Sword.app/Contents/MacOS/Civilization IV Beyond the Sword
Identifier: com.aspyr.civ4bts
Version: 3.19 (92131)
Code Type: X86 (Native)
Parent Process: launchd [185]

Date/Time: 2012-06-05 20:14:57.886 +0200
OS Version: Mac OS X 10.7.3 (11D50)
Report Version: 9

Interval Since Last Report: 25468 sec
Crashes Since Last Report: 4
Per-App Interval Since Last Report: 24210 sec
Per-App Crashes Since Last Report: 4
Anonymous UUID: 00DC8F83-3CEB-4141-9C7A-1BBA242A5AE8

Crashed Thread: 3

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x000000008e0c6000

VM Regions Near 0x8e0c6000:
MALLOC_LARGE 000000008dcc6000-000000008e0c6000 [ 4096K] rw-/rwx SM=PRV
-->
MALLOC_LARGE 000000008e601000-000000008eb61000 [ 5504K] rw-/rwx SM=PRV

Application Specific Information:
objc[424]: garbage collection is OFF

Thread 0:: MainThrd Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x9808883e __psynch_cvwait + 10
1 libsystem_c.dylib 0x986ebe21 _pthread_cond_wait + 827
2 libsystem_c.dylib 0x9869c42c pthread_cond_wait$UNIX2003 + 71
3 GLEngine 0x271f0135 gleFinishCommandBufferPTHREAD + 274
4 GLEngine 0x2717a1e2 glDeleteTextures_ExecThread + 18
5 libGL.dylib 0x997bed2d glDeleteTextures + 37
6 com.aspyr.civ4bts 0x0007091b IDirect3DDevice_Mac::MacDeleteTexture(unsigned long) + 117
7 com.aspyr.civ4bts 0x0006c9a5 IDirect3DBaseTexture_Mac::~IDirect3DBaseTexture_Mac() + 161
8 com.aspyr.civ4bts 0x000871f2 IDirect3DTexture_Mac::~IDirect3DTexture_Mac() + 160
9 com.aspyr.civ4bts 0x0008e603 IUnknown_Mac::Release() + 29
10 com.aspyr.civ4bts 0x005fb472 FFileWriter::WriteDDS(char const*, NiTexture*, unsigned int, unsigned int, unsigned int) + 768
11 com.aspyr.civ4bts 0x005fb4b9 FFileWriter::WriteTGA(char const*, NiTexture*) + 55
12 com.aspyr.civ4bts 0x00ac9431 CvEngine::render() + 1389
13 com.aspyr.civ4bts 0x00a920a9 CvApp::OnIdle() + 1743
14 com.aspyr.civ4bts 0x0066ea41 FWinApp::Run() + 31
15 com.aspyr.civ4bts 0x00b1ee52 WinMain + 50
16 com.aspyr.civ4bts 0x000a7f99 sEventLoopEventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 111
17 com.apple.HIToolbox 0x9c77362c _InvokeEventHandlerUPP(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*, long (*)(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)) + 36
18 com.apple.HIToolbox 0x9c5eef4f _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1602
19 com.apple.HIToolbox 0x9c5ee3cc _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 482
20 com.apple.HIToolbox 0x9c5ee1e4 SendEventToEventTargetWithOptions + 75
21 com.apple.HIToolbox 0x9c603d2a _ZL29ToolboxEventDispatcherHandlerP25OpaqueEventHandlerCallRefP14OpaqueEventRefPv + 3152
22 com.apple.HIToolbox 0x9c5ef40a _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 2813
23 com.apple.HIToolbox 0x9c5ee3cc _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 482
24 com.apple.HIToolbox 0x9c6030d5 SendEventToEventTarget + 76
25 com.apple.HIToolbox 0x9c773478 ToolboxEventDispatcher + 82
26 com.apple.HIToolbox 0x9c7735a7 RunApplicationEventLoop + 236
27 com.aspyr.civ4bts 0x000a8052 InstallEventsAndRunGameLoop() + 166
28 com.aspyr.civ4bts 0x000a83ea main + 356
29 com.aspyr.civ4bts 0x00002642 _start + 216
30 com.aspyr.civ4bts 0x00002569 start + 41

Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x9808990a kevent + 10
1 libdispatch.dylib 0x9c5dac58 _dispatch_mgr_invoke + 969
2 libdispatch.dylib 0x9c5d96a7 _dispatch_mgr_thread + 53

Thread 2:
0 libsystem_kernel.dylib 0x9808883e __psynch_cvwait + 10
1 libsystem_c.dylib 0x986ebe78 _pthread_cond_wait + 914
2 libsystem_c.dylib 0x986ebf7b pthread_cond_timedwait_relative_np + 47
3 com.apple.CoreServices.CarbonCore 0x90ae03ef TSWaitOnConditionTimedRelative + 178
4 com.apple.CoreServices.CarbonCore 0x90ae0165 TSWaitOnSemaphoreCommon + 490
5 com.apple.CoreServices.CarbonCore 0x90adff76 TSWaitOnSemaphoreRelative + 24
6 com.apple.QuickTimeComponents.component 0x94bbebe6 0x945d2000 + 6212582
7 libsystem_c.dylib 0x986e7ed9 _pthread_start + 335
8 libsystem_c.dylib 0x986eb6de thread_start + 34

Thread 3 Crashed:
0 libsystem_c.dylib 0x986bfa40 memmove$VARIANT$sse42 + 131
1 com.apple.ATIRadeonX3000GLDriver 0x4ba7cfa0 gldModifyTexSubImage + 1420
2 GLEngine 0x27117031 glTexSubImage2D_Exec + 1027
3 GLEngine 0x2718b57c glTexSubImage2D_UnpackThread + 103
4 GLEngine 0x271f034a gleCmdProcessorPTHREAD + 221
5 libsystem_c.dylib 0x986e7ed9 _pthread_start + 335
6 libsystem_c.dylib 0x986eb6de thread_start + 34

Thread 4:
0 libsystem_kernel.dylib 0x98086c5e semaphore_wait_trap + 10
1 com.apple.QuickTimeComponents.component 0x95099f10 0x945d2000 + 11304720
2 com.apple.QuickTimeComponents.component 0x94c2ed0d 0x945d2000 + 6671629
3 com.apple.QuickTimeComponents.component 0x95099e43 0x945d2000 + 11304515
4 libsystem_c.dylib 0x986e7ed9 _pthread_start + 335
5 libsystem_c.dylib 0x986eb6de thread_start + 34

Thread 5:
0 libsystem_kernel.dylib 0x98086d36 mach_wait_until + 10
1 libsystem_c.dylib 0x98695439 nanosleep + 388
2 libsystem_c.dylib 0x98693cba usleep + 60
3 com.aspyr.civ4bts 0x0000b461 sCQuickTimeThread(void*) + 73
4 libsystem_c.dylib 0x986e7ed9 _pthread_start + 335
5 libsystem_c.dylib 0x986eb6de thread_start + 34

Thread 6:
0 libsystem_kernel.dylib 0x9808902e __workq_kernreturn + 10
1 libsystem_c.dylib 0x986e9ccf _pthread_wqthread + 773
2 libsystem_c.dylib 0x986eb6fe start_wqthread + 30

Thread 7:
0 libsystem_kernel.dylib 0x9808902e __workq_kernreturn + 10
1 libsystem_c.dylib 0x986e9ccf _pthread_wqthread + 773
2 libsystem_c.dylib 0x986eb6fe start_wqthread + 30

Thread 8:: com.apple.audio.IOThread.client
0 libsystem_kernel.dylib 0x98086c22 mach_msg_trap + 10
1 libsystem_kernel.dylib 0x980861f6 mach_msg + 70
2 com.apple.audio.CoreAudio 0x9bd899fe HALB_MachPort::SendMessageWithReply(unsigned int, unsigned int, unsigned long, unsigned long, mach_msg_header_t*, unsigned int) + 122
3 com.apple.audio.CoreAudio 0x9bd89a6a HALB_MachPort::SendSimpleMessageWithSimpleReply(unsigned int, unsigned int, int, int&, unsigned int) + 60
4 com.apple.audio.CoreAudio 0x9bd81e5f HALC_ProxyIOContext::IOWorkLoop() + 1145
5 com.apple.audio.CoreAudio 0x9bd81926 HALC_ProxyIOContext::IOThreadEntry(void*) + 136
6 com.apple.audio.CoreAudio 0x9bd81898 __HALC_ProxyIOContext_block_invoke_6 + 20
7 com.apple.audio.CoreAudio 0x9bd8181d HALB_IOThread::Entry(void*) + 69
8 libsystem_c.dylib 0x986e7ed9 _pthread_start + 335
9 libsystem_c.dylib 0x986eb6de thread_start + 34

Thread 9:
0 libsystem_kernel.dylib 0x98086d36 mach_wait_until + 10
1 libsystem_c.dylib 0x98695439 nanosleep + 388
2 libsystem_c.dylib 0x98693cba usleep + 60
3 com.aspyr.civ4bts 0x0000b461 sCQuickTimeThread(void*) + 73
4 libsystem_c.dylib 0x986e7ed9 _pthread_start + 335
5 libsystem_c.dylib 0x986eb6de thread_start + 34

Thread 10:
0 libsystem_kernel.dylib 0x9808883e __psynch_cvwait + 10
1 libsystem_c.dylib 0x986ebe78 _pthread_cond_wait + 914
2 libsystem_c.dylib 0x986ebf7b pthread_cond_timedwait_relative_np + 47
3 com.apple.CoreServices.CarbonCore 0x90ae03ef TSWaitOnConditionTimedRelative + 178
4 com.apple.CoreServices.CarbonCore 0x90ae0165 TSWaitOnSemaphoreCommon + 490
5 com.apple.CoreServices.CarbonCore 0x90adff76 TSWaitOnSemaphoreRelative + 24
6 com.apple.CoreServices.CarbonCore 0x90b12e9b AIOFileThread(void*) + 1019
7 libsystem_c.dylib 0x986e7ed9 _pthread_start + 335
8 libsystem_c.dylib 0x986eb6de thread_start + 34

Thread 11:
0 libsystem_kernel.dylib 0x9808883e __psynch_cvwait + 10
1 libsystem_c.dylib 0x986ebe78 _pthread_cond_wait + 914
2 libsystem_c.dylib 0x986ebf7b pthread_cond_timedwait_relative_np + 47
3 com.apple.CoreServices.CarbonCore 0x90ae03ef TSWaitOnConditionTimedRelative + 178
4 com.apple.CoreServices.CarbonCore 0x90ae0165 TSWaitOnSemaphoreCommon + 490
5 com.apple.CoreServices.CarbonCore 0x90adff76 TSWaitOnSemaphoreRelative + 24
6 com.apple.CoreServices.CarbonCore 0x90b55398 TimerThread + 292
7 libsystem_c.dylib 0x986e7ed9 _pthread_start + 335
8 libsystem_c.dylib 0x986eb6de thread_start + 34

Thread 12:
0 libsystem_kernel.dylib 0x9808902e __workq_kernreturn + 10
1 libsystem_c.dylib 0x986e9ccf _pthread_wqthread + 773
2 libsystem_c.dylib 0x986eb6fe start_wqthread + 30

Thread 13:
0 libsystem_kernel.dylib 0x98086d36 mach_wait_until + 10
1 libsystem_c.dylib 0x98695439 nanosleep + 388
2 libsystem_c.dylib 0x98693cba usleep + 60
3 com.aspyr.civ4bts 0x0000b461 sCQuickTimeThread(void*) + 73
4 libsystem_c.dylib 0x986e7ed9 _pthread_start + 335
5 libsystem_c.dylib 0x986eb6de thread_start + 34

Thread 14:
0 libsystem_kernel.dylib 0x98086d36 mach_wait_until + 10
1 libsystem_c.dylib 0x98695439 nanosleep + 388
2 libsystem_c.dylib 0x98693cba usleep + 60
3 com.aspyr.civ4bts 0x0000b461 sCQuickTimeThread(void*) + 73
4 libsystem_c.dylib 0x986e7ed9 _pthread_start + 335
5 libsystem_c.dylib 0x986eb6de thread_start + 34

Thread 3 crashed with X86 Thread State (32-bit):
eax: 0x00071000 ebx: 0x8ab61200 ecx: 0x00000000 edx: 0xfff8f000
edi: 0x8abd2200 esi: 0x8e137000 ebp: 0xb0510d08 esp: 0xb0510d00
ss: 0x00000023 efl: 0x00010246 eip: 0x986bfa40 cs: 0x0000001b
ds: 0x00000023 es: 0x00000023 fs: 0x00000023 gs: 0x0000000f
cr2: 0x8e0c6000
Logical CPU: 0



Thread 3 crashed, graphics, something about modify text? I think you might understand this better than me.. :)
 
Thread #0 triggered a glDeleteTextures command and was waiting for it to complete. Thread #0 called OpenGL code in the Radeon driver, which was trying to move a block of data to or from a protected memory address, and screwed up. 'gldModifyTexSubImage' refers to 'Texture', not 'Text'.

I would guess you are seeing a graphics driver bug. It should probably be reported to Aspyr, along with the crash report. Meanwhile, I can only suggest you try reducing the video settings in the game to see if you can reduce the crashing frequency to acceptable levels. Ensure that you have anti-aliassing turned OFF. That option is guaranteed to cause crashes.
 
Thanks Alan! Yeah I'll report it, for sure. AA is off yeah.

Thank you for the explanation, interesting to know a little more about this. I used to run a dev agency (mainly web/app stuff though), so these kinds of things tickle my professional interest too. (While being really annoying obv :D)
 
Actually, I should have said that Aspyr will probably reject the ticket unless you can reproduce the crash without BUG running. They refuse to deal with issues that include mods.
 
Back
Top Bottom