tomthecarrot / arcore-for-all

Google ARCore (dev preview 1) for "unsupported" Android devices
GNU General Public License v3.0
1.04k stars 145 forks source link

Both HelloAR & Tango core keeps crashing on Kenzo (Xiaomi Redmi Note 3) #31

Open Shreyas-R opened 6 years ago

Shreyas-R commented 6 years ago

Once the HelloAR is launched, both HelloAR & Tango core apps keep on crashing. Here's the log collected from AOSP 8.0:

09-02 08:16:55.134 D/TangoService.java(26030): onCreate() 09-02 08:16:55.141 W/StreamHAL(570): Error from HAL stream in function get_presentation_position: Operation not permitted 09-02 08:16:55.161 I/chatty (570): uid=1041(audioserver) writer identical 1 line 09-02 08:16:55.182 W/StreamHAL(570): Error from HAL stream in function get_presentation_position: Operation not permitted 09-02 08:16:55.202 I/tango (26030): java_service_entrypoint.cc:216 Creating new g_tango. 09-02 08:16:55.202 W/StreamHAL(570): Error from HAL stream in function get_presentation_position: Operation not permitted 09-02 08:16:55.205 D/TangoService.java(26030): Returned Tracker! 09-02 08:16:55.207 W/tango (26030): helpers.cc:418 Defaulting to persistent calibration file. 09-02 08:16:55.207 W/tango (26030): helpers.cc:395 Property calibration_cad is not defined. 09-02 08:16:55.207 I/tango (26030): calibration_provider.cc:486 Instantiating calibration provider with sources: 09-02 08:16:55.207 I/tango (26030): CAD: 09-02 08:16:55.207 I/tango (26030): Factory: 09-02 08:16:55.207 I/tango (26030): Online: /data/data/com.google.tango/files/config/online-calibration.xml 09-02 08:16:55.207 I/tango (26030): ActiveFile: kOnlineCalibrationFile 09-02 08:16:55.207 I/tango (26030): Hardcoded CAD model fallback: Enabled 09-02 08:16:55.207 E/tango (26030): device_provider.cc:336 Could not identify device type from build fingerprint 'Xiaomi/kenzo/kenzo:6.0.1/MMB29M/V8.2.1.0.MHOCNDL:user/release-keys'. 09-02 08:16:55.207 F/tango (26030): calibration_provider.cc:589 Check failed: parse_cad_error_code == LoadCalibrationXmlErrorCode::kSuccess 09-02 08:16:55.207 E/tango (26030): helpers.cc:288 Hardcoded CAD model unavailable for device kUnknownDevice 09-02 08:16:55.207 W/tango (26030): calibration_provider.cc:379 Requested parsing of Online calibration, but failed to parse it and the following fallbacks: 09-02 08:16:55.207 W/tango (26030): - Online calibration: File does not exist: /data/data/com.google.tango/files/config/online-calibration.xml. 09-02 08:16:55.207 W/tango (26030): - Factory calibration: File not set. 09-02 08:16:55.207 W/tango (26030): - CAD calibration: File not set. 09-02 08:16:55.207 W/tango (26030): - Hardcoded CAD model: Could not load hardcoded CAD model. It is only available when: 09-02 08:16:55.207 W/tango (26030): - Explicitly setting the active file to kHardcodedCadModel. 09-02 08:16:55.207 W/tango (26030): - On device, as a fallback when reading the CAD calibration file fails. 09-02 08:16:55.207 W/tango (26030): calibration_provider.cc:379 Requested parsing of CAD calibration, but failed to parse it and the following fallbacks: 09-02 08:16:55.207 W/tango (26030): - CAD calibration: File not set. 09-02 08:16:55.207 W/tango (26030): - Hardcoded CAD model: Could not load hardcoded CAD model. It is only available when: 09-02 08:16:55.207 W/tango (26030): - Explicitly setting the active file to kHardcodedCadModel. 09-02 08:16:55.207 W/tango (26030): - On device, as a fallback when reading the CAD calibration file fails. 09-02 08:35:21.210 F/libc (31552): Fatal signal 6 (SIGABRT), code -6 in tid 31552 (om.google.tango) 09-02 08:35:21.214 W/StreamHAL(570): Error from HAL stream in function get_presentation_position: Operation not permitted 09-02 08:35:21.234 W/StreamHAL(570): Error from HAL stream in function get_presentation_position: Operation not permitted 09-02 08:35:21.243 I/qmuxd (1443): type=1400 audit(0.0:15873): avc: denied { block_suspend } for capability=36 scontext=u:r:init:s0 tcontext=u:r:init:s0 tclass=capability2 permissive=1 09-02 08:35:21.255 W/StreamHAL(570): Error from HAL stream in function get_presentation_position: Operation not permitted 09-02 08:35:21.258 I/crash_dump64(31578): obtaining output fd from tombstoned 09-02 08:35:21.259 I//system/bin/tombstoned(600): received crash request for pid 31552 09-02 08:35:21.259 I/crash_dump64(31578): performing dump of process 31552 (target tid = 31552) 09-02 08:35:21.260 F/DEBUG (31578): 09-02 08:35:21.260 F/DEBUG (31578): Build fingerprint: 'Xiaomi/kenzo/kenzo:6.0.1/MMB29M/V8.2.1.0.MHOCNDL:user/release-keys' 09-02 08:35:21.260 F/DEBUG (31578): Revision: '0' 09-02 08:35:21.260 F/DEBUG (31578): ABI: 'arm64' 09-02 08:35:21.260 F/DEBUG (31578): pid: 31552, tid: 31552, name: om.google.tango >>> com.google.tango <<< 09-02 08:35:21.260 F/DEBUG (31578): signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- 09-02 08:35:21.265 F/DEBUG (31578): Abort message: 'calibration_provider.cc:589 Check failed: parse_cad_error_code == LoadCalibrationXmlErrorCode::kSuccess ' 09-02 08:35:21.265 F/DEBUG (31578): x0 0000000000000000 x1 0000000000007b40 x2 0000000000000006 x3 0000000000000008 09-02 08:35:21.265 F/DEBUG (31578): x4 7265000000000000 x5 7265000000000000 x6 7265000000000000 x7 0000000000806572 09-02 08:35:21.265 F/DEBUG (31578): x8 0000000000000083 x9 84686d8e7c57a778 x10 0000000000000000 x11 0000000000000001 09-02 08:35:21.265 F/DEBUG (31578): x12 ffffffffffffffff x13 0000000000000002 x14 ffffffffffffffff x15 7265000000000000 09-02 08:35:21.265 F/DEBUG (31578): x16 0000007b2d0b0300 x17 0000007b2d055590 x18 0000000000000000 x19 0000000000007b40 09-02 08:35:21.265 F/DEBUG (31578): x20 0000000000007b40 x21 0000007fc13fab50 x22 0000007b2c559018 x23 0000007fc13fab48 09-02 08:35:21.265 F/DEBUG (31578): x24 0000000000000068 x25 0000007b1fea7f18 x26 0000007b2c559000 x27 0000007b2c46bba0 09-02 08:35:21.265 F/DEBUG (31578): x28 0000007b2c46bb78 x29 0000007fc13fa580 x30 0000007b2d009954 09-02 08:35:21.265 F/DEBUG (31578): sp 0000007fc13fa540 pc 0000007b2d055598 pstate 0000000060000000 09-02 08:35:21.269 F/DEBUG (31578): 09-02 08:35:21.269 F/DEBUG (31578): backtrace: 09-02 08:35:21.270 F/DEBUG (31578): #00 pc 0000000000069598 /system/lib64/libc.so (tgkill+8) 09-02 08:35:21.270 F/DEBUG (31578): #01 pc 000000000001d950 /system/lib64/libc.so (abort+88) 09-02 08:35:21.270 F/DEBUG (31578): #02 pc 0000000000007eec /system/lib64/liblog.so (__android_log_assert+304) 09-02 08:35:21.270 F/DEBUG (31578): #03 pc 0000000000100718 /data/app/com.google.tango-VPKrhscZLLWB483qOA1s0A==/lib/arm64/libtango_service_library.so (_ZN13MessageLoggerD2Ev+4120) 09-02 08:35:21.270 F/DEBUG (31578): #04 pc 0000000000c8433c /data/app/com.google.tango-VPKrhscZLLWB483qOA1s0A==/lib/arm64/libtango_service_library.so 09-02 08:35:21.270 F/DEBUG (31578): #05 pc 0000000000c85be8 /data/app/com.google.tango-VPKrhscZLLWB483qOA1s0A==/lib/arm64/libtango_service_library.so 09-02 08:35:21.270 F/DEBUG (31578): #06 pc 0000000000129150 /data/app/com.google.tango-VPKrhscZLLWB483qOA1s0A==/lib/arm64/libtango_service_library.so (_ZN13tango_service12TangoContextC1ESt10shared_ptrINS_15JniTangoServiceEE+512) 09-02 08:35:21.271 F/DEBUG (31578): #07 pc 000000000013c80c /data/app/com.google.tango-VPKrhscZLLWB483qOA1s0A==/lib/arm64/libtango_service_library.so (_ZN12tango_binder7ServiceC2ESt10shared_ptrIN13tango_service15JniTangoServiceEE+228) 09-02 08:35:21.271 F/DEBUG (31578): #08 pc 000000000013a238 /data/app/com.google.tango-VPKrhscZLLWB483qOA1s0A==/lib/arm64/libtango_service_library.so (Java_com_google_atap_tango_TangoServiceJNINative_CreateNativeService+972) 09-02 08:35:21.271 F/DEBUG (31578): #09 pc 000000000009413c /data/app/com.google.tango-VPKrhscZLLWB483qOA1s0A==/oat/arm64/base.odex (offset 0x45000)

tomthecarrot commented 6 years ago

Thanks for sharing your log! It is consistent with other crash logs, which is good.

Please try this ARCore Service data directory mod and install it using: adb restore backup-mod.ab

Make sure you have a recent backup of your device. Even though it only contains a backup for Tango Service + it didn't clear data on my phone + it shouldn't on yours, there is a chance of unexpected results when restoring.

Shreyas-R commented 6 years ago

Can you give more details about where this backup-mod.ab goes?

falcon0172 commented 6 years ago

Is any solution out for the issue?