Closed deplov3 closed 1 year ago
Hello, what did you try to do ? Please describe your problem. Maybe you can take a look at #4
If you are using Unity, I have submitted a new package on the asset store, they will provide feedback in ~ 3 business days.
If you don't want to wait you can replace this file Assets/USB-Midi-Android/Plugins/Android/USBMidiAndroid-release
by this one https://github.com/ArthurVasseur/USB-Midi-Android-Plugin/releases/tag/v1.0.1
I tried to
I couldn't get any input, I will try what you said. Thank you, if it works I'll let you know
I tried v1.01,
If i dont allow to connect, unity app works but midi keyboard does not work.
Can you give me the logs and filter them by UsbMidiController
https://developer.android.com/studio/debug/logcat?hl=en
2023/08/22 11:16:15.499 8079 8079 Info NEW THREAD new MIDI INPUT DEVICE
2023/08/22 11:16:15.502 8079 8450 Error Unity Exception: No such proxy method: UnityMidiAndroidCallBack.RawMidi(System.SByte,System.SByte,System.SByte)
2023/08/22 11:16:15.502 8079 8450 Error Unity
2023/08/22 11:16:15.502 8079 8450 Error Unity
2023/08/22 11:16:15.503 8079 8450 Error Unity Exception: No such proxy method: UnityMidiAndroidCallBack.RawMidi(System.SByte,System.SByte,System.SByte)
2023/08/22 11:16:15.503 8079 8450 Error Unity
2023/08/22 11:16:15.503 8079 8450 Error Unity
2023/08/22 11:16:15.504 8079 8450 Error Unity Exception: No such proxy method: UnityMidiAndroidCallBack.RawMidi(System.SByte,System.SByte,System.SByte)
2023/08/22 11:16:15.504 8079 8450 Error Unity
2023/08/22 11:16:15.504 8079 8450 Error Unity
2023/08/22 11:16:15.507 8079 8079 Info Unity Device Attached /dev/bus/usb/001/002
2023/08/22 11:16:15.507 8079 8079 Info Unity System.Reflection.RuntimeMethodInfo:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
2023/08/22 11:16:15.507 8079 8079 Info Unity UnityEngine.AndroidJavaProxy:Invoke(String, Object[])
2023/08/22 11:16:15.507 8079 8079 Info Unity UnityEngine.AndroidJavaProxy:Invoke(String, IntPtr)
2023/08/22 11:16:15.507 8079 8079 Info Unity UnityEngine._AndroidJNIHelper:InvokeJavaProxyMethod(AndroidJavaProxy, IntPtr, IntPtr)
2023/08/22 11:16:15.507 8079 8079 Info Unity
2023/08/22 11:16:15.512 8079 8079 Error Unity ArgumentException: ExtractStringFromExceptionInternal called with null exception
2023/08/22 11:16:15.512 8079 8079 Error Unity at UnityEngine.StackTraceUtility.ExtractStringFromExceptionInternal (System.Object exceptiono, System.String& message, System.String& stackTrace) [0x00000] in <00000000000000000000000000000000>:0
2023/08/22 11:16:15.512 8079 8079 Error Unity
2023/08/22 11:16:15.512 8079 8079 Error Unity Couldn't extract exception string from exception (another exception of class 'ArgumentException' was thrown while processing the stack trace)
0001/01/01 00:00:00.000 -1 -1 Info --------- beginning of crash
2023/08/22 11:16:15.512 8079 8079 Fatal libc Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 8079 (y.Piano_Primary), pid 8079 (y.Piano_Primary)
2023/08/22 11:16:16.244 8079 8079 Error CRASH
2023/08/22 11:16:16.244 8079 8079 Error CRASH Version '2022.3.4f1 (35713cd46cd7)', Build type 'Development', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
2023/08/22 11:16:16.244 8079 8079 Error CRASH Build fingerprint: 'oculus/hollywood/hollywood:12/SQ3A.220605.009.A1/50600670051800150:user/release-keys'
2023/08/22 11:16:16.244 8079 8079 Error CRASH Revision: '0'
2023/08/22 11:16:16.244 8079 8079 Error CRASH ABI: 'arm64'
2023/08/22 11:16:16.244 8079 8079 Error CRASH Timestamp: 2023-08-22 11:16:16.244174903+0300
2023/08/22 11:16:16.244 8079 8079 Error CRASH pid: 8079, tid: 8079, name: y.Piano_Primary >>> com.DefaultCompany.Piano_Primary <<<
2023/08/22 11:16:16.244 8079 8079 Error CRASH uid: 10127
2023/08/22 11:16:16.244 8079 8079 Error CRASH signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr --------
2023/08/22 11:16:16.244 8079 8079 Error CRASH Cause: null pointer dereference
2023/08/22 11:16:16.244 8079 8079 Error CRASH x0 0000000000000000 x1 0000007643baa954 x2 0000007646322f98 x3 0000007fc8531810
2023/08/22 11:16:16.244 8079 8079 Error CRASH x4 000000000000020b x5 0000000000000000 x6 6d687173721f6d6e x7 7f7f7f7f7f7f7f7f
2023/08/22 11:16:16.244 8079 8079 Error CRASH x8 000000764742a800 x9 0000007fc8531b80 x10 0000000000000001 x11 0000000000000000
2023/08/22 11:16:16.244 8079 8079 Error CRASH x12 00000076002acd90 x13 0000000000000f30 x14 0000000000000000 x15 0000000034155555
2023/08/22 11:16:16.244 8079 8079 Error CRASH x16 0000007647391b70 x17 00000077505b00c0 x18 000000776a79a000 x19 0000000000000000
2023/08/22 11:16:16.244 8079 8079 Error CRASH x20 0000007fc8531bb0 x21 0000000000000000 x22 0000007fc8531c58 x23 0000007fc8531c88
2023/08/22 11:16:16.244 8079 8079 Error CRASH x24 0000007fc8531c10 x25 00000077695fdcc0 x26 0000000000000001 x27 0000007fc8531b80
2023/08/22 11:16:16.244 8079 8079 Error CRASH x28 0000000000000001 x29 0000007fc8531be0
2023/08/22 11:16:16.244 8079 8079 Error CRASH lr 00000076466163b0 sp 0000007fc8531b00 pc 0000007643b99c4c pst 0000000060001000
2023/08/22 11:16:16.244 8079 8079 Error CRASH backtrace:
2023/08/22 11:16:16.244 8079 8079 Error CRASH #00 pc 00000000014fcc4c /data/app/~~QRXLsS9KSaGQP-BCjGtFIA==/com.DefaultCompany.Piano_Primary-69NXsuvzRJmmw4_tZOX3ow==/lib/arm64/libil2cpp.so (BuildId: ae48255d3c670488)
2023/08/22 11:16:16.244 8079 8079 Error CRASH #01 pc 00000000008003ac /data/app/~~QRXLsS9KSaGQP-BCjGtFIA==/com.DefaultCompany.Piano_Primary-69NXsuvzRJmmw4_tZOX3ow==/lib/arm64/libunity.so (Scripting::LogExceptionFromManaged(ScriptingExceptionPtr, int, char const, bool, Scripting::LogExceptionFromMangedSettings const)+428) (BuildId: e004a3d81d7fd3fd)
2023/08/22 11:16:16.244 8079 8079 Error CRASH #02 pc 00000000007fee60 /data/app/~~QRXLsS9KSaGQP-BCjGtFIA==/com.DefaultCompany.Piano_Primary-69NXsuvzRJmmw4_tZOX3ow==/lib/arm64/libunity.so (Scripting::LogException(ScriptingExceptionPtr, int, char const, bool)+132) (BuildId: e004a3d81d7fd3fd)
2023/08/22 11:16:16.244 8079 8079 Error CRASH #03 pc 00000000004be4f0 /data/app/~~QRXLsS9KSaGQP-BCjGtFIA==/com.DefaultCompany.Piano_Primary-69NXsuvzRJmmw4_tZOX3ow==/lib/arm64/libunity.so (UnityJavaProxy_LogJNIInvokeException(_JNIEnv, _jobject, long)+88) (BuildId: e004a3d81d7fd3fd)
2023/08/22 11:16:16.244 8079 8079 Error CRASH #04 pc 0000000000222244 /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+148) (BuildId: 6ba0359fdcb8e11e205c1d065390be20)
2023/08/22 11:16:16.244 8079 8079 Error CRASH #05 pc 0000000000218be8 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 6ba0359fdcb8e11e205c1d065390be20)
2023/08/22 11:16:16.244 8079 8079 Error CRASH #06 pc 000000000028407c /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread, unsigned int, unsigned int, art::JValue, char const)+212) (BuildId: 6ba0359fdcb8e11e205c1d065390be20)
2023/08/22 11:16:16.244 8079 8079 Error CRASH #07 pc 00000000003e1b34 /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread, art::ArtMethod, art::ShadowFrame, unsigned short, art::JValue)+400) (BuildId: 6ba0359fdcb8e11e205c1d065390be20)
2023/08/22 11:16:16.244 8079 8079 Error CRASH #08 pc 00000000003dc428 /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod, art::Thread, art::ShadowFrame&, art::Instruction const, unsigned short, art::JValue)+804) (BuildId: 6ba0359fdcb8e11e205c1d065390be20)
2023/08/22 11:16:16.244 8079 8079 Error CRASH #09 pc 000000000074ebcc /apex/com.android.art/lib64/libart.so (MterpInvokeStatic+952) (BuildId: 6ba0359fdcb8e11e205c1d065390be20)
2023/08/22 11:16:16.244 8079 8079 Error CRASH #10 pc 0000000000203994 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: 6ba0359fdcb8e11e205c1d065390be20)
2023/08/22 11:16:16.244 8079 8079 Error CRASH #11 pc 00000000003d43d4 /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool)+304) (BuildId: 6ba0359fdcb8e11e205c1d065390be20)
2023/08/22 11:16:16.244 8079 8079 Error CRASH #12 pc 00000000007326e4 /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+784) (BuildId: 6ba0359fdcb8e11e205c1d065390be20)
2023/08/22 11:16:16.244 8079 8079 Error CRASH #13 pc 0000000000222378 /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 6ba0359fdcb8e11e205c1d065390be20)
2023/08/22 11:16:16.244 8079 8079 Error CRASH #14 pc 0000000000211d0c /apex/com.android.art/lib64/libart.so (nterp_helper+1948) (BuildId: 6ba0359fdcb8e11e205c1d065390be20)
2023/08/22 11:16:16.244 8079 8079 Error CRASH #15 pc 00000000002132e4 /apex/com.android.art/lib64/libart.so (nterp_helper+7540) (BuildId: 6ba0359fdcb8e11e205c1d065390be20)
2023/08/22 11:16:16.244 8079 8079 Error CRASH #16 pc 0000000000218be8 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 6ba0359fdcb8e11e205c1d065390be20)
2023/08/22 11:16:16.244 8079 8079 Error CRASH #17 pc 000000000028407c /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread, unsigned int, unsigned int, art::JValue, char const)+212) (BuildId: 6ba0359fdcb8e11e205c1d065390be20)
2023/08/22 11:16:16.244 8079 8079 Error CRASH #18 pc 0000000000617ff4 /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithJValues<art::ArtMethod>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject, art::ArtMethod, jvalue const)+440) (BuildId: 6ba0359fdcb8e11e205c1d065390be20)
2023/08/22 11:16:16.244 8079 8079 Error CRASH #19 pc 00000000004ebff0 /apex/com.android.art/lib64/libart.so (art::JNI
There is no log when filter to "UsbMidiController"
Okay, it's seems that the method UnityMidiAndroidCallBack.RawMidi(System.SByte,System.SByte,System.SByte)
is missing.
Could you please try using the updated package provided in the link below?
USBMidiAndroid-debug.zip
Please let me know if it's working.
If it's works, I will update the package on Unity asset store.
Thank you but where should i put the USBMidiAndroid-debug folder?
In the Unity editor, begin by removing the USB-Midi-Android folder. Next, download the file. Once the download is complete, extract the contents from the zip file.
You will find a USBMidiAndroid-debug.unitypackage
file, double click on it, a prompt will appear, click on import.
It works in Oculus Quest 2, Thank you.
Perfect ! I will update the package on unity store
Hi, Does it work on Oculus Quest 2? I followed the instructions, however it doesn't work. What should i do?