ARCore Baisc应用程序崩溃

问题描述

我正在使用MOTOG7播放。 有时我的应用程序启动并在检测到计划后崩溃。放空对象后的某些时间。你能让我知道我在想什么吗?

== 日志猫:

通过报告简并性提供有效的帧到帧转换。 2020-08-11 17:53:05.502 10471-10542 / com.example.arpoject11 W / native:pose_confidence_estimator.cc:261 Ransac提供的翻译向量非常小。

--------- beginning of crash
2020-08-11 17:53:05.518 10471-10516/com.example.arpoject11 A/libc: Fatal signal 4 (SIGILL),code 1 (ILL_ILLOPC),fault addr 0x91d5f662 in tid 10516 (SyncThread),pid 10471 (mple.arpoject11)
2020-08-11 17:53:05.689 10471-10542/com.example.arpoject11 W/native: vio_fault_detector.cc:142 VIO is moving fast with speed (m/s): 1.75341 but RANSAC failed to provide valid frame to frame translation by reporting degeneracy.
2020-08-11 17:53:05.689 10471-10542/com.example.arpoject11 W/native: pose_confidence_estimator.cc:261 Ransac provided translation vector is very small.
2020-08-11 17:53:05.702 10471-10542/com.example.arpoject11 W/native: vio_fault_detector.cc:142 VIO is moving fast with speed (m/s): 1.84135 but RANSAC failed to provide valid frame to frame translation by reporting degeneracy.
2020-08-11 17:53:05.702 10471-10542/com.example.arpoject11 W/native: pose_confidence_estimator.cc:261 Ransac provided translation vector is very small.
2020-08-11 17:53:05.832 10471-10542/com.example.arpoject11 W/native: vio_fault_detector.cc:142 VIO is moving fast with speed (m/s): 1.88667 but RANSAC failed to provide valid frame to frame translation by reporting degeneracy.
2020-08-11 17:53:05.833 10471-10542/com.example.arpoject11 W/native: pose_confidence_estimator.cc:261 Ransac provided translation vector is very small.
2020-08-11 17:53:05.893 10471-10542/com.example.arpoject11 W/native: vio_fault_detector.cc:142 VIO is moving fast with speed (m/s): 1.92521 but RANSAC failed to provide valid frame to frame translation by reporting degeneracy.
2020-08-11 17:53:05.893 10471-10542/com.example.arpoject11 W/native: pose_confidence_estimator.cc:261 Ransac provided translation vector is very small.
2020-08-11 17:53:06.021 10471-10542/com.example.arpoject11 W/native: vio_fault_detector.cc:142 VIO is moving fast with speed (m/s): 1.98669 but RANSAC failed to provide valid frame to frame translation by reporting degeneracy.
2020-08-11 17:53:06.022 10471-10542/com.example.arpoject11 W/native: pose_confidence_estimator.cc:261 Ransac provided translation vector is very small.
2020-08-11 17:53:06.096 10471-10542/com.example.arpoject11 W/native: vio_fault_detector.cc:142 VIO is moving fast with speed (m/s): 2.06285 but RANSAC failed to provide valid frame to frame translation by reporting degeneracy.
2020-08-11 17:53:06.096 10471-10542/com.example.arpoject11 W/native: pose_confidence_estimator.cc:261 Ransac provided translation vector is very small.
2020-08-11 17:53:06.221 10471-10542/com.example.arpoject11 W/native: vio_fault_detector.cc:142 VIO is moving fast with speed (m/s): 2.14496 but RANSAC failed to provide valid frame to frame translation by reporting degeneracy.
2020-08-11 17:53:06.221 10471-10542/com.example.arpoject11 W/native: pose_confidence_estimator.cc:261 Ransac provided translation vector is very small.
2020-08-11 17:53:06.296 10471-10542/com.example.arpoject11 W/native: vio_fault_detector.cc:142 VIO is moving fast with speed (m/s): 2.20629 but RANSAC failed to provide valid frame to frame translation by reporting degeneracy.
2020-08-11 17:53:06.296 10471-10542/com.example.arpoject11 W/native: pose_confidence_estimator.cc:261 Ransac provided translation vector is very small.
2020-08-11 17:53:06.349 10471-10471/com.example.arpoject11 E/native: hit_test.cc:381 generic::internal: No point hit.
2020-08-11 17:53:06.382 10471-10471/com.example.arpoject11 E/native: hit_test.cc:381 generic::internal: No point hit.
2020-08-11 17:53:06.416 10471-10471/com.example.arpoject11 E/native: hit_test.cc:381 generic::internal: No point hit.

我的代码非常基础。

package com.example.arpoject11;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import android.net.Uri;

... ...导入android.view.View;

public class MainActivity extends AppCompatActivity  {

    private ArFragment arFragment;
    private ModelRenderable modelRenderable;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        arFragment = (ArFragment) getSupportFragmentManager().findFragmentById(R.id.fragment);
        setUpModel();
        setupPlane();
    }
     private void setUpModel(){
        ModelRenderable.builder()
                .setSource(this,R.raw.mesh_chimpanzee)
                .build()
                .thenAccept(renderable->modelRenderable=renderable)
                .exceptionally(throwable -> {
                    Toast.makeText(MainActivity.this,"model cannot be loaded",Toast.LENGTH_SHORT).show();
                    return null;
                });
    }
    private void setupPlane(){
        arFragment.setOnTapArPlaneListener(new BaseArFragment.OnTapArPlaneListener() {
            @Override
            public void onTapPlane(HitResult hitResult,Plane plane,MotionEvent motionEvent) {
                Anchor anchor= hitResult.createAnchor();
                AnchorNode anchorNode = new AnchorNode(anchor);
                anchorNode.setParent(arFragment.getArSceneView().getScene());
                createModel(anchorNode);
            }
        });
    }

    private void createModel(AnchorNode anchorNode){
        TransformableNode node = new TransformableNode(arFragment.getTransformationSystem());
        node.setParent(anchorNode);
        node.setRenderable(modelRenderable);
        node.select();
    }
}

解决方法

此崩溃取决于设备。这在其他设备上看不到。只有MOTO。呼叫中心人员提到,MOTO(在其ARCORE上)没有提供任何支持。仅通用支持。

由于这个答案仅针对特定设备而结束。

相关问答

依赖报错 idea导入项目后依赖报错,解决方案:https://blog....
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下...
错误1:gradle项目控制台输出为乱码 # 解决方案:https://bl...
错误还原:在查询的过程中,传入的workType为0时,该条件不起...
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct...