Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARM M1 issue Incompatible architecture: Cannot find arm64e in fat binary #136

Open
bezromval opened this issue Feb 22, 2021 · 91 comments
Open

Comments

@bezromval
Copy link

bezromval commented Feb 22, 2021

The installer report is:

Error Domain=KMErrorDomain Code=3 "Error occurred unloading extensions: Missing extension with identifier com.emu.driver.EMUUSBAudio : Incompatible architecture: Cannot find arm64e in fat binary
Incompatible architecture: Binary is for x86_64, but needed arch arm64e" UserInfo={NSLocalizedDescription=Error occurred unloading extensions: Missing extension with identifier com.emu.driver.EMUUSBAudio : Incompatible architecture: Cannot find arm64e in fat binary
Incompatible architecture: Binary is for x86_64, but needed arch arm64e}
Error Domain=KMErrorDomain Code=71 "Incompatible architecture: Binary is for x86_64, but needed arch arm64e" UserInfo={NSLocalizedDescription=Incompatible architecture: Binary is for x86_64, but needed arch arm64e}
Waiting for the system to finish installation. Can take several minutes.
Executing: /usr/bin/kmutil install --volume-root / --check-rebuild
Rebuilding the kernel
Driver is installed and ready for use!
You can close this window.
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
@Wouter1
Copy link
Owner

Wouter1 commented Feb 22, 2021

@bezromval thanks for reporting. Yes I was expecting it.

Your report "end of era ..." introduction is not so to the point and a bit negative so I removed that.

I already tried to recompile the code but it does not seem to generate the ARM binary and spits errors where the code wes compiling in the previous XCode And I don't have access to any ARM machine so even if it would compile I would be unable to test this

In short it may take some time before I can fix this

@Wouter1
Copy link
Owner

Wouter1 commented Feb 22, 2021

------- notes for myself

Main error message I get from the compiler:

TARGET_OS_OSX not defined
cdefs.h
In file included from ...EMUUSUAudio_info.c

Actually I'm i porting xmach/mach_types.h there.
Strange, error comes not from my code but from a standard library.

@Wouter1
Copy link
Owner

Wouter1 commented Feb 22, 2021

XCode says the file that causes the error is EMUUSBAudio_info.c
Ny project does not have such a file?
It does have a file EMUUSBAudio-info.plist. Is this something odd being generated wrong?

I also can NOT edit this 'file'. The filename is also in italics, not clear what's going on

The error says something like "in file included from /Users/wouter/Library/Developer/Xcode/DerivedData/EMUUSBAudio-fjaszixeghwepcdugnckcrbgnuhj/Build/Intermediates.noindex/EMUISBAudio.build/Debug/........

That's not where I put my source files either

@Wouter1
Copy link
Owner

Wouter1 commented Feb 22, 2021

Similar error to here
catchorg/Catch2#2139
But no solution reported there

@Wouter1
Copy link
Owner

Wouter1 commented Feb 22, 2021

https://stackoverflow.com/questions/12132933/preprocessor-macro-for-os-x-targets

gives more details but it's quite confusing

@Wouter1
Copy link
Owner

Wouter1 commented Feb 22, 2021

INFOPLIST_PREPROCESS=YES is in the project settings (project.pbxproj).
I think this creates the above mentioned file that includes cdef.h

If I uncheck that, the error remains because cdefs.h is still imported through

EMU-driver/USH.h -> IOKit/usb/StandardUSB.h -> IOKit->IOTypes.h -> IOKit/system.h -> sys/cdefs.h

@Wouter1
Copy link
Owner

Wouter1 commented Feb 22, 2021

If I put

#include <TargetConditionals.h>

right before the #include<IOKit/usb/StandardUSB.h>

then I get

IOKit/usb/IOUSBLog.h file not found.

Maybe this is a step in the right direction

@Wouter1
Copy link
Owner

Wouter1 commented Feb 22, 2021

After just removing that import, I'm back to the TERGET_OS_OSX not defined

But now through the import chain

EMUUSBAudio_info.c -> mach/mach_types.h->stdint.h -> machine/types.h -> i396/types.h -> sys/cdefs.h

@Wouter1
Copy link
Owner

Wouter1 commented Feb 22, 2021

Again that is NOT my file.
I have turned off the preprocess info.plist file.
Also the "Create Info.plist section in binary" is off.

@Wouter1
Copy link
Owner

Wouter1 commented Feb 22, 2021

This Derived Data seems wrong.
Maybe I can find more about derivedData

https://vojtastavik.com/2018/09/02/what-is-inside-derived-data-xcode/

might help

@Wouter1
Copy link
Owner

Wouter1 commented Mar 14, 2021

@Wouter1
Copy link
Owner

Wouter1 commented Mar 14, 2021

Well that first line there is already confusing. " you install Xcode, the installer creates a /Developer/SDKs directory"

I HAVE Xcode installed. But I don't have /Developer.

EDIT: but XCode works fine, i now compiled the driver. That first line must be incorrect.

@Wouter1
Copy link
Owner

Wouter1 commented Mar 14, 2021

The error disappears if I set in project the Apple Clang-Preprocessing / Preprocessor macros add TARGET_OS_OSX=1

EDIT: This seems indeed needed. When I remove it the build fails.

But then a new error appears in EMUUSBAudioDevice.h line 249 Invalid operands to binary expression ('nullptr_t' and 'UInt8')

@Wouter1
Copy link
Owner

Wouter1 commented Mar 14, 2021

If I change that line the NULL to 0 I get another error

IOKit/usb/IOUSBLog.h' file not found

@Wouter1
Copy link
Owner

Wouter1 commented Mar 14, 2021

https://developer.apple.com/forums/thread/72248
These files do not exist apparently above 10.10

@Wouter1
Copy link
Owner

Wouter1 commented Mar 14, 2021

If I comment out that line, I get another error,
EMUUSBAudioDevice.cpp ine 335

because audioEngine.init(NULL) apparently returns boolean. I was comparing it with NULL==.
Changed to !audioEngine.init(NULL).

After that, build succeeds! But not clear yet what that means, do we now have fat binary and how to test it

@Wouter1
Copy link
Owner

Wouter1 commented Mar 14, 2021

In that building project, I now have "macOS Deployment Target" set to MacOS 10.12" and Base SDK macOS.
But it also works if I set the deployment target to macOS 11.0.

Project format is XCode 3.2-compatible.

@bezromval
Copy link
Author

