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

App Crashes when asking for Camera Permission on Android #83

Closed
pnostudiodeveloper opened this issue Nov 30, 2023 · 10 comments
Closed

App Crashes when asking for Camera Permission on Android #83

pnostudiodeveloper opened this issue Nov 30, 2023 · 10 comments
Labels
android Issues that affect Android bug Something isn't working

Comments

@pnostudiodeveloper
Copy link

pnostudiodeveloper commented Nov 30, 2023

I have not been able to find a way around this - this is currently crippling my app.

Unity 2021.3.31f1

Android 12, 13 tested

Call Stack for Android crash

E Build fingerprint: 'samsung/a14xmue/a14xm:13/TP1A.220624.014/A146U1UEU4BWI5:user/release-keys'
E Revision: '0'
E ABI: 'arm'
E Timestamp: 2023-11-30 09:37:17-0800
E pid: 5683, tid: 5870, name: Thread-109 >>> com.VisualMusicDesign.SeeMusic <<<
E uid: 10279
E signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
E r0 00000000 r1 000016ee r2 00000006 r3 a8239bd8
E r4 a8239be8 r5 a8239bd0 r6 00001633 r7 0000016b
E r8 00000000 r9 ffffffff r10 a8239bd8 r11 00000000
E ip 000016ee sp a8239bb8 lr eb08651f pc eb086532
E backtrace:
E #00 pc 00062532 /apex/com.android.runtime/lib/bionic/libc.so (prop_area::map_prop_area_rw(char const*, char const*, bool*)+254) (BuildId: f734bc7ed94a319ed18ede42bc901098)
E managed backtrace:
E #00 (wrapper managed-to-native) UnityEngine.AndroidJNI:CallStaticObjectMethod (intptr,intptr,UnityEngine.jvalue[])
E #1 UnityEngine.AndroidJNISafe:CallStaticObjectMethod (intptr,intptr,UnityEngine.jvalue[]) <0x27>
E #2 UnityEngine.AndroidReflection:GetMethodMember (intptr,string,string,bool) <0x11b>
E #3 UnityEngine._AndroidJNIHelper:GetMethodID (intptr,string,string,bool) <0x5f>
E #4 UnityEngine.AndroidJNIHelper:GetMethodID (intptr,string,string,bool) <0x2b>
E #5 UnityEngine._AndroidJNIHelper:GetMethodID<ReturnType_REF> (intptr,string,object[],bool) <0x43>
E #6 UnityEngine.AndroidJNIHelper:GetMethodID<ReturnType_REF> (intptr,string,object[],bool) <0x3b>
E #7 UnityEngine.AndroidJavaObject:_Call<ReturnType_REF> (string,object[]) <0x87>
E #8 UnityEngine.AndroidJavaObject:Call<ReturnType_REF> (string,object[]) <0x33>
E #9 UnityEngine._AndroidJNIHelper:GetSignature (object) <0x56b>
E #10 UnityEngine._AndroidJNIHelper:GetSignature (object[]) <0x67>
E #11 UnityEngine._AndroidJNIHelper:GetMethodID (intptr,string,object[],bool) <0x1f>
E #12 UnityEngine.AndroidJNIHelper:GetMethodID (intptr,string,object[],bool) <0x2b>
E #13 UnityEngine.AndroidJavaObject:_CallStatic (string,object[]) <0x67>
E #14 UnityEngine.AndroidJavaObject:CallStatic (string,object[]) <0x23>
E #15 UnityEngine.Android.Permission:HasUserAuthorizedPermission (string) <0xb7>
E #16 VideoKit.Devices.MediaDevice:g__GetPermissionStatus|27_3 (string) <0x13>
E #17 VideoKit.Devices.MediaDevice:CheckPermissionsAndroid (VideoKit.Internal.VideoKit/PermissionType,bool) <0x2f>
E #18 VideoKit.Devices.MediaDevice:CheckPermissions (VideoKit.Internal.VideoKit/PermissionType,bool) <0x27>
E #19 VideoKit.Devices.AudioDevice:CheckPermissions (bool) <0x17>
E #20 MIDIControl/HEGACJCNODG:MoveNext () <0x47>
E #21 System.Runtime.CompilerServices.AsyncTaskMethodBuilder:Start<MIDIControl/HEGACJCNODG> (MIDIControl/HEGACJCNODG&) <0xbb>
E #22 MIDIControl:GCIEKGPBOJB () <0x9f>
E #23 MIDIControl/EOMKNNJCMHP:MoveNext () <0x43>
E #24 System.Runtime.CompilerServices.AsyncTaskMethodBuilder:Start<MIDIControl/EOMKNNJCMHP> (MIDIControl/EOMKNNJCMHP&) <0xbb>
E #25 MIDIControl:EKCLABCFMMJ () <0x9f>
E #26 System.Threading.Tasks.Task`1<TResult_REF>:InnerInvoke () <0x53>
E #27 System.Threading.Tasks.Task:Execute () <0x2b>
E #28 System.Threading.Tasks.Task:ExecutionContextCallback (object) <0x47>
E #29 System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) <0x1bb>
E #30 System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) <0x2b>
E #31 System.Threading.Tasks.Task:ExecuteWithThreadLocal (System.Threading.Tasks.Task&) <0x103>
E #32 System.Threading.Tasks.Task:ExecuteEntry (bool) <0xc3>
E #33 System.Threading.Tasks.Task:System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () <0x17>
E #34 System.Threading.ThreadPoolWorkQueue:Dispatch () <0x213>
E #35 System.Threading._ThreadPoolWaitCallback:PerformWaitCallback () <0x3f>
E #36 (wrapper runtime-invoke) :runtime_invoke_bool (object,intptr,intptr,intptr)
E Forwarding signal 6
A Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 5870 (Thread-109), pid 5683 (Design.SeeMusic)
---------------------------- PROCESS ENDED (5683) for package com.VisualMusicDesign.SeeMusic ----------------------------

@pnostudiodeveloper
Copy link
Author

The crash happens when checking either:

AudioDevice.Discover()
VideoDevice.Discover()

or checking permissions for either audio or video devices.

@olokobayusuf olokobayusuf added android Issues that affect Android bug Something isn't working labels Nov 30, 2023
@pnostudiodeveloper
Copy link
Author

Wondering if the 0.0.18 alpha released tonight includes a fix for this?

(I know you had previously mentioned on email to look for a fix in the alpha coming beginning of this week)

@olokobayusuf
Copy link
Member

No but this is up next, will follow up on ETA. I've had some delays come up from other issues devs have raised.

@pnostudiodeveloper
Copy link
Author

Thank you

@pnostudiodeveloper
Copy link
Author

Is there any chance there could be an alpha with a fix for this before Monday?

Thank you

@olokobayusuf
Copy link
Member

@pnostudiodeveloper working on it right now, will post updates as I have them.

@olokobayusuf
Copy link
Member

Hey @pnostudiodeveloper can you test out VideoKit 0.0.18-alpha.2? Follow the install instructions here. Happy weekend!

@pnostudiodeveloper
Copy link
Author

It's working! Thanks very much.

@olokobayusuf
Copy link
Member

Sounds good.

@olokobayusuf
Copy link
Member

Closing this ahead of the 0.0.18 update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Issues that affect Android bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants