You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently if the VM fails to generate a snapshot (due to a syntax error in an input file, for example) it creates an empty file at the snapshot location. This is unexpected behavior, and inconsistent with other tools.
The text was updated successfully, but these errors were encountered:
I took a look at gen_snapshot code, and it appeared to correctly handle error cases. Note the CHECK_RESULT after Dart_CreateSnapshot in CreateAndWriteSnapshot, which will exit the program if anything goes wrong, in addition to the exception raised by FullSnapshotWriter::WriteFullSnapshot(), both of which prevent execution reaching the call to WriteSnapshotFile() in case of error.
I also introduced a syntax error into an input file and noted that gen_snapshot exited with an error message and that no snapshot file was created in both Debug and Release configurations.
Marking as CannotReproduce absent more detailed reproduction steps.
Currently if the VM fails to generate a snapshot (due to a syntax error in an input file, for example) it creates an empty file at the snapshot location. This is unexpected behavior, and inconsistent with other tools.
The text was updated successfully, but these errors were encountered: