Open asarialtun opened 7 years ago
Hi @asarialtun
Can you please specify your local node and npm versions?
Thanks
Baris
I guess its lower than v6. @hwclass maybe we should add supported node versions into readme or transpile server side code to ES5.
@hwclass
Installed latest version (node: 6.9.4 and npm: 3.10.10) on another computer. The app launches (it will still crash for some other reasons, I will report it seperately).
I'll feedback with the failing environment's information shortly.
Thanks @asarialtun, waiting for the comparative results.
@hwclass @altayaydemir It looks node and npm on that PC is outdated by much, node v0.12.2 and npm v2.7.4
Hmm, did you update it? If so, did ziya work properly for you?
@altayaydemir Yes, I updated the versions of node and npm on my PC and Ziya can launch, can view some files.
Ziya crashed twice: once when I tried to view contents of some (probably unspoorted) files
ziya is now working on port 5000 ...
<--- Last few GCs --->
109867 ms: Scavenge 626.9 (653.1) -> 611.2 (653.1) MB, 0.3 / 0.0 ms [allocation failure]. 110106 ms: Scavenge 635.9 (662.1) -> 620.2 (662.1) MB, 0.2 / 0.0 ms [allocation failure]. 110358 ms: Scavenge 644.9 (671.1) -> 629.2 (671.1) MB, 0.2 / 0.0 ms [allocation failure]. 110584 ms: Scavenge 653.9 (680.1) -> 638.2 (680.1) MB, 0.2 / 0.0 ms [allocation failure]. 110811 ms: Scavenge 662.9 (689.1) -> 647.2 (689.1) MB, 0.2 / 0.0 ms [allocation failure].
<--- JS stacktrace --->
==== JS stack trace =========================================
Security context: 00000226778CFB61
1: defineProperty(aka defineProperty) [native v8natives.js:~573] [pc=000001637C5C35C2] (this=0000022677804381 ,D=0000017B1CD4A9B1 <JS Array[1721650280]>,R=11184811,v=000000C2C2CBBD59 <an Object with map 0000017E96338029>) 2: DefineIndexedProperty(aka DefineIndexedProperty) [native array.js:~48] [pc=000001637C5D11BE] (this=0000022677804381 ,w=0000017B1CD4A9B1 <JS ... FATAL ERROR: invalid table size Allocation failed - JavaScript heap out of memory
and second, when I tried to display the contents of my desktop (please note that it happened randomly, when I try again, I can see contents of my desktop folder)
C:\Users[removed]\AppData\Roaming\npm\node_modules\ziya\src\server\utils\getDirectoryContents.js:12 return items.map((item) => { ^
TypeError: Cannot read property 'map' of undefined at getDirectoryContents (C:\Users[removed]\AppData\Roaming\npm\node_modules\ziya\src\server\utils\getDirectoryContents.js:12:15) at fs.readdir (C:\Users[removed]\AppData\Roaming\npm\node_modules\ziya\src\server\index.js:31:21) at FSReqWrap.oncomplete (fs.js:123:15)
Yeah @asarialtun, I have got that map method error on Windows when I tried. Hope that we have found the exact reason of the crashing browser. The content of the directory sometimes or in exact times, doesn't come from our server instance, so the array cannot be fulfilled and some the method providing traversing among the items, map becomes undefined. Thanks @asarialtun ;)
Version Number
1.1.8
Test Case
Installing and running on Windows 10 (built 1607) with node v0.12.2 and npm v2.7.4
Steps to Reproduce
C:\> npm install ziya
C:\>ziya
Expected Behavior
Expected to run on Windows 10
Actual Behavior
Crashes with the error displayed below, without further information about a solution or workaround.