Skip to content

previous compilation was not self-contained #35695

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Hixie opened this issue Jan 17, 2019 · 3 comments
Closed

previous compilation was not self-contained #35695

Hixie opened this issue Jan 17, 2019 · 3 comments
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.

Comments

@Hixie
Copy link
Contributor

Hixie commented Jan 17, 2019

While I was running flutter tests for the first time after merging my branch to tip of tree:

Compiler message:
Warning: Tried to initialize from a previous compilation (file:///usr/local/google/home/ianh/dev/flutter/packages/flutter/build/testfile.dill), but the file was not self-contained. This might be a bug.

The Dart team would greatly appreciate it if you would take a moment to report this problem at http://dartbug.com/new.
If you are comfortable with it, it would improve the chances of fixing any bug if you included the file file:///tmp/initialize_from.dillSZCOAG/initialize_from.dill.gz in your error report, but be aware that this file includes your source code.
Either way, you should probably delete the file so it doesn't use unnecessary disk space.

-> initialize_from.dill.gz

Compiler message:
01:03 +853 ~9: /usr/local/google/home/ianh/dev/flutter/packages/flutter/test/widgets/fade_transition_test.dart: FadeTransition Warning: Tried to initialize from a previous compilation (file:///usr/local/google/home/ianh/dev/flutter/packages/flutter/build/testfile.dill.track.dill), but the file was not self-contained. This might be a bug.

The Dart team would greatly appreciate it if you would take a moment to report this problem at http://dartbug.com/new.
If you are comfortable with it, it would improve the chances of fixing any bug if you included the file file:///tmp/initialize_from.dillTBDGNU/initialize_from.dill.gz in your error report, but be aware that this file includes your source code.
Either way, you should probably delete the file so it doesn't use unnecessary disk space.

-> initialize_from.dill.gz

@Hixie
Copy link
Contributor Author

Hixie commented Jan 17, 2019

See also: #35129 #33760 #35476

@Hixie
Copy link
Contributor Author

Hixie commented Jan 17, 2019

It happened a bunch more times for me in the same run of tests.

@mit-mit mit-mit added the area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. label Jan 23, 2019
@jensjoha
Copy link
Contributor

jensjoha commented Feb 26, 2019

Looking at the first one only, it references "HttpStatus" in library "_http" which was moved in edca616#diff-9ca40264a25fa53a371cd7144bd23532.

So what happened was probably this: The dill file that was attempted initialized from was build on a platform before that commt, you then ran tests on a platform after that commit, where the class couldn't be found (in the expected place).

We certainly need a mechanism to catch stuff like this. I created #36032 for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
Projects
None yet
Development

No branches or pull requests

3 participants