Kernel: IOSurface buffer allocation size is zero

I tend to receive the above message when listening to Itunes, this message can cause itunes to pause the music and sometimes cause the whole system to crash. Although it does not affect spotify.


I have only recently found out what the problem is, this problem has been going on for a long time. it does get annoying after sometime that your music pauses.


The list of text below has been copied from my Kernel.log and shows that this problem is quite prominent.

Would there be a olution to this? I have previously reinstalled my Operating system, after the reinstallation the problem occurs again. Even after an upgrade to OS X Lion the problem is still there


Mid 2010 Imac, 2.8Ghz Quad Core i5, 8GB ram, 1TB HDD, ATI Radeon HD 5750 1024 MB





rdbus=0)

Jul 26 16:36:22 localhost kernel[0]: [ PCI configuration end, bridges 8 devices 36 ]

Jul 26 16:36:22 localhost kernel[0]: FireWire (OHCI) TI ID 823f built-in now active, GUID e80688fffebe3be2; max speed s800.

Jul 26 16:36:22 localhost kernel[0]: mbinit: done [96 MB total pool size, (64/32) split]

Jul 26 16:36:22 localhost kernel[0]: Pthread support ABORTS when sync kernel primitives misused

Jul 26 16:36:22 localhost kernel[0]: com.apple.AppleFSCompressionTypeZlib kmod start

Jul 26 16:36:22 localhost kernel[0]: com.apple.AppleFSCompressionTypeDataless kmod start

Jul 26 16:36:22 localhost kernel[0]: com.apple.AppleFSCompressionTypeZlib load succeeded

Jul 26 16:36:22 localhost kernel[0]: com.apple.AppleFSCompressionTypeDataless load succeeded

Jul 26 16:36:22 localhost kernel[0]: AppleIntelCPUPowerManagementClient: ready

Jul 26 16:36:22 localhost kernel[0]: Ethernet [AppleBCM5701Ethernet]: Wake reason GIGE - bonjour - service connect

Jul 26 16:36:22 localhost kernel[0]: Network wake from BCM5701Enet

Jul 26 16:36:22 localhost kernel[0]: USBMSC Identifier (non-unique): 000000009833 0x5ac 0x8403 0x9833

Jul 26 16:36:22 localhost kernel[0]: USBMSC Identifier (non-unique): 00001411A7BE 0x411 0x105 0x300

Jul 26 16:36:22 localhost kernel[0]: [IOBluetoothHCIController::setConfigState] calling registerService

Jul 26 16:36:22 localhost kernel[0]: rooting via boot-uuid from /chosen: F995335E-73C3-3050-9BE7-6AD137A3B0CA

Jul 26 16:36:22 localhost kernel[0]: Waiting on <dict ID="0"><key>IOProviderClass</key><string ID="1">IOResources</string><key>IOResourceMatch</key><string ID="2">boot-uuid-media</string></dict>

Jul 26 16:36:22 localhost kernel[0]: Got boot device = IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/SATA@1F,2/AppleIntelPchS eriesAHCI/PRT0@0/IOAHCIDevice@0/AppleAHCIDiskDriver/IOAHCIBlockStorageDevice/IOB lockStorageDriver/ST31000528AS Media/IOGUIDPartitionScheme/NotQuiteMaxDisk@2

Jul 26 16:36:22 localhost kernel[0]: BSD root: disk0s2, major 14, minor 2

Jul 26 16:36:22 localhost kernel[0]: Kernel is LP64

Jul 26 16:36:23 localhost kernel[0]: BCM5701Enet: Ethernet address c4:2c:03:0f:54:8f

Jul 26 16:36:25 Andrew-Purdys-iMac kernel[0]: Previous Shutdown Cause: 5

Jul 26 16:36:25 Andrew-Purdys-iMac kernel[0]: ** Device in slot: SLOT--1 **

Jul 26 16:36:25 Andrew-Purdys-iMac kernel[0]: DSMOS has arrived

Jul 26 16:36:26 Andrew-Purdys-iMac kernel[0]: 27.597048: ath_get_caps[4036] rx chainmask mismatch actual 3 sc_chainmak 0

Jul 26 16:36:26 Andrew-Purdys-iMac kernel[0]: 27.597073: ath_get_caps[4011] tx chainmask mismatch actual 3 sc_chainmak 0

Jul 26 16:36:26 Andrew-Purdys-iMac kernel[0]: 27.601135: Atheros: mac 128.2 phy 13.027.601140: radio 12.027.601142:

Jul 26 16:36:26 Andrew-Purdys-iMac kernel[0]: 27.601146: Use hw queue 0 for WME_AC_BE traffic

Jul 26 16:36:26 Andrew-Purdys-iMac kernel[0]: 27.601152: Use hw queue 1 for WME_AC_BK traffic

Jul 26 16:36:26 Andrew-Purdys-iMac kernel[0]: 27.601158: Use hw queue 2 for WME_AC_VI traffic

Jul 26 16:36:26 Andrew-Purdys-iMac kernel[0]: 27.601163: Use hw queue 3 for WME_AC_VO traffic

Jul 26 16:36:26 Andrew-Purdys-iMac kernel[0]: 27.601169: Use hw queue 8 for CAB traffic

Jul 26 16:36:26 Andrew-Purdys-iMac kernel[0]: 27.601174: Use hw queue 9 for beacons

Jul 26 16:36:26 Andrew-Purdys-iMac kernel[0]: 27.601235: wlan_vap_create : enter. devhandle=0xd320c610, opmode=IEEE80211_M_STA, flags=0x1

Jul 26 16:36:26 Andrew-Purdys-iMac kernel[0]: 27.601271: wlan_vap_create : exit. devhandle=0xd320c610, opmode=IEEE80211_M_STA, flags=0x1.

Jul 26 16:36:26 Andrew-Purdys-iMac kernel[0]: AirPort_AtherosNewma40: Ethernet address d8:30:62:59:e7:bd

Jul 26 16:36:26 Andrew-Purdys-iMac kernel[0]: IO80211Controller::dataLinkLayerAttachComplete(): adding AppleEFINVRAM notification

Jul 26 16:36:26 Andrew-Purdys-iMac kernel[0]: IO80211Interface::efiNVRAMPublished():

Jul 26 16:36:26 Andrew-Purdys-iMac kernel[0]: NTFS driver 3.8 [Flags: R/W].

Jul 26 16:36:26 Andrew-Purdys-iMac kernel[0]: AirPort: Link Down on en1. Reason 1 (Unspecified).

Jul 26 16:36:26 Andrew-Purdys-iMac kernel[0]: 28.701894: setDISASSOC from disconnectVap

Jul 26 16:36:26 Andrew-Purdys-iMac kernel[0]: 28.701905: switchVap from 1 to 1

Jul 26 16:36:27 Andrew-Purdys-iMac kernel[0]: NTFS volume name BOOTCAMP, version 3.1.

Jul 26 16:36:27 Andrew-Purdys-iMac kernel[0]: nstat_lookup_entry failed: 2

Jul 26 16:36:28: --- last message repeated 1 time ---

Jul 26 16:36:27 Andrew-Purdys-iMac kernel[0]: Ethernet [AppleBCM5701Ethernet]: Link up on en0, 100-Megabit, Full-duplex, Symmetric flow-control, Debug [796d,2300,0de1,0300,45e1,0000]

Jul 26 16:36:29 Andrew-Purdys-iMac kernel[0]: macx_swapon SUCCESS

Jul 26 16:36:34 andrew-pc kernel[0]: [ffffff8015319c00][BNBMouseDevice::init][66] init is complete

Jul 26 16:36:35 andrew-pc kernel[0]: [ffffff8015319c00][BNBMouseDevice::handleStart][66] Done

Jul 26 16:36:35 andrew-pc kernel[0]: [ffffff8015a16000][AppleMultitouchHIDEventDriver::start] entered

Jul 26 16:36:35 andrew-pc kernel[0]: [ffffff8015a90d00][AppleMultitouchDevice::start] entered

Jul 26 16:36:56 andrew-pc kernel[0]: udf log: Allow bogus directory length

Jul 26 16:37:14 andrew-pc kernel[0]: AppleBCM5701Ethernet: 0 1 BCM5701Enet::replaceOrCopyPacket worked after N tries

Jul 26 16:40:27 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 16:41:22: --- last message repeated 2 times ---

Jul 26 16:41:40 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 16:43:52: --- last message repeated 6 times ---

Jul 26 16:45:16 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 16:46:22: --- last message repeated 2 times ---

Jul 26 18:25:18 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 18:26:23 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 18:32:19 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 18:34:08 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 18:34:45 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 18:36:22: --- last message repeated 1 time ---

Jul 26 18:37:53 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 18:38:52: --- last message repeated 1 time ---

Jul 26 18:39:27 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 18:40:17 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 19:27:48 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 19:28:45: --- last message repeated 1 time ---

Jul 26 19:28:45 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 19:29:15: --- last message repeated 2 times ---

Jul 26 22:53:21 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 22:56:56 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 22:58:28: --- last message repeated 1 time ---

Jul 26 22:58:28 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 22:58:58: --- last message repeated 6 times ---

Jul 26 22:59:00 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 22:59:30: --- last message repeated 5 times ---

Jul 26 23:03:12 andrew-pc kernel[0]: CoreServicesUIAg[590] Unable to clear quarantine `CodeResources': 93

Jul 26 23:03:12 andrew-pc kernel[0]: CoreServicesUIAg[590] Unable to clear quarantine `Growl': 93

Jul 26 23:03:12 andrew-pc kernel[0]: CoreServicesUIAg[590] Unable to clear quarantine `Headers': 93

Jul 26 23:03:12 andrew-pc kernel[0]: CoreServicesUIAg[590] Unable to clear quarantine `Resources': 93

Jul 26 23:03:12 andrew-pc kernel[0]: CoreServicesUIAg[590] Unable to clear quarantine `Current': 93

Jul 26 23:03:12 andrew-pc kernel[0]: CoreServicesUIAg[590] Unable to clear quarantine `Headers': 93

Jul 26 23:03:12 andrew-pc kernel[0]: CoreServicesUIAg[590] Unable to clear quarantine `Resources': 93

Jul 26 23:03:12 andrew-pc kernel[0]: CoreServicesUIAg[590] Unable to clear quarantine `Skype': 93

Jul 26 23:03:12 andrew-pc kernel[0]: CoreServicesUIAg[590] Unable to clear quarantine `Current': 93

Jul 26 23:04:53 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 23:06:23: --- last message repeated 1 time ---

Jul 26 23:08:22 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 23:18:09 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 23:22:01 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 23:24:39 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 23:26:23: --- last message repeated 1 time ---

Jul 26 23:27:36 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 23:33:49 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 23:35:58 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 23:36:28: --- last message repeated 1 time ---

Jul 26 23:37:23 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 23:37:58 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 23:38:37: --- last message repeated 1 time ---

Jul 26 23:38:37 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 23:39:08: --- last message repeated 1 time ---

Jul 26 23:39:52 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 23:40:36: --- last message repeated 1 time ---

Jul 26 23:40:36 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 23:42:23 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 23:46:12 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 23:46:44 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 23:47:14: --- last message repeated 2 times ---

Jul 26 23:47:58 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 23:48:38 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 23:49:36 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 23:50:19: --- last message repeated 1 time ---

Jul 26 23:50:19 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 26 23:51:23: --- last message repeated 1 time ---

Jul 27 00:50:43 andrew-pc kernel[0]: HFS: Very Low Disk: freeblks: 0, dangerlimit: 154

Jul 27 14:07:46 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 27 14:09:00: --- last message repeated 1 time ---

Jul 27 14:09:00 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 27 14:13:16 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 27 14:15:07 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 27 14:15:50: --- last message repeated 3 times ---

Jul 27 14:15:50 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 27 14:16:24: --- last message repeated 1 time ---

Jul 27 14:16:26 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 27 14:16:56 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

Jul 27 14:17:26: --- last message repeated 2 times ---

Jul 27 14:17:28 andrew-pc kernel[0]: IOSurface: buffer allocation size is zero

iMac, Mac OS X (10.7)

Posted on Jul 27, 2011 6:29 AM

Reply
154 replies

Jul 28, 2012 5:47 PM in response to RPM1123

Well, my Mac Mini 2011 on Lion was a victim to IOSurface errors and as a workaround, I have disabled flash on Safari and Firefox but kept it for Chrome if I really need to see flash sites. I also uninstalled Virtualbox and that helped because I've been firing up 1-6 virtual machines as a testbed per day. Before, I used to get 1 crash per day and with this setting, I would get 1 crash per 4 days.


After installing Mountain Lion and so far I haven't experienced IO surface errors. Also, shutting down the system is much improved.

Aug 7, 2012 9:44 AM in response to andrew011

Hey guys!


I am having this error aswel, started like 2weeks ago. Before that it have been running smooth for around 7-8 months, and suddently i started getting those freezes, sound goes away comes back and so on.


I am very surprised people can be pleased with things like "disable HW acceleration in flash" or things like that. I am sitting on a macbook pro Late(ultimo?) 2011 17" and in Denmark, that is a very exspensive machine, were talking atleast 2months of a "normal" payment and proberly 3 if you like the option to buy food aswel.


I am outrages, for a machine this exspensive, i DEMAND either refund or replacement of a new machine, it cant be right that ill just be forced to LOWER the HW accelerations, Seriously? i didnt pay for a machine with top end HW to make it go slower when using it.


I am at the same time one of those persons that like to play games on my mac, this error makes that option impossible. This is for certain a freakin HW error, as ive allways used Lion and 2weeks ago, as i said, this error started, only today i realised you could check the consol log, and i have TONS of "size is zero" spamm, more frequently when i play. I play blizzard games and iLOL and been doing this fine with no problem, untill now.


This is for certain apples job to fix, and as soon as i get to the Authorized mac repair center we got where i live I am going to give em the whole story, if I will get turned down, im going through court. EOD.

Aug 7, 2012 11:04 AM in response to Anic264b

Oh man, i though i had found my "problem". Maybe I am even more certain its hardware issues then, if the IO, is harmless.


I am getting as people were talking about here, freezes, i meen complete lockups and then it runs again and do it again, for numerous times. And this is Without the beachball. And it allways kill the sound, sometimes it puts the sound of the laptop speakers for then to switch back to headset.


And im so mad that ive payed this much, and then now sit with something that is "part" broken, problem is I cant find out whats wrong, so I dont know how to "force it out" so it will be easy to show for the repair folks. And that just puts me in such a bad position of getting them to find it, as it kinda just happen when it wants to. 😟

Aug 7, 2012 11:28 AM in response to zipain

I'd suggest starting with the usual steps, if you haven't already done so. Verifying the startup disk, permissions, resetting the PRAM, checking the hardware with the Apple Hardware Test, starting in safe mode or in another user's acount or in a fresh installation. Also, checking the Console for other hints.

Usually, only a subset of the steps above are meanigful for a given problem. However, the problem you're having might have something to do with any of them above (e.g. it could be hardware or software).

Aug 7, 2012 12:25 PM in response to Anic264b

I have done all u just said, except Apple hardware test, as it dont support the late 2011 mbp in any way, only the early. And i havnt done Safe mode.


I just had a MASSIVE spam of "kernel[0]: SMC::smcReadKeyAction ERROR TC0H kSMCBadArgumentError(0x89) fKeyHashTable=0x0xffffff801284a000" which happend like 20-30times in a row in all with No time space between, exactly same second it happend.


I am pretty sure it aint software related as i have used original hdd reinstalled Lion twice and ssd reinstalled lion twice. done pram etc.


My machine have as i said been running perfect for months. Just suddently it started with this ****, at a point were i had not installede anything new or changed any hardware.


I cant, with the general knowledge i have see how this, in anyway can be software related(hence two diffrent sets of ram and harddrives tested, same stuff happening on both)

Aug 7, 2012 12:38 PM in response to zipain

zipain wrote:


I have done all u just said, except Apple hardware test, as it dont support the late 2011 mbp in any way, only the early. And i havnt done Safe mode.

Hmm… I have never used a so recent Mac. How are users expected to test for hardware then? A built-in tool similar than Apple Hardware Test?


For the rest, yes, it sounds like a hardware issue. It's hard to analyse over Internet (if it was a Mac Pro, I'd tell to try to remove some components, but it's harder with a Mac Book Pro). Perhaps the problem is heat-related?

Aug 7, 2012 1:24 PM in response to Anic264b

Well sadly, from what ive searched for, i have not found anything that can do the same as apple hardware test, only many harddrive tests and one memtest. Allthough cant use em for anything, as changeing both things still leaves me with the problem.


When i play games, its roaming around 75celcius max ive seen have been 92celcius under load but its rarely for long, I am using Fan Control(always have) over smcfancontrol because Fan control just adepts to whatever the current temp is which i like, fans mostly run at around 4500-5500 when i play. so ye i have allways had an eye on temps etc.(ive taken care of this mbp as was it my baby, since it was, for me, very exspensive.) I even use a external keyboard most of the time. Allways had it on a hard surface and list goes on, i really treated it to its full potential and packed it in blanckets software wise, even bought the norton anitvirus for mac back in the days.. And ofc last but not least, careful dust removeing by removeing back cover and use a air blower, and ofc makeing sure that theres no static electricity.


I have done everything in my power to be careful with the machine and make it run at its best. And I am atm educating to become a computer technician, as it really interrest me.. So really I am not just some "standard" user, ofc i got lots to learn, but all basic on hardware etc. I understand. EXCEPT THIS ANNOYING THING! :]


Biggest problem and my biggest concern is, i cannot provoke it as i dont know what is really wrong and it can be very random, can run 1 day with no problems, like today, next day its pure ****, seems to Ease the problem for a day or two when i do pram reset, mby its that little batteri in that, but then again shouldnt cause lags(freeze). I had to reset pram first time I wanted to use recovery for a lion reinstall, before that it just said "this install is broken" and i was basicly F'ed.


Sorry for the wall of text, but just want to share as much info as possible, as you said, it can be really hard to do troubleshooting over the net. I am deffinetly takeing it down to that Authorized apple guy in my town, hopefully hes in a good mood and will agree after what i told him, to take it in and mby exchange it for a new one as i dont have much confident in stuff that gets repaired, especially not when its electronics, as in my belief you can never really 100% repair hardware. 😝


anyways thanks so far in your interrest in helping me, hope my english is understandable, not my native but doing my best! 🙂

Aug 9, 2012 11:52 AM in response to zipain

zipain wrote:


Well sadly, from what ive searched for, i have not found anything that can do the same as apple hardware test, only many harddrive tests and one memtest. Allthough cant use em for anything, as changeing both things still leaves me with the problem.

Not only it's sad, but I don't understand how Apple suggests us to check our hardwares now.

zipain also wrote:


And ofc last but not least, careful dust removeing by removeing back cover and use a air blower, and ofc makeing sure that theres no static electricity.

English isn't my native language either… May I ask what does “ofc” mean?

zipain wrote again:


Biggest problem and my biggest concern is, i cannot provoke it as i dont know what is really wrong and it can be very random, can run 1 day with no problems, like today, next day its pure ****, seems to Ease the problem for a day or two when i do pram reset, mby its that little batteri in that, but then again shouldnt cause lags(freeze).

So, is that always the same kind of freeze(s) or it/they vary a lot?

For example, is the mouse freezing, does command-tab still works (or any UI component). I ask, because you mention “freezes” and “sound goes away and comes back”, but I don't have a clear idea of what exactly freezes and how/when/in which order. Perhaps these tips may give ideas?

zipain wrote as well:


Sorry for the wall of text, but just want to share as much info as possible, as you said, it can be really hard to do troubleshooting over the net. I am deffinetly takeing it down to that Authorized apple guy in my town, hopefully hes in a good mood and will agree after what i told him, to take it in and mby exchange it for a new one as i dont have much confident in stuff that gets repaired, especially not when its electronics, as in my belief you can never really 100% repair hardware. 😝

Yes, you're doing as you should. Tell us if the guy accepted the exchange.

zipain finally wrote:


anyways thanks so far in your interrest in helping me, hope my english is understandable, not my native but doing my best! 🙂

No problem 🙂

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Kernel: IOSurface buffer allocation size is zero

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.