giandifra / arcore_flutter_plugin Goto Github PK
View Code? Open in Web Editor NEWFlutter plugin for ARCore SDK, Android platform to build new augmented reality experiences
License: MIT License
Flutter plugin for ARCore SDK, Android platform to build new augmented reality experiences
License: MIT License
I wanted to test your latest changes for the support of image tracking, but it seems that the latest plugin version 0.0.5+1 is not supporting this example. Might be that the released plugin version is missing the required dependencies.
e.g.: There is no constant named 'AUGMENTEDIMAGES' in 'ArCoreViewType'.
Looking @ ARCore, I see that the latest version is the 1.17
SceneForm is Archived so no further development on that.
Are you thinking of moving forward with the development?
To remove SceneForm? (SceneForm 1.16 is opensource and supports only the new gLTF format,
(https://www.khronos.org/gltf/)
Do you need help developing or testing or creating new examples?
Build failing while trying to build apk using the command :
flutter build apk --split-per-abi
Error message :
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'.
> Job failed, see logs for details
also Warning :
Warning: there were 14 unresolved references to classes or interfaces.
You may need to add missing library jars or update their versions.
If your code works fine without the missing classes, you can suppress
the warnings with '-dontwarn' options.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass)
Debug apk builds are successful, not the release version,
like all fucntions of arkit in android https://github.com/olexale/arkit_flutter_plugin
image tracking n etc
please make plugin it helps a lot.
How to run arcore_flutter_plugin
on phones with API level less than 24? Is it bounded to API level 24 and higher in this version or there is something wrong with my project? I get Package install error: Failure [INSTALL_FAILED_OLDER_SDK]
error after apk installation and trying to run the app on a phone with Android 6!
Hi, I successfully ran the code but it is giving me an error that "this device does not support AR". After checking the list of AR supported devices on google official website I found that my device "Huawei P20 light" supports AR. So now what can be the issue, help needed?
I've notice that if a node is too distant it's not visible. It seems that the virtual camera has a max render distance. This is a problem because I need to set some distant points
Hi!
It seems that this is the only Flutter Plugin enabling AR.
How may I add a 3D dog to a scene?
I mean, adding just squares, circles and cylinders is useless, and I cannot find any documentation for this library.
Can you help?
Thanks!
Is it possible to use ARCore and Regular Camera together, have to use some features from regular camera like the Image Streaming.
Is it possible any way to use at least Image Streaming?
i built an application using arcore_flutter plugin. the app works perfectly in debug mode. but it is not working in release mode.
i have attached below the expected and observed outputs of the application kindly help me in resolving the issue.
This is what i get in release mode. i am unable to see the outputs.
This is what i get in debug mode. i can see my outputs(planets).
Kindly help.!!
Hello, I have tried your library with its complete configuration but when I do run "flutter run", I am getting this error. Here's the full error stack,
`Launching lib/main.dart on Nokia 2 in debug mode...
Initializing gradle... 1.2s
Resolving dependencies... 2.9s
/home/mquanit/Documents/Projects/Mobile-Ap
ps/ar_app/android/app/src/debug/AndroidManifest.xml:37:58-82 Error:
Attribute meta-data#com.google.ar.core@value value=(required) from
AndroidManifest.xml:37:58-82
is also present at [:arcore_plugin] AndroidManifest.xml:24:13-37 value=(optional).
Suggestion: add 'tools:replace="android:value"' to <meta-data> element at
AndroidManifest.xml:21:9-23:40 to override.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute meta-data#com.google.ar.core@value value=(required)
from AndroidManifest.xml:37:58-82
is also present at [:arcore_plugin] AndroidManifest.xml:24:13-37 value=(optional).
Suggestion: add 'tools:replace="android:value"' to <meta-data> element at
AndroidManifest.xml:21:9-23:40 to override.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get
more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 7s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 8.5s
Gradle task assembleDebug failed with exit code 1`
If i have a string variable like
String name = "Yurani";
And i want to create a node shape by that value, how to do that?
I am trying to replicate the steps mentioned in this article, but seeing crash when app launches.
Appreciate any help in identifying and resolving this crash.
E/AndroidRuntime(13113): FATAL EXCEPTION: main
E/AndroidRuntime(13113): Process: com.example.flutter_arcore_demo, PID: 13113
E/AndroidRuntime(13113): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.flutter_arcore_demo/com.google.ar.core.InstallActivity}: java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter savedInstanceState
E/AndroidRuntime(13113): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2817)
E/AndroidRuntime(13113): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892)
E/AndroidRuntime(13113): at android.app.ActivityThread.-wrap11(Unknown Source:0)
E/AndroidRuntime(13113): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593)
E/AndroidRuntime(13113): at android.os.Handler.dispatchMessage(Handler.java:105)
E/AndroidRuntime(13113): at android.os.Looper.loop(Looper.java:164)
E/AndroidRuntime(13113): at android.app.ActivityThread.main(ActivityThread.java:6541)
E/AndroidRuntime(13113): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(13113): at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
E/AndroidRuntime(13113): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
E/AndroidRuntime(13113): Caused by: java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter savedInstanceState
E/AndroidRuntime(13113): at com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView$setupLifeCycle$1.onActivityCreated(Unknown Source:7)
E/AndroidRuntime(13113): at android.app.Application.dispatchActivityCreated(Application.java:197)
E/AndroidRuntime(13113): at android.app.Activity.onCreate(Activity.java:1015)
E/AndroidRuntime(13113): at com.google.ar.core.InstallActivity.onCreate(InstallActivity.java:4)
E/AndroidRuntime(13113): at android.app.Activity.performCreate(Activity.java:6975)
E/AndroidRuntime(13113): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1213)
E/AndroidRuntime(13113): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2770)
E/AndroidRuntime(13113): ... 9 more
Lost connection to device.
Below is the code I am trying to run in main.dart
:
import 'dart:typed_data';
import 'package:flutter/material.dart';
import 'package:arcore_flutter_plugin/arcore_flutter_plugin.dart';
import 'package:flutter/services.dart';
import 'package:vector_math/vector_math_64.dart' as vector;
void main() => runApp(MyApp());
ArCoreController arCoreController;
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(title: 'ARcore demo', home: HomePage());
}
}
class HomePage extends StatefulWidget {
HomePage({Key key}) : super(key: key);
@override
_HomePageState createState() => new _HomePageState();
}
class _HomePageState extends State<HomePage> {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text('ARcore demo'),
),
body: ArCoreView(
onArCoreViewCreated: _onArCoreViewCreated,
enableTapRecognizer: true,
)),
);
}
void _onArCoreViewCreated(ArCoreController controller) {
arCoreController = controller;
arCoreController.onNodeTap = (name) => onTapHandler(name);
arCoreController.onPlaneTap = _onPlaneTapHandler;
}
onTapHandler(String name) {
showDialog<void>(
context: context,
builder: (BuildContext context) =>
AlertDialog(content: Text('onNodeTap on ${name}')),
);
}
void _onPlaneTapHandler(List<ArCoreHitTestResult> hits) async {
final hit = hits.first;
final moonMaterial = ArCoreMaterial(color: Colors.grey);
final moonShape = ArCoreSphere(
materials: [moonMaterial],
radius: 0.03,
);
final moon = ArCoreNode(
shape: moonShape,
position: vector.Vector3(0.2, 0, 0),
rotation: vector.Vector4(0, 0, 0, 0),
);
final ByteData textureBytes = await rootBundle.load('assets/earth.jpg');
final earthMaterial = ArCoreMaterial(
color: Color.fromARGB(120, 66, 134, 244),
textureBytes: textureBytes.buffer.asUint8List());
final earthShape = ArCoreSphere(
materials: [earthMaterial],
radius: 0.1,
);
final earth = ArCoreNode(
shape: earthShape,
children: [moon],
);
arCoreController.addArCoreNodeWithAnchor(earth);
}
}
manifest.xml
:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.flutter_arcore_demo">
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
calls FlutterMain.startInitialization(this); in its onCreate method.
In most cases you can leave this as-is, but you if you want to provide
additional functionality it is fine to subclass or reimplement
FlutterApplication and put your custom class here. -->
<uses-sdk android:minSdkVersion="28" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera.ar" />
<application
android:name="io.flutter.app.FlutterApplication"
android:label="flutter_arcore_demo"
...
</activity>
<meta-data android:name="com.google.ar.core" android:value="required" />
</application>
app/build.gradle
:
dependencies {
implementation 'com.google.ar.sceneform.ux:sceneform-ux:1.13.0'
implementation 'com.google.ar.sceneform:core:1.13.0'
implementation 'com.google.ar:core:1.13.0'
Hello,
Does this package support devices that are not ArCore compatible?
A message appears?
I tried this package on emulator 7.0 x86_64 and I have this error :
Launching lib/main.dart on Android SDK built for x86 64 in debug mode...
Built build/app/outputs/apk/debug/app-debug.apk.
D/EGL_emulation( 3312): eglMakeCurrent: 0x7fe47017fb20: ver 3 0 (tinfo 0x7fe4701653e0)
D/ ( 3312): HostConnection::get() New Host Connection established 0x7fe470182f60, tid 3326
D/ ( 3312): HostConnection::get() New Host Connection established 0x7fe470182de0, tid 3325
D/EGL_emulation( 3312): eglCreateContext: 0x7fe454598060: maj 3 min 0 rcv 3
D/EGL_emulation( 3312): eglMakeCurrent: 0x7fe454598060: ver 3 0 (tinfo 0x7fe45ec424c0)
E/eglCodecCommon( 3312): glUtilsParamSize: unknow param 0x00008cdf
E/eglCodecCommon( 3312): glUtilsParamSize: unknow param 0x00008824
I/Filament( 3312): FEngine (64 bits) created at 0x7fe44fe00000 (threading is enabled)
D/Filament( 3312): FEngine resolved backend: OpenGL
D/ ( 3312): HostConnection::get() New Host Connection established 0x7fe45b24e3c0, tid 3351
D/EGL_emulation( 3312): eglCreateContext: 0x7fe4576ae2c0: maj 3 min 0 rcv 3
D/EGL_emulation( 3312): eglMakeCurrent: 0x7fe4576ae2c0: ver 3 0 (tinfo 0x7fe472a39800)
E/eglCodecCommon( 3312): glUtilsParamSize: unknow param 0x00008cdf
E/eglCodecCommon( 3312): glUtilsParamSize: unknow param 0x00008824
E/eglCodecCommon( 3312): glUtilsParamSize: unknow param 0x00008a30
E/eglCodecCommon( 3312): glUtilsParamSize: unknow param 0x00008a34
I/SceneView( 3312): Optional library com.google.ar.sceneform.animation not present. Sceneform animation disabled
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView( 3312): arScenViewInit
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView( 3312): onActivityPaused
D/EGL_emulation( 3312): eglMakeCurrent: 0x7fe472a4a540: ver 3 0 (tinfo 0x7fe472bdd420)
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView( 3312): onActivityResumed
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView( 3312): onActivityPaused
D/EGL_emulation( 3312): eglMakeCurrent: 0x7fe472a4a540: ver 3 0 (tinfo 0x7fe472bdd420)
D/AndroidRuntime( 3312): Shutting down VM
E/AndroidRuntime( 3312): FATAL EXCEPTION: main
E/AndroidRuntime( 3312): Process: com.orange.ofood_poc_ar, PID: 3312
E/AndroidRuntime( 3312): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.orange.ofood_poc_ar/com.google.ar.core.InstallActivity}: java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter savedInstanceState
E/AndroidRuntime( 3312): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)
E/AndroidRuntime( 3312): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
E/AndroidRuntime( 3312): at android.app.ActivityThread.-wrap12(ActivityThread.java)
E/AndroidRuntime( 3312): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)
E/AndroidRuntime( 3312): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 3312): at android.os.Looper.loop(Looper.java:154)
E/AndroidRuntime( 3312): at android.app.ActivityThread.main(ActivityThread.java:6077)
E/AndroidRuntime( 3312): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 3312): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
E/AndroidRuntime( 3312): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)
E/AndroidRuntime( 3312): Caused by: java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter savedInstanceState
E/AndroidRuntime( 3312): at com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView$setupLifeCycle$1.onActivityCreated(ArCoreView.kt)
E/AndroidRuntime( 3312): at android.app.Application.dispatchActivityCreated(Application.java:197)
E/AndroidRuntime( 3312): at android.app.Activity.onCreate(Activity.java:961)
E/AndroidRuntime( 3312): at com.google.ar.core.InstallActivity.onCreate(InstallActivity.java:4)
E/AndroidRuntime( 3312): at android.app.Activity.performCreate(Activity.java:6662)
Flutter doctor :
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.9.1+hotfix.5, on Mac OS X 10.14.6 18G95, locale fr-FR)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.0)
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.39.2)
[✓] Connected device (1 available)
• No issues found!
Thank you
Used the example code mentioned in https://pub.dartlang.org/packages/arcore_flutter_plugin#example
Getting the following error message in the console while running the app:
Launching lib/main.dart on Nokia 8 1 in debug mode... Initializing gradle... 1.6s Resolving dependencies... 2.8s Running Gradle task 'assembleDebug'... Running Gradle task 'assembleDebug'... Done 3.9s Built build\app\outputs\apk\debug\app-debug.apk. I/Filament(32511): FEngine (64 bits) created at 0x7441400000 (threading is enabled) D/Filament(32511): Using ASurfaceTexture D/Filament(32511): FEngine resolved backend: OpenGL I/SceneView(32511): Optional library com.google.ar.sceneform.animation not present. Sceneform animation disabled I/DecorView(32511): It non-support bigbang I/PhoneWindow(32511): generateLayout isLightNavi false, Visibility: 0 I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): arScenViewInit I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): addArCoreNode I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): dartType: ArCoreNode I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): name: [yatd]nm_t[vjxuy I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): shape: dartType: ArCoreSphere I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): radius: 0.2 I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): size: [x=0.0, y=0.0, z=0.0] I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): height: null I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): material: color: -10011977 I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): argb: [255, 103, 58, 183] I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): texture: null I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): metallic: null I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): roughness: null I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): reflectance: null I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): position: [x=0.0, y=0.0, z=-1.0] I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): scale: [x=1.0, y=1.0, z=1.0] I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): rotation: [x=0.0, y=0.0, z=0.0, w=1.0] I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): dartType: ArCoreNode I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): name: [yatd]nm_t[vjxuy I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): shape: dartType: ArCoreSphere I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): radius: 0.2 I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): size: [x=0.0, y=0.0, z=0.0] I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): height: null I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): material: color: -10011977 I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): argb: [255, 103, 58, 183] I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): texture: null I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): metallic: null I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): roughness: null I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): reflectance: null I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): position: [x=0.0, y=0.0, z=-1.0] I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): scale: [x=1.0, y=1.0, z=1.0] I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): rotation: [x=0.0, y=0.0, z=0.0, w=1.0] I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): addArCoreNode I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): dartType: ArCoreNode I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): name: [gpdlnxua\_upkpw I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): shape: dartType: ArCoreCube I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): radius: null I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): size: [x=1.0, y=1.0, z=1.0] I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): height: null I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): material: color: -1499549 I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): argb: [255, 233, 30, 99] I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): texture: null I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): metallic: 1.0 I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): roughness: null I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): reflectance: null I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): position: [x=-0.5, y=-0.5, z=-3.0] I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): scale: [x=1.0, y=1.0, z=1.0] I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): rotation: [x=0.0, y=0.0, z=0.0, w=1.0] I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): dartType: ArCoreNode I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): name: [gpdlnxua\_upkpw I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): shape: dartType: ArCoreCube I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): radius: null I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): size: [x=1.0, y=1.0, z=1.0] I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): height: null I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): material: color: -1499549 I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): argb: [255, 233, 30, 99] I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): texture: null I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): metallic: 1.0 I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): roughness: null I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): reflectance: null I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): position: [x=-0.5, y=-0.5, z=-3.0] I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): scale: [x=1.0, y=1.0, z=1.0] I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): rotation: [x=0.0, y=0.0, z=0.0, w=1.0] I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): addArCoreNode I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): dartType: ArCoreNode I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): name: wwmufjcephkh\ttj I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): shape: dartType: ArCoreCylinder I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): radius: 0.3 I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): size: [x=0.0, y=0.0, z=0.0] I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): height: 0.4 I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): material: color: -11751600 I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): argb: [255, 76, 175, 80] I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): texture: null I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): metallic: null I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): roughness: null I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): reflectance: 1.0 I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): position: [x=0.0, y=-2.5, z=-3.0] I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): scale: [x=1.0, y=1.0, z=1.0] I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): rotation: [x=0.0, y=0.0, z=0.0, w=1.0] I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): dartType: ArCoreNode I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): name: wwmufjcephkh\ttj I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): shape: dartType: ArCoreCylinder I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): radius: 0.3 I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): size: [x=0.0, y=0.0, z=0.0] I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): height: 0.4 I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): material: color: -11751600 I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): argb: [255, 76, 175, 80] I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): texture: null I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): metallic: null I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): roughness: null I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): reflectance: 1.0 I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): position: [x=0.0, y=-2.5, z=-3.0] I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): scale: [x=1.0, y=1.0, z=1.0] I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(32511): rotation: [x=0.0, y=0.0, z=0.0, w=1.0] I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): onActivityPaused I/com.difrancescogianmarco.arcore_flutter_plugin.RenderableCustomFactory(32511): material not null I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): addNodeToSceneWithGeometry: NOT PARENT_NODE_NAME I/com.difrancescogianmarco.arcore_flutter_plugin.RenderableCustomFactory(32511): material not null I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): addNodeToSceneWithGeometry: NOT PARENT_NODE_NAME I/com.difrancescogianmarco.arcore_flutter_plugin.RenderableCustomFactory(32511): material not null I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(32511): addNodeToSceneWithGeometry: NOT PARENT_NODE_NAME W/ActivityThread(32511): handleWindowVisibility: no activity for token android.os.BinderProxy@9dcadac D/AndroidRuntime(32511): Shutting down VM E/AndroidRuntime(32511): FATAL EXCEPTION: main E/AndroidRuntime(32511): Process: com.example.flutter_ar, PID: 32511 E/AndroidRuntime(32511): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.flutter_ar/com.google.ar.core.InstallActivity}: java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter savedInstanceState E/AndroidRuntime(32511): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2928) E/AndroidRuntime(32511): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3063) E/AndroidRuntime(32511): at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78) E/AndroidRuntime(32511): at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108) E/AndroidRuntime(32511): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68) E/AndroidRuntime(32511): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1823) E/AndroidRuntime(32511): at android.os.Handler.dispatchMessage(Handler.java:107) E/AndroidRuntime(32511): at android.os.Looper.loop(Looper.java:198) E/AndroidRuntime(32511): at android.app.ActivityThread.main(ActivityThread.java:6729) E/AndroidRuntime(32511): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime(32511): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) E/AndroidRuntime(32511): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:876) E/AndroidRuntime(32511): Caused by: java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter savedInstanceState E/AndroidRuntime(32511): at com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView$setupLifeCycle$1.onActivityCreated(Unknown Source:7) E/AndroidRuntime(32511): at android.app.Application.dispatchActivityCreated(Application.java:220) E/AndroidRuntime(32511): at android.app.Activity.onCreate(Activity.java:1048) E/AndroidRuntime(32511): at com.google.ar.core.InstallActivity.onCreate(InstallActivity.java:4) E/AndroidRuntime(32511): at android.app.Activity.performCreate(Activity.java:7136) E/AndroidRuntime(32511): at android.app.Activity.performCreate(Activity.java:7127) E/AndroidRuntime(32511): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1272) E/AndroidRuntime(32511): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2908) E/AndroidRuntime(32511): ... 11 more Syncing files to device Nokia 8 1... 1,536ms
Is it possible to detect and read an QR-Code or an barcode with the plugin?
I tried to compile and run the sample app, without any changes, and once you select any option on the menu list, nothing happens.
My phone is a Samsung A70.
At some point, a Java exception is thrown, I don't know if this is the cause:
java.lang.NoSuchFieldError: no "J" field "nativeHandle" in class "Lcom/google/ar/core/Session;" or its superclasses
The complete run log is:
D/ViewRootImpl@a3715afMainActivity: ViewPostIme pointer 0
D/ViewRootImpl@a3715afMainActivity: ViewPostIme pointer 1
V/DartMessenger(23990): Received message from Dart over channel 'flutter/accessibility'
V/DartMessenger(23990): Deferring to registered handler to process message.
V/AccessibilityChannel(23990): Received tap message.
V/DartMessenger(23990): Received message from Dart over channel 'flutter/platform'
V/DartMessenger(23990): Deferring to registered handler to process message.
V/PlatformChannel(23990): Received 'SystemSound.play' message.
V/DartMessenger(23990): Received message from Dart over channel 'flutter/platform'
V/DartMessenger(23990): Deferring to registered handler to process message.
V/PlatformChannel(23990): Received 'SystemChrome.setApplicationSwitcherDescription' message.
V/DartMessenger(23990): Received message from Dart over channel 'flutter/platform_views'
V/DartMessenger(23990): Deferring to registered handler to process message.
V/PlatformViewsChannel(23990): Received 'create' message.
D/Dialog (23990): mIsSamsungBasicInteraction = false
D/Dialog (23990): mIsSamsungBasicInteraction = false, isMetaDataInActivity = false
V/DartMessenger(23990): Setting handler for channel 'arcore_flutter_plugin_0'
D/SurfaceView(23990): setPackageUsesOwnResolution() (Java SurfaceView) for unknown app: 0x0 (false)
I/Filament(23990): FEngine (64 bits) created at 0x6f52600000 (threading is enabled)
D/Filament(23990): Using ASurfaceTexture
D/Filament(23990): FEngine resolved backend: OpenGL
I/SceneView(23990): Optional library com.google.ar.sceneform.animation not present. Sceneform animation disabled
I/DecorView(23990): mWindow.mActivityCurrentConfig is null.
I/DecorView(23990): createDecorCaptionView >> DecorView@94135c6[], isFloating: false, isApplication: false, hasWindowDecorCaption: false, hasWindowControllerCallback: false
D/InputTransport(23990): Input channel constructed: fd=111
D/ViewRootImpl@3fab420MainActivity: setView = DecorView@94135c6[MainActivity] TM=true MM=false
I/flutter (23990): {dartType: ArCoreNode, shape: {radius: 0.1, dartType: ArCoreSphere, materials: [{color: [120, 66, 134, 244], texture: earth.jpg}]}, position: {x: 0.0, y: 0.0, z: -1.5}, name: bacjfqlelY^fow[, children: []}
V/DartMessenger(23990): Received message from Dart over channel 'arcore_flutter_plugin_0'
V/DartMessenger(23990): Deferring to registered handler to process message.
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): arScenViewInit
W/Activity(23990): Can request only one set of permissions at a time
V/DartMessenger(23990): Received message from Dart over channel 'arcore_flutter_plugin_0'
V/DartMessenger(23990): Deferring to registered handler to process message.
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): addArCoreNode
I/flutter (23990): {dartType: ArCoreNode, shape: {height: 0.5, radius: 0.3, dartType: ArCoreCylinder, materials: [{color: [255, 244, 67, 54], reflectance: 1.0}]}, position: {x: 0.0, y: -0.5, z: -2.0}, name: otdbhfYwck_yqsdY, children: []}
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): dartType: ArCoreNode
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): name: bacjfqlelY^fow[
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): shape: dartType: ArCoreSphere
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): radius: 0.1
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): size: [x=0.0, y=0.0, z=0.0]
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): height: null
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): material: color: 2017625844
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): argb: [120, 66, 134, 244]
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): texture: earth.jpg
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): metallic: null
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): roughness: null
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): reflectance: null
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): obcject3DFileName: null
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): objectUrl: null
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): position: [x=0.0, y=0.0, z=-1.5]
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): scale: [x=1.0, y=1.0, z=1.0]
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): rotation: [x=0.0, y=0.0, z=0.0, w=1.0]
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): parentNodeName: null
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): dartType: ArCoreNode
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): name: bacjfqlelY^fow[_
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): shape: dartType: ArCoreSphere
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): radius: 0.1
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): size: [x=0.0, y=0.0, z=0.0]
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): height: null
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): material: color: 2017625844
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): argb: [120, 66, 134, 244]
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): texture: earth.jpg
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): metallic: null
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): roughness: null
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): reflectance: null
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): obcject3DFileName: null
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): objectUrl: null
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): position: [x=0.0, y=0.0, z=-1.5]
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): scale: [x=1.0, y=1.0, z=1.0]
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): rotation: [x=0.0, y=0.0, z=0.0, w=1.0]
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): parentNodeName: null
I/flutter (23990): {dartType: ArCoreNode, shape: {size: {x: 0.5, y: 0.5, z: 0.5}, dartType: ArCoreCube, materials: [{color: [120, 66, 134, 244], metallic: 1.0}]}, position: {x: -0.5, y: 0.5, z: -3.5}, name: swn_ducrZ\psjac, children: []} I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): onActivityPaused V/LifecycleChannel(23990): Sending AppLifecycleState.inactive message. V/DartMessenger(23990): Sending message with callback over channel 'flutter/lifecycle' V/DartMessenger(23990): Received message from Dart over channel 'arcore_flutter_plugin_0' V/DartMessenger(23990): Deferring to registered handler to process message. I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): addArCoreNode I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): dartType: ArCoreNode I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): name: otdbhfYwck_yqsdY I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): shape: dartType: ArCoreCylinder I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): radius: 0.3 I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): size: [x=0.0, y=0.0, z=0.0] I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): height: 0.5 I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): material: color: -769226 I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): argb: [255, 244, 67, 54] I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): texture: null I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): metallic: null I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): roughness: null I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): reflectance: 1.0 I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): obcject3DFileName: null I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): objectUrl: null I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): position: [x=0.0, y=-0.5, z=-2.0] I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): scale: [x=1.0, y=1.0, z=1.0] I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): rotation: [x=0.0, y=0.0, z=0.0, w=1.0] I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): parentNodeName: null I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): dartType: ArCoreNode I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): name: otdbhfYwck_yqsdY I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): shape: dartType: ArCoreCylinder I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): radius: 0.3 I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): size: [x=0.0, y=0.0, z=0.0] I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): height: 0.5 I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): material: color: -769226 I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): argb: [255, 244, 67, 54] I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): texture: null I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): metallic: null I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): roughness: null I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): reflectance: 1.0 I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): obcject3DFileName: null I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): objectUrl: null I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): position: [x=0.0, y=-0.5, z=-2.0] I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): scale: [x=1.0, y=1.0, z=1.0] I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): rotation: [x=0.0, y=0.0, z=0.0, w=1.0] I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): parentNodeName: null V/DartMessenger(23990): Received message from Dart over channel 'arcore_flutter_plugin_0' V/DartMessenger(23990): Deferring to registered handler to process message. I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): addArCoreNode I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): dartType: ArCoreNode I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): name: swn_ducrZ\ps
jac
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): shape: dartType: ArCoreCube
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): radius: null
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): size: [x=0.5, y=0.5, z=0.5]
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): height: null
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): material: color: 2017625844
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): argb: [120, 66, 134, 244]
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): texture: null
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): metallic: 1.0
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): roughness: null
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): reflectance: null
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): obcject3DFileName: null
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): objectUrl: null
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): position: [x=-0.5, y=0.5, z=-3.5]
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): scale: [x=1.0, y=1.0, z=1.0]
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): rotation: [x=0.0, y=0.0, z=0.0, w=1.0]
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): parentNodeName: null
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): dartType: ArCoreNode
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): name: swn_ducrZ\psjac I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): shape: dartType: ArCoreCube I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): radius: null I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): size: [x=0.5, y=0.5, z=0.5] I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): height: null I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): material: color: 2017625844 I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): argb: [120, 66, 134, 244] I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): texture: null I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): metallic: 1.0 I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): roughness: null I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): reflectance: null I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): obcject3DFileName: null I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): objectUrl: null I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): position: [x=-0.5, y=0.5, z=-3.5] I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): scale: [x=1.0, y=1.0, z=1.0] I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): rotation: [x=0.0, y=0.0, z=0.0, w=1.0] I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23990): parentNodeName: null V/InputMethodManager(23990): Not IME target window, ignoring D/SurfaceView(23990): onWindowVisibilityChanged(0) true com.google.ar.sceneform.ArSceneView{b1bfb33 V.E...... ......I. 0,0-0,0} of ViewRootImpl@3fab420[MainActivity] D/ViewRootImpl@3fab420[MainActivity](23990): Relayout returned: old=[0,0][1080,2051] new=[0,0][1080,2051] result=0x7 surface={true 478673125376} changed=true D/OpenGLRenderer(23990): eglCreateWindowSurface = 0x6f5788ed80, 0x6f73244010 I/com.difrancescogianmarco.arcore_flutter_plugin.RenderableCustomFactory(23990): material not null I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): inserted otdbhfYwck_yqsdY I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): addNodeToSceneWithGeometry: NOT PARENT_NODE_NAME I/com.difrancescogianmarco.arcore_flutter_plugin.RenderableCustomFactory(23990): material not null I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): inserted swn_ducrZ\ps
jac
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): addNodeToSceneWithGeometry: NOT PARENT_NODE_NAME
D/ViewRootImpl@3fab420MainActivity: Relayout returned: old=[0,0][1080,2051] new=[0,0][1080,2051] result=0x3 surface={true 478673125376} changed=false
D/ViewRootImpl@3fab420MainActivity: MSG_RESIZED_REPORT: frame=[0,0][1080,2051] ci=[0,0][0,0] vi=[0,0][0,0] or=1
I/com.difrancescogianmarco.arcore_flutter_plugin.RenderableCustomFactory(23990): material not null
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): inserted bacjfqlelY^fow[_
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): addNodeToSceneWithGeometry: NOT PARENT_NODE_NAME
D/ViewRootImpl@a3715afMainActivity: MSG_WINDOW_FOCUS_CHANGED 0 1
D/InputMethodManager(23990): prepareNavigationBarInfo() DecorView@dc406b7[MainActivity]
D/InputMethodManager(23990): getNavigationBarColor() -855310
D/InputTransport(23990): Input channel destroyed: fd=88
D/ViewRootImpl@a3715afMainActivity: stopped(false) old=false
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): onActivityResumed
I/third_party/arcore/ar/core/android/sdk/session_create.cc(23990): Entering ArSession_create
I/third_party/arcore/ar/core/android/sdk/session_create.cc(23990): ARCore Version: APK version code: 190826056
I/third_party/arcore/ar/core/android/sdk/session_create.cc(23990): ARCore Version: SDK build name: 1.8
I/native (23990): version_check.cc:23 ARCore Version: APK version:1.12.190826056
I/native (23990): version_check.cc:24 ARCore Version: emulated SDK version:1.8.190310000
I/third_party/arcore/ar/core/android/sdk/session_create.cc(23990): Dynamite load ok.
I/third_party/arcore/java/com/google/vr/dynamite/client/native/dynamite_client.cc(23990): Attempting to load native library arcore_c from package com.google.ar.core
I/third_party/arcore/java/com/google/vr/dynamite/client/native/dynamite_client.cc(23990): Dynamite::LoadNativeRemoteLibrary handle=-4429280027413771307
I/native (23990): session_create_implementation.cc:65 Entering createImplementationWithFeaturesAndSettings. ARCore SDK version: [1.8.190310000].
V/third_party/redwood/base/jni_common/jni_helper.cc(23990): JniHelper: attached thread (Called from line 300).
I/native (23990): session_create_implementation_shared.cc:767 Persistent online recalibration is enabled by Phenotype.
I/native (23990): online_calibration_manager.cc:53 OnlineCalibrationManager: Could not open /data/user/0/com.difrancescogianmarco.arcore_flutter_plugin_example/cache/arcore-online-recalibration for reading.
I/native (23990): feature_provider.cc:82 Doing adaptive frequency feature extraction using KLT.
I/native (23990): device_profile_conversions.cc:143 used_active_calibration: 2
I/native (23990): device_profile_conversions.cc:143 used_active_calibration: 2
I/native (23990): session_create_implementation_shared.cc:944 Datasource created with timeout = 4s, should_wait = false
I/native (23990): android_camera.cc:141 Camera start operation timeout set to 4000 ms.
I/native (23990): android_camera.cc:1644 Initializing camera manager.
D/VendorTagDescriptor(23990): addVendorDescriptor: vendor tag id 3854507339 added
I/native (23990): android_camera.cc:1669 Camera manager initialized successfully with 2 cameras.
I/native (23990): android_sensors.cc:82 Using uncalibrated accelerometer.
I/native (23990): android_sensors.cc:120 Using uncalibrated magnetometer.
W/native (23990): android_sensors.cc:132 Could not find pressure sensor.
I/native (23990): android_platform_checks.cc:194 IsZeroRotationLandscape = false
I/native (23990): device_profile_conversions.cc:143 used_active_calibration: 2
I/native (23990): create_pursuit_tracker.cc:18 AugmentedRegion downsample mode from Phenotype: true
I/native (23990): session_create_implementation_shared.cc:1170 CPU Image enable frame delay to compensate delay: true
I/native (23990): legacy_calibration_provider_helpers.cc:96 Legacy IMU sigma values are used
I/native (23990): config_helpers.cc:208 Failed to find IMU intrinsic covariance matrix in profile for id: 100
I/native (23990): config_helpers.cc:61 Does not find camera intrinsic covariance matrix in profile for id 0
I/native (23990): config_helpers.cc:134 Does not find extrinsic covariance matrix in profile for IMU id 100
I/native (23990): vio_helper.cc:34 Use calibrated IMU scale factors.
I/native (23990): vio_helper.cc:46 Use calibrated IMU misalignment factors.
I/native (23990): feature_matcher_and_filter.cc:88 Enabled the robustification to large-sized and fast-moving objects on this mono-camera device.
I/native (23990): android_camera.cc:141 Camera start operation timeout set to 4000 ms.
I/native (23990): android_camera.cc:1644 Initializing camera manager.
I/native (23990): android_camera.cc:1669 Camera manager initialized successfully with 2 cameras.
I/native (23990): android_camera.cc:675 Camera 1: State CLOSED: Reset cleanly got to CLOSED state.
I/native (23990): android_camera.cc:675 Camera 0: State CLOSED: Reset cleanly got to CLOSED state.
W/_plugin_exampl(23990): Accessing hidden field Ljava/nio/Buffer;->address:J (light greylist, reflection)
W/ARCore-ContextUtils(23990): The API key for use with the Google AR service could not be obtained!
D/NetworkSecurityConfig(23990): No Network Security Config specified, using platform default
I/tflite (23990): Initialized TensorFlow Lite runtime.
I/native (23990): planar_target_tracking_manager.h:109 Config of PlanarTargetTrackingManager:
I/native (23990): -pose_refinement_with_detection_interval_ns: 0
I/native (23990): -min_interval_between_detections_ns: 500000000
I/native (23990): -filter_parallax: false
I/native (23990): -filter_result: true
I/native (23990): -multiple_targets: true
I/native (23990): -mini_detection: true
I/native (23990): -tracking_mode: 0
I/native (23990): session_create_implementation.cc:251 createImplementationWithFeaturesAndSettings returning OK.
W/_plugin_exampl(23990): Accessing hidden method Landroid/media/Image;->()V (light greylist, linking)
I/third_party/arcore/ar/core/android/sdk/arimage_jni.cc(23990): Loading AImage symbols
I/third_party/arcore/ar/core/android/sdk/image_metadata_jni.cc(23990): Loading ACameraMetadata symbols
I/native (23990): device_provider.cc:1606 Identified device type: kA70q
W/System.err(23990): java.lang.NoSuchFieldError: no "J" field "nativeHandle" in class "Lcom/google/ar/core/Session;" or its superclasses
W/System.err(23990): at com.google.ar.sceneform.ArSceneView.nativeReportEngineType(Native Method)
W/System.err(23990): at com.google.ar.sceneform.ArSceneView.reportEngineType(SourceFile:159)
W/System.err(23990): at com.google.ar.sceneform.ArSceneView.resumeSession(SourceFile:47)
W/System.err(23990): at com.google.ar.sceneform.ArSceneView.resume(SourceFile:37)
W/System.err(23990): at com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView.onResume(ArCoreView.kt:200)
W/System.err(23990): at com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView$setupLifeCycle$1.onActivityResumed(ArCoreView.kt:102)
W/System.err(23990): at android.app.Application.dispatchActivityResumed(Application.java:264)
W/System.err(23990): at android.app.Activity.onResume(Activity.java:1403)
W/System.err(23990): at io.flutter.app.FlutterActivity.onResume(FlutterActivity.java:100)
W/System.err(23990): at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1416)
W/System.err(23990): at android.app.Activity.performResume(Activity.java:7585)
W/System.err(23990): at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4018)
W/System.err(23990): at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4058)
W/System.err(23990): at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:51)
W/System.err(23990): at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:145)
W/System.err(23990): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)
W/System.err(23990): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1960)
W/System.err(23990): at android.os.Handler.dispatchMessage(Handler.java:106)
W/System.err(23990): at android.os.Looper.loop(Looper.java:214)
W/System.err(23990): at android.app.ActivityThread.main(ActivityThread.java:7094)
W/System.err(23990): at java.lang.reflect.Method.invoke(Native Method)
W/System.err(23990): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
W/System.err(23990): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:975)
E/third_party/arcore/ar/sceneform/android/jni/arsceneview_jni.cc(23990): nativeReportEngineType: Couldn't get session's nativeHandle
I/native (23990): session.cc:925 Entering Session::Resume.
I/native (23990): android_camera.cc:675 Camera 0: State CLOSED: Reset cleanly got to CLOSED state.
I/CameraManagerGlobal(23990): Connecting to camera service
D/VendorTagDescriptor(23990): addVendorDescriptor: vendor tag id 3854507339 added
I/native (23990): android_sensors.cc:150 Starting thread.
I/native (23990): cameras.cc:1118 Selected camera 0 stream 0 as feature extraction stream.
I/native (23990): android_sensors.cc:28 Gyro min delay 4.808ms requesting 5ms
I/native (23990): android_sensors.cc:28 Accel min delay 4.808ms requesting 5ms
I/native (23990): session.cc:1055 Session::ResumeWithAnalytics returning OK.
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23990): Searching for surfaces
I/native (23990): cameras.cc:1269 Camera changed state from CLOSED to OPEN: Camera 0: State CLOSED: Camera device opened successfully.
I/native (23990): cameras.cc:1269 Camera changed state from OPEN to CAPTURING: Started capture session.
V/LifecycleChannel(23990): Sending AppLifecycleState.resumed message.
V/DartMessenger(23990): Sending message with callback over channel 'flutter/lifecycle'
D/ViewRootImpl@a3715afMainActivity: MSG_WINDOW_FOCUS_CHANGED 1 1
D/InputMethodManager(23990): prepareNavigationBarInfo() DecorView@dc406b7[MainActivity]
D/InputMethodManager(23990): getNavigationBarColor() -855310
D/InputMethodManager(23990): prepareNavigationBarInfo() DecorView@dc406b7[MainActivity]
D/InputMethodManager(23990): getNavigationBarColor() -855310
V/InputMethodManager(23990): Starting input: tba=com.difrancescogianmarco.arcore_flutter_plugin_example ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
D/InputMethodManager(23990): startInputInner - Id : 0
I/InputMethodManager(23990): startInputInner - mService.startInputOrWindowGainedFocus
D/InputTransport(23990): Input channel constructed: fd=124
E/native (23990): session.cc:1784 Invalid ray produced by view data!
I/native (23990): timebase_helpers.cc:168 Timebase offset intialized to 0
E/native (23990): session.cc:1784 Invalid ray produced by view data!
W/native (23990): gyro_helper.cc:44 Gyro samples do not cover << [ 0 ; 93983.3520211269933 ] sec. Use identity R. Gyro samples cover [ 93983.1930698000069 ; 93983.4843105809996 ] sec.
I/native (23990): vio_initializer.cc:693 Not accepting frame as first BA keyframe.
E/native (23990): session.cc:1784 Invalid ray produced by view data!
E/native (23990): session.cc:1784 Invalid ray produced by view data!
E/native (23990): session.cc:1784 Invalid ray produced by view data!
I/native (23990): vio_initializer.cc:693 Not accepting frame as first BA keyframe.
E/native (23990): session.cc:1784 Invalid ray produced by view data!
E/native (23990): session.cc:1784 Invalid ray produced by view data!
I/native (23990): vio_initializer.cc:693 Not accepting frame as first BA keyframe.
E/native (23990): session.cc:1784 Invalid ray produced by view data!
E/native (23990): session.cc:1784 Invalid ray produced by view data!
E/native (23990): session.cc:1784 Invalid ray produced by view data!
E/native (23990): session.cc:1784 Invalid ray produced by view data!
E/native (23990): session.cc:1784 Invalid ray produced by view data!
E/native (23990): session.cc:1784 Invalid ray produced by view data!
E/native (23990): session.cc:1784 Invalid ray produced by view data!
E/native (23990): session.cc:1784 Invalid ray produced by view data!
E/native (23990): session.cc:1784 Invalid ray produced by view data!
E/native (23990): session.cc:1784 Invalid ray produced by view data!
E/native (23990): session.cc:1784 Invalid ray produced by view data!
E/native (23990): session.cc:1784 Invalid ray produced by view data!
I/native (23990): ba_initialization_helpers.cc:371 Number of landmarks before eliminating short tracks 940, and after elimination 672
I/native (23990): ba_initialization_helpers.cc:518 num_frames_for_dsolver: 4
I/native (23990): ba_initialization_helpers.cc:519 number_of_landmarks_for_dsolver: 50
I/native (23990): ba_initialization_helpers.cc:526 maximum_cam_meas_displacement_squared: 6.09747e-05
W/native (23990): ba_initialization_helpers.cc:534 Maximum displacement of landmark measurements: 0.00780863
W/native (23990): ba_initialization_helpers.cc:536 Motion is close to static motion, use pure propagation to initialize small scale BA
I/native (23990): ba_initialization.cc:606 Deterministic initialization
I/native (23990): ba_initialization_helpers.cc:675 Num. landmarks before pruning 672
I/native (23990): ba_initialization_helpers.cc:676 Num. landmarks uninitialized: 0
I/native (23990): ba_initialization_helpers.cc:688 Num. landmarks initialized after pruning 60
I/native (23990): ba_initialization_helpers.cc:690 Num. landmarks uninitialized: 612
I/native (23990): ba_initialization.cc:175 Intrinsic vector size of the camera 0 is 7
I/native (23990): ba_initialization.cc:366 Initializer did not converge: Maximum number of iterations reached. Number of iterations: 18.
I/native (23990): ba_initialization_helpers.h:168 Number of measurements used in BA initialization for temporal landmarks: 240
I/native (23990): ba_initialization_helpers.h:170 Number of good measurements (i.e., reprojection errors <= 3 pixels) in BA initialization for temporal landmarks: 238
E/native (23990): session.cc:1784 Invalid ray produced by view data!
I/native (23990): visual_inertial_filter.cc:773 VIO sliding window is initialized, with sliding window size 4
E/native (23990): session.cc:1784 Invalid ray produced by view data!
E/native (23990): session.cc:1784 Invalid ray produced by view data!
W/native (23990): map_utils.cc:409 MapManager: Overwriting rolling shutter time from 0.0310976 to 0.0310976
E/native (23990): session.cc:1784 Invalid ray produced by view data!
E/native (23990): session.cc:1784 Invalid ray produced by view data!
E/native (23990): session.cc:1784 Invalid ray produced by view data!
Im trying to use this plugin with:
import 'package:qrscan/qrscan.dart' as scanner;
But when i run:
String barcode = await scanner.scan();
The app crashes, while if i dont put:
ArCoreView(
onArCoreViewCreated: _onArCoreViewCreated,
enableTapRecognizer: true,
)
In my code then it works.
How can i solve this? thank you!
That's the error i get:
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView( 9820): onActivityPaused
I/native ( 9820): session.cc:1154 Entering Session::Pause.
W/native ( 9820): calibration_convergence_detector_utils.cc:143 Failed to get calibration qualification statistics: States are empty.
I/native ( 9820): online_calibration_manager.cc:126 OnlineCalibrationManager: Discarding the new online recalibration estimates.
I/native ( 9820): cameras.cc:1309 Camera 0 changed state CAPTURING->STOPPING; Capture session stopping... i=2
E/ACameraDevice( 9820): onDeviceIdle sending state cb
I/native ( 9820): android_camera.cc:1617 [Camera=0; State=STOPPING] Camera completed repeating capture sequence 0
I/native ( 9820): logger.h:28 CameraMetrics: LastCaptureComplete: 233.815312ms
I/native ( 9820): logger.h:28 CameraMetrics: CloseCaptureSession: 206.000938ms
I/native ( 9820): cameras.cc:1309 Camera 0 changed state STOPPING->OPEN; Camera stopped. i=3
I/native ( 9820): logger.h:28 CameraMetrics: CloseCamera: 111.259687ms
I/native ( 9820): cameras.cc:1309 Camera 0 changed state OPEN->CLOSED; Camera device closed successfully. i=4
I/native ( 9820): logger.h:28 DataSourceMetrics: kStopImageSubSystem: 551.795989ms
I/native ( 9820): session.cc:1239 Session::PauseWithAnalytics returning OK.
I/Choreographer( 9820): Skipped 33 frames! The application may be doing too much work on its main thread.
W/ActivityThread( 9820): handleWindowVisibility: no activity for token android.os.BinderProxy@edfedec
D/AndroidRuntime( 9820): Shutting down VM
E/AndroidRuntime( 9820): FATAL EXCEPTION: main
E/AndroidRuntime( 9820): Process: com.example.flutterapp4, PID: 9820
E/AndroidRuntime( 9820): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.flutterapp4/com.shinow.qrscan.SecondActivity}: java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter savedInstanceState
E/AndroidRuntime( 9820): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3276)
E/AndroidRuntime( 9820): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3415)
E/AndroidRuntime( 9820): at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
E/AndroidRuntime( 9820): at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
E/AndroidRuntime( 9820): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
E/AndroidRuntime( 9820): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2022)
E/AndroidRuntime( 9820): at android.os.Handler.dispatchMessage(Handler.java:107)
E/AndroidRuntime( 9820): at android.os.Looper.loop(Looper.java:359)
E/AndroidRuntime( 9820): at android.app.ActivityThread.main(ActivityThread.java:7418)
E/AndroidRuntime( 9820): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 9820): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
E/AndroidRuntime( 9820): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935)
E/AndroidRuntime( 9820): Caused by: java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter savedInstanceState
E/AndroidRuntime( 9820): at com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView$setupLifeCycle$1.onActivityCreated(Unknown Source:7)
E/AndroidRuntime( 9820): at android.app.Application.dispatchActivityCreated(Application.java:373)
E/AndroidRuntime( 9820): at android.app.Activity.dispatchActivityCreated(Activity.java:1202)
E/AndroidRuntime( 9820): at android.app.Activity.onCreate(Activity.java:1475)
E/AndroidRuntime( 9820): at androidx.core.app.ComponentActivity.onCreate(ComponentActivity.java:81)
E/AndroidRuntime( 9820): at androidx.activity.ComponentActivity.onCreate(ComponentActivity.java:149)
E/AndroidRuntime( 9820): at androidx.fragment.app.FragmentActivity.onCreate(FragmentActivity.java:313)
E/AndroidRuntime( 9820): at androidx.appcompat.app.AppCompatActivity.onCreate(AppCompatActivity.java:106)
E/AndroidRuntime( 9820): at com.shinow.qrscan.SecondActivity.onCreate(SecondActivity.java:36)
E/AndroidRuntime( 9820): at android.app.Activity.performCreate(Activity.java:7802)
E/AndroidRuntime( 9820): at android.app.Activity.performCreate(Activity.java:7791)
E/AndroidRuntime( 9820): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1307)
E/AndroidRuntime( 9820): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3251)
Hi,
is it possible to load from the network, store the usdz and the gltf and pass the path or object to the library to render on the ARKit or ARCore to display it?
I'm trying to implement this plugin and my code is very similar to the example given.
However, whenever I start the app, I get this output. The line I think matters the most is: java.lang.IllegalStateException: Couldn't create Engine
flutter doctor
says there are no issues.
Please help, I really need this to work. I've looked everywhere and couldn't find a solution. Thank you!
Here's some more info:
Operating System: Manjaro i3 18.04
CPU: Intel Core i3 (this might be the issue)
Flutter Version: v1.5.4
Android SDK Version: 28.0.3
Android Studio(which I don't use): v3.4
Didn't find any reference to it, so can you guys help me know if this plugin support iOS Platform? Thanks
Launching lib\main.dart on SM G610F in debug mode...
Running Gradle task 'assembleDebug'...
√ Built build\app\outputs\apk\debug\app-debug.apk.
D/FlutterActivity(23104): Using the launch theme as normal theme.
D/FlutterActivityAndFragmentDelegate(23104): Setting up FlutterEngine.
D/FlutterActivityAndFragmentDelegate(23104): No preferred FlutterEngine was provided. Creating a new FlutterEngine for this FlutterFragment.
D/FlutterActivityAndFragmentDelegate(23104): Attaching FlutterEngine to the Activity that owns this Fragment.
D/FlutterView(23104): Attaching to a FlutterEngine: io.flutter.embedding.engine.FlutterEngine@e9da906
D/FlutterActivityAndFragmentDelegate(23104): Executing Dart entrypoint: main, and sending initial route: /
Debug service listening on ws://127.0.0.1:51991/R2Xj6XJGFmU=/ws
Syncing files to device SM G610F...
V/Surface (23104): sf_framedrop debug : 0x4f4c, game : false, logging : 0
I/ArCoreViewFactory(23104): 0
I/ArCoreViewFactory(23104): {type=standard}
D/SurfaceView(23104): setPackageUsesOwnResolution() (Java SurfaceView) for unknown app: 0x0 (false)
I/Filament(23104): Filament library loaded.
I/Filament(23104): FEngine (32 bits) created at 0xb9b80000 (threading is enabled)
D/Filament(23104): FEngine resolved backend: OpenGL
I/SceneView(23104): Optional library com.google.ar.sceneform.animation not present. Sceneform animation disabled
D/InputTransport(23104): Input channel constructed: fd=99
D/ViewRootImpl@3e62266MainActivity: setView = DecorView@85be9a7[MainActivity] TM=true MM=false
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): arScenViewInit
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): onActivityPaused
I/flutter (23104): {dartType: ArCoreNode, shape: {radius: 0.2, dartType: ArCoreSphere, materials: [{color: [255, 103, 58, 183]}]}, position: {x: 0.0, y: 0.0, z: -1.0}, name: qul[giyqZ[jhqid, children: []} I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): addArCoreNode I/flutter (23104): {dartType: ArCoreNode, shape: {size: {x: 1.0, y: 1.0, z: 1.0}, dartType: ArCoreCube, materials: [{color: [255, 233, 30, 99], metallic: 1.0}]}, position: {x: -0.5, y: -0.5, z: -3.0}, name: dmiulj\_olYtmdf^, children: []} I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): dartType: ArCoreNode I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): name: qul[giyqZ
[jhqid
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): shape: dartType: ArCoreSphere
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): radius: 0.2
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): size: [x=0.0, y=0.0, z=0.0]
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): height: null
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): material: color: -10011977
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): argb: [255, 103, 58, 183]
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): textureBytesLength: null
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): metallic: null
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): roughness: null
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): reflectance: null
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): obcject3DFileName: null
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): objectUrl: null
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): position: [x=0.0, y=0.0, z=-1.0]
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): scale: [x=1.0, y=1.0, z=1.0]
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): rotation: [x=0.0, y=0.0, z=0.0, w=1.0]
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): parentNodeName: null
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): dartType: ArCoreNode
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): name: qul[giyqZ[jhqid I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): shape: dartType: ArCoreSphere I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): radius: 0.2 I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): size: [x=0.0, y=0.0, z=0.0] I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): height: null I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): material: color: -10011977 I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): argb: [255, 103, 58, 183] I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): textureBytesLength: null I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): metallic: null I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): roughness: null I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): reflectance: null I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): obcject3DFileName: null I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): objectUrl: null I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): position: [x=0.0, y=0.0, z=-1.0] I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): scale: [x=1.0, y=1.0, z=1.0] I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): rotation: [x=0.0, y=0.0, z=0.0, w=1.0] I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): parentNodeName: null I/flutter (23104): {dartType: ArCoreNode, shape: {height: 0.4, radius: 0.3, dartType: ArCoreCylinder, materials: [{color: [255, 76, 175, 80], reflectance: 1.0}]}, position: {x: 0.0, y: -2.5, z: -3.0}, name: alojttj]Zop
_ptb, children: []}
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): addArCoreNode
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): dartType: ArCoreNode
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): name: dmiulj_olYtmdf^
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): shape: dartType: ArCoreCube
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): radius: null
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): size: [x=1.0, y=1.0, z=1.0]
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): height: null
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): material: color: -1499549
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): argb: [255, 233, 30, 99]
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): textureBytesLength: null
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): metallic: 1.0
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): roughness: null
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): reflectance: null
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): obcject3DFileName: null
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): objectUrl: null
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): position: [x=-0.5, y=-0.5, z=-3.0]
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): scale: [x=1.0, y=1.0, z=1.0]
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): rotation: [x=0.0, y=0.0, z=0.0, w=1.0]
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): parentNodeName: null
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): dartType: ArCoreNode
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): name: dmiulj_olYtmdf^
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): shape: dartType: ArCoreCube
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): radius: null
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): size: [x=1.0, y=1.0, z=1.0]
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): height: null
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): material: color: -1499549
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): argb: [255, 233, 30, 99]
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): textureBytesLength: null
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): metallic: 1.0
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): roughness: null
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): reflectance: null
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): obcject3DFileName: null
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): objectUrl: null
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): position: [x=-0.5, y=-0.5, z=-3.0]
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): scale: [x=1.0, y=1.0, z=1.0]
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): rotation: [x=0.0, y=0.0, z=0.0, w=1.0]
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): parentNodeName: null
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): addArCoreNode
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): dartType: ArCoreNode
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): name: alojttj]Zop_ptb I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): shape: dartType: ArCoreCylinder I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): radius: 0.3 I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): size: [x=0.0, y=0.0, z=0.0] I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): height: 0.4 I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): material: color: -11751600 I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): argb: [255, 76, 175, 80] I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): textureBytesLength: null I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): metallic: null I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): roughness: null I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): reflectance: 1.0 I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): obcject3DFileName: null I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): objectUrl: null I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): position: [x=0.0, y=-2.5, z=-3.0] I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): scale: [x=1.0, y=1.0, z=1.0] I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): rotation: [x=0.0, y=0.0, z=0.0, w=1.0] I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): parentNodeName: null I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): dartType: ArCoreNode I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): name: alojttj]Zop
_ptb
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): shape: dartType: ArCoreCylinder
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): radius: 0.3
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): size: [x=0.0, y=0.0, z=0.0]
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): height: 0.4
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): material: color: -11751600
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): argb: [255, 76, 175, 80]
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): textureBytesLength: null
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): metallic: null
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): roughness: null
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): reflectance: 1.0
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): obcject3DFileName: null
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): objectUrl: null
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): position: [x=0.0, y=-2.5, z=-3.0]
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): scale: [x=1.0, y=1.0, z=1.0]
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): rotation: [x=0.0, y=0.0, z=0.0, w=1.0]
I/com.difrancescogianmarco.arcore_flutter_plugin.NodeFactory(23104): parentNodeName: null
V/InputMethodManager(23104): Not IME target window, ignoring
D/SurfaceView(23104): onWindowVisibilityChanged(0) true ba85fb6 of ViewRootImpl@3e62266[MainActivity]
D/ViewRootImpl@3e62266MainActivity: dispatchAttachedToWindow
V/Surface (23104): sf_framedrop debug : 0x4f4c, game : false, logging : 0
D/ViewRootImpl@3e62266MainActivity: Relayout returned: old=[0,0][0,0] new=[0,0][1080,1710] result=0x7 surface={valid=true 3143452672} changed=true
D/mali_winsys(23104): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000, [1080x1710]-format:1
D/OpenGLRenderer(23104): eglCreateWindowSurface = 0xb812b2d0, 0xbb5d4808
D/SurfaceView(23104): setPackageUsesOwnResolution() (Java SurfaceView) for com.aeologic.arkit: 1080x1710 (false)
D/SurfaceView(23104): BG show() Surface(name=Background for - SurfaceView - Sys2037:com.aeologic.arkit/com.aeologic.arkit.MainActivity@ba85fb6@0) com.google.ar.sceneform.ArSceneView{ba85fb6 V.E...... ......ID 0,0-1080,1710}
V/Surface (23104): sf_framedrop debug : 0x4f4c, game : false, logging : 0
D/SurfaceView(23104): surfaceCreated 1 #8 com.google.ar.sceneform.ArSceneView{ba85fb6 V.E...... ......ID 0,0-1080,1710}
D/SurfaceView(23104): surfaceChanged (1080,1710) 1 #8 com.google.ar.sceneform.ArSceneView{ba85fb6 V.E...... ......ID 0,0-1080,1710}
D/ViewRootImpl@9be5d48MainActivity: MSG_WINDOW_FOCUS_CHANGED 0
I/com.difrancescogianmarco.arcore_flutter_plugin.RenderableCustomFactory(23104): material not null
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): inserted alojttj]Zop_ptb I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): addNodeToSceneWithGeometry: NOT PARENT_NODE_NAME I/com.difrancescogianmarco.arcore_flutter_plugin.RenderableCustomFactory(23104): material not null I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): inserted dmiulj\_olYtmdf^ I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): addNodeToSceneWithGeometry: NOT PARENT_NODE_NAME I/com.difrancescogianmarco.arcore_flutter_plugin.RenderableCustomFactory(23104): material not null I/zygote (23104): Do partial code cache collection, code=29KB, data=29KB I/zygote (23104): After code cache collection, code=29KB, data=29KB I/zygote (23104): Increasing code cache capacity to 128KB I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): inserted qul[giyqZ
[jhqid
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): addNodeToSceneWithGeometry: NOT PARENT_NODE_NAME
D/ViewRootImpl@3e62266MainActivity: Relayout returned: old=[0,0][1080,1710] new=[0,0][1080,1710] result=0x3 surface={valid=true 3143452672} changed=false
D/ViewRootImpl@3e62266MainActivity: MSG_RESIZED_REPORT: frame=Rect(0, 0 - 1080, 1710) ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1
D/ViewRootImpl@9be5d48MainActivity: MSG_WINDOW_FOCUS_CHANGED 1
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): onActivityResumed
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): onResume()
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): session is null
I/com.difrancescogianmarco.arcore_flutter_plugin.utils.ArCoreUtils(23104): INSTALL REQUESTED
D/ViewRootImpl@9be5d48MainActivity: Relayout returned: old=[0,0][1080,1920] new=[0,0][1080,1920] result=0x1 surface={valid=true 3245836288} changed=false
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(23104): onActivityPaused
D/ViewRootImpl@9be5d48MainActivity: MSG_WINDOW_FOCUS_CHANGED 0
D/AndroidRuntime(23104): Shutting down VM
E/AndroidRuntime(23104): FATAL EXCEPTION: main
E/AndroidRuntime(23104): Process: com.aeologic.arkit, PID: 23104
E/AndroidRuntime(23104): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.aeologic.arkit/com.google.ar.core.InstallActivity}: java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter savedInstanceState
E/AndroidRuntime(23104): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2974)
E/AndroidRuntime(23104): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3059)
E/AndroidRuntime(23104): at android.app.ActivityThread.-wrap11(Unknown Source:0)
E/AndroidRuntime(23104): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1724)
E/AndroidRuntime(23104): at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime(23104): at android.os.Looper.loop(Looper.java:164)
E/AndroidRuntime(23104): at android.app.ActivityThread.main(ActivityThread.java:7000)
E/AndroidRuntime(23104): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(23104): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:441)
E/AndroidRuntime(23104): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)
E/AndroidRuntime(23104): Caused by: java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter savedInstanceState
E/AndroidRuntime(23104): at com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView$setupLifeCycle$1.onActivityCreated(Unknown Source:7)
E/AndroidRuntime(23104): at android.app.Application.dispatchActivityCreated(Application.java:221)
E/AndroidRuntime(23104): at android.app.Activity.onCreate(Activity.java:1071)
E/AndroidRuntime(23104): at com.google.ar.core.InstallActivity.onCreate(InstallActivity.java:4)
E/AndroidRuntime(23104): at android.app.Activity.performCreate(Activity.java:7258)
E/AndroidRuntime(23104): at android.app.Activity.performCreate(Activity.java:7249)
E/AndroidRuntime(23104): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1222)
E/AndroidRuntime(23104): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2927)
E/AndroidRuntime(23104): ... 9 more
Lost connection to device.
D/FlutterActivity(23180): Using the launch theme as normal theme.
D/FlutterActivityAndFragmentDelegate(23180): Setting up FlutterEngine.
D/FlutterActivityAndFragmentDelegate(23180): No preferred FlutterEngine was provided. Creating a new FlutterEngine for this FlutterFragment.
D/FlutterActivityAndFragmentDelegate(23180): Attaching FlutterEngine to the Activity that owns this Fragment.
D/FlutterView(23180): Attaching to a FlutterEngine: io.flutter.embedding.engine.FlutterEngine@e9da906
D/FlutterActivityAndFragmentDelegate(23180): Executing Dart entrypoint: main, and sending initial route: /
I/flutter (23180): {dartType: ArCoreNode, shape: {radius: 0.2, dartType: ArCoreSphere, materials: [{color: [255, 103, 58, 183]}]}, position: {x: 0.0, y: 0.0, z: -1.0}, name: g^YYnbakv[y]hvbc, children: []}
I/flutter (23180): {dartType: ArCoreNode, shape: {size: {x: 1.0, y: 1.0, z: 1.0}, dartType: ArCoreCube, materials: [{color: [255, 233, 30, 99], metallic: 1.0}]}, position: {x: -0.5, y: -0.5, z: -3.0}, name: ltbYoteg[xvZ`vt, children: []}
I/flutter (23180): {dartType: ArCoreNode, shape: {height: 0.4, radius: 0.3, dartType: ArCoreCylinder, materials: [{color: [255, 76, 175, 80], reflectance: 1.0}]}, position: {x: 0.0, y: -2.5, z: -3.0}, name: pxasm^h_un
vglf, children: []}
Could not update files on device: HttpException: Connection closed before full header was received, uri = http://127.0.0.1:51991/R2Xj6XJGFmU=/
how can add text is there any function for that like function ArCoreNode for shape..
how can improve or add new function to plugin ......
Sample Project not working crashes when opening any AR screen with stack trace
I/hwaps ( 570): JNI_OnLoad
V/AudioManager( 570): playSoundEffect effectType: 0
E/BufferQueueProducer( 570): [] Can not get hwsched service
D/HwCust ( 570): Create obj success use class android.app.HwCustHwWallpaperManagerImpl
I/Filament( 570): FEngine (64 bits) created at 0x7504400000 (threading is enabled)
D/Filament( 570): FEngine resolved backend: OpenGL
I/SceneView( 570): Optional library com.google.ar.sceneform.animation not present. Sceneform animation disabled
D/HwGalleryCacheManagerImpl( 570): mIsEffect:false
D/HwRTBlurUtils( 570): check blur style for HwPhoneWindow, themeResId : 0x0103023e, context : android.app.Presentation$3@523c270, Nhwext : 0, get Blur : disable with , null
D/HwRTBlurUtils( 570): check blur style for HwPhoneWindow, themeResId : 0x0103023e, context : android.app.Presentation$3@523c270, Nhwext : 0, get Blur : disable with , null
D/OpenGLRenderer( 570): HWUI Binary is enabled
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView( 570): arScenViewInit
I/HwApiCacheMangerEx( 570): apicache pi null
I/PressGestureDetector( 570): onAttached begin
I/PressGestureDetector( 570): onAttached end
I/PressGestureDetector( 570): HiTouch restricted: AboardArea.
D/mali_winsys( 570): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, egl_color_buffer_format *, EGLBoolean) returns 0x3000
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView( 570): onActivityPaused
D/OpenGLRenderer( 570): HWUI Binary is enabled
D/HwCust ( 570): Create obj success use class android.app.HwCustActivityImpl
D/HwCust ( 570): Create obj success use class android.app.HwCustHwWallpaperManagerImpl
V/ActivityThread( 570): ActivityThread,callActivityOnCreate
D/AndroidRuntime( 570): Shutting down VM
E/AndroidRuntime( 570): FATAL EXCEPTION: main
E/AndroidRuntime( 570): Process: com.difrancescogianmarco.arcore_flutter_plugin_example, PID: 570
E/AndroidRuntime( 570): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.difrancescogianmarco.arcore_flutter_plugin_example/com.google.ar.core.InstallActivity}: java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter savedInstanceState
E/AndroidRuntime( 570): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3297)
E/AndroidRuntime( 570): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3405)
E/AndroidRuntime( 570): at android.app.ActivityThread.-wrap12(Unknown Source:0)
E/AndroidRuntime( 570): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1994)
E/AndroidRuntime( 570): at android.os.Handler.dispatchMessage(Handler.java:108)
E/AndroidRuntime( 570): at android.os.Looper.loop(Looper.java:166)
E/AndroidRuntime( 570): at android.app.ActivityThread.main(ActivityThread.java:7523)
E/AndroidRuntime( 570): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 570): at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
E/AndroidRuntime( 570): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)
E/AndroidRuntime( 570): Caused by: java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter savedInstanceState
E/AndroidRuntime( 570): at com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView$setupLifeCycle$1.onActivityCreated(Unknown Source:7)
E/AndroidRuntime( 570): at android.app.Application.dispatchActivityCreated(Application.java:208)
E/AndroidRuntime( 570): at android.app.Activity.onCreate(Activity.java:1110)
E/AndroidRuntime( 570): at com.google.ar.core.InstallActivity.onCreate(InstallActivity.java:4)
E/AndroidRuntime( 570): at android.app.Activity.performCreate(Activity.java:7383)
E/AndroidRuntime( 570): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1218)
E/AndroidRuntime( 570): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3250)
E/AndroidRuntime( 570): ... 9 more
I/Process ( 570): Sending signal. PID: 570 SIG: 9
When it detects planes showing white dots on surfaces becomes significantly slow and crashes after a few seconds! How can I disable detection of planes?
in my flutter 1.9.1 project with android 3.5.1 i can't run the plugin! Just as I can't create sfb because sceneform has a bug. How to solve?
@giandifra I am exploring AR and your articles and repo has been helpful.
With current plugin, is it possible to:
Appreciate your response on this.
There is a way to disable shadow on materials?
Is possibile to check if the ARCore package is installed?
I'm building an app with optional AR code, but ARCore package is usually not installed.
It will also be useful to check if the device is compatible to AR core.
Thanks
I see in the example, that I can pass url of the 3d model and library will download it and display. But what if I want to manage cache by myself? I saw in docs, that I have to pass Uri in java/kotlin, how can I pass uri to file from Dart? I've only seen remote url example
"obcject3DFileName" is spelled wrong
I had tried to install the my demo_app usign the plugin ar_core_flutter on my device BQ then on Google Play Services AR, saids my device is not compatible with this versión!!, the Android System on my device is 8.1.0.
Then I try to install on Galaxy Tab A(2016) SM-T580 Android versión 8.1.0 the result was the same => 'Device is not compatible '
Hello,
Is possible to render a video with transparent background in a fixed position with the plugin?
Thank you!
Does model needs to be hosted or can we use local file in the url given below:
ArCoreReferenceNode(
objectUrl: "assets/gltf/1.gltf",
position: plane.pose.translation,
rotation: plane.pose.rotation);
Also is there any other way to load local models?
D/Dialog (17859): mIsSamsungBasicInteraction = false
D/Dialog (17859): mIsSamsungBasicInteraction = false, isMetaDataInActivity = false
I/ArCoreViewFactory(17859): 0
I/ArCoreViewFactory(17859): {type=standard}
D/SurfaceView(17859): setPackageUsesOwnResolution() (Java SurfaceView) for unknown app: 0x0 (false)
I/Filament(17859): FEngine (32 bits) created at 0xbf300000 (threading is enabled)
D/Filament(17859): Using ASurfaceTexture
D/Filament(17859): FEngine resolved backend: OpenGL
I/SceneView(17859): Optional library com.google.ar.sceneform.animation not present. Sceneform animation disabled
I/DecorView(17859): mWindow.mActivityCurrentConfig is null.
I/DecorView(17859): createDecorCaptionView >> DecorView@3e45afd[], isFloating: false, isApplication: false, hasWindowDecorCaption: false, hasWindowControllerCallback: false
D/InputTransport(17859): Input channel constructed: fd=104
D/ViewRootImpl@e93979fMainActivity: setView = DecorView@3e45afd[MainActivity] TM=true MM=false
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(17859): arScenViewInit
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(17859): onActivityPaused
V/InputMethodManager(17859): Not IME target window, ignoring
D/SurfaceView(17859): onWindowVisibilityChanged(0) true com.google.ar.sceneform.ArSceneView{49bc48e V.E...... ......I. 0,0-0,0} of ViewRootImpl@e93979f[MainActivity]
D/ViewRootImpl@e93979fMainActivity: Relayout returned: old=[0,0][720,1320] new=[0,0][720,1320] result=0x7 surface={true 3304056832} changed=true
D/mali_winsys(17859): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000, [720x1320]-format:1
D/OpenGLRenderer(17859): eglCreateWindowSurface = 0xdd6fc280, 0xc4efe808
D/SurfaceView(17859): setPackageUsesOwnResolution() (Java SurfaceView) for com.example.proj_ar: 720x1320 (false)
D/SurfaceView(17859): show() Surface(name=SurfaceView - Sys2037:com.example.proj_ar/com.example.proj_ar.MainActivity@49bc48e@0[17859])/@0x5e6fd6d com.google.ar.sceneform.ArSceneView{49bc48e V.E...... ......ID 0,0-720,1320}
D/SurfaceView(17859): surfaceCreated 1 #8 com.google.ar.sceneform.ArSceneView{49bc48e V.E...... ......ID 0,0-720,1320}
D/SurfaceView(17859): surfaceChanged (720,1320) 1 #8 com.google.ar.sceneform.ArSceneView{49bc48e V.E...... ......ID 0,0-720,1320}
D/ViewRootImpl@e93979fMainActivity: Relayout returned: old=[0,0][720,1320] new=[0,0][720,1320] result=0x3 surface={true 3304056832} changed=false
D/ViewRootImpl@e93979fMainActivity: MSG_RESIZED: frame=[0,0][720,1320] ci=[0,0][0,0] vi=[0,0][0,0] or=1
D/ViewRootImpl@6377c8cMainActivity: MSG_WINDOW_FOCUS_CHANGED 0 1
D/InputMethodManager(17859): prepareNavigationBarInfo() DecorView@ef38a1d[MainActivity]
D/InputMethodManager(17859): getNavigationBarColor() -855310
D/InputTransport(17859): Input channel destroyed: fd=94
D/ViewRootImpl@6377c8cMainActivity: stopped(false) old=false
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(17859): onActivityResumed
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(17859): onResume()
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(17859): session is null
I/com.difrancescogianmarco.arcore_flutter_plugin.utils.ArCoreUtils(17859): INSTALL REQUESTED
D/ViewRootImpl@6377c8cMainActivity: MSG_WINDOW_FOCUS_CHANGED 1 1
D/InputMethodManager(17859): prepareNavigationBarInfo() DecorView@ef38a1d[MainActivity]
D/InputMethodManager(17859): getNavigationBarColor() -855310
D/InputMethodManager(17859): prepareNavigationBarInfo() DecorView@ef38a1d[MainActivity]
D/InputMethodManager(17859): getNavigationBarColor() -855310
V/InputMethodManager(17859): Starting input: tba=com.example.proj_ar ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
D/InputMethodManager(17859): startInputInner - Id : 0
I/InputMethodManager(17859): startInputInner - mService.startInputOrWindowGainedFocus
D/InputTransport(17859): Input channel constructed: fd=111
I/com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView(17859): onActivityPaused
W/ActivityThread(17859): handleWindowVisibility: no activity for token android.os.BinderProxy@d3f00c6
D/ViewRootImpl@6377c8cMainActivity: MSG_WINDOW_FOCUS_CHANGED 0 1
D/InputMethodManager(17859): prepareNavigationBarInfo() DecorView@ef38a1d[MainActivity]
D/InputMethodManager(17859): getNavigationBarColor() -855310
D/AndroidRuntime(17859): Shutting down VM
E/AndroidRuntime(17859): FATAL EXCEPTION: main
E/AndroidRuntime(17859): Process: com.example.proj_ar, PID: 17859
E/AndroidRuntime(17859): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.proj_ar/com.google.ar.core.InstallActivity}: java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter savedInstanceState
E/AndroidRuntime(17859): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3126)
E/AndroidRuntime(17859): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3269)
E/AndroidRuntime(17859): at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
E/AndroidRuntime(17859): at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
E/AndroidRuntime(17859): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
E/AndroidRuntime(17859): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1960)
E/AndroidRuntime(17859): at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime(17859): at android.os.Looper.loop(Looper.java:214)
E/AndroidRuntime(17859): at android.app.ActivityThread.main(ActivityThread.java:7081)
E/AndroidRuntime(17859): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(17859): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
E/AndroidRuntime(17859): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)
E/AndroidRuntime(17859): Caused by: java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter savedInstanceState
E/AndroidRuntime(17859): at com.difrancescogianmarco.arcore_flutter_plugin.ArCoreView$setupLifeCycle$1.onActivityCreated(Unknown Source:7)
E/AndroidRuntime(17859): at android.app.Application.dispatchActivityCreated(Application.java:245)
E/AndroidRuntime(17859): at android.app.Activity.onCreate(Activity.java:1108)
E/AndroidRuntime(17859): at com.google.ar.core.InstallActivity.onCreate(InstallActivity.java:4)
E/AndroidRuntime(17859): at android.app.Activity.performCreate(Activity.java:7340)
E/AndroidRuntime(17859): at android.app.Activity.performCreate(Activity.java:7331)
E/AndroidRuntime(17859): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1275)
E/AndroidRuntime(17859): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3106)
E/AndroidRuntime(17859): ... 11 more
I/Process (17859): Sending signal. PID: 17859 SIG: 9
Lost connection to device.
Could not update files on device: HttpException: Connection closed before full header was received, uri = http://127.0.0.1:51572/fGe5k*******=/
Is possible to change the ARFaceModel at runtime? I didn't make it work, the texture remains always the same. Seems that a new call to arCoreFaceController.loadMesh doesn't load the new texture.
Hi Gian Franco,
thanks for your great work! It would be really helpful if the ARCore Feature to detect images from an AugmentedImageDatabase was available for flutter.
Is this on your list, or is it maybe already possible to use?
Read contributing.md (twice !!) and if you want there's a VR section there where you can add yours. Thx !
Great work first of all!
How can we render custom shapes?
Example : I build a 3D model of a product. Is it possible to import it?
Also, is there any implementation of attaching the node to a scene?
Hi, in the remote object feature, the official documentation says that you can load either a GLTF or GLB file.
But in the plugin trying a link with a GLB at objectUrl in ArCoreReferenceNode it seems not to be working.
Any updates on that will be really helpful
Is it possible to detect a tap on nodes of my own ArCoreReferenceNode?
Hi!
First of all great job for your plugin it's work perfectly even on emulator!
Thanks to Oleksandr Leuschenko I have measure feature in AR on iPhone.
So I would like to know if you can add measure feature in your plugin.
Thank you in advance!
Is it possible to extract the AR composite views (ArCoreFaceView/ArCoreView, ..) as mediastream videotracks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.