-
Notifications
You must be signed in to change notification settings - Fork 230
ndb crashes after launching script #204
Comments
The issue should be fixed in |
popping up windows are fixed in |
okay, ndb 1.0.41 events.js:167 Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed the same error on any file that runs forever and does stuff on event. |
What version of Chrome do you have locally installed? |
Version 70.0.3538.110 (Official) (64-bit) |
maybe it's a problem with my system specifically, tell me what to check if there are any possible causes. |
sorry for the multiple comments but here's a list of things I'd want to add, because they might be helpful in finding the cause.
My best guess would be windows NTFS compression since the crashes started occurring randomly and about a week later i found about 25GB of compressed files, so that may be the cause. If it can be, tell me which files does ndb use for me to check if they aren't compressed. De-compressed and anti-compress locked folders that may relate to ndb as of right now are:
Hope we can find the cause, |
Thanks a lot for your diagnostic, I will take a look on Windows as soon as I get my windows machine back, it should happen in next day or two. |
reverted to [email protected] - everything's fine. EDIT: [email protected] - still fine |
i try the version of 1.0.13, [email protected] can work |
Hi, also got this issue. I'm on Windows 10, with node v11.6.0, and [email protected]. Any way I could help out? EDIT: [email protected] seems to work, 1.0.27 & 1.0.28 just gives me a blank window |
I've the same problem. [email protected] is working except the breakpoints have no effect at all. |
Reverting to [email protected] works |
m seeing the same issue
EDIT [email protected] works for me as well |
ndb 1.0.44 ndb 1.0.26 works, including breakpoints |
I noticed that any kind of error, and I think warning would cause ndb to
crash. I would run normally with 'node your_server.js' to be able to see
the errors/warnings, fix any errors or warnings, then run with ndb.
…On Mon, Apr 15, 2019 at 12:35 PM Mehuge ***@***.***> wrote:
ndb 1.0.44
chrome 73.0.3683.103
node v10.11.0
Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed
ndb 1.0.26 works, including breakpoints
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#204 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIEUTQcNwqm-_6FoRcK5M862ouQA5YLdks5vhKpHgaJpZM4Y87HJ>
.
|
node v10.15.3 I'm installing ndb for the first time and having the same issue, any suggestions on a fix? |
I have the same issue. it was working fine with node v10.16.0 and then I removed it and installed 12.4.0 and now after I open it and try to run a script it crashes. I removed it and installed it a couple of times but that didn't work.
|
not an ideal fix but as someone noted above rolling ndb back seems to work, I went back to ndb v1.0.26 and it has been working with node v10.15.3 |
One of the possible reasons of this crash was a broken native terminal dependency. I updated it in |
Could someone with reproducible issue check out |
Since the ECONNRESET issues point here, I'll add another datapoint that I just updated and get ECONNRESET with 1.0.48+. 1.0.47 works ok. Is there any particular debug info that would help? |
@davidlehn could you try to clean install What OS do you use? Another useful information can be get by following steps:
|
I'm on First time you try to launch a script nothing happens, when you click again |
I'm having the same error as well, any updates on this? |
@ZeldOcarina could you check Thank you for your help! It is critical with platform specific bugs like these. |
Thanks, @ZeldOcarina. Does |
@ak239 Yes Aleksey with debugger keyword in place the code actually stops. It's only the manual green flags that aren't working! |
@ZeldOcarina what node version do you use? I built some similar with your's script and set couple breakpoints there. All of them works as expected. At the same time if you would like to trigger pause on error or exception you can activate pause on exception DevTools feature. If you'd like to restart your app - you can use You snippet contains a little mistake - it does not require |
Thanks @ak239. I've corrected the bug in the code. The breakpoints set with the green flag are not working for me but it's fine, I can use "debuger" keyword to handle this. Thanks for the tips on Now the program is functional and that is what matters the most! |
Hi, @ak239 I am using [email protected] and [email protected] . |
@hritique thank you. I believe that I detected problem with breakpoints. It is all about spaces in paths on Windows, DevTools frontend does not replace space with |
Thanks @ak239 , I hope it will get fixed. |
Starting with v10, Node uses file urls in inspector protocol. Breakpoints work iff file path reported using file url. Otherwise provisional breakpoint will use path with spaces, instead of %20. Bug: #204
Starting with v10, Node uses file urls in inspector protocol. Breakpoints work iff file path reported using file url. Otherwise provisional breakpoint will use path with spaces, instead of %20. Bug: #204
Starting with v10, Node uses file urls in inspector protocol. Breakpoints work iff file path reported using file url. Otherwise provisional breakpoint will use path with spaces, instead of %20. Bug: #204
Starting with v10, Node uses file urls in inspector protocol. Breakpoints work iff file path reported using file url. Otherwise provisional breakpoint will use path with spaces, instead of %20. Bug: #204
@hritique please try |
@ak239 Great this works for me now! |
This one needs better fix, once and for everything. I will work on it this week. For now I reverted fix from 1.1.2 and publish 1.1.3 without it. |
Thanks @ak239 I'm starting to realize why Windows isn't that popular amongst developers! |
FileSystem works only with file urls. All breakpoints are set by path and by url. Frontend gets only file urls from ndb backend and passes only file urls to backend. There is only one exception - 'Run this script' frontend action convert script file url to path on frontend side. Over the protocol any url is always returned as file urls (frontend patches messages from Node 8). Debugger.setBreakpointByUrl replaces url with regex pattern: path|url to work with Node 8 and later Nodes. #204
FileSystem works only with file urls. All breakpoints are set by path and by url. Frontend gets only file urls from ndb backend and passes only file urls to backend. There is only one exception - 'Run this script' frontend action convert script file url to path on frontend side. Over the protocol any url is always returned as file urls (frontend patches messages from Node 8). Debugger.setBreakpointByUrl replaces url with regex pattern: path|url to work with Node 8 and later Nodes. #204
I had same problem on Debian, and found I had to run: sudo sysctl -w kernel.unprivileged_userns_clone=1 In my case it is for a dev machine, so I am not too worried about changing this option. |
I'm also having this issue. It fails in the same way after a few seconds. I've been using ndb with this project for a while and have never seen this issue. Could be our project just grew past some limit? Environment:
Problem:
|
i had same problem with npm (os fedora 32 workstation) |
I think #290 is the same as this. I'm having this issue on MacOS and |
Does anyone solve that? |
Both ndb 1.1.4 and 1.1.5 work for me on macOS Catalina |
@Mehuge I have v1.1.5 but looks like this current issue is |
I am getting a similar issue after upgrading to macOS Big Sur from macOS Catalina. No problems on Catalina. I'm running
|
@att14 try this solution. |
Steps to reproduce:
I'm launching ndb with
ndb bot.js
and it launches, starts the script and crashes, the same when i click "start" inside ndb and for example toggle "pause on exceptions" or change tab.There seems to be no problem with code since it works on normal node, but when i open it in ndb, then it crashes.
What happens instead?
ndb throws:
events.js:167
throw er; // Unhandled 'error' event
^
Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed
at ChildProcess.target.send (internal/child_process.js:628:16)
at Rpc.routeMessage_ (C:\Users\user\AppData\Roaming\npm\node_modules\ndb\node_modules\carlo\rpc\rpc.js:379:9)
at page_.exposeFunction.data (C:\Users\user\AppData\Roaming\npm\node_modules\ndb\node_modules\carlo\lib\carlo.js:327:71)
at Page._onBindingCalled (C:\Users\user\AppData\Roaming\npm\node_modules\ndb\node_modules\puppeteer-core\lib\Page.js:516:56)
at CDPSession.Page.client.on.event (C:\Users\user\AppData\Roaming\npm\node_modules\ndb\node_modules\puppeteer-core\lib\Page.js:134:54)
at CDPSession.emit (events.js:182:13)
at CDPSession._onMessage (C:\Users\user\AppData\Roaming\npm\node_modules\ndb\node_modules\puppeteer-core\lib\Connection.js:216:12)
at Connection._onMessage (C:\Users\user\AppData\Roaming\npm\node_modules\ndb\node_modules\puppeteer-core\lib\Connection.js:99:19)
at PipeTransport._dispatch (C:\Users\user\AppData\Roaming\npm\node_modules\ndb\node_modules\puppeteer-core\lib\PipeTransport.js:65:24)
at Socket.PipeTransport._eventListeners.helper.addEventListener.buffer (C:\Users\user\AppData\Roaming\npm\node_modules\ndb\node_modules\puppeteer-core\lib\PipeTransport.js:30:64)
Emitted 'error' event at:
at process.nextTick (internal/child_process.js:632:35)
at process._tickCallback (internal/process/next_tick.js:61:11)
I've tried re-installing ndb, reinstalling all dependencies, reinstalling ms build tools, different flags and stuff. It did work, but lately stopped.
I can add that when this started occuring, the ndb got slow, instead of showing my files immediately, it showed them after 10s, and there are windows popping up, which weren't before (node.EXE and npm)
Thanks in advance.
The text was updated successfully, but these errors were encountered: