Skip to content
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

Unable to deserialize snapshot correctly #20794

Closed
DartBot opened this issue Sep 3, 2014 · 19 comments
Closed

Unable to deserialize snapshot correctly #20794

DartBot opened this issue Sep 3, 2014 · 19 comments
Labels
closed-duplicate Closed in favor of an existing report
Milestone

Comments

@DartBot
Copy link

DartBot commented Sep 3, 2014

This issue was originally filed by boonbi...@gmail.com


What steps will reproduce the problem?

  1. update dart editor 1.7.0-dev.0.1
  2. run my application

What is the expected output? What do you see instead?

it 's show message below :
   --- 5:01:03 PM Starting pub serve : app1 ---
Dart_LoadScriptFromSnapshot: Unable to deserialize snapshot correctly.

What version of the product are you using?
dart editor 1.7.0-dev.0.1

On what operating system?
window 8 64 bit

What browser (if applicable)?

Please provide any additional information below.

@sethladd
Copy link
Contributor

sethladd commented Sep 4, 2014

Does your app run eventually?


Added Area-Pub, Pub-Serve, Triaged labels.

@nex3
Copy link
Member

nex3 commented Sep 4, 2014

What happens if you run "pub serve --verbose" from the command line?

@DartBot
Copy link
Author

DartBot commented Sep 5, 2014

This comment was originally written by boon...@gmail.com


I try run "pub serve --verbose" show message below

"Dart_LoadScriptFromSnapshot: Unable to deserialize snapshot correctly"

@nex3
Copy link
Member

nex3 commented Sep 5, 2014

It looks like pub isn't executing at all. This sounds like a VM issue.


Removed Area-Pub, Pub-Serve labels.
Added Area-VM label.

@DartBot
Copy link
Author

DartBot commented Oct 16, 2014

This comment was originally written by Med...@gmail.com


Once I updated my Dart Editor to 1.7.2, I bumped into this error too.

What version of the product are you using?
Dart Editor version 1.7.2.release (STABLE)
Dart SDK version 1.7.2

On what operating system?
window 7 64 bit

@DartBot
Copy link
Author

DartBot commented Oct 16, 2014

This comment was originally written by davewalsh...@gmail.com


Unable to deserialize snapshot correctly.

I am seeing this as well after updating to 1.7.2 (STABLE)
Windows 64 Bit

@DartBot
Copy link
Author

DartBot commented Oct 16, 2014

This comment was originally written by @bgourlie


I'm also seeing this. Is there a snapshot cache that can be cleared out?

@sethladd
Copy link
Contributor

Did you happen to use the auto-update feature of Dart Editor?


cc @danrubel.
cc @zanderso.
cc @clayberg.

@DartBot
Copy link
Author

DartBot commented Oct 16, 2014

This comment was originally written by @bgourlie


@seth - Yep.

@DartBot
Copy link
Author

DartBot commented Oct 17, 2014

This comment was originally written by litt.fi...@gmail.com


I'm currently getting the same error, but my use case is different. I'm using the Sublime Text dart plugin.

And I'm install dart using Harald's ppa at: https://launchpad.net/~hachre/+archive/ubuntu/dart

My SDK path is set up correctly for the sublime package.

Here is my output from the console:

Running pub...
Dart_LoadScriptFromSnapshot: Unable to deserialize snapshot correctly.
[Finished in 0.1s with exit code 255]
[cmd: ['/opt/google/dartsdk/bin/pub', 'get']]
[dir: /home/andre/dev/propnode/frontend]
[path: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/go/bin]

@DartBot
Copy link
Author

DartBot commented Oct 17, 2014

This comment was originally written by @bgourlie


I got it when using webstorm. It's not a dart editor issue, it appears to
be a go issue triggered by running pub (trying to deserialize a snapshot
created by a previous version of the vm, I assume).

@DartBot
Copy link
Author

DartBot commented Oct 18, 2014

This comment was originally written by 7ogity...@gmail.com


Reinstalling the DartEditor solved the issue.

This happened to me too when I updated from 1.6 to 1.7.2 using the "Check for update…" option on the Help About dialog (on a Windows 8.1, 64 bit machine). However, I was pleasantly surprised to discover that my working environment was restored simply by replacing the original install with a version downloaded and installed (unpacked) from the Dart web site rather than via the editor.

@DartBot
Copy link
Author

DartBot commented Oct 19, 2014

This comment was originally written by litt.fi...@gmail.com


For myself, using the ppa on ubuntu, doing apt-get upgrade also solved this issue.

@DartBot
Copy link
Author

DartBot commented Oct 19, 2014

This comment was originally written by dhuba...@gmail.com


I'm also on Windows 8.1 64-bit

Upgrading from 1.6.0 to 1.7.2 using the "Check for Update" button also made pub fail constantly. Trying fresh reinstall now.

@DartBot
Copy link
Author

DartBot commented Oct 20, 2014

This comment was originally written by tommi.enenk...@gmail.com


Windows 7 64-bit

Upgraded from 1.6.x to 1.7 via "Check for Update"

pub cache repair didnt work
deleting the snapshots did not help
reinstalling Dart Editor helped :)

@DartBot
Copy link
Author

DartBot commented Oct 20, 2014

This comment was originally written by @mezoni


What are an official position of Google Dart developers?
What do they recommend?

@clayberg
Copy link

In versions prior to 1.7, there were some known cases where the update would only partially complete (usually due to Dartium currently running at the same time as the update and thereby preventing Dartium itself from being updated). That problem should be fixed in 1.7 but the fix won't really have an effect until users are updating from 1.7 to 1.8 in the future. We are speculating that this issue might be due to a partial update (although several comments also suggest it might be a separate problem or that there are a couple different problems being reported here). We had not seen Dart_LoadScriptFromSnapshot reference in an issue related to a failed update, so the original report might be unrelated to an update issue (even if many of the follow-up comments are update related).

A reinstall of Dart Editor (which also means a reinstall of the Dart SDK, Dartium, etc.) is always a good idea if you are experiencing weird problems like this. Most of the time, that seems to fix the problem.

@iposva-google
Copy link
Contributor

Removed Area-VM label.
Added Area-Editor, Editor-Updater labels.

@clayberg
Copy link

I'm not convinced that the original issue reported here is update related. If it is, then it is a dup of Issue #17018 which was fixed for 1.7 a few weeks ago.


Added this to the 1.8 milestone.
Removed Priority-Unassigned label.
Added Priority-Medium, Duplicate labels.
Marked as being merged into #17018.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-duplicate Closed in favor of an existing report
Projects
None yet
Development

No branches or pull requests

5 participants