googlearchive / tango-examples-unity

Project Tango [deprecated] UnitySDK Example Projects
https://developers.google.com/ar
Apache License 2.0
470 stars 242 forks source link

Non-static method "Lcom/projecttango/unityuxhelper/TangoUnityUxHelper; #29

Closed dcorbatta closed 7 years ago

dcorbatta commented 9 years ago

Most of the time, the Unity SDK call to a native method during the connecting UX screen. The method is not found and the connecting screen hang out.

I/Unity   ( 6065): AndroidJavaException: java.lang.NoSuchMethodError: no non-static method "Lcom/projecttango/unityuxhelper/TangoUnityUxHelper;.䅣뿤(I)V"
I/Unity   ( 6065):   at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in <filename unknown>:0 
I/Unity   ( 6065):   at UnityEngine.AndroidJNISafe.GetMethodID (IntPtr obj, System.String name, System.String sig) [0x00000] in <filename unknown>:0 
I/Unity   ( 6065):   at UnityEngine._AndroidJNIHelper.GetMethodID (IntPtr jclass, System.String methodName, System.String signature, Boolean isStatic) [0x00000] in <filename unknown>:0 
I/Unity   ( 6065):   at UnityEngine.AndroidJNIHelper.GetMethodID (IntPtr javaClass, System.String methodName, System.String signature, Boolean isStatic) [0x00000] in <filename unknown>:0 
I/Unity   ( 6065):   at UnityEngine._AndroidJNIHelper.GetMethodID (IntPtr jclass, System.String methodName, System.Object[] args, Boolean isStatic) [0x00000] in <filename unknown>:0 
I/Unity   ( 6065):   at UnityEngine.AndroidJNIHelper.GetMethodID (IntPtr jclass, System.String methodName, System.Object[] args, Boolean isStatic) [0x00000] in <filename unknown>:0 
I/Unity   ( 6065):   at Un

The problem is with the method: tangoUxObject.Call("processPoseDataStatus", poseStatus); But sometime it works.

My tango manager configuration is: screen shot 2015-09-14 at 6 01 44 pm

I also use the Tango Point Cloud Prefab.

Unity version: 5.1.0f3 Personal Tango Unity SDK: von Mises

ZetaSMB commented 9 years ago

I am having that exception too! Could be a mistake in the way that the signature method name is built??

yosun commented 9 years ago

Same issue with Weyl 5.2.1

dcorbatta commented 9 years ago

The only solution that I found was make a wrapper of the Tango Unity UX Helper in C. It's an issue with the Unity Android helpers. It sometime make a wrong signature of the inferred method. We are planning to share the code if it isn't fixed soon.

patrick-marxent commented 8 years ago

@dcorbatta did you end up finding a fix for this issue

chaosemer commented 7 years ago

This has been fixed a while ago, but we neglected to close this issue. Feel free to reopen if you're still have the problem.