Wouter1 / EMU-driver

OSX Kernel extension for Creative Labs EMU driver
189 stars 30 forks source link

installer error #17

Closed Wouter1 closed 9 years ago

Wouter1 commented 9 years ago

http://forums.macrumors.com/showthread.php?s=b7d660127f5bbd50631d656f3888c9ae&p=20530636#post20530636

Installer gives error

(kernel) Kext com.emu.driver.EMUUSBAudio not found for unload request.
Failed to unload com.emu.driver.EMUUSBAudio - (libkern/kext) not found.
deleting old kext
moving things
doing permissions stuff
loading new kext
Requesting load of /System/Library/Extensions/EMUUSBAudio.kext.
/System/Library/Extensions/EMUUSBAudio.kext failed to load - (libkern/kext) not loadable (reason unspecified); check the system/kernel logs for errors or try kextutil(8).
Can't stat /Users/bencarlin/symbols/ - No such file or directory.
so long
logout
Wouter1 commented 9 years ago

These are the source of the problem

 27 Dec 2014 20:33:01 kernel[0]: +UsbInputRing::init 98304 529200
27 Dec 2014 20:33:01 kernel[0]: -UsbInputRing::init 185759637
27 Dec 2014 20:33:01 kernel[0]: USB pipe READ error e00002ef

For some reason the USB pipe does not open properly and it gives a (for me weird) error kIOReturnIsoTooNew (0x2ef) // isochronous I/O request for distant future

Looking into it but this may take some time.

BenCarlin commented 9 years ago

Ahh ok strange that I have it and you didn't! Ok thanks again!

Wouter1 commented 9 years ago

First guess is that Yosemite is interpreting "kAppleUSBSSIsocContinuousFrame" differently.

Wouter1 commented 9 years ago

tried with 0 instead but that does not work here.

Dec 27 22:23:25 vlieland kernel[0]: USB pipe READ error e00002ee
Wouter1 commented 9 years ago

Tried to use mBus->GetFrameNumber()

that gives

Dec 27 22:56:45 vlieland kernel[0]: USB pipe READ error e00002c2 (kIOReturnBadArgument)
BenCarlin commented 9 years ago

So Yosemite is what's causing the problem? Are you running older operating system?

Wouter1 commented 9 years ago

Yes I'm running Mavericks. I don't switch until the new OS has proven itself a number of months and shows better than the previous. Actually I skipped everything between Snow Leopard and Maverics for these reasons. I'm doing a lot of programming and setting up a new computer is a major pain so I dont want to waste time with broken OSs. Note I'm not saying Yosemite is bad, it am just waiting till it's proven better.

It seems that the behaviour of reading from USB using "kAppleUSBSSIsocContinuousFrame" has been changed. This special number for the USB read command in Mavericks tells USB to pick up the next incoming USB packet, and to ignore the actual exact frame number.

Keeping track of frame numbers in the original driver was broken and I was happy to remove that. It seems Yosemite does not recognise this special number and thinks it's a reference to a too-far-in-future USB packet.

I'm out of time for today. I hope to find some solution tomorrow. Sorry that I could not get this fixed quickly and that I can't test on Yosemite. I will add this to the readme for now.

Wouter1 commented 9 years ago

Tried mBus->GetFrameNumber() + 1. Same error 2c2.

BenCarlin commented 9 years ago

Thanks again for your time. Not a problem about tonight. I would rather wait a few days and not have to splash out lots of money buying new sound card!!

Wouter1 commented 9 years ago

I moved this issue with reading from the pipe on Yosemite to new ticket as the installer errror problem was fixed https://github.com/Wouter1/EMU-driver/issues/18