oframe is null?

0 votes
asked Jul 21, 2019 by wjrivera (800 points)
retagged Jul 21, 2019 by wjrivera

I included a scene with easyAR 3.0 in an assetbundle of unity but when opening it in android it presents this error ([EasyAR] oframe is null), and this (Uknown error), how can I fix this?

1 Answer

0 votes
answered Jul 22, 2019 by zhangpengar (3,060 points)

"[EasyAR] oframe is null" is not an error. It's possible in normal runs.

And for "Uknown error", where do you get this error? Do you have any call stack information?

commented Jul 22, 2019 by wjrivera (800 points)
edited Jul 22, 2019 by wjrivera
I am trying to load the Image Target from the persistent data path and get this:

[EasyAR]:/storage/emulated /0/Android/data/com.wijari.prototype/files/namecard.jpg
[EasyAR] use ezar camera device
[EasyAR] RequestPermissions status Granted msg

Unknown Error
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

[EasyAR] oframe is null
[EasyAR] oframe is null
[EasyAR] oframe is null ...

Also try reading the ImageTarget from Streaming Assets but the application closes by itself

In unity editor works correctly with Streaming Assets and Persistent Data Path.
commented Jul 23, 2019 by ag3OlbMfIwtXAlq (480 points)
maybe you miss the "file://" header, www path need the header, so your path should be "file://xxxx/xxxx/xxx/xxx.jpg"
commented Jul 24, 2019 by wjrivera (800 points)
thanks, this works for me, this is the final code:

           path = Utility.AddFileHeader(Application.persistentDataPath + "/"  + path);
           UriBuilder uriBuilder = new UriBuilder(path);
           uriBuilder.Scheme = "file";  
           path = uriBuilder.ToString();
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.