Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Can't run on redmi note 4 7.0 nougat #4

Closed
bpradana opened this issue Aug 30, 2017 · 7 comments
Closed

Can't run on redmi note 4 7.0 nougat #4

bpradana opened this issue Aug 30, 2017 · 7 comments

Comments

@bpradana
Copy link

App stopped working after unity splash screen

@Hitschm
Copy link

Hitschm commented Aug 30, 2017

Tried sample app on OnePlus 3. Also crashed on splash screen.

@MZorzy MZorzy mentioned this issue Aug 30, 2017
@tomthecarrot
Copy link
Owner

Could you attach logcat output of the crash? Please also keep in mind that this is experimental.

@tomthecarrot
Copy link
Owner

Please try with this suggestion:
#3 (comment)

@tazzkiller
Copy link

tazzkiller commented Aug 31, 2017

@tomthecarrot For the Oneplus 3 LogCat error on com.tango is no config file exist. But if i change my build.prop for declare my OP3 is a pixel phone, tango service and sample works.

08-31 14:02:22.769 9547 9547 D TangoVhs: connected
08-31 14:02:22.769 15710 15710 D TangoService.java: onCreate()
08-31 14:02:22.770 9547 15728 I TangoCameraNative: Tango VHS Ready
08-31 14:02:22.770 15710 15723 D tango-ndk-hal: void Java_com_google_atap_tango_TangoVirtualHalService_initialize(JNIEnv*, jclass) 0x0
08-31 14:02:22.775 9547 15728 I tango_camera_native_jni: jint Java_com_google_tango_jni_TangoCameraNative_ConnectVhs(JNIEnv*, jobject, jobject, jobject)
08-31 14:02:22.776 9547 15728 I tango_camera_native_jni: Attaching tracking_window 0xce6ff008
08-31 14:02:22.816 15710 15732 I tango : java_service_entrypoint.cc:216 Creating new g_tango.
08-31 14:02:22.819 15710 15710 D TangoService.java: Returned Tracker!
08-31 14:02:22.821 15710 15732 W tango : helpers.cc:418 Defaulting to persistent calibration file.
08-31 14:02:22.821 15710 15732 W tango : helpers.cc:395 Property calibration_cad is not defined.
08-31 14:02:22.821 15710 15732 I tango : calibration_provider.cc:486 Instantiating calibration provider with sources:
08-31 14:02:22.821 15710 15732 I tango : CAD:
08-31 14:02:22.821 15710 15732 I tango : Factory:
08-31 14:02:22.821 15710 15732 I tango : Online: /data/data/com.google.tango/files/config/online-calibration.xml
08-31 14:02:22.821 15710 15732 I tango : ActiveFile: kOnlineCalibrationFile
08-31 14:02:22.821 15710 15732 I tango : Hardcoded CAD model fallback: Enabled
08-31 14:02:22.822 15710 15732 E tango : device_provider.cc:336 Could not identify device type from build fingerprint 'OnePlus/OnePlus3/OnePlus3:7.1.1/NMF26F/08101100:user/release-keys'.
08-31 14:02:22.822 15710 15732 E tango : helpers.cc:288 Hardcoded CAD model unavailable for device kUnknownDevice
08-31 14:02:22.822 15710 15732 W tango : calibration_provider.cc:379 Requested parsing of Online calibration, but failed to parse it and the following fallbacks:
08-31 14:02:22.822 15710 15732 W tango : - Online calibration: File does not exist: /data/data/com.google.tango/files/config/online-calibration.xml.
08-31 14:02:22.822 15710 15732 W tango : - Factory calibration: File not set.
08-31 14:02:22.822 15710 15732 W tango : - CAD calibration: File not set.
08-31 14:02:22.822 15710 15732 W tango : - Hardcoded CAD model: Could not load hardcoded CAD model. It is only available when:
08-31 14:02:22.822 15710 15732 W tango : - Explicitly setting the active file to kHardcodedCadModel.
08-31 14:02:22.822 15710 15732 W tango : - On device, as a fallback when reading the CAD calibration file fails.
08-31 14:02:22.822 15710 15732 W tango : calibration_provider.cc:379 Requested parsing of CAD calibration, but failed to parse it and the following fallbacks:
08-31 14:02:22.822 15710 15732 W tango : - CAD calibration: File not set.
08-31 14:02:22.822 15710 15732 W tango : - Hardcoded CAD model: Could not load hardcoded CAD model. It is only available when:
08-31 14:02:22.822 15710 15732 W tango : - Explicitly setting the active file to kHardcodedCadModel.
08-31 14:02:22.822 15710 15732 W tango : - On device, as a fallback when reading the CAD calibration file fails.
08-31 14:02:22.822 15710 15710 F tango : calibration_provider.cc:589 Check failed: parse_cad_error_code == LoadCalibrationXmlErrorCode::kSuccess
08-31 14:02:22.822 15710 15710 F libc : Fatal signal 6 (SIGABRT), code -6 in tid 15710 (om.google.tango)

@tomthecarrot
Copy link
Owner

Thank you for sharing your logs @tazzkiller. The following line may be of importance:
helpers.cc:288 Hardcoded CAD model unavailable for device kUnknownDevice

I wonder if they hardcode CAD models (whatever that means in this context, possibly 3D computer aided design models) for each known dev device.
Hardcoded CAD model fallback: Enabled

It's interesting that when you set your build.prop device name to Pixel, ARCore works just fine. Maybe your device can run the CAD model for Pixel, but not the fallback model.

@tomthecarrot
Copy link
Owner

Luckily, there is now a pattern in most of the new logs submitted: this CAD model error is crashing Tango Service on many devices. However, it's a good sign that @tazzkiller's OnePlus 3 was functional after changing the device name in build.prop to "Pixel". Tango Service seems to be looking for device-specific calibration models, and when those are not found, it attempts to use a fallback (which is not present in the filesystem).

@MarcAnt01
Copy link
Contributor

Seems for OP3 is no longer working in Pie-based Roms

@bpradana bpradana closed this as not planned Won't fix, can't repro, duplicate, stale Jun 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants