[GH-ISSUE #199] Tabs within a Grid crashes the application #134

Closed
opened 2026-05-05 11:46:51 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @bliekp on GitHub (Feb 7, 2019).
Original GitHub issue: https://github.com/kusti8/proton-native/issues/199

I'm trying to recreate an interface using Proton. I want to be able to use tabs in a certain area of the window... I used the following code:

              <Grid padded={true} stretchy={false}>
                <Tab row={0} column={0}>            
                  <TextInput label="Tab1" />
                  <TextInput label="Tab2" /> 
                </Tab>
                <TextInput row={0} column={1}>
                  Hi
                </TextInput>
              </Grid>

This crashes the app immediately after launch. Log:

 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   'start' ]                                                                                                                                                                                                                               
2 info using npm@6.4.1                                                                                                                                                                                                                                  
3 info using node@v10.15.1                                                                                                                                                                                                                              
4 verbose run-script [ 'prestart', 'start', 'poststart' ]                                                                                                                                                                                               
5 info lifecycle xxx@6.0.0~prestart: xxx@6.0.0                                                                                                                                                                                              
6 info lifecycle xxx@6.0.0~start: xxx@6.0.0                                                                                                                                                                                                 
7 verbose lifecycle xxx@6.0.0~start: unsafe-perm in lifecycle true                                                                                                                                                                                
8 verbose lifecycle xxx@6.0.0~start: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\pingw\Development\xxx-proton\node_modules\.bin;C:\Users\pingw\bin;C:\Program Files\Git\mingw64\bin;C:\P rogram 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\pingw\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\Wi ndowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\PuTTY;C:\Program Files\Git\cmd;C:\Program Files\nodejs;C:\Users\pingw\.windows-build-tools\python27;C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C :\Users\pingw\AppData\Roaming\npm\node_modules\windows-build-tools\node_modules\.bin;C:\Users\pingw\AppData\Roaming\npm\node_modules\.bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\ System32\OpenSSH;C:\Program Files\PuTTY;C:\Program Files\Git\cmd;C:\Program Files\nodejs;C:\Users\pingw\AppData\Local\Microsoft\WindowsApps;C:\Users\pingw\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\pingw\AppData\Local\atom\bin;C:\Users\p ingw\AppData\Roaming\npm;C:\Users\pingw\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Git\usr\bin\vendor_perl;C:\Program Files\Git\usr\bin\core_perl                                                                                             
9 verbose lifecycle xxx@6.0.0~start: CWD: C:\Users\pingw\Development\xxx-proton                                                                                                                                                             
10 silly lifecycle xxx@6.0.0~start: Args: [ '/d /s /c', 'babel-node index.js' ]                                                                                                                                                                   
11 silly lifecycle xxx@6.0.0~start: Returned: code: 3221225477  signal: null                                                                                                                                                                      
12 info lifecycle xxx@6.0.0~start: Failed to exec start script                                                                                                                                                                                    
13 verbose stack Error: xxx@6.0.0 start: `babel-node index.js`                                                                                                                                                                                    
13 verbose stack Exit status 3221225477                                                                                                                                                                                                                 
13 verbose stack     at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16)                                                                                                                   13 verbose stack     at EventEmitter.emit (events.js:189:13)                                                                                                                                                                                            
13 verbose stack     at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)                                                                                                                13 verbose stack     at ChildProcess.emit (events.js:189:13)                                                                                                                                                                                            
13 verbose stack     at maybeClose (internal/child_process.js:970:16)                                                                                                                                                                                   
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)                                                                                                                                                           
14 verbose pkgid xxx@6.0.0                                                                                                                                                                                                                        
15 verbose cwd C:\Users\pingw\Development\xxx-proton                                                                                                                                                                                              
16 verbose Windows_NT 10.0.17763                                                                                                                                                                                                                        
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "start"                                                                                                                     
18 verbose node v10.15.1                                                                                                                                                                                                                                
19 verbose npm  v6.4.1                                                                                                                                                                                                                                  
20 error code ELIFECYCLE                                                                                                                                                                                                                                
21 error errno 3221225477                                                                                                                                                                                                                               
22 error xxx@6.0.0 start: `babel-node index.js`                                                                                                                                                                                                   
22 error Exit status 3221225477                                                                                                                                                                                                                         
23 error Failed at the xxx@6.0.0 start script.                                                                                                                                                                                                    
23 error This is probably not a problem with npm. There is likely additional logging output above.                                                                                                                                                      
24 verbose exit [ 3221225477, true ]
--
Originally created by @bliekp on GitHub (Feb 7, 2019). Original GitHub issue: https://github.com/kusti8/proton-native/issues/199 I'm trying to recreate an interface using Proton. I want to be able to use tabs in a certain area of the window... I used the following code: ```javascript <Grid padded={true} stretchy={false}> <Tab row={0} column={0}> <TextInput label="Tab1" /> <TextInput label="Tab2" /> </Tab> <TextInput row={0} column={1}> Hi </TextInput> </Grid> ``` This crashes the app immediately after launch. Log: ``` 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 'start' ] 2 info using npm@6.4.1 3 info using node@v10.15.1 4 verbose run-script [ 'prestart', 'start', 'poststart' ] 5 info lifecycle xxx@6.0.0~prestart: xxx@6.0.0 6 info lifecycle xxx@6.0.0~start: xxx@6.0.0 7 verbose lifecycle xxx@6.0.0~start: unsafe-perm in lifecycle true 8 verbose lifecycle xxx@6.0.0~start: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\pingw\Development\xxx-proton\node_modules\.bin;C:\Users\pingw\bin;C:\Program Files\Git\mingw64\bin;C:\P rogram 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\pingw\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\Wi ndowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\PuTTY;C:\Program Files\Git\cmd;C:\Program Files\nodejs;C:\Users\pingw\.windows-build-tools\python27;C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C :\Users\pingw\AppData\Roaming\npm\node_modules\windows-build-tools\node_modules\.bin;C:\Users\pingw\AppData\Roaming\npm\node_modules\.bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\ System32\OpenSSH;C:\Program Files\PuTTY;C:\Program Files\Git\cmd;C:\Program Files\nodejs;C:\Users\pingw\AppData\Local\Microsoft\WindowsApps;C:\Users\pingw\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\pingw\AppData\Local\atom\bin;C:\Users\p ingw\AppData\Roaming\npm;C:\Users\pingw\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Git\usr\bin\vendor_perl;C:\Program Files\Git\usr\bin\core_perl 9 verbose lifecycle xxx@6.0.0~start: CWD: C:\Users\pingw\Development\xxx-proton 10 silly lifecycle xxx@6.0.0~start: Args: [ '/d /s /c', 'babel-node index.js' ] 11 silly lifecycle xxx@6.0.0~start: Returned: code: 3221225477 signal: null 12 info lifecycle xxx@6.0.0~start: Failed to exec start script 13 verbose stack Error: xxx@6.0.0 start: `babel-node index.js` 13 verbose stack Exit status 3221225477 13 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16) 13 verbose stack at EventEmitter.emit (events.js:189:13) 13 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14) 13 verbose stack at ChildProcess.emit (events.js:189:13) 13 verbose stack at maybeClose (internal/child_process.js:970:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) 14 verbose pkgid xxx@6.0.0 15 verbose cwd C:\Users\pingw\Development\xxx-proton 16 verbose Windows_NT 10.0.17763 17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "start" 18 verbose node v10.15.1 19 verbose npm v6.4.1 20 error code ELIFECYCLE 21 error errno 3221225477 22 error xxx@6.0.0 start: `babel-node index.js` 22 error Exit status 3221225477 23 error Failed at the xxx@6.0.0 start script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 3221225477, true ] -- ```
Author
Owner

@bliekp commented on GitHub (Feb 7, 2019):

It launches ok if I leave the two TextInput lines out...

Also good to know:
This Grid is within a Box within a Group witin a Window. So:

<Window>
   <Group>
      <Box>
         <Grid>
<!-- gh-comment-id:461516004 --> @bliekp commented on GitHub (Feb 7, 2019): It launches ok if I leave the two TextInput lines out... Also good to know: This Grid is within a Box within a Group witin a Window. So: ```javascript <Window> <Group> <Box> <Grid> ```
Author
Owner

@bliekp commented on GitHub (Feb 7, 2019):

Workaround:

It does work if you place a Box around the Tab...

                <Box row={0} column={0}>
                  <Tab>
                    <TextInput label="Tab1" />
                    <TextInput label="Tab2" />
                  </Tab>
                </Box>
<!-- gh-comment-id:461519691 --> @bliekp commented on GitHub (Feb 7, 2019): Workaround: It does work if you place a Box around the Tab... ```javascript <Box row={0} column={0}> <Tab> <TextInput label="Tab1" /> <TextInput label="Tab2" /> </Tab> </Box> ```
Author
Owner

@kusti8 commented on GitHub (Jan 19, 2020):

Proton Native V2 is now released! If the issue still occurs in the new update, please open a new issue.

<!-- gh-comment-id:576029299 --> @kusti8 commented on GitHub (Jan 19, 2020): Proton Native V2 is now released! If the issue still occurs in the new update, please open a new issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/proton-native#134
No description provided.