I didn't understand any word you write up here, but I'm waiting here for some beta driver for M1 and would like to test it on my MacBook Air with m1 chip and I already have proper usb type c printer cable for it. Just let me know here.

@Wouter1
Copy link
Owner

Wouter1 commented Mar 14, 2021

@bezromval thanks for offering help on testing. I have no ARM machine so I can not test anything.

I have at this point something compiling on xcode 12.5 beta. FAIK this should support ARM compilation.

But It's not clear what the compiled driver is at this point. But given that it's 458kB size, strongly suggests it's not fat but just 1 architecture. That probably is intel as I could nowhere select any ARM compilation target...

The notes above are tech notes for myself, documenting what I do. I have not much time so occasionally I have a few hours. It's then essential that I can continue on, rather than redo, what I did last time. Hence all these notes.

@Wouter1
Copy link
Owner

Wouter1 commented Mar 14, 2021

Yes, lipo -info .....kext/Contents/MacOS/EMUUSBAudio gives only x86_64 so not good yet.

@Wouter1
Copy link
Owner

Wouter1 commented Mar 14, 2021

The required flags are in the project, under build settings/architecture.

The Architectures are set to Standard Arcitectures (Apple Silicon, Intel) so that looks good.

If I set "Build Active Architectures Only" to "Yes" it builds fine.
I had that setting for the Debug mode; and aparently Build builds the debug version...

But if I set it to No then I get another error

EMUUSBAudioEngine line 47
Allocating an object of abstract class type 'EMUUSBAudioEngine (?? looks like a conclusion, not an error message)

@Wouter1
Copy link
Owner

Wouter1 commented Mar 14, 2021

Maybe the class EMUUSBAudioEngine does not implement one of the many virtual functios of the superclass?

I see differences, for instance
performFormatChange/4 while it was /3
getStatusDescriptor/1 I don't see it in imple
getNearestStartTime I don't see it in imple

How does this work, why does it compile for debug but not for run?

@Wouter1
Copy link
Owner

Wouter1 commented Mar 14, 2021

Maybe it compiles ok on intel but not on arm? If you switch the "build active architecture only' to 'yes' for debug mode, and if build by default only copmpiles the debug version?

Does that imply that the superclass IOAudioEngine differs between ARM and Intel?

@Wouter1
Copy link
Owner

Wouter1 commented Mar 14, 2021

Even weirder, the error ALSO shows in intel. However in spite of the error, the build succeeds there anyway.

In the older compiler, there was no error at all at this place.

If you look at the virtual function performFormatChange, it was always performFormatChange/4. Yet my implementation is performFormatChange/3. How can a function call with an incorrect number of args be accepted at all? The code does not say it was overriding though. What is going on here? Was the function never assumed to override/implement the virtual function? Was it never called?

@Wouter1
Copy link
Owner

Wouter1 commented Mar 14, 2021

There is more detail on the error message in the issue navigator on the left.
Unfortunately it's very hard to find that detail as there is a huge list of warnings, it's completely hidden between those.

it says

unimplemented virtual method driverDesiredHiResSampleIntervals in EMUUSBAudioEngine

@Wouter1
Copy link
Owner

Wouter1 commented Mar 14, 2021

The doc actually says "this is a new method which only exists on ARM platforms and therefore breaks binary compatibility if this is compiled on intel platforms"..... Well at least they have documented this.

Wouter1 pushed a commit that referenced this issue Mar 14, 2021
Wouter1 pushed a commit that referenced this issue Mar 14, 2021
@Wouter1
Copy link
Owner

Wouter1 commented Mar 14, 2021

Added the missing function, only for ARM. It now compiles.
Created new M1 branch and pushed the new code there, including the new kext version v15

@Wouter1
Copy link
Owner

Wouter1 commented Mar 20, 2021

@bezromval that input value looks nonzero to me. Is that some sort of signal?

@Wouter1
Copy link
Owner

Wouter1 commented Mar 20, 2021

@bezromval Can you report the console output and post the EMUUSB messages?

@bezromval
Copy link
Author

@bezromval Ah you have a tracker pre, not a 0404. That complicates matters because there are some known issues with the other types. Some people had to mess with the midi audio controls to get that working, Getting the number of channels correct. but I don't know the details.

In previous Mac OSes your kext works perfect without any additional settings.

@bezromval
Copy link
Author

@bezromval Can you report the console output and post the EMUUSB messages?

How can I do that?

@Wouter1
Copy link
Owner

Wouter1 commented Mar 21, 2021

@bezromval It's explained on the https://github.com/Wouter1/EMU-driver/blob/master/FAQ.md , "How do I make a system log of a mal-functioning driver?".

@bezromval
Copy link
Author

Ok. This is when I turned on the E-mu
стандартное 12:43:16.357088+0300 kernel Sound assertion "nullptr == thisUnitIDNum" failed in "/Users/wouter/Desktop/EMU-driver/src/EMUUSBAudio/EMUUSBAudioDevice.cpp" at line 2050 goto Exit
стандартное 12:43:16.378187+0300 kernel Sound assertion "nullptr == thisUnitIDNum" failed in "/Users/wouter/Desktop/EMU-driver/src/EMUUSBAudio/EMUUSBAudioDevice.cpp" at line 2050 goto Exit
стандартное 12:43:16.399398+0300 kernel +findPipe: dir=1, type = 3
стандартное 12:43:16.399405+0300 kernel endpoint found: epDirection = 1, epType = 3
стандартное 12:43:16.402595+0300 kernel -findpipe: success
стандартное 12:43:16.404090+0300 kernel +EMUUSBAudioEngine[]::start ()
стандартное 12:43:16.404115+0300 kernel Adding notification with custom matching dictionary
стандартное 12:43:16.404340+0300 kernel +EMUUSBAudioEngine::audioDevicePublished (, 0x0, )
стандартное 12:43:16.404356+0300 kernel +EMUUSBAudioEngine::audioDevicePublished (, 0x0, )
стандартное 12:43:16.404356+0300 kernel ++EMUUSBAudioEngine[]: found device () for Audio Engine ()
стандартное 12:43:16.404366+0300 kernel ++EMUUSBAudioEngine[]: found device () for Audio Engine ()
стандартное 12:43:16.404370+0300 kernel ++EMUUSBAudioEngine[]: found device () for Audio Engine ()
стандартное 12:43:16.404373+0300 kernel -EMUUSBAudioEngine::audioDevicePublished (, 0x0, )
стандартное 12:43:16.404378+0300 kernel ++EMUUSBAudioEngine[]: found device () for Audio Engine ()
стандартное 12:43:16.404383+0300 kernel -EMUUSBAudioEngine::audioDevicePublished (, 0x0, )
стандартное 12:43:16.404412+0300 kernel +EMUUSBAudioEngine[]::initHardware ()
стандартное 12:43:16.404484+0300 kernel Default sample rate is 44100
стандартное 12:43:16.404486+0300 kernel Default alternate setting ID is 1
стандартное 12:43:16.404578+0300 kernel Default sample rate is 44100
стандартное 12:43:16.404582+0300 kernel Default alternate setting ID is 1
стандартное 12:43:16.404666+0300 kernel There are 12 alternate stream interfaces on interface 2
стандартное 12:43:16.404685+0300 kernel Interface 2, Alt 2 has a
стандартное 12:43:16.404686+0300 kernel 24 bit interface,
стандартное 12:43:16.404690+0300 kernel 2 channels, and
стандартное 12:43:16.404692+0300 kernel 1 sample rates, which are:
стандартное 12:43:16.404696+0300 kernel 44100
стандартное 12:43:16.404740+0300 kernel Interface 2, Alt 4 has a
стандартное 12:43:16.404742+0300 kernel 24 bit interface,
стандартное 12:43:16.404745+0300 kernel 2 channels, and
стандартное 12:43:16.404747+0300 kernel 1 sample rates, which are:
стандартное 12:43:16.404751+0300 kernel 48000
стандартное 12:43:16.404802+0300 kernel Interface 2, Alt 6 has a
стандартное 12:43:16.404804+0300 kernel 24 bit interface,
стандартное 12:43:16.404808+0300 kernel 2 channels, and
стандартное 12:43:16.404812+0300 kernel 1 sample rates, which are:
стандартное 12:43:16.404814+0300 kernel 88200
стандартное 12:43:16.404869+0300 kernel Interface 2, Alt 8 has a
стандартное 12:43:16.404871+0300 kernel 24 bit interface,
стандартное 12:43:16.404874+0300 kernel 2 channels, and
стандартное 12:43:16.404876+0300 kernel 1 sample rates, which are:
стандартное 12:43:16.404880+0300 kernel 96000
стандартное 12:43:16.404942+0300 kernel Interface 2, Alt 9 has a
стандартное 12:43:16.404946+0300 kernel 24 bit interface,
стандартное 12:43:16.404948+0300 kernel 2 channels, and
стандартное 12:43:16.404952+0300 kernel 1 sample rates, which are:
стандартное 12:43:16.404954+0300 kernel 176400
стандартное 12:43:16.405011+0300 kernel Interface 2, Alt 10 has a
стандартное 12:43:16.405015+0300 kernel 24 bit interface,
стандартное 12:43:16.405019+0300 kernel 2 channels, and
стандартное 12:43:16.405021+0300 kernel 1 sample rates, which are:
стандартное 12:43:16.405025+0300 kernel 192000
стандартное 12:43:16.405082+0300 kernel There are 12 alternate stream interfaces on interface 1
стандартное 12:43:16.405093+0300 kernel Interface 1, Alt 2 has a
стандартное 12:43:16.405170+0300 kernel 24 bit interface,
стандартное 12:43:16.405350+0300 kernel 2 channels, and
стандартное 12:43:16.405356+0300 kernel 192000
стандартное 12:43:16.406974+0300 kernel -EMUUSBAudioEngine::performFormatChange, result = 0
стандартное 12:43:16.407104+0300 kernel +EMUUSBAudioEngine::performFormatChange existing sampleRate is 44100 direction 0
стандартное 12:43:16.407107+0300 kernel fDriverTag = 0x10002
стандартное 12:43:16.407110+0300 kernel Need to adjust channel controls, cur = 0, new = 2
стандартное 12:43:16.407118+0300 kernel ++about to set output : ourInterfaceNumber = 1 & newAlternateSettingID = 2
стандартное 12:43:16.407598+0300 kernel called setNumSampleFramesPerBuffer with 32768
стандартное 12:43:16.407603+0300 kernel newFormat->fNumChannels = 2, newFormat->fBitWidth 24
стандартное 12:43:16.407608+0300 kernel -EMUUSBAudioEngine::performFormatChange, result = 0
стандартное 12:43:16.408380+0300 kernel getGlobalUniqueID = EMUUSBAudioEngine:E-MU Systems, Inc.:E-MU Tracker Pre | USB:100000:2
стандартное 12:43:16.408688+0300 kernel -EMUUSBAudioEngine[]::start () = 1
стандартное 12:43:16.408699+0300 kernel getGlobalUniqueID = EMUUSBAudioEngine:E-MU Systems, Inc.:E-MU Tracker Pre | USB:100000:2
стандартное 12:43:16.414400+0300 coreaudiod HALS_Device::Activate: activating device 217: EMUUSBAudioEngine:E-MU Systems, Inc.:E-MU Tracker Pre | USB:100000:2
стандартное 12:43:46.524136+0300 coreaudiod HALS_DefaultDeviceManager::SetDefaultDevice: 'dIn ' | 217: 'EMUUSBAudioEngine:E-MU Systems, Inc.:E-MU Tracker Pre | USB:100000:2'/''
стандартное 12:43:46.525690+0300 coreaudiod HALS_DefaultDeviceManager::FindPreferredDefaultDevice: 'dIn ' | found preferred[0] 217: 'EMUUSBAudioEngine:E-MU Systems, Inc.:E-MU Tracker Pre | USB:100000:2'/''
стандартное 12:43:46.526129+0300 com.apple.preference.sound.remoteservice HALDefaultDeviceProperty::SetData:kAudioHardwarePropertyDefaultInputDevice to EMUUSBAudioEngine:E-MU Systems, Inc.:E-MU Tracker Pre | USB:100000:2 (Object: 56)
стандартное 12:43:46.626688+0300 kernel +EMUUSBAudioEngine[]::performAudioEngineStart ()
стандартное 12:43:46.626998+0300 kernel +findPipe: dir=1, type = 1
стандартное 12:43:46.627002+0300 kernel endpoint found: epDirection = 1, epType = 1
стандартное 12:43:46.630170+0300 kernel -findpipe: success
стандартное 12:43:46.630626+0300 kernel create output pipe
стандартное 12:43:46.630633+0300 kernel +findPipe: dir=0, type = 1
стандартное 12:43:46.630635+0300 kernel endpoint found: epDirection = 0, epType = 1
стандартное 12:43:46.633658+0300 kernel -findpipe: success
стандартное 12:43:46.633665+0300 kernel check for associated endpoint
стандартное 12:43:46.633986+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.633990+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.633992+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634004+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634030+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634053+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634082+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634109+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634195+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634196+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634200+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634202+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634203+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634221+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634227+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634228+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634231+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634233+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634239+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634243+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634253+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634254+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634257+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634259+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634262+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634263+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634267+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634269+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634270+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634274+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634275+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634279+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634280+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634283+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634284+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634288+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634290+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634293+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634294+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634298+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634299+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634303+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634305+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634306+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634309+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634311+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634314+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634315+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634318+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634320+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634322+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634325+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634327+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634330+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634332+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634334+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634336+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634340+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634341+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634344+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.634346+0300 kernel frameSizeQueue empty, guessing some queue size. May need fix..
стандартное 12:43:46.820285+0300 kernel warning way-out ring wrap position
стандартное 12:43:47.006972+0300 kernel warning way-out ring wrap position
стандартное 12:43:47.192709+0300 kernel warning way-out ring wrap position
стандартное 12:43:47.378458+0300 kernel warning way-out ring wrap position
стандартное 12:43:47.564208+0300 kernel warning way-out ring wrap position
стандартное 12:43:47.750006+0300 kernel warning way-out ring wrap position
стандартное 12:43:47.935740+0300 kernel warning way-out ring wrap position
стандартное 12:43:48.121052+0300 kernel warning way-out ring wrap position
стандартное 12:43:48.200397+0300 kernel USB hick (expected 743038548, got 30960035042, error=30216996494). timer re-syncing.
стандартное 12:43:48.307259+0300 kernel warning way-out ring wrap position
стандартное 12:43:48.492280+0300 kernel warning way-out ring wrap position
стандартное 12:43:48.678752+0300 kernel warning way-out ring wrap position
стандартное 12:43:48.864512+0300 kernel warning way-out ring wrap position
стандартное 12:43:49.049974+0300 kernel warning way-out ring wrap position
стандартное 12:43:49.236004+0300 kernel warning way-out ring wrap position
стандартное 12:43:49.421781+0300 kernel warning way-out ring wrap position
стандартное 12:43:49.607495+0300 kernel warning way-out ring wrap position
стандартное 12:43:49.672425+0300 kernel USB hick (expected 743038548, got 30960544000, error=30217505452). timer re-syncing.
стандартное 12:43:49.793262+0300 kernel warning way-out ring wrap position
стандартное 12:43:49.979010+0300 kernel warning way-out ring wrap position
стандартное 12:43:50.164808+0300 kernel warning way-out ring wrap position
стандартное 12:43:50.350514+0300 kernel warning way-out ring wrap position
стандартное 12:43:50.536276+0300 kernel warning way-out ring wrap position
стандартное 12:43:50.722062+0300 kernel warning way-out ring wrap position
стандартное 12:43:50.907777+0300 kernel warning way-out ring wrap position
стандартное 12:43:51.093597+0300 kernel warning way-out ring wrap position
стандартное 12:43:51.176398+0300 kernel USB hick (expected 743038548, got 30960578750, error=30217540202). timer re-syncing.
стандартное 12:43:51.279295+0300 kernel warning way-out ring wrap position
стандартное 12:43:51.465038+0300 kernel warning way-out ring wrap position
стандартное 12:43:51.650834+0300 kernel warning way-out ring wrap position
стандартное 12:43:51.836535+0300 kernel warning way-out ring wrap position
стандартное 12:43:52.022341+0300 kernel warning way-out ring wrap position
стандартное 12:43:52.208060+0300 kernel warning way-out ring wrap position
стандартное 12:43:52.393795+0300 kernel warning way-out ring wrap position
стандартное 12:43:52.578742+0300 kernel warning way-out ring wrap position
стандартное 12:43:52.648442+0300 kernel USB hick (expected 743038548, got 30961476292, error=30218437744). timer re-syncing.
стандартное 12:43:52.765305+0300 kernel warning way-out ring wrap position
стандартное 12:43:52.951066+0300 kernel warning way-out ring wrap position
стандартное 12:43:53.136806+0300 kernel warning way-out ring wrap position
стандартное 12:43:53.322551+0300 kernel warning way-out ring wrap position
стандартное 12:43:53.508335+0300 kernel warning way-out ring wrap position
стандартное 12:43:53.693372+0300 kernel warning way-out ring wrap position
стандартное 12:43:53.879820+0300 kernel warning way-out ring wrap position
стандартное 12:43:54.065583+0300 kernel warning way-out ring wrap position
стандартное 12:43:54.152367+0300 kernel USB hick (expected 743038548, got 30963040833, error=30220002285). timer re-syncing.

@bezromval
Copy link
Author

When I Turned off
стандартное 12:45:47.826550+0300 kernel +EMUUSBAudioEngine[]::stopUSBStream ()
стандартное 12:45:47.828658+0300 kernel All playback streams stopped
стандартное 12:45:47.830697+0300 kernel -EMUUSBAudioEngine[]::requestTerminate (, 4)
стандартное 12:45:48.827667+0300 kernel -EMUUSBAudioEngine[]::stopUSBStream ()
стандартное 12:45:48.827821+0300 kernel -EMUUSBAudioEngine[]::willTerminate
стандартное 12:45:48.828875+0300 kernel -EMUUSBAudioEngine[]::stop () - rc=10
стандартное 12:45:48.832711+0300 coreaudiod HALS_Device::_Deactivate: deactivating device 217: EMUUSBAudioEngine:E-MU Systems, Inc.:E-MU Tracker Pre | USB:100000:2
стандартное 12:45:48.847357+0300 powerd Process coreaudiod.383 Released PreventUserIdleDisplaySleep "com.apple.audio.EMUUSBAudioEngine:E-MU Systems, Inc.:E-MU Tracker Pre | USB:100000:2.context.preventuseridledisplaysleep" age:00:02:03 id:21474871138 [System: PrevIdle DeclUser kDisp]
стандартное 12:45:48.847640+0300 powerd Process coreaudiod.383 Released PreventUserIdleSystemSleep "com.apple.audio.EMUUSBAudioEngine:E-MU Systems, Inc.:E-MU Tracker Pre | USB:100000:2.context.preventuseridlesleep" age:00:02:02 id:4295001953 [System: PrevIdle DeclUser kDisp]

@bezromval
Copy link
Author

Sometime its turns off sometime I get cursor frizzed,pink screen and reboot with this report after boot up
panic(cpu 3 caller 0xfffffe002d44bf94): "lck_mtx_assert(): mutex (0xfffffe23339fc2e0) not owned"
Debugger message: panic
Memory ID: 0x6
OS release type: User
OS version: 20D91
Kernel version: Darwin Kernel Version 20.3.0: Thu Jan 21 00:06:51 PST 2021; root:xnu-7195.81.3~1/RELEASE_ARM64_T8101
Fileset Kernelcache UUID: F78A48EC84D7C3283E7C6C67D00889A7
Kernel UUID: 9FE8C0DA-8ED0-381C-9CEC-2A779F3E1503
iBoot version: iBoot-6723.81.1
secure boot?: YES
Paniclog version: 13
KernelCache slide: 0x00000000256ec000
KernelCache base: 0xfffffe002c6f0000
Kernel slide: 0x0000000026220000
Kernel text base: 0xfffffe002d224000
Kernel text exec base: 0xfffffe002d2ec000
mach_absolute_time: 0x334d6f0c1
Epoch Time: sec usec
Boot : 0x60571757 0x000215b3
Sleep : 0x00000000 0x00000000
Wake : 0x00000000 0x00000000
Calendar: 0x6057198e 0x00033130

CORE 0 recently retired instr at 0xfffffe002d456c0c
CORE 1 recently retired instr at 0xfffffe002d456c0c
CORE 2 recently retired instr at 0xfffffe002d456c0c
CORE 3 recently retired instr at 0xfffffe002d455748
CORE 4 recently retired instr at 0xfffffe002d456c10
CORE 5 recently retired instr at 0xfffffe002d456c10
CORE 6 recently retired instr at 0xfffffe002d456c10
CORE 7 recently retired instr at 0xfffffe002d456c10
Panicked task 0xfffffe166e0f6550: 2190 pages, 61 threads: pid 430: coreaudiod
Panicked thread: 0xfffffe1671e8ac68, backtrace: 0xfffffe3fdfd83490, tid: 18039
lr: 0xfffffe002d339fd0 fp: 0xfffffe3fdfd83500
lr: 0xfffffe002d339d9c fp: 0xfffffe3fdfd83570
lr: 0xfffffe002d45bf0c fp: 0xfffffe3fdfd83590
lr: 0xfffffe002d44d8b8 fp: 0xfffffe3fdfd83640
lr: 0xfffffe002d2f37e8 fp: 0xfffffe3fdfd83650
lr: 0xfffffe002d339a2c fp: 0xfffffe3fdfd839e0
lr: 0xfffffe002d339a2c fp: 0xfffffe3fdfd83a50
lr: 0xfffffe002dad465c fp: 0xfffffe3fdfd83a70
lr: 0xfffffe002d44bf94 fp: 0xfffffe3fdfd83a90
lr: 0xfffffe002d9a969c fp: 0xfffffe3fdfd83ab0
lr: 0xfffffe002c5dc9e0 fp: 0xfffffe3fdfd83af0
lr: 0xfffffe002d41a7d8 fp: 0xfffffe3fdfd83b50
lr: 0xfffffe002d33efb0 fp: 0xfffffe3fdfd83bc0
lr: 0xfffffe002d3179dc fp: 0xfffffe3fdfd83c40
lr: 0xfffffe002d340124 fp: 0xfffffe3fdfd83c70
lr: 0xfffffe002d326ff0 fp: 0xfffffe3fdfd83d10
lr: 0xfffffe002d330bf4 fp: 0xfffffe3fdfd83d50
lr: 0xfffffe002d32e6e8 fp: 0xfffffe3fdfd83d70
lr: 0xfffffe002d4412d8 fp: 0xfffffe3fdfd83e40
lr: 0xfffffe002d44d92c fp: 0xfffffe3fdfd83ef0
lr: 0xfffffe002d2f37e8 fp: 0xfffffe3fdfd83f00
Kernel Extensions in backtrace:
com.emu.driver.EMUUSBAudio(4.1)[793BBAA1-B3AA-3CED-A418-9FB2AA150B5D]@0xfffffe002c5c0000->0xfffffe002c5ebfff
dependency: com.apple.iokit.IOAudioFamily(300.6.1)[8F3BCABA-5A95-3E59-BCA4-563D59AC1339]@0xfffffe002f1f8000->0xfffffe002f21ffff
dependency: com.apple.iokit.IOUSBHostFamily(1.2)[60A0F164-C469-34AD-A787-F64C60948655]@0xfffffe002fab0000->0xfffffe002fb67fff

last started kext at 2262760346: com.emu.driver.EMUUSBAudio 4.1.0 (addr 0xfffffe002c5b0000, size 49152)
loaded kexts:
com.emu.driver.EMUUSBAudio 4.1.0
com.apple.filesystems.autofs 3.0
com.apple.fileutil 20.036.15
com.apple.driver.AppleBluetoothMultitouch 99
com.apple.driver.AppleTopCaseHIDEventDriver 4030.5
com.apple.iokit.IOBluetoothSerialManager 8.0.3d9
com.apple.driver.AppleBiometricServices 1
com.apple.driver.AppleALSColorSensor 1.0.0d1
com.apple.driver.AppleAOPVoiceTrigger 11.5
com.apple.driver.BCMWLANFirmware4378.Hashstore 1
com.apple.driver.DiskImages.ReadWriteDiskImage 493.0.0
com.apple.driver.DiskImages.UDIFDiskImage 493.0.0
com.apple.driver.DiskImages.RAMBackingStore 493.0.0
com.apple.driver.DiskImages.FileBackingStore 493.0.0
com.apple.driver.CoreKDL 1
com.apple.driver.SEPHibernation 1
com.apple.filesystems.apfs 1677.81.1
com.apple.driver.AppleUSBDeviceNCM 5.0.0
com.apple.driver.AppleThunderboltIP 4.0.3
com.apple.driver.AppleSmartBatteryManager 161.0.0
com.apple.driver.AppleFileSystemDriver 3.0.1
com.apple.nke.l2tp 1.9
com.apple.filesystems.tmpfs 1
com.apple.IOTextEncryptionFamily 1.0.0
com.apple.filesystems.hfs.kext 556.60.1
com.apple.security.BootPolicy 1
com.apple.BootCache 40
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.driver.ApplePMP 1
com.apple.driver.ApplePMPFirmware 1
com.apple.AppleEmbeddedSimpleSPINORFlasher 1
com.apple.driver.AppleSmartIO2 1
com.apple.driver.AppleCS42L83Audio 437.96
com.apple.driver.AppleTAS5770LAmp 437.96
com.apple.driver.AppleSPMIPMU 1.0.1
com.apple.driver.AppleDPDisplayTCON 1
com.apple.driver.AppleT8020SOCTuner 1
com.apple.driver.AppleT8103CLPCv3 1
com.apple.AGXG13G 172.26.2
com.apple.driver.AppleAVD 376
com.apple.driver.AppleAVE2 401.63.3
com.apple.driver.AppleJPEGDriver 4.6.0
com.apple.driver.AppleMobileDispH13G-DCP 140.0
com.apple.driver.usb.AppleUSBHostT8103 1
com.apple.driver.AudioDMAController-T8103 1.59
com.apple.driver.AppleS5L8960XNCO 1
com.apple.driver.AppleT8103PMGR 1
com.apple.driver.AppleS8000AES 1
com.apple.driver.AppleS8000DWI 1.0.0d1
com.apple.driver.AppleS5L8960XWatchDogTimer 1
com.apple.driver.AppleInterruptController 1.0.0d1
com.apple.driver.AppleT8020DART 1
com.apple.driver.AppleBluetoothModule 1
com.apple.driver.AppleSamsungSerial 1.0.0d1
com.apple.driver.AppleBCMWLANBusInterfacePCIe 1
com.apple.driver.AppleS5L8920XPWM 1.0.0d1
com.apple.driver.AppleS5L8940XI2C 1.0.0d2
com.apple.driver.AppleSPIMC 1
com.apple.driver.AppleT8101 1
com.apple.driver.AppleM68Buttons 1.0.0d1
com.apple.iokit.IOUserEthernet 1.0.1
com.apple.iokit.IOKitRegistryCompatibility 1
com.apple.iokit.EndpointSecurity 1
com.apple.driver.AppleDiskImages2 1
com.apple.AppleSystemPolicy 2.0.0
com.apple.nke.applicationfirewall 310
com.apple.kec.InvalidateHmac 1
com.apple.driver.usb.cdc 5.0.0
com.apple.driver.AppleUSBAudio 401.4
com.apple.iokit.IOAudioFamily 300.6.1
com.apple.vecLib.kext 1.2.0
com.apple.kext.triggers 1.0
com.apple.driver.AppleActuatorDriver 4400.28
com.apple.driver.AppleMultitouchDriver 4400.28
com.apple.driver.AppleHSBluetoothDriver 4030.5
com.apple.driver.IOBluetoothHIDDriver 8.0.3d9
com.apple.driver.AppleHIDKeyboard 223
com.apple.iokit.IOAVBFamily 930.1
com.apple.plugin.IOgPTPPlugin 900.11
com.apple.iokit.IOEthernetAVBController 1.1.0
com.apple.driver.AppleMesaSEPDriver 100.99
com.apple.iokit.IOBiometricFamily 1
com.apple.driver.AppleAOPAudio 14.32
com.apple.driver.DiskImages.KernelBacked 493.0.0
com.apple.driver.AppleSEPHDCPManager 1.0.1
com.apple.iokit.AppleSEPGenericTransfer 1
com.apple.driver.AppleXsanScheme 3
com.apple.driver.IOBluetoothHostControllerPCIeTransport 8.0.3d9
com.apple.iokit.IOBluetoothHostControllerTransport 8.0.3d9
com.apple.driver.usb.networking 5.0.0
com.apple.driver.AppleBTM 1.0.1
com.apple.driver.AppleConvergedIPCOLYBTControl 1
com.apple.driver.AppleConvergedPCI 1
com.apple.driver.AppleBluetoothDebug 1
com.apple.driver.AppleThunderboltDPInAdapter 8.1.4
com.apple.driver.AppleThunderboltDPAdapterFamily 8.1.4
com.apple.driver.AppleThunderboltUSBDownAdapter 1.0.4
com.apple.driver.AppleThunderboltPCIDownAdapter 4.1.1
com.apple.nke.ppp 1.9
com.apple.driver.AppleHIDTransportSPI 4400.35
com.apple.driver.AppleHIDTransport 4400.35
com.apple.driver.AppleInputDeviceSupport 4400.35
com.apple.driver.AppleBSDKextStarter 3
com.apple.filesystems.hfs.encodings.kext 1
com.apple.driver.AppleDCPDPTXProxy 1.0.0
com.apple.driver.DCPDPFamilyProxy 1
com.apple.driver.AppleSPU 1
com.apple.driver.AppleDiagnosticDataAccessReadOnly 1.0.0
com.apple.AGXFirmwareKextG13GRTBuddy 172.26.2
com.apple.AGXFirmwareKextRTBuddy64 172.26.2
com.apple.iokit.IONVMeFamily 2.1.0
com.apple.driver.AppleNANDConfigAccess 1.0.0
com.apple.driver.AppleHPM 3.4.4
com.apple.driver.AppleStockholmControl 1.0.0
com.apple.driver.AppleCSEmbeddedAudio 437.96
com.apple.driver.AppleEmbeddedAudio 437.96
com.apple.iokit.AppleARMIISAudio 80.34
com.apple.driver.AppleDialogPMU 1.0.1
com.apple.driver.ApplePassthroughPPM 3.0
com.apple.iokit.IOGPUFamily 20.23
com.apple.driver.AppleH11ANEInterface 4.52.0
com.apple.driver.AppleH13CameraInterface 2.82.0
com.apple.driver.AppleH10PearlCameraInterface 14.70.0
com.apple.driver.DCPAVFamilyProxy 1
com.apple.iokit.IOMobileGraphicsFamily-DCP 343.0.0
com.apple.driver.AppleDCP 1
com.apple.driver.AppleFirmwareKit 1
com.apple.iokit.IOMobileGraphicsFamily 343.0.0
com.apple.driver.AppleSPMI 1.0.1
com.apple.driver.AppleUSBXDCIARM 1.0
com.apple.driver.AppleUSBXDCI 1.0
com.apple.iokit.IOUSBDeviceFamily 2.0.0
com.apple.driver.usb.AppleUSBXHCIARM 1
com.apple.driver.usb.AppleUSBXHCI 1.2
com.apple.driver.AppleEmbeddedUSBHost 1
com.apple.driver.usb.AppleUSBHub 1.2
com.apple.driver.usb.AppleUSBHostCompositeDevice 1.2
com.apple.driver.AppleT8103TypeCPhy 1
com.apple.driver.AppleSART 1
com.apple.driver.ApplePMGR 1
com.apple.driver.watchdog 1
com.apple.driver.AppleDisplayCrossbar 1.0.0
com.apple.iokit.IODisplayPortFamily 1.0.0
com.apple.driver.AppleTypeCPhy 1
com.apple.driver.AppleThunderboltNHI 7.2.8
com.apple.driver.AppleT8103PCIeC 1
com.apple.iokit.IOThunderboltFamily 9.3.2
com.apple.driver.ApplePIODMA 1
com.apple.driver.AppleT8103PCIe 1
com.apple.driver.AppleMultiFunctionManager 1
com.apple.driver.AppleEmbeddedPCIE 1
com.apple.driver.AppleBluetoothDebugService 1
com.apple.driver.AppleBCMWLANCore 1.0.0
com.apple.iokit.IO80211FamilyV2 1200.12.2b1
com.apple.driver.IOImageLoader 1.0.0
com.apple.driver.corecapture 1.0.4
com.apple.driver.AppleMCA2-T8103 510.72
com.apple.driver.AppleGPIOICController 1.0.2
com.apple.driver.AppleFireStormErrorHandler 1
com.apple.driver.AppleMobileApNonce 1
com.apple.driver.usb.AppleUSBHostPacketFilter 1.0
com.apple.iokit.IOTimeSyncFamily 900.11
com.apple.driver.DiskImages 493.0.0
com.apple.iokit.IOGraphicsFamily 585
com.apple.iokit.IOBluetoothFamily 8.0.3d9
com.apple.iokit.IOBluetoothPacketLogger 8.0.3d9
com.apple.driver.FairPlayIOKit 68.6.0
com.apple.iokit.CoreAnalyticsFamily 1
com.apple.driver.AppleSSE 1.0
com.apple.driver.AppleSEPKeyStore 2
com.apple.driver.AppleUSBTDM 511.60.2
com.apple.iokit.IOUSBMassStorageDriver 184.40.6
com.apple.iokit.IOPCIFamily 2.9
com.apple.iokit.IOSCSIBlockCommandsDevice 436.40.6
com.apple.iokit.IOSCSIArchitectureModelFamily 436.40.6
com.apple.driver.AppleIPAppender 1.0
com.apple.driver.AppleFDEKeyStore 28.30
com.apple.driver.AppleEffaceableStorage 1.0
com.apple.driver.AppleCredentialManager 1.0
com.apple.driver.KernelRelayHost 1
com.apple.iokit.IOUSBHostFamily 1.2
com.apple.driver.AppleUSBHostMergeProperties 1.2
com.apple.driver.usb.AppleUSBCommon 1.0
com.apple.driver.AppleSMC 3.1.9
com.apple.driver.RTBuddy 1.0.0
com.apple.driver.AppleEmbeddedTempSensor 1.0.0
com.apple.driver.AppleARMPMU 1.0
com.apple.iokit.IOAccessoryManager 1.0.0
com.apple.driver.AppleOnboardSerial 1.0
com.apple.iokit.IOSkywalkFamily 1
com.apple.driver.mDNSOffloadUserClient 1.0.1b8
com.apple.iokit.IONetworkingFamily 3.4
com.apple.iokit.IOSerialFamily 11
com.apple.driver.AppleSEPManager 1.0.1
com.apple.driver.AppleA7IOP 1.0.2
com.apple.driver.IOSlaveProcessor 1
com.apple.driver.AppleBiometricSensor 2
com.apple.iokit.IOHIDFamily 2.0.0
com.apple.AUC 1.0
com.apple.iokit.IOAVFamily 1.0.0
com.apple.iokit.IOHDCPFamily 1.0.0
com.apple.iokit.IOCECFamily 1
com.apple.iokit.IOAudio2Family 1.0
com.apple.driver.AppleEmbeddedAudioLibs 1.17
com.apple.driver.AppleFirmwareUpdateKext 1
com.apple.driver.AppleM2ScalerCSCDriver 265.0.0
com.apple.iokit.IOSurface 289.3
com.apple.driver.IODARTFamily 1
com.apple.security.quarantine 4
com.apple.security.sandbox 300.0
com.apple.kext.AppleMatch 1.0.0d1
com.apple.driver.AppleMobileFileIntegrity 1.0.5
com.apple.kext.CoreTrust 1
com.apple.security.AppleImage4 3.0.0
com.apple.iokit.IOCryptoAcceleratorFamily 1.0.1
com.apple.driver.AppleARMPlatform 1.0.2
com.apple.iokit.IOStorageFamily 2.1
com.apple.iokit.IOSlowAdaptiveClockingFamily 1.0.0
com.apple.iokit.IOReportFamily 47
com.apple.kec.pthread 1
com.apple.kec.corecrypto 11.1
com.apple.kec.Libm 1

** Stackshot Succeeded ** Bytes Traced 262996 (Uncompressed 671536) **

@Wouter1
Copy link
Owner

Wouter1 commented Mar 22, 2021

@bezromval thanks! It is going better than I expected. There is a connection being made with the EMU and some startup steps are taken. But either the real time stream does not work at all or there is a severe synchronization issue.

Need to think about what we can do next.

@Wouter1
Copy link
Owner

Wouter1 commented Mar 26, 2021

стандартное 12:43:51.176398+0300 kernel USB hick (expected 743038548, got 30960578750, error=30217540202). timer re-syncing.

This indicates that the driver IS receiving data from the USB stream.
However the time at which the data was received is way off (error = 30 seconds here) where the maximum error is 1ms

@Wouter1
Copy link
Owner

Wouter1 commented Mar 26, 2021

@bezromval @philippgadow
There seems to be some timing issue. Might be related to some issue with the non-0404 hardware.
I first need someone test this on a EMU0404.
I don't know however how to find that someone.

@oxygen311
Copy link

There seems to be some timing issue. Might be related to some issue with the non-0404 hardware.
I first need someone test this on a EMU0404.
I don't know however how to find that someone.

I have a friend with an M1 mac. Can ask him to connect my 0404 to hic mac.
What needs to be tested?

@Wouter1
Copy link
Owner

Wouter1 commented Mar 29, 2021

@oxygen311 that would be great.

What I want to test is a new version of this driver.
IMPORTANT it also caused kernel crashes, particularly when you turn OFF the EMU Therefore please test it on a separate copy of macos, not your normal copy. And copy any console log texts BEFORE you turn it off again.

This version os on the m1 branch at

https://github.com/Wouter1/EMU-driver/tree/M1

It's in the v15 directory.

The installation script is NOT recognising that new file yet.

Can you install the v15 driver manually in /Library/Extensions and see what it does?

If it does not work, please copy the console output log for kernel and EMU to this ticket so that I might be able to see some more info.

@oxygen311
Copy link

@oxygen311 that would be great.

What I want to test is a new version of this driver.
IMPORTANT it also caused kernel crashes, particularly when you turn OFF the EMU Therefore please test it on a separate copy of macos, not your normal copy. And copy any console log texts BEFORE you turn it off again.

This version os on the m1 branch at

https://github.com/Wouter1/EMU-driver/tree/M1

It's in the v15 directory.

The installation script is NOT recognising that new file yet.

Can you install the v15 driver manually in /Library/Extensions and see what it does?

If it does not work, please copy the console output log for kernel and EMU to this ticket so that I might be able to see some more info.

I not sure, that it will be able to test it that way in the near future (if it needs to copy system).

So, if anyone else can do it, it'll be great too.

@Wouter1
Copy link
Owner

Wouter1 commented Mar 29, 2021

@oxygen311 I see. It is safer to test it on copy to avoid any data loss. But thanks for considering anyway.

@svakulenko
Copy link

Hi Guys,

After 5 month, what is the status for ticket.
Can we use M1 branch drivers to use interface with M1 chip?

Thanks!

@Wouter1
Copy link
Owner

Wouter1 commented Aug 16, 2021

@svakulenko Nothing changed. Nobody was willing to help me testing and debugging the M1 version.
I do not have a M1 computer so I can not do anything more at this moment.

@Wouter1
Copy link
Owner

Wouter1 commented Nov 1, 2021 via email

@loveplov
Copy link

loveplov commented Nov 4, 2021

Hi, I have a m1 air and e-mu 0204, if you want we can arrange a google meet session se we can debug it and make it work on m1.

@krii1988
Copy link

krii1988 commented Nov 7, 2021

I have an M1 Max and e-mu 0202, can also contribute to testing if necessary.
Would be really nice to make it work!

@Wouter1
Copy link
Owner

Wouter1 commented Nov 7, 2021

@loveplov @krii1988 Apple repair broke my mac. At this moment I can't do any mac development at all. I think it will take at least a month to estimate how I'm going to proceed with this.

@toferzim
Copy link

toferzim commented Nov 11, 2021

I have an m1 pro on monterery and 0202. I would be glad to contribute in testing. I've used MacBook Pro 13 2017 and your driver worked just great. I love my e-mu 0202 and would love to have a chance to start it on my new laptop. And thank you for doing it

@bezromval
Copy link
Author

bezromval commented Nov 13, 2021

I have an M1 Max and e-mu 0202, can also contribute to testing if necessary.
Would be really nice to make it work!

Be sure you're installing driver in a proper way like it described here https://motu.com/techsupport/technotes/apple-silicon-motu-audio-inst

@toferzim
Copy link

I have an M1 Max and e-mu 0202, can also contribute to testing if necessary.
Would be really nice to make it work!

Be sure you're installing driver in a proper way like it described here https://motu.com/techsupport/technotes/apple-silicon-motu-audio-inst

Do you mean you've successfully installed the driver on M1?

@Wouter1
Copy link
Owner

Wouter1 commented Dec 10, 2021

@krii1988 @loveplov @bezromval @toferzim

I moved away from Apple MacOS to Linux. I already had my doubts where Apple is moving, especially conserning security. Not being able to swap my drive to replacement system is a huge compromise to my security. And this showed when Apple erased my harddrive in what should have been a routine replacement of my machine's batteries.

So my support for this driver is going to end here (unless I need it for some other reason at some point in the future).

@toferzim
Copy link

toferzim commented Dec 10, 2021

@krii1988 @loveplov @bezromval @toferzim

I moved away from Apple MacOS to Linux. I already had my doubts where Apple is moving, especially conserning security. Not being able to swap my drive to replacement system is a huge compromise to my security. And this showed when Apple erased my harddrive in what should have been a routine replacement of my machine's batteries.

So my support for this driver is going to end here (unless I need it for some other reason at some point in the future)

Bad mews((( I was so happy to start my old EMU card on my macbook pro 2017. Now I've upgraded to M1Pro and found it's not working anymore. It is such a pity it's not supported anymore cause it is a good sound interface. I've recorded so much great stuff on it. And most of the modern sound interfaces in this price range are so bad and unreliable. Is there anything we can do to change your mind?

By the way, I've replaced my battery myself) nothing complicated at all

@bezromval
Copy link
Author

Totally support the opinion up here. E-mu iis great interface even for today. It’s hard to find something with the same sound quality.

@Wouter1
Copy link
Owner

Wouter1 commented Dec 10, 2021

@toferzim Yes. I attached the EMU to Ubuntu 20 and playback worked out of the box. So it might be an option to consider if you want to keep using it. Did not try recording yet though.

Replacing batteries in macbook pro is not simple anymore. Everything is glued in place and you apparently need special solvents to get them out...

@toferzim
Copy link

@toferzim Yes. I attached the EMU to Ubuntu 20 and playback worked out of the box. So it might be an option to consider if you want to keep using it. Did not try recording yet though.

Replacing batteries in macbook pro is not simple anymore. Everything is glued in place and you apparently need special solvents to get them out...

Can you please describe the process of "attaching Ubuntu 20"?

@Wouter1
Copy link
Owner

Wouter1 commented Feb 13, 2022

@toferzim I would first test if it works using a boot stick. I think it's explained here https://ubuntu.com/tutorials/create-a-usb-stick-on-macos#1-overview. After that you can plug in the EMU and see if you can play back and record. it's also possible to run ubuntu in a virtual box within MacOS. https://siytek.com/ubuntu-mac-virtualbox/ but I think this is technically more involved and therefore I think this has slightly less chance of working properly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants