Closed sergiosolorzano closed 3 years ago
The message
Failed to initialize subsystem ARKit-Meshing [error: 1]
Is just telling you that meshing isn't supported (iPhone 6s doesn't support this). It is okay to ignore this. Besides the Xcode log, is anything not working as expected?
That's very helpful @tdmowrer , great it's harmless, thank you so much for clarifying !
Is the fopen error also harmless in ARFoundation? I have not submitted the build to Apple and I'm a bit concerned as to whether the error may invalidate the build from being published in the store:
fopen failed for data file: errno = 2 (No such file or directory) Errors found! Invalidating cache...
I googled the error but could only find a reference to Metal being the culprit.
The dev build works fine when deployed from xcode to mobile.
The fopen
error does not come from AR Foundation, and I believe it is harmless.
Thanks a bunch @tdmowrer !! I'll update this thread when I hear back from the team on fopen , if you prefer i can close this then
Confirmed :)
this (fopen error) is not a bug and the error is correct. If it still occurs for you with LiDAR devices (shouldn't be the case), feel free to reply to this email and we will reopen the case.
Unity bug report case number Bug report submitted to Unity with ARF project number 1334601
Describe the bug New Fresh project with Big Sur 11.4 beta, Unity 2020.3.7f1 and open ARF 4.17 from git https://github.com/Unity-Technologies/arfoundation-samples.git as iOS. When the app launches Xcode shows errors: [Subsystems] Loading plugin UnityARKit for subsystem ARKit-Input... [Subsystems] UnityARKit successfully registered Provider for ARKit-Input [Subsystems] Loading plugin UnityARKit for subsystem ARKit-Meshing... [Subsystems] Failed to initialize subsystem ARKit-Meshing [error: 1] New input system (experimental) initialized 2021-05-07 17:43:45.670357+0100[12896:1339705] fopen failed for data file: errno = 2 (No such file or directory) 2021-05-07 17:43:45.670467+0100 [12896:1339705] Errors found! Invalidating cache... 2021-05-07 17:43:46.099092+0100 [12896:1339705] fopen failed for data file: errno = 2 (No such file or directory) 2021-05-07 17:43:46.099196+0100[12896:1339705] Errors found! Invalidating cache... 2021-05-07 17:43:46.497900+0100[12896:1339705] Unbalanced calls to begin/end appearance transitions for <UnityViewControllerStoryboard: 0x115e5a1f0>.
I have found this solution (see below) and the error message for fopen (not the ARKit Meshing error) and the error message no longer showed but I guess that doesn't solve non-working shaders reported here and/or these errors shown to apple when submitting the app for review.
"Metal is one possible culprit. If you're importing Metal, try omitting it to see if the error goes away. Also, edit your scheme diagnostics (command<, then click the Diagnostics tab) and deselect Metal API Validation if it's selected."
To Reproduce
12 Launch app
Expected behavior Xcode does not show errors when the app launches
Actual behavior At launch error shows: [Subsystems] Loading plugin UnityARKit for subsystem ARKit-Input... [Subsystems] UnityARKit successfully registered Provider for ARKit-Input [Subsystems] Loading plugin UnityARKit for subsystem ARKit-Meshing... [Subsystems] Failed to initialize subsystem ARKit-Meshing [error: 1] New input system (experimental) initialized 2021-05-07 17:43:45.670357+0100[12896:1339705] fopen failed for data file: errno = 2 (No such file or directory) 2021-05-07 17:43:45.670467+0100 [12896:1339705] Errors found! Invalidating cache... 2021-05-07 17:43:46.099092+0100 [12896:1339705] fopen failed for data file: errno = 2 (No such file or directory) 2021-05-07 17:43:46.099196+0100[12896:1339705] Errors found! Invalidating cache... 2021-05-07 17:43:46.497900+0100[12896:1339705] Unbalanced calls to begin/end appearance transitions for <UnityViewControllerStoryboard: 0x115e5a1f0>.
Smartphone (please complete the following information):