kiddkai / atom-node-debugger

A Nodejs Debugger For Atom
MIT License
265 stars 75 forks source link

Node binary crash after stopping debugger #177

Open patrickjane opened 8 years ago

patrickjane commented 8 years ago

When I stop debugging using the X button or S-F5, I will get a macos notification stating that node has crashed. This will be the detailed crash info:

Process: node [19073] Path: /usr/local/bin/node Identifier: node Version: ??? Code Type: X86-64 (Native) Parent Process: Atom Helper [19051] Responsible: Atom [19047] User ID: 501

Date/Time: 2016-06-11 13:56:19.627 +0200 OS Version: Mac OS X 10.11 (15A284) Report Version: 11 Anonymous UUID: FC6F10D5-27B9-88F7-E9D5-D26DCE6C742B

Sleep/Wake UUID: 68DF51D4-356D-4E36-9856-40C89DE15546

Time Awake Since Boot: 170000 seconds Time Since Wake: 2000 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000

Application Specific Information: Assertion failed: ((err) == (0)), function Stop, file ../src/debug-agent.cc, line 155.

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x00007fff8bad00ae __pthread_kill + 10 1 libsystem_pthread.dylib 0x00007fff8dec7500 pthread_kill + 90 2 libsystem_c.dylib 0x00007fff8887437b abort + 129 3 libsystem_c.dylib 0x00007fff8883b9c4 __assert_rtn + 321 4 node 0x000000010449631f node::debugger::Agent::Stop() + 257 5 node 0x0000000104496168 node::debugger::Agent::~Agent() + 18 6 node 0x00000001044972d8 node::Environment::~Environment() + 1190 7 node 0x00000001044aba69 node::Start(int, char**) + 720 8 node 0x0000000103ce1d34 start + 52

Thread 1:: V8 WorkerThread 0 libsystem_kernel.dylib 0x00007fff8bacacd2 semaphore_wait_trap + 10 1 node 0x00000001045eb677 v8::base::Semaphore::Wait() + 23 2 node 0x0000000104509029 v8::platform::TaskQueue::GetNext() + 57 3 node 0x000000010450922b v8::platform::WorkerThread::Run() + 43 4 node 0x00000001045ed377 v8::base::ThreadEntry(void*) + 87 5 libsystem_pthread.dylib 0x00007fff8dec49b1 _pthread_body + 131 6 libsystem_pthread.dylib 0x00007fff8dec492e _pthread_start + 168 7 libsystem_pthread.dylib 0x00007fff8dec2385 thread_start + 13

Thread 2:: V8 WorkerThread 0 libsystem_kernel.dylib 0x00007fff8bacacd2 semaphore_wait_trap + 10 1 node 0x00000001045eb677 v8::base::Semaphore::Wait() + 23 2 node 0x0000000104509029 v8::platform::TaskQueue::GetNext() + 57 3 node 0x000000010450922b v8::platform::WorkerThread::Run() + 43 4 node 0x00000001045ed377 v8::base::ThreadEntry(void*) + 87 5 libsystem_pthread.dylib 0x00007fff8dec49b1 _pthread_body + 131 6 libsystem_pthread.dylib 0x00007fff8dec492e _pthread_start + 168 7 libsystem_pthread.dylib 0x00007fff8dec2385 thread_start + 13

Thread 3:: V8 WorkerThread 0 libsystem_kernel.dylib 0x00007fff8bacacd2 semaphore_wait_trap + 10 1 node 0x00000001045eb677 v8::base::Semaphore::Wait() + 23 2 node 0x0000000104509029 v8::platform::TaskQueue::GetNext() + 57 3 node 0x000000010450922b v8::platform::WorkerThread::Run() + 43 4 node 0x00000001045ed377 v8::base::ThreadEntry(void*) + 87 5 libsystem_pthread.dylib 0x00007fff8dec49b1 _pthread_body + 131 6 libsystem_pthread.dylib 0x00007fff8dec492e _pthread_start + 168 7 libsystem_pthread.dylib 0x00007fff8dec2385 thread_start + 13

Thread 4:: V8 WorkerThread 0 libsystem_kernel.dylib 0x00007fff8bacacd2 semaphore_wait_trap + 10 1 node 0x00000001045eb677 v8::base::Semaphore::Wait() + 23 2 node 0x0000000104509029 v8::platform::TaskQueue::GetNext() + 57 3 node 0x000000010450922b v8::platform::WorkerThread::Run() + 43 4 node 0x00000001045ed377 v8::base::ThreadEntry(void*) + 87 5 libsystem_pthread.dylib 0x00007fff8dec49b1 _pthread_body + 131 6 libsystem_pthread.dylib 0x00007fff8dec492e _pthread_start + 168 7 libsystem_pthread.dylib 0x00007fff8dec2385 thread_start + 13

I am using the debugger in version 1.7.0, but I had this also in previous versions. Atom version 1.8.0 Node v6.0.0

I had this from the beginning even with node v5.x.x, which is why I even completely wiped my atom and node installation and reinstalled - with no success.

Also I noticed that the most recent version feels more sluggish, sometimes the debugger will not continue to step to the next line and you will have to restart it.

Another issue I have since the beginning is that the debugger seems to get slower over time, the longer youre working with atom. After a while, it gets barely usable, until I restart atom completely.

I have to say though that I dont have any of those issues on my iMac at work, with the same setup.