balena-io / etcher Goto Github PK
View Code? Open in Web Editor NEWFlash OS images to SD cards & USB drives, safely and easily.
Home Page: https://etcher.io/
License: Apache License 2.0
Flash OS images to SD cards & USB drives, safely and easily.
Home Page: https://etcher.io/
License: Apache License 2.0
To prevent a big "warning" message about an unsigned developer.
Currently the app seems to be swallowing JavaScript errors, which makes it really hard to debug.
According to TrackJS, this error happened on Windows 8.1 when clicking "Burn" when a burn was already in process (around ~30%).
Could not call remote function ``. Check that the function signature is correct. Underlying error: Error processing argument -1.
Error: Could not call remote function ``. Check that the function signature is correct. Underlying error: Error processing argument -1.
at callFunction (C:\Users\Alexandros\resin-etcher\node_modules\electron-prebuilt\dist\resources\atom.asar\browser\lib\rpc-server.js:203:11)
at EventEmitter.<anonymous> (C:\Users\Alexandros\resin-etcher\node_modules\electron-prebuilt\dist\resources\atom.asar\browser\lib\rpc-server.js:293:12)
at emitMany (events.js:108:13)
at EventEmitter.emit (events.js:182:7)
at EventEmitter.<anonymous> (C:\Users\Alexandros\resin-etcher\node_modules\electron-prebuilt\dist\resources\atom.asar\browser\api\lib\web-contents.js:129:25)
at emitTwo (events.js:87:13)
at EventEmitter.emit (events.js:172:7)
the startup process is very weird.. asks for permissions (which I guess is normal) then pops up some terminal windows (wtf) then nothing happens for 5-10 seconds
Hound CI has beta support for JSCS, but worth trying out: https://houndci.com/configuration#jscs
When starting the app, the window is shown with white content for about half second. This was previously mitigated however the issue seems to be worse after updating electron.
Lacking execution permissions. Can be easily fixed in the Makefile.
This error seems to happen from time to time during burning:
TypeError: Cannot read property 'then' of undefined
at burn (file:///Users/jviotti/Projects/resin/resin-etcher/build/browser/app.js:103:42)
at fn (eval at <anonymous> (file:///Users/jviotti/Projects/resin/resin-etcher/build/browser/app.js:22559:15), <anonymous>:4:917)
at callback (file:///Users/jviotti/Projects/resin/resin-etcher/build/browser/app.js:32807:17)
at Scope.$eval (file:///Users/jviotti/Projects/resin/resin-etcher/build/browser/app.js:25246:28)
at Scope.$apply (file:///Users/jviotti/Projects/resin/resin-etcher/build/browser/app.js:25346:25)
at hero-progress-button.<anonymous> (file:///Users/jviotti/Projects/resin/resin-etcher/build/browser/app.js:32812:23)
at defaultHandlerWrapper (file:///Users/jviotti/Projects/resin/resin-etcher/build/browser/app.js:12540:11)
at hero-progress-button.eventHandler (file:///Users/jviotti/Projects/resin/resin-etcher/build/browser/app.js:12528:9)
The first time you open the app (whether from the source or from a package), the elevation dialog is shown, but afterwards the elevated app never runs.
Repeating the process makes it run successfully.
The issue is only reproducible by waiting some minutes (until sudo password cache is clearer).
If you made a mistake the in the selection of an image or drive, you basically have to close and re-open the application to select again. There should be an easy way for the user to re-select.
Maybe allow clicking on the label to unselect?
To prevent a big "warning" message about an unsigned developer.
It still has icons to reflect the old "Herostratus" name.
We currently prevent the "Burn" button to be clicked if the percentage is 0, as an attempt to prevent the user to try to burn twice, however at the beginning of a burn progress, the percentage is 0, and we still allow to click it for some seconds.
This feature would allow Etcher to flash DFU devices, like the Intel Edison. The task would be to create a brand new NPM module, named something like etcher-dfu, which implements DFU support in a cross platform way.
Challenges:
The final module should expose a function that returns an EventEmitter instance which emits stdout and stderr in real time. Some stdin support might be required depending on the implementation, which should preferably be handled by the module itself instead of prompting the user if possible.
This module can be implemented using external tools like dfu-util as long as the user is not required to install such tool himself (it's bundled in the package instead).
Native addons may be fine here, but only if really necessary.
The completion screen will then have two buttons:
I get the following on Ubuntu:
Unhandled rejection Error: Command failed: /bin/sh -c "/home/jviotti/Desktop/Herostratus-linux-x64/resources/app.asar/node_modules/drivelist/scripts"/linux.sh
/bin/sh: 1: /home/jviotti/Desktop/Herostratus-linux-x64/resources/app.asar/node_modules/drivelist/scripts/linux.sh: not found
at ChildProcess.exithandler (child_process.js:209:12)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:764:16)
at Socket.<anonymous> (internal/child_process.js:319:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at Pipe._onclose (net.js:469:12)
Drivelist executes scripts as child processes to discover the drives, however the fact that everything is packaged into an asar
makes the scripts inaccessible.
This is probably the same issue as #28
If there is any, offer them for selection instead of prompting the "open" dialog.
The footer should say: "AN OPEN SOURCE PROJECT BY RESIN.IO" instead of "POWERED BY RESIN.IO".
Bmap Tools are a set of utilities implemented by the Tizen project that allows significant speed when writing images to drives.
Given a sparse image file (a file with unmapped holes), we can create a bmap file (an XML manifest) that gives the client information about what blocks actually contain data, and which don’t (e.g: are holes). Using this information, we can only write the sectors that are really needed, and thus avoid a lot of unnecessary I/O to speed up the writing.
Bmap files can only be generated on Linux at the moment, so we only focus on writing an image that already contains a corresponding bmap file.
This feature should be implemented by extending the already existing etcher-image-write NPM module
The module should include an option to pass the contents of a Bmap file (or a path to it, maybe) and use this information to only write what’s needed. This feature should be implemented in a cross platform way.
See https://source.tizen.org/documentation/reference/bmaptool/introduction for more information about how this works. Tizen provides a Python implementation for the problem described above, so we can use that as a guide.
This happens when packaged for Windows. The app doesn't ask for elevation nor does anything. Completely broken.
Using ArchLinux x64 with node 5.5.0
and bower 1.7.2
, upon start I have this blank screen:
No log in the console beyond the normal node start info. Same thing when creating stand-alone executable with the included Makefile.
npm test
passes successfully, and npm install
has only these warnings for optional dependencies.
npm WARN optional Skipping failed optional dependency //elevator:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm WARN optional Skipping failed optional dependency //removedrive:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm WARN optional Skipping failed optional dependency /resin-image-write/diskpart:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
Don't seem like any already existing issue reported. Any suggestions what to test?
This error happens when clicking the disabled "Burn" button before selecting a drive.
TypeError: Cannot read property 'device' of undefined
at burn (file:///Users/jviotti/Projects/resin/etcher/lib/browser/app.js:161:44)
at fn (eval at <anonymous> (/Users/jviotti/Projects/resin/etcher/node_modules/angular/angular.js:13567:15), <anonymous>:4:917)
at callback (/Users/jviotti/Projects/resin/etcher/node_modules/angular/angular.js:23934:17)
at Scope.$eval (/Users/jviotti/Projects/resin/etcher/node_modules/angular/angular.js:16251:28)
at Scope.$apply (/Users/jviotti/Projects/resin/etcher/node_modules/angular/angular.js:16351:25)
at hero-progress-button.<anonymous> (/Users/jviotti/Projects/resin/etcher/node_modules/angular/angular.js:23939:23)
at defaultHandlerWrapper (/Users/jviotti/Projects/resin/etcher/node_modules/angular/angular.js:3358:11)
at hero-progress-button.eventHandler (/Users/jviotti/Projects/resin/etcher/node_modules/angular/angular.js:3346:9)
at hero-progress-button.d.util.hasFunction.f.(anonymous function) (file:///Users/jviotti/Projects/resin/etcher/node_modules/trackjs/tracker.js:3:492) undefined
This is a major feature that needs to re-architect the code to pass a readable stream directly instead of a file name to the writer first.
Burning starts, emits a few zero progresses and stops.
Versions >v0.31.2
seem to fail when running as administrator for some reason.
Maybe an electron argument, or an env var?
Herostratus packaged for OS X detects no drives.
Maybe related to #17?
When executing packaged x64 Herostratus on Fedora 22 the whole system freezes and the app never starts.
The app do display the "not enough permissions" window when running without sudo
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.