如何处理Project tango setPoseListenerFrames异常?

时间:2016-12-13 17:04:05

标签: java exception exception-handling google-project-tango

有时候我会不断得到这个例外,我不明白为什么会这样?或如何处理它以便应用程序不会终止。而它必须再次尝试重新连接?

这是我得到的例外:

E/tango_client_api: TangoErrorType TangoService_connectOnPoseAvailable(uint32_t, const TangoCoordinateFramePair*, void (*)(void*, const TangoPoseData*), ...): Internal Error: setPoseListenerFrames failed.
I/tango_client_api: TangoErrorType TangoService_connectOnPoseAvailable(uint32_t, const TangoCoordinateFramePair*, void (*)(void*, const TangoPoseData*), ...): Totally done connecting pose callback.
E/tango-client-api-jni: Error - TangoService_connectOnPoseAvailable: -1
E/ObstacleDetectionActivity: Tango Exception! Try again!
                         com.google.atap.tangoservice.TangoErrorException
                             at com.google.atap.tangoservice.Tango.throwTangoExceptionIfNeeded(Tango.java:840)
                             at com.google.atap.tangoservice.Tango.connectListener(Tango.java:391)
                             at com.tango.project.obstacledetectionapplication.ObstacleDetectionActivity.setTangoListeners(ObstacleDetectionActivity.java:291)
                             at com.tango.project.obstacledetectionapplication.ObstacleDetectionActivity.access$400(ObstacleDetectionActivity.java:51)
                             at com.tango.project.obstacledetectionapplication.ObstacleDetectionActivity$2.run(ObstacleDetectionActivity.java:235)
                             at java.lang.Thread.run(Thread.java:811)
I/Tango: com.google.tango: 11907
I/tango_client_api: void* TangoService_getConfig(TangoConfigType): Getting config...
I/tango_client_api: void* TangoService_getConfig(TangoConfigType): Done getting config.
I/tango_client_api: TangoErrorType TangoService_connect(void*, TangoConfig): Connecting to Tango...
I/tango_client_api: TangoErrorType TangoService_connect(void*, TangoConfig): Successfully connected to Tango.
I/tango_client_api: void TangoService_disconnect(): Disconnecting from Tango...
I/tango_client_api: void TangoService_disconnect(): Successfully disconnected     from Tango.
Application terminated.

0 个答案:

没有答案