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

[BNNS] The browser crashed when running Inception Resnet v2(TFlite) and ResNet50(Onnx) examples #550

Closed Christywl closed 5 years ago

Christywl commented 5 years ago

Test Env: Chromium Version: nightly build 70.0.3503.0 (f8ebaa5) Platform: Mac OS 10.13.6

Expected Result: Examples should work normally.

Actual Result: The browser crashed when running Inception Resnet v2(TFlite) and ResNet50(Onnx) examples from https://github.com/otcshare/chromium-src/commit/1a57e544e91f9232ea8a560e883452435f2795ea: NotSupportedError: Compilation is not implemented.

Received signal 11 SEGV_MAPERR 000000000024
 [0x0001137a3e3c]
 [0x0001137a3d31]
 [0x7fff7e46df5a]
 [0x000000000038]
 [0x0001124da577]
 [0x0001124da3c3]
 [0x0001124ebc0f]
 [0x0001124e84d6]
 [0x000113d8d1e8]
 [0x000113d91891]
 [0x000113d910c4]
 [0x000113d8b2f1]
 [0x000113d8b9a1]
 [0x000113ccbc08]
 [0x0001136f3682]
 [0x00011371422f]
 [0x0001137146f8]
 [0x0001137168ba]
 [0x00011370693a]
 [0x0001137161df]
 [0x7fff5624b8f1]
 [0x7fff5630530c]
 [0x7fff5622e350]
 [0x7fff5622d7cd]
 [0x7fff5622d033]
 [0x7fff5832ae76]
 [0x000113716f1d]
 [0x000113715cfe]
 [0x000113738ca5]
 [0x000117816bac]
 [0x0001132eae79]
 [0x000114b5e161]
 [0x0001132ea044]
 [0x0001113d5803]
 [0x0001097bf131]
 [0x7fff7e15f015]
 [0x000000000007]
[end of stack trace]

How to Reproduce:

  1. git clone https://github.com/intel/webml-polyfill
  2. npm i & npm run build
  3. Download the models for image_classification
  4. npm start
  5. Visit http://127.0.0.1:8080/examples/image_classification/index.html on chromium and switch to FAST_SINGLE_ANSWER, select the following examples:
    • Inception Resnet v2(TFlite)
    • ResNet50 v1(Onnx)
    • ResNet50 v2(Onnx)
Christywl commented 5 years ago

This issue was fixed on nightly build 20fce9c.