Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Example crashes Chrome and Safari with Dart 1.17.1 #185

@jorgjanke

Description

@jorgjanke

$ pub --version
Pub 1.17.1

$ pub serve --trace --verbosity=all examples
FINE: Pub 1.17.1
FINE: Loading asset environment...
FINE: Initializing barback...
FINE: Serving packages on localhost:0.
MSG : Loading source assets...
FINE: Providing sources for charted|lib.
FINE: Loading source assets finished (0.279s).
FINE: Provided sources.
FINE: Loading transformers...
FINE: Transformer dependencies:
FINE: Loading transformers finished (0.043s).
FINE: Initializing barback finished (0.356s).
FINE: Loading asset environment finished (0.544s).
FINE: Providing sources for charted|examples.
FINE: Bound "examples" to localhost:8080.
MSG : Serving charted examples on http://localhost:8080
MSG : Build completed successfully
MSG : [examples] GET → (cached) charted|examples/index.html
MSG : [examples] GET charts/demo_charts.css → (cached) charted|examples/charts/demo_charts.css
MSG : [examples] GET packages/charted/charts/themes/quantum_theme.css → (cached) charted|lib/charts/themes/quantum_theme.css
FINE: Instance of 'BarbackServer' GET favicon.ico
| Not Found
ERR : [examples] GET favicon.ico → Could not find asset charted|examples/favicon.ico.

--- click on Interactive Demo

MSG : [examples] GET charts/demo_interactive.html → (cached) charted|examples/charts/demo_interactive.html
MSG : [examples] GET charts/demo_charts.css → (cached) charted|examples/charts/demo_charts.css
MSG : [examples] GET charts/packages/charted/charts/themes/quantum_theme.css → (cached) charted|lib/charts/themes/quantum_theme.css
MSG : [examples] GET charts/demo_interactive.dart → (cached) charted|examples/charts/demo_interactive.dart
MSG : [examples] GET charts/packages/browser/dart.js → (cached) browser|lib/dart.js
MSG : [examples] GET packages/charted/charts/themes/quantum_theme.css → (cached) charted|lib/charts/themes/quantum_theme.css
MSG : [Info from Dart2JS]:
| Compiling charted|examples/charts/demo_interactive.dart...
MSG : [Info from Dart2JS]:
| Took 0:00:11.955602 to compile charted|examples/charts/demo_interactive.dart.
FINE: [Fine from Dart2JS on charted|examples/charts/demo_interactive.dart]:
| Took 12.0s (0.1s awaiting secondary inputs).
MSG : Build completed successfully
MSG : [examples] GET charts/demo_interactive.dart.js → (cached) charted|examples/charts/demo_interactive.dart.js

-- rendered correctly - switch to "line chart"

  • no reaction - browser needs to be killed
  • Google Chrome Helper at 100% cpu

With Safari same output - but renders "Line chart" and then dies.

  • Safari Web Content (Not Responding) - 100% CPU

Tried to analyze, but did not manage to find any issue.
Same reaction when debugging - the issue is somewhere in the async part.

As it worked in Dart 1.16, looked into changes, but did not see any potential causes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions