Hello, I’m having issues after swapping from Mono backend to IL2CPP backend I’m finding the app prompts camera permissions but after allowing the screen stays black, if the app is closed and re-opened it then works fine, how can I remedy this so the camera works first time? (Problem doesn’t occur with Mono backend)
[quote=“tdmowrer, post:2, topic: 741792, username:tdmowrer”]
This used to be a problem on IL2CPP due to code stripping, but that was fixed a while ago. What version of the ARCore package do you have?
[/quote] I’m using version 1.0.0-preview.24 of ARCore XR Plugin and 1.0.0-preview.22 of AR foundation, it says they’re both up to date in the package manager, unity version 2018.3.7f1.
I’ve also tried updating Unity to 2019.1.0f2 and updating the packages to AR Foundation 1.10 (preview.6) and ARCore to 1.00-preview.24 but I’m still having the bug.
Do you have a link.xml in your Assets folder? If not, ARFoundation should prompt you to create one. If you do, make sure you don’t have any others elsewhere in your project as they may override this setting.
Seeing the same bug here- works fine in Mono, but when using IL2CPP first-time startup shows black screen.
There is only one link.xml file (auto-generated by AR Foundation) in my project.
Google Pixel 3 (behavior is the same on multiple devices)
Unity 2019.1.1f1
AR Foundation 1.1.0 p6
AR Core XR plugin 1.0.0 p24
ARKit XR plugin 1.0.0 p27
This appears to be a code stripping issue. The ARCorePermissionsManager implements a Java interface, so the callbacks it uses aren’t explicitly referenced by any other C# code. When managed code stripped is enabled or IL2CPP backend is used, this causes those methods to get stripped by Unity.
We can prevent this in a future release of ARFoundation, but you can workaround it now by modifying your link.xml to
Hi ,
Created this AR application using AR Foundation in unity for both : ios and android.
When built for ios everything was perfectly fine . also when built the same project for android with “Mono” back-end ( development build ) , everything was good , but when I built same thing using “IL2CPP” back-end , it gives following issues:’
Black Screen problem
Not detecting floor properly and object gets stuck to the camera ( I have attached a screenshots for this issue )
Please help me to resolve this issue.
thanks in Advance !
stdout:
Fatal error in Unity CIL Linker
System.Xml.XmlException: Unexpected end of file has occurred. The following elements are not closed: linker. Line 3, position 9.
at System.Xml.XmlTextReaderImpl.Throw (System.Exception e) [0x00027] in <1d98d70bb7d8453b80c25aa561fdecd1>:0
at System.Xml.XmlTextReaderImpl.Throw (System.String res, System.String arg) [0x00029] in <1d98d70bb7d8453b80c25aa561fdecd1>:0
at System.Xml.XmlTextReaderImpl.Throw (System.Int32 pos, System.String res, System.String arg) [0x0000c] in <1d98d70bb7d8453b80c25aa561fdecd1>:0
at System.Xml.XmlTextReaderImpl.ThrowUnclosedElements () [0x000cc] in <1d98d70bb7d8453b80c25aa561fdecd1>:0
at System.Xml.XmlTextReaderImpl.ParseEndElement () [0x001f7] in <1d98d70bb7d8453b80c25aa561fdecd1>:0
at System.Xml.XmlTextReaderImpl.ParseElementContent () [0x00149] in <1d98d70bb7d8453b80c25aa561fdecd1>:0
at System.Xml.XmlTextReaderImpl.Read () [0x00085] in <1d98d70bb7d8453b80c25aa561fdecd1>:0
at System.Xml.XPath.XPathDocument.LoadFromReader (System.Xml.XmlReader reader, System.Xml.XmlSpace space) [0x00228] in <1d98d70bb7d8453b80c25aa561fdecd1>:0
at System.Xml.XPath.XPathDocument…ctor (System.String uri, System.Xml.XmlSpace space) [0x00013] in <1d98d70bb7d8453b80c25aa561fdecd1>:0
at System.Xml.XPath.XPathDocument…ctor (System.String uri) [0x00000] in <1d98d70bb7d8453b80c25aa561fdecd1>:0
at Unity.Linker.Steps.Resolution.UnityResolveFromXmlStep…ctor (System.String file) [0x00000] in <98b21eac6f13437abe8e0f36445fe9d3>:0
at Unity.Linker.UnityDriver.ParseArguments (Mono.Linker.Pipeline p, Unity.Linker.UnityLinkContext context, System.Collections.ArrayList custom_steps, Mono.Linker.I18nAssemblies& assemblies) [0x001d1] in <98b21eac6f13437abe8e0f36445fe9d3>:0
at Unity.Linker.UnityDriver.Run () [0x0001b] in <98b21eac6f13437abe8e0f36445fe9d3>:0
at Unity.Linker.UnityDriver.RunDriverWithoutErrorHandling () [0x00007] in <98b21eac6f13437abe8e0f36445fe9d3>:0
at Unity.Linker.UnityDriver.RunDriver () [0x00002] in <98b21eac6f13437abe8e0f36445fe9d3>:0
stderr: