[MAC] Kernel panic crash with new CrystalHD driver
#1
I will start by thanking Davilla by the huge amount of work spend on this CrystalHD project. Never thought to play 1080P movies without a single frame dropped!

Since I have a rather specific setup I decided to create a new topic:

I run a XBMC player/fileserver on a Macbook Pro (2.2). Due to the fact that it contains a ATI Radeon Videocard, it is not supported by any of the new hardware acceleration. This specific Macbook model contains a airport pci-express card, so I was able to switch that with a Broadcom Crystal HD card.

I did that the day before yesterday and installed driverset 1.0.3, in which I encountered the usual and known bugs. Day after 2.0.0 was released which solved them all :-) .

Yesterday I watched my first movie, which went absolutely hassle free until about 3/4 of the movie. Screen and sound froze and displayed an OS-message asking me to switch of the Macbook. On restart an error message was displayed, which I copied below. Looks like a kernel-panic, caused by the XBMC/driver.

Of course I restarted the movie, but now the same happened after about 2 minutes. Next reboot it happened after about 5 minutes.
  • Is the driverset specifically made for AppleTV?
    Could it be related by not removing the 1.0.3 drivers?

Happy to supply any other error-log.



Interval Since Last Panic Report: 41 sec
Panics Since Last Report: 1
Anonymous UUID: CAFA0E71-7A32-4E61-BA9C-B308B9FA8C83

Wed Aug 18 21:56:13 2010
panic(cpu 0 caller 0x001AB0FE): Kernel trap at 0x4826707e, type 14=page fault, registers:
CR0: 0x8001003b, CR2: 0x00000014, CR3: 0x00f58000, CR4: 0x00000660
EAX: 0x00000000, EBX: 0x00000320, ECX: 0x00000000, EDX: 0x05fa4980
CR2: 0x00000014, EBP: 0x48a73c68, ESI: 0x07385860, EDI: 0x00000000
EFL: 0x00010246, EIP: 0x4826707e, CS: 0x00000008, DS: 0x05b10010
Error code: 0x00000000

Backtrace (CPU 0), Frame : Return Address (4 potential args on stack)
0x48a73a38 : 0x12b4c6 (0x45f91c 0x48a73a6c 0x13355c 0x0)
0x48a73a88 : 0x1ab0fe (0x469a98 0x4826707e 0xe 0x469248)
0x48a73b68 : 0x1a1713 (0x48a73b80 0x5b13000 0x48a73c68 0x4826707e)
0x48a73b78 : 0x4826707e (0xe 0x48a70048 0x48a70010 0x48260010)
0x48a73c68 : 0x4826089a (0x6389e04 0x7385860 0x7385874 0x0)
0x48a73ce8 : 0x4825eedb (0x7027464 0x7385804 0x0 0x140394)
0x48a73d28 : 0x4825d94d (0x7027400 0x2845a00 0x0 0x0)
0x48a73d78 : 0x204f3f (0x11000000 0xc0106211 0x48a73ed0 0x3)
0x48a73db8 : 0x1f82a2 (0x48a73de8 0x246 0x48a73e18 0x1dc2a2)
0x48a73e18 : 0x1ee535 (0x73785f0 0xc0106211 0x48a73ed0 0x3)
0x48a73e78 : 0x36b9c1 (0x521bf00 0xc0106211 0x48a73ed0 0x48a73f50)
0x48a73e98 : 0x392570 (0x521bf00 0xc0106211 0x48a73ed0 0x48a73f50)
0x48a73f78 : 0x3e3a7f (0x51eee44 0x6f56380 0x6f563c4 0xa903)
0x48a73fc8 : 0x1a1c0a (0x7041e20 0x1 0x10 0x7042060)
No mapping exists for frame pointer
Backtrace terminated-invalid frame pointer 0xb00a9db8
Kernel loadable modules in backtrace (with dependencies):
com.broadcom.crystalhd.driver(3.5.0)@0x4825c000->0x48273fff

BSD process name corresponding to current thread: XBMC

Mac OS version:
9L31a

Kernel version:
Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386
System model name: MacBookPro2,2 (Mac-F42187C8)

