Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@jason-simmons
Copy link
Member

No description provided.

@jason-simmons
Copy link
Member Author

@chinmaygarde

@chinmaygarde
Copy link
Member

Was the assertion failure in debug only?

@jason-simmons
Copy link
Member Author

yes - the buildbots run the engine Dart tests using a flutter_tester built in host_debug_unopt mode with assertions turned on

@chinmaygarde
Copy link
Member

As long as the engine does not crash on the mobile shells.

@jason-simmons jason-simmons merged commit 6a49511 into flutter:master Aug 8, 2017
@Hixie
Copy link
Contributor

Hixie commented Aug 8, 2017

Can we instead fix tonic to fail when trying to convert a NaN?

This code is trying to make sure we don't crash when we pass a NaN, so removing the NaN isn't really a long-term fix. :-)

@jason-simmons
Copy link
Member Author

Skia's SkRect can represent NaN coordinates, but the API doesn't support drawing an object with NaN coordinates. The engine's Canvas Dart wrappers could check whether a rect is finite before passing it onward to Skia.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants