intel / webml-polyfill

Deprecated, the Web Neural Network Polyfill project has been moved to https://github.com/webmachinelearning/webnn-polyfill
Apache License 2.0
161 stars 42 forks source link

[NNAPI] The browser crashed when running SSDLite MobileNetV2(TFlite) WebML on Android 8.1.0 #518

Open Christywl opened 5 years ago

Christywl commented 5 years ago

Test Env: Chromium Version: nightly build 70.0.3503.0 (8b58220) Platform: Android 8.1.0(Google Pixel 2)

Expected Result: SSDLite MobileNetV2(TFlite) in Object Detection should work.

Actual Result: The browser crashed when running SSDLite MobileNetV2(TFlite) WebMLon Android 8.1.0: screenshot_20190123-022402

logcat: ssdlite_crash.log

How to Reproduce:

Info:

Seem it's an Android 8.1.0 special issue.

pinzhenx commented 5 years ago

This doesn't seem to be a problem of demo code or our chromium implementation. From the log, the process blocked in this call ANeuralNetworksEvent_wait.

huningxin commented 5 years ago

Thanks for the report and investigation @Christywl @pinzhenx ! If it is only Android 8.1.0 issue, let's record it and lower it priority.

ibelem commented 5 years ago

@Christywl please retest this bug on latest build.

huningxin commented 5 years ago

This might be fixed by https://github.com/intel/webml-polyfill/issues/517. Please help double check.

Christywl commented 5 years ago

Android 8.1.0 (HUAWEI P20 Pro): On the latest build https://github.com/otcshare/chromium-src/commit/20fce9c04a478d8e81e868223bb02e1cd79f0a45, the browser didn't crash, but SSDLite MobileNetV2(TFlite) still doesn't work on NNAPI, the box is stuck on "Setting...".

ibelem commented 5 years ago

@Christywl please retest it on both Android 9 and 8.1, if repros on 8.1 only, lower the priority and remove the target milestone. or won't fix.

Christywl commented 5 years ago

Retested on Android 9 and Android 8.1.0:

It's only Android 8.1.0 issue, so I removed the target milestone.