Ticket #186 (new defect)

Opened 2 years ago

Last modified 2 years ago

Perian causes Knights of the Old Republic crash

Reported by: Thinine Assigned to:
Priority: normal Milestone:
Component: Perian-Main Version:
Severity: normal Keywords:
Cc:

Description (Last modified by gbooker)

Having Perian (trunk build) in the QuickTime directory causes Knights of the Old Republic to crash when attempting to play the intro videos. Here's the trace:

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x000000001b176400
Crashed Thread:  0

Thread 0 Crashed:
0   org.perian.Perian             	0x199b5864 pix_sum_altivec + 308
1   org.perian.Perian             	0x1986cfd8 av_mallocz + 40
2   org.perian.Perian             	0x198875f4 ff_h263_decode_frame + 2932
3   org.perian.Perian             	0x1987ade8 avcodec_decode_video + 232
4   org.perian.Perian             	0x198521e8 FFusionDecompress + 188
5   org.perian.Perian             	0x19852394 FFusionCodecDecodeBand + 296
6   ...ickTimeComponents.component	0x18f49ae8 ImageCodecDecodeBand + 40
7   ...ickTimeComponents.component	0x1865dab0 Base_CDBandDecompress + 3776
8   com.apple.QuickTime           	0x93426804 ImageCodecBandDecompress + 36
9   com.apple.QuickTime           	0x932191f0 DoBandedDecompress + 15264
10  com.apple.QuickTime           	0x9321e814 ICMAction_aligned + 1364
11  com.apple.QuickTime           	0x9321e088 ICMDeviceLoop + 3560
12  com.apple.QuickTime           	0x931f75a0 DecompressSequenceFrameWhen + 864
13  ...ickTimeComponents.component	0x1857975c v2m_rDecompressSequenceFrameWhen + 300
14  ...ickTimeComponents.component	0x1857fbbc v2m_decompressVideoFrame + 1004
15  ...ickTimeComponents.component	0x18580734 QueueAFrame + 2628
16  ...ickTimeComponents.component	0x18581348 v2m_doWhatTheMentorTellsUs + 1944
17  ...ickTimeComponents.component	0x18581fcc Video2RateChanged + 1692
18  com.apple.QuickTime           	0x9342d654 MediaRateChanged + 36
19  com.apple.QuickTime           	0x9328ec88 tellMediaRateChanged + 40
20  com.apple.QuickTime           	0x93270fec ForEachMedia_priv + 140
21  com.apple.QuickTime           	0x9328eb7c movieRateCallBackProc + 1196
22  com.apple.QuickTime           	0x9328ef0c SetMovieRate_priv + 188
23  com.aspyr.kotor               	0x0000a800 MacPlayMovieGL + 1560
24  com.aspyr.kotor               	0x00362028 CExoMoviePlayerInternal::StartMovie(CExoString const&) + 344
25  com.aspyr.kotor               	0x0036218c CExoMoviePlayerInternal::PlayMoviesAsync(CExoArrayList<CExoString> const&, int, CExoArrayList<int> const*) + 296
26  com.aspyr.kotor               	0x00361c0c CExoMoviePlayer::PlayMoviesAsync(CExoArrayList<CExoString> const&, int, CExoArrayList<int> const*) + 16
27  com.aspyr.kotor               	0x00090f3c CClientExoAppInternal::PlayMoviesInExoArrayList(CExoArrayList<CExoString>&, int&, int, int, CExoArrayList<int>*) + 204
28  com.aspyr.kotor               	0x00090e30 CClientExoAppInternal::PlayMovieQueue(int) + 136
29  com.aspyr.kotor               	0x0007c730 CClientExoAppInternal::BeginIntro() + 212
30  com.aspyr.kotor               	0x000755b4 CClientExoApp::BeginIntro() + 16
31  com.aspyr.kotor               	0x00020ca8 WinMain + 896
32  com.aspyr.kotor               	0x00004b3c GetDisplayPreferences() + 164
33  com.apple.HIToolbox           	0x924f0b8c DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1480
34  com.apple.HIToolbox           	0x924f16cc SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 440
35  com.apple.HIToolbox           	0x924f1948 SendEventToEventTargetWithOptions + 96
36  com.apple.HIToolbox           	0x924ed05c ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 308
37  com.apple.HIToolbox           	0x924f0fd4 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 2576
38  com.apple.HIToolbox           	0x924f16cc SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 440
39  com.apple.HIToolbox           	0x924f19c4 SendEventToEventTarget + 100
40  com.apple.HIToolbox           	0x924ec6f8 ToolboxEventDispatcher + 84
41  com.apple.HIToolbox           	0x924edaec RunApplicationEventLoop + 156
42  com.aspyr.kotor               	0x00004bf8 InstallEventsAndRunGameLoop() + 148
43  com.aspyr.kotor               	0x00004e44 main + 536
44  com.aspyr.kotor               	0x0000426c start + 508
45  com.aspyr.kotor               	0x0000409c start + 44

Change History

05/15/07 21:43:11 changed by gbooker

  • description changed.

trace was not formatted properly; fixed.

05/15/07 21:55:05 changed by gbooker

This trace is highly suspect. I wouldn't trust its accuracy. For one ff_h263_decode_frame doesn't call av_mallocz and neither call pix_sum_altivec. Second, the invalid address is a 64-bit address. Third, pix_sum_altivec is quite simple, and I doubt it is 308 bytes long.

Since you built trunk, why don't you build a development build and try the trace again. Maybe it will provide some more information.