System uptime in nanoseconds: 335023951162
unloaded kexts:
(none)
loaded kexts:
com.broadcom.crystalhd.driver 3.5.0 - last loaded 239261313265
com.apple.filesystems.autofs 2.0.2
com.apple.driver.InternalModemSupport 2.4.0
com.apple.iokit.IOBluetoothSerialManager 2.1.9f10
com.apple.driver.AppleHDAPlatformDriver 1.7.1a2
com.apple.driver.AppleHWSensor 1.9d0
com.apple.driver.AppleHDAHardwareConfigDriver 1.7.1a2
com.apple.driver.AppleHDA 1.7.1a2
com.apple.driver.AppleUpstreamUserClient 2.7.5
com.apple.kext.ATY_Wormy 5.4.8
com.apple.driver.AppleHDAController 1.7.1a2
com.apple.ATIRadeonX1000 5.4.8
com.apple.driver.AppleGraphicsControl 2.8.15
com.apple.Dont_Steal_Mac_OS_X 6.0.3
com.apple.driver.SMCMotionSensor 2.1.1d2
com.apple.iokit.IOFireWireIP 1.7.7
com.apple.driver.AppleIRController 113
com.apple.driver.AudioIPCDriver 1.0.6
com.apple.kext.AppleSMCLMU 1.4.5d1
com.apple.driver.ACPI_SMC_PlatformPlugin 3.4.0a17
com.apple.driver.AppleLPC 1.3.1
com.apple.driver.AppleBacklight 1.6.0
com.apple.driver.AppleTyMCEDriver 1.0.0d28
com.apple.driver.CSRUSBBluetoothHCIController 2.1.9f10
com.apple.driver.AppleUSBMergeNub 3.5.2
com.apple.driver.CSRHIDTransitionDriver 2.1.9f10
com.apple.driver.AppleUSBTrackpad 1.7.4f1
com.apple.driver.AppleUSBTCKeyEventDriver 1.7.4f1
com.apple.driver.AppleUSBTCKeyboard 1.7.4f1
com.apple.driver.iTunesPhoneDriver 1.0
com.apple.driver.USBCameraFirmwareLoader 1.0.9
com.apple.iokit.IOUSBMassStorageClass 2.0.8
com.apple.iokit.IOSCSIMultimediaCommandsDevice 2.1.1
com.apple.iokit.SCSITaskUserClient 2.1.1
com.apple.driver.XsanFilter 2.7.91
com.apple.iokit.AppleYukon2 3.1.13b2
com.apple.iokit.IOATAPIProtocolTransport 1.5.3
com.apple.iokit.IOAHCIBlockStorage 1.2.2
com.apple.driver.AppleUSBHub 3.4.9
com.apple.iokit.IOUSBUserClient 3.5.2
com.apple.driver.AppleFileSystemDriver 1.1.0
com.apple.driver.AppleFWOHCI 3.9.7
com.apple.driver.AppleUSBEHCI 3.4.6
com.apple.driver.AppleAHCIPort 1.7.0
com.apple.driver.AppleIntelPIIXATA 2.0.1
com.apple.driver.AppleUSBUHCI 3.5.2
com.apple.driver.AppleEFINVRAM 1.2.0
com.apple.driver.AppleSmartBatteryManager 158.10.5
com.apple.driver.AppleRTC 1.2.3
com.apple.driver.AppleHPET 1.4
com.apple.driver.AppleACPIPCI 1.2.5
com.apple.driver.AppleACPIButtons 1.2.5
com.apple.driver.AppleSMBIOS 1.4
com.apple.driver.AppleACPIEC 1.2.5
com.apple.driver.AppleAPIC 1.4
com.apple.security.seatbelt 107.12
com.apple.nke.applicationfirewall 1.8.77
com.apple.security.TMSafetyNet 3
com.apple.driver.AppleIntelCPUPowerManagement 76.2.0
com.apple.driver.DiskImages 199
com.apple.BootCache 30.4
com.apple.iokit.IOSerialFamily 9.4
com.apple.driver.DspFuncLib 1.7.1a2
com.apple.iokit.IOHDAFamily 1.7.1a2
com.apple.iokit.IOAudioFamily 1.6.9fc5
com.apple.kext.OSvKernDSPLib 1.1
com.apple.driver.IOPlatformPluginFamily 3.4.0a17
com.apple.iokit.IONDRVSupport 1.7.3
com.apple.iokit.IOGraphicsFamily 1.7.3
com.apple.driver.AppleSMC 2.3.1d1
com.apple.driver.AppleUSBBluetoothHCIController 2.1.9f10
com.apple.iokit.IOBluetoothFamily 2.1.9f10
com.apple.iokit.IOUSBHIDDriver 3.4.6
com.apple.driver.AppleUSBComposite 3.2.0
com.apple.iokit.IOSCSIBlockCommandsDevice 2.1.1
com.apple.iokit.IOBDStorageFamily 1.5
com.apple.iokit.IODVDStorageFamily 1.5
com.apple.iokit.IOCDStorageFamily 1.5
com.apple.iokit.IOSCSIArchitectureModelFamily 2.1.1
com.apple.iokit.IONetworkingFamily 1.6.1
com.apple.iokit.IOFireWireFamily 3.4.9
com.apple.iokit.IOAHCIFamily 1.5.0
com.apple.iokit.IOATAFamily 2.0.1
com.apple.iokit.IOUSBFamily 3.5.2
com.apple.driver.AppleEFIRuntime 1.2.0
com.apple.iokit.IOSMBusFamily 1.1
com.apple.iokit.IOStorageFamily 1.5.6
com.apple.iokit.IOHIDFamily 1.5.5
com.apple.driver.AppleACPIPlatform 1.2.5
com.apple.iokit.IOACPIFamily 1.2.0
com.apple.iokit.IOPCIFamily 2.6
Reply
#2
rolandb5 Wrote:I will start by thanking Davilla by the huge amount of work spend on this CrystalHD project. Never thought to play 1080P movies without a single frame dropped!

Since I have a rather specific setup I decided to create a new topic:

I run a XBMC player/fileserver on a Macbook Pro (2.2). Due to the fact that it contains a ATI Radeon Videocard, it is not supported by any of the new hardware acceleration. This specific Macbook model contains a airport pci-express card, so I was able to switch that with a Broadcom Crystal HD card.

I did that the day before yesterday and installed driverset 1.0.3, in which I encountered the usual and known bugs. Day after 2.0.0 was released which solved them all :-) .

Yesterday I watched my first movie, which went absolutely hassle free until about 3/4 of the movie. Screen and sound froze and displayed an OS-message asking me to switch of the Macbook. On restart an error message was displayed, which I copied below. Looks like a kernel-panic, caused by the XBMC/driver.

Of course I restarted the movie, but now the same happened after about 2 minutes. Next reboot it happened after about 5 minutes.
  • Is the driverset specifically made for AppleTV?
    Could it be related by not removing the 1.0.3 drivers?

Happy to supply any other error-log.



Interval Since Last Panic Report: 41 sec
Panics Since Last Report: 1
Anonymous UUID: CAFA0E71-7A32-4E61-BA9C-B308B9FA8C83

Wed Aug 18 21:56:13 2010
panic(cpu 0 caller 0x001AB0FE): Kernel trap at 0x4826707e, type 14=page fault, registers:
CR0: 0x8001003b, CR2: 0x00000014, CR3: 0x00f58000, CR4: 0x00000660
EAX: 0x00000000, EBX: 0x00000320, ECX: 0x00000000, EDX: 0x05fa4980
CR2: 0x00000014, EBP: 0x48a73c68, ESI: 0x07385860, EDI: 0x00000000
EFL: 0x00010246, EIP: 0x4826707e, CS: 0x00000008, DS: 0x05b10010
Error code: 0x00000000

Backtrace (CPU 0), Frame : Return Address (4 potential args on stack)
0x48a73a38 : 0x12b4c6 (0x45f91c 0x48a73a6c 0x13355c 0x0)
0x48a73a88 : 0x1ab0fe (0x469a98 0x4826707e 0xe 0x469248)
0x48a73b68 : 0x1a1713 (0x48a73b80 0x5b13000 0x48a73c68 0x4826707e)
0x48a73b78 : 0x4826707e (0xe 0x48a70048 0x48a70010 0x48260010)
0x48a73c68 : 0x4826089a (0x6389e04 0x7385860 0x7385874 0x0)
0x48a73ce8 : 0x4825eedb (0x7027464 0x7385804 0x0 0x140394)
0x48a73d28 : 0x4825d94d (0x7027400 0x2845a00 0x0 0x0)
0x48a73d78 : 0x204f3f (0x11000000 0xc0106211 0x48a73ed0 0x3)
0x48a73db8 : 0x1f82a2 (0x48a73de8 0x246 0x48a73e18 0x1dc2a2)
0x48a73e18 : 0x1ee535 (0x73785f0 0xc0106211 0x48a73ed0 0x3)
0x48a73e78 : 0x36b9c1 (0x521bf00 0xc0106211 0x48a73ed0 0x48a73f50)
0x48a73e98 : 0x392570 (0x521bf00 0xc0106211 0x48a73ed0 0x48a73f50)
0x48a73f78 : 0x3e3a7f (0x51eee44 0x6f56380 0x6f563c4 0xa903)
0x48a73fc8 : 0x1a1c0a (0x7041e20 0x1 0x10 0x7042060)
No mapping exists for frame pointer
Backtrace terminated-invalid frame pointer 0xb00a9db8
Kernel loadable modules in backtrace (with dependencies):
com.broadcom.crystalhd.driver(3.5.0)@0x4825c000->0x48273fff

BSD process name corresponding to current thread: XBMC

Mac OS version:
9L31a

Kernel version:
Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386
System model name: MacBookPro2,2 (Mac-F42187C8)

System uptime in nanoseconds: 335023951162
unloaded kexts:
(none)
loaded kexts:
com.broadcom.crystalhd.driver 3.5.0 - last loaded 239261313265
com.apple.filesystems.autofs 2.0.2
com.apple.driver.InternalModemSupport 2.4.0
com.apple.iokit.IOBluetoothSerialManager 2.1.9f10
com.apple.driver.AppleHDAPlatformDriver 1.7.1a2
com.apple.driver.AppleHWSensor 1.9d0
com.apple.driver.AppleHDAHardwareConfigDriver 1.7.1a2
com.apple.driver.AppleHDA 1.7.1a2
com.apple.driver.AppleUpstreamUserClient 2.7.5
com.apple.kext.ATY_Wormy 5.4.8
com.apple.driver.AppleHDAController 1.7.1a2
com.apple.ATIRadeonX1000 5.4.8
com.apple.driver.AppleGraphicsControl 2.8.15
com.apple.Dont_Steal_Mac_OS_X 6.0.3
com.apple.driver.SMCMotionSensor 2.1.1d2
com.apple.iokit.IOFireWireIP 1.7.7
com.apple.driver.AppleIRController 113
com.apple.driver.AudioIPCDriver 1.0.6
com.apple.kext.AppleSMCLMU 1.4.5d1
com.apple.driver.ACPI_SMC_PlatformPlugin 3.4.0a17
com.apple.driver.AppleLPC 1.3.1
com.apple.driver.AppleBacklight 1.6.0
com.apple.driver.AppleTyMCEDriver 1.0.0d28
com.apple.driver.CSRUSBBluetoothHCIController 2.1.9f10
com.apple.driver.AppleUSBMergeNub 3.5.2
com.apple.driver.CSRHIDTransitionDriver 2.1.9f10
com.apple.driver.AppleUSBTrackpad 1.7.4f1
com.apple.driver.AppleUSBTCKeyEventDriver 1.7.4f1
com.apple.driver.AppleUSBTCKeyboard 1.7.4f1
com.apple.driver.iTunesPhoneDriver 1.0
com.apple.driver.USBCameraFirmwareLoader 1.0.9
com.apple.iokit.IOUSBMassStorageClass 2.0.8
com.apple.iokit.IOSCSIMultimediaCommandsDevice 2.1.1
com.apple.iokit.SCSITaskUserClient 2.1.1
com.apple.driver.XsanFilter 2.7.91
com.apple.iokit.AppleYukon2 3.1.13b2
com.apple.iokit.IOATAPIProtocolTransport 1.5.3
com.apple.iokit.IOAHCIBlockStorage 1.2.2
com.apple.driver.AppleUSBHub 3.4.9
com.apple.iokit.IOUSBUserClient 3.5.2
com.apple.driver.AppleFileSystemDriver 1.1.0
com.apple.driver.AppleFWOHCI 3.9.7
com.apple.driver.AppleUSBEHCI 3.4.6
com.apple.driver.AppleAHCIPort 1.7.0
com.apple.driver.AppleIntelPIIXATA 2.0.1
com.apple.driver.AppleUSBUHCI 3.5.2
com.apple.driver.AppleEFINVRAM 1.2.0
com.apple.driver.AppleSmartBatteryManager 158.10.5
com.apple.driver.AppleRTC 1.2.3
com.apple.driver.AppleHPET 1.4
com.apple.driver.AppleACPIPCI 1.2.5
com.apple.driver.AppleACPIButtons 1.2.5
com.apple.driver.AppleSMBIOS 1.4
com.apple.driver.AppleACPIEC 1.2.5
com.apple.driver.AppleAPIC 1.4
com.apple.security.seatbelt 107.12
com.apple.nke.applicationfirewall 1.8.77
com.apple.security.TMSafetyNet 3
com.apple.driver.AppleIntelCPUPowerManagement 76.2.0
com.apple.driver.DiskImages 199
com.apple.BootCache 30.4
com.apple.iokit.IOSerialFamily 9.4
com.apple.driver.DspFuncLib 1.7.1a2
com.apple.iokit.IOHDAFamily 1.7.1a2
com.apple.iokit.IOAudioFamily 1.6.9fc5
com.apple.kext.OSvKernDSPLib 1.1
com.apple.driver.IOPlatformPluginFamily 3.4.0a17
com.apple.iokit.IONDRVSupport 1.7.3
com.apple.iokit.IOGraphicsFamily 1.7.3
com.apple.driver.AppleSMC 2.3.1d1
com.apple.driver.AppleUSBBluetoothHCIController 2.1.9f10
com.apple.iokit.IOBluetoothFamily 2.1.9f10
com.apple.iokit.IOUSBHIDDriver 3.4.6
com.apple.driver.AppleUSBComposite 3.2.0
com.apple.iokit.IOSCSIBlockCommandsDevice 2.1.1
com.apple.iokit.IOBDStorageFamily 1.5
com.apple.iokit.IODVDStorageFamily 1.5
com.apple.iokit.IOCDStorageFamily 1.5
com.apple.iokit.IOSCSIArchitectureModelFamily 2.1.1
com.apple.iokit.IONetworkingFamily 1.6.1
com.apple.iokit.IOFireWireFamily 3.4.9
com.apple.iokit.IOAHCIFamily 1.5.0
com.apple.iokit.IOATAFamily 2.0.1
com.apple.iokit.IOUSBFamily 3.5.2
com.apple.driver.AppleEFIRuntime 1.2.0
com.apple.iokit.IOSMBusFamily 1.1
com.apple.iokit.IOStorageFamily 1.5.6
com.apple.iokit.IOHIDFamily 1.5.5
com.apple.driver.AppleACPIPlatform 1.2.5
com.apple.iokit.IOACPIFamily 1.2.0
com.apple.iokit.IOPCIFamily 2.6

