CariusLars / ar_flutter_plugin

Flutter Plugin for AR (Augmented Reality) - Supports ARKit on iOS and ARCore on Android devices
MIT License
333 stars 254 forks source link

App get crashed when enable feature points in ARSessionManager.onInitialize() #192

Open nayanAubie opened 1 year ago

nayanAubie commented 1 year ago

Place the below code snippet, run the app and wait for some feature points on the UI. after some time, the app will get crashed.

ARView(
  onARViewCreated: onARViewCreated,
  planeDetectionConfig: PlaneDetectionConfig.horizontalAndVertical,
)
void onARViewCreated(
      ARSessionManager arSessionManager,
      ARObjectManager arObjectManager,
      ARAnchorManager arAnchorManager,
      ARLocationManager arLocationManager) {
    this.arSessionManager = arSessionManager;

    this.arSessionManager!.onInitialize(
          showFeaturePoints: true,
          showPlanes: true,
          customPlaneTexturePath: 'path of image',
          showWorldOrigin: true,
          showAnimatedGuide: true,
        );
    this.arObjectManager!.onInitialize();
  }

Tested only in Android 13 device