Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

⬆️[email protected] - #10

Merged
jasonrudolph merged 2 commits into
masterfrom
decompress-zip-0.3.1
May 6, 2018
Merged

jasonrudolph merged 2 commits into
masterfrom
decompress-zip-0.3.1

Conversation

@jasonrudolph

Copy link
Copy Markdown
Contributor

When running Atom on Electron 2.0.0 (atom/atom#17273), we see the following error in the archive-view tests:

Package tests failed for archive-view:
./Users/distiller/atom/out/Atom.app/Contents/Frameworks/Atom Helper.app/Contents/MacOS/Atom Helper[9447]: ../../vendor/node/src/async-wrap.cc:357:void node::SetupHooks(const FunctionCallbackInfo<v8::Value> &): Assertion `env->async_hooks_init_function().IsEmpty()' failed.
 1: node::Abort() [/Users/distiller/atom/out/Atom.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib]
 2: node::Assert(char const* const (*) [4]) [/Users/distiller/atom/out/Atom.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib]
 3: node::AsyncWrap::Initialize(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Context>) [/Users/distiller/atom/out/Atom.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib]
 4: v8::internal::StrDup(char const*) [/Users/distiller/atom/out/Atom.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib]
 5: v8::internal::compiler::BranchElimination::ControlPathConditions::operator==(v8::internal::compiler::BranchElimination::ControlPathConditions const&) const [/Users/distiller/atom/out/Atom.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib]
 6: v8::internal::compiler::BranchElimination::ControlPathConditions::operator==(v8::internal::compiler::BranchElimination::ControlPathConditions const&) const [/Users/distiller/atom/out/Atom.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib]
 7: 0x27e9ef30463d
 8: 0x27e9ef3f45bc
 9: 0x27e9ef3bf98e
2018-05-04 11:53:40.199 Atom[9443:21976] Renderer process crashed, exiting

This error appears to be due to electron/electron#10905, which occurs when code makes use of the natives package.

atom/archive-view depends on atom/node-ls-archive, which depends on bower/decompress-zip, which depends on isaacs/node-graceful-fs. Older versions of isaacs/node-graceful-fs made use of the natives package, and that use was removed in 4.0.0.

decompress-zip 0.2.1 updates its dependency on node-graceful-fs from 3.0.0 to 4.1.3 and that should resolve the problem we're seeing. 🤞

It would probably suffice to upgrade to decompress-zip 0.2.1, but since 0.3.1 is the latest version, this pull request opts for 0.3.1.

/fyi @codebytere

Resolves the following warning when running `npm install`:

  npm WARN deprecated [email protected]: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
@jasonrudolph jasonrudolph mentioned this pull request May 4, 2018
60 tasks done

@as-cii as-cii left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I haven't touched this codebase in a while, but this looks reasonable. 👍

@jasonrudolph
jasonrudolph merged commit e9cf642 into master May 6, 2018
@winstliu
winstliu deleted the decompress-zip-0.3.1 branch May 6, 2018 13:56
jasonrudolph added a commit to atom/atom that referenced this pull request May 7, 2018
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.

2 participants