Congratulations, you have found a bug Smile The kernel bt does point to com.broadcom.crystalhd.driver so it's definably CrystalHD. With that bt I can get close to where it barfed and might see what's going on.

The Crystal HD kext/lib is a standard OSX flavor. Nothing special about it. The only issue is under 64 bit filesystem or kernel where there's an issue with scatter/gather DMA and I/O Kit not providing bounce buffers when the OS memory is greater than 4GB.

com.broadcom.crystalhd.driver says 3.5.0, that's the new one. I'm assuming that you also installed the corresponding libcrystalhd.dylib and firmware.


I'll be poking into this later today and tomorrow as I defiantly want to stomp this bug fast. Question, can you build from source code ( CrystalHD bits) ?
Reply
#3
Yep, I installed the new driverset using the instructions on this site: http://ae.dhs.nu/crystalhd/ . I adapted the instructions for use of the 2.0.0 driverset.

Not able to build the driverset form sourcecode. Maybe if you can direct me to some to some tutorial, I'm able to learn the magic trick.

Happy to help/test and send other logs your way.
Reply
#4
hi,
mac mini, driver ver. 2.0.
after 2 min. of movie, i get panic alarm from os.
here is report:
http://pastebin.com/BUA7VZzq
Reply
#5
beytarj Wrote:hi,
mac mini, driver ver. 2.0.
after 2 min. of movie, i get panic alarm from os.
here is report:
http://pastebin.com/BUA7VZzq

bcm70012 or bcm70015 ?

Looks like 10.6.4, uname -a please. and how much ram do you have installed.
Reply
#6
ok, we see why it's crashing, got a race going on somewhere.
Reply
#7
please try crystalhd-for-osx-test1.zip, replace both kext and libcrystalhd.dylib.
Reply
#8
my mac is mini 1.66, osx 10.6.4, 2 GB ram, bcm70012.
with crystalhd-for-osx-test1.zip it looks working good.
thank u.
Reply
#9
Avatar is still playing... thanks a million for a quick fix.
Reply

Logout Mark Read Team Forum Stats Members Help
[MAC] Kernel panic crash with new CrystalHD driver0