Skip to content

Conversation

@jason-simmons
Copy link
Member

The output location of gen_snapshot differs based on the engine's target
platform, and we don't know the target platform when building a
platform-independent FLX in JIT mode.

…pshot

The output location of gen_snapshot differs based on the engine's target
platform, and we don't know the target platform when building a
platform-independent FLX in JIT mode.
@jason-simmons
Copy link
Member Author

@yjbanov

Copy link
Contributor

@yjbanov yjbanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

return genSnapshotPath;
}
return fs.path.join(engineOutPath, clang, _artifactToFileName(Artifact.genSnapshot));
throw new Exception('Unable to find $genSnapshotName');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'd want to make sure that this results in a tool crash with a crash report. Could you please check that that's what happens?

Also, do we expect that this line should never be reached? If so, we should throw a longer message saying that this is likely a bug in Flutter and invite the user to file an issue. Here's an example.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes - this is an exception that generates a "Flutter crash report" log.

This function runs when you are building a debug mode JIT snapshot with a locally built engine. If it throws, it means that something is wrong with your local engine build output. It may or may not be a bug in flutter_tools or in the engine build process.

@jason-simmons jason-simmons merged commit 22ccb74 into flutter:master Jul 27, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants