Comments (12)
What's the full output ?
from proton-native.
Closing due to inactivity. Feel free to open it if the issue persists.
from proton-native.
@kusti8
That really is the full output:
I'm guessing there is some error in native code (hence no error details).
$ npm run notes
> [email protected] notes C:\Users\nikla\Desktop\DEV\proton-native
> babel-node examples/Notepad/index.js
npm ERR! code ELIFECYCLE
npm ERR! errno 2147483651
npm ERR! [email protected] notes: `babel-node examples/Notepad/index.js`
npm ERR! Exit status 2147483651
npm ERR!
npm ERR! Failed at the [email protected] notes script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\nikla\AppData\Roaming\npm-cache\_logs\2018-03-08T11_32_57_429Z-debug.log
log:
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'notes' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prenotes', 'notes', 'postnotes' ]
5 info lifecycle [email protected]~prenotes: [email protected]
6 info lifecycle [email protected]~notes: [email protected]
7 verbose lifecycle [email protected]~notes: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~notes: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\nikla\Desktop\DEV\proton-native\node_modules\.bin;C:\Users\nikla\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\local\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\usr\bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\nikla\bin;C:\Users\nikla\.windows-build-tools\python27;C:\Users\nikla\.windows-build-tools\python27\Scripts;C:\Program Files\Docker\Docker\Resources\bin;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit;C:\ProgramData\chocolatey\bin;C:\Program Files\Git\cmd;C:\Program Files\nodejs;C:\Program Files (x86)\Yarn\bin;C:\Users\nikla\AppData\Local\Programs\Python\Python36\Scripts;C:\Users\nikla\AppData\Local\Programs\Python\Python36;C:\Users\nikla\AppData\Local\Microsoft\WindowsApps;C:\Users\nikla\AppData\Local\GitHubDesktop\bin;C:\Program Files (x86)\Windows Kits\10\bin\x86;C:\Users\nikla\AppData\Roaming\npm;C:\Users\nikla\AppData\Local\Yarn\bin;C:\Program Files\Git\usr\bin\vendor_perl;C:\Program Files\Git\usr\bin\core_perl
9 verbose lifecycle [email protected]~notes: CWD: C:\Users\nikla\Desktop\DEV\proton-native
10 silly lifecycle [email protected]~notes: Args: [ '/d /s /c', 'babel-node examples/Notepad/index.js' ]
11 silly lifecycle [email protected]~notes: Returned: code: 2147483651 signal: null
12 info lifecycle [email protected]~notes: Failed to exec notes script
13 verbose stack Error: [email protected] notes: `babel-node examples/Notepad/index.js`
13 verbose stack Exit status 2147483651
13 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:285:16)
13 verbose stack at EventEmitter.emit (events.js:127:13)
13 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:127:13)
13 verbose stack at maybeClose (internal/child_process.js:936:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
14 verbose pkgid [email protected]
15 verbose cwd C:\Users\nikla\Desktop\DEV\proton-native
16 verbose Windows_NT 10.0.16299
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "notes"
18 verbose node v9.7.1
19 verbose npm v5.6.0
20 error code ELIFECYCLE
21 error errno 2147483651
22 error [email protected] notes: `babel-node examples/Notepad/index.js`
22 error Exit status 2147483651
23 error Failed at the [email protected] notes script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 2147483651, true ]
code:
<App>
<Menu label="File">
<Menu.Item type="Item" onClick={() => this.open()}>Open</Menu.Item>
<Menu.Item type="Item" onClick={() => this.save()}>Save</Menu.Item>
<Menu.Item type="Quit"></Menu.Item>
</Menu>
<Window title="Notes" size={{w: 500, h: 500}}>
<Box>
<TextInput onChange={text => this.setState({text})} multiline={true}>{this.state.text}</TextInput>
</Box>
</Window>
</App>
from proton-native.
@parro-it This looks like some crash in native code (libui-node) ? My attempts at using a debugger on Windows weren't successful.
from proton-native.
It seems. Did you already try it with the 0_1_0 branch? I will otherwise...
from proton-native.
Yes, exact same error.
from proton-native.
proton-native calls UiMenuItem.onClicked
also on type="Quit"
items. This causes the crash.
from proton-native.
I will try it tonight... I developed the new version on seven, I didn't yet tested it on 10.
from proton-native.
Proposed fix: Removing line
proton-native/src/components/MenuBar.js
Line 83 in 7741dd2
Would this have other side effects?
from proton-native.
from proton-native.
On macOS, libui prints an error before it quits:
You can't call uiMenuItemOnClicked() on a Quit item; use uiOnShouldQuit() instead.
Not on Windows, I created an issue: andlabs/libui#301.
(Any idea why proton-native works fine on macOS?)
from proton-native.
As I said in that other issue, on Windows libui prints things to the debug log, which is your only real course of action on a /subsystem:windows
program; you can use SysInternals DebugView if you aren't running in an actual debugger. I could make it print to stderr in addition to that, maybe... or provide a custom reporting option, maybe...
from proton-native.
Related Issues (20)
- Need to update install instructions HOT 1
- What is the difference between Proton Native and React Native for Windows by Microsoft ? HOT 1
- Embedded database
- example use of HTML5 canvas
- How do I add screen management to my project
- Screen Management
- No matching version found for node-qt-napi@^0.0.4.
- Little typo error on proton-native wep page
- Error while running exe created
- [macOS] Create a spotlight-like window HOT 3
- Integrating with existing React-Native apps
- continuation HOT 5
- Error Executig npm start
- Unable to create a Proton-Native App in Raspberry Pi 4B HOT 3
- Will anyone ever make a fork of this repo? HOT 16
- Problems with converting the notepad example from js to tsx
- How do you log to the console? HOT 1
- Proton-native in 2022 HOT 1
- Usage on windows
- Display window above other Fullscreen windows (Games) on Windows OS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from proton-native.