Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Renderer process crash in tests: libdyld.dylib #18790

Closed

Description

@smashwilson

Prerequisites

Description

I'm seeing a consistent renderer process crash when running the core renderer process tests.

Steps to Reproduce

  1. script/test --core-renderer

Expected behavior:

The renderer process tests to complete.

Actual behavior:

The renderer process crashes midway:

[..]
Project > .addPath(path, options) > calls callbacks registered with ::onDidChangePaths [FAIL]
Project > .addPath(path, options) > doesn't add redundant paths [FAIL]
Project > .addPath(path, options) > doesn't add non-existent directories [FAIL]
Project > .addPath(path, options) > optionally throws on non-existent directories [FAIL]
Project > .removePath(path) > removes the directory and repository for the path [FAIL]
Project > .removePath(path) > does nothing if the path is not one of the project's root paths [FAIL]
Project > .removePath(path) > doesn't destroy the repository if it is shared by another root directory [FAIL]
Project > .removePath(path) > removes a path that is represented as a URI 2019-02-05 10:29:26.033 Atom Dev[35931:306634] Renderer process crashed, exiting

Reproduces how often:

100% on my machine, although the final started spec doesn't seem to be consistent.

Versions

You can get this information from copy and pasting the output of atom --version and apm --version from the command line. Also, please include the OS and what version of the OS you're running.

Additional Information

Here's the native stack from Console.app:

Details
Thread 0 Crashed:: CrRendererMain  Dispatch queue: com.apple.main-thread
0   ???                           	0x0000002297c3359f 0 + 148575040927
1   ???                           	0x00000022975a57e3 0 + 148568168419
2   ???                           	0x00000022976ebdd6 0 + 148569505238
3   ???                           	0x00000022975ad1f7 0 + 148568199671
4   ???                           	0x00000022975ad1f7 0 + 148568199671
5   ???                           	0x00000022975ad1f7 0 + 148568199671
6   ???                           	0x00000022975ad1f7 0 + 148568199671
7   ???                           	0x00000022975ad1f7 0 + 148568199671
8   ???                           	0x00000022975ad1f7 0 + 148568199671
9   ???                           	0x00000022975ad1f7 0 + 148568199671
10  ???                           	0x00000022975ad1f7 0 + 148568199671
11  ???                           	0x00000022975ad1f7 0 + 148568199671
12  ???                           	0x0000002297c9e3ba 0 + 148575478714
13  ???                           	0x000000229760f241 0 + 148568601153
14  ???                           	0x00000022975aa5d5 0 + 148568188373
15  ???                           	0x0000002297589701 0 + 148568053505
16  libnode.dylib                 	0x0000000112710ed1 0x111c75000 + 11124433
17  libnode.dylib                 	0x00000001126efcf8 v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>*) + 152
18  libnode.dylib                 	0x00000001121a4496 v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*) + 550
19  com.github.electron.framework 	0x000000010fd33396 0x10d0f6000 + 46388118
20  com.github.electron.framework 	0x000000010fd1feef 0x10d0f6000 + 46309103
21  com.github.electron.framework 	0x00000001100f91b2 0x10d0f6000 + 50344370
22  com.github.electron.framework 	0x000000010f6d580e 0x10d0f6000 + 39712782
23  com.github.electron.framework 	0x000000010d3139f1 0x10d0f6000 + 2218481
24  com.github.electron.framework 	0x000000010f87b2bf 0x10d0f6000 + 41439935
25  com.github.electron.framework 	0x000000010d1086f0 0x10d0f6000 + 75504
26  com.github.electron.framework 	0x000000010d18e1e9 void base::internal::CancelableCallbackImpl<base::RepeatingCallback<void ()> >::ForwardRepeating<>() + 9
27  com.github.electron.framework 	0x000000010d18e11a 0x10d0f6000 + 622874
28  com.github.electron.framework 	0x000000010d18e0e8 0x10d0f6000 + 622824
29  com.github.electron.framework 	0x000000010d18e0ac 0x10d0f6000 + 622764
30  com.github.electron.framework 	0x000000010d18e254 base::internal::Invoker<base::internal::BindState<void (base::internal::CancelableCallbackImpl<base::RepeatingCallback<void ()> >::*)(), base::WeakPtr<base::internal::CancelableCallbackImpl<base::RepeatingCallback<void ()> > > >, void ()>::Run(base::internal::BindStateBase*) + 20
31  com.github.electron.framework 	0x000000010d3139f1 0x10d0f6000 + 2218481
32  com.github.electron.framework 	0x000000010d334f9c 0x10d0f6000 + 2355100
33  com.github.electron.framework 	0x000000010d335846 0x10d0f6000 + 2357318
34  com.github.electron.framework 	0x000000010d3cba73 0x10d0f6000 + 2972275
35  com.github.electron.framework 	0x000000010d3ce78a 0x10d0f6000 + 2983818
36  com.github.electron.framework 	0x000000010d3cb37f 0x10d0f6000 + 2970495
37  com.apple.CoreFoundation      	0x00007fff3b2dc475 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
38  com.apple.CoreFoundation      	0x00007fff3b2dc41b __CFRunLoopDoSource0 + 108
39  com.apple.CoreFoundation      	0x00007fff3b2bfeb5 __CFRunLoopDoSources0 + 195
40  com.apple.CoreFoundation      	0x00007fff3b2bf45e __CFRunLoopRun + 1219
41  com.apple.CoreFoundation      	0x00007fff3b2bed48 CFRunLoopRunSpecific + 463
42  com.apple.Foundation          	0x00007fff3d6254aa -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 280
43  com.github.electron.framework 	0x000000010d3cbf6e 0x10d0f6000 + 2973550
44  com.github.electron.framework 	0x000000010d3cae9e 0x10d0f6000 + 2969246
45  com.github.electron.framework 	0x000000010d359e65 0x10d0f6000 + 2506341
46  com.github.electron.framework 	0x000000010dcd417d 0x10d0f6000 + 12444029
47  com.github.electron.framework 	0x000000010d5131e9 0x10d0f6000 + 4313577
48  com.github.electron.framework 	0x000000010f1b59e2 0x10d0f6000 + 34339298
49  com.github.electron.framework 	0x000000010d511e04 0x10d0f6000 + 4308484
50  com.github.electron.framework 	0x000000010d0f7f04 AtomMain + 68
51  com.github.atom.helper        	0x000000010d0f0e0b main + 43
52  libdyld.dylib                 	0x00007fff6850ced9 start + 1

Activity

  1. smashwilson commented on Feb 22, 2019

    @smashwilson
    ContributorAuthor

    Okay, I used electron-atos to pull Electron symbols for this one:

    Details
    0 + 47456630564500
    0 + 47456630560230
    0 + 47456630520768
    0 + 47456629990869
    0 + 47456629856001
    v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, bool, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>*, v8::internal::Handle<v8::internal::Object>, v8::internal::Execution::MessageHandling, v8::internal::Execution::Target) (in libnode.dylib) (execution.cc:153)
    v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>*) + 152
    v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*) + 550
    node::InternalMakeCallback(node::Environment*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*, node::async_context) + 261
    node::AsyncWrap::MakeCallback(v8::Local<v8::Function>, int, v8::Local<v8::Value>*) + 122
    node::(anonymous namespace)::TimerWrap::OnTimeout(uv_timer_s*) (in libnode.dylib) (timer_wrap.cc:147)
    uv__run_timers (in libnode.dylib) (timer.c:155)
    uv_run + 91
    atom::NodeBindings::UvRunOnce() + 172
    void base::internal::FunctorTraits<void (base::internal::CancelableCallbackImpl<base::RepeatingCallback<void ()> >::*)(), void>::Invoke<base::WeakPtr<base::internal::CancelableCallbackImpl<base::RepeatingCallback<void ()> > > const&>(void (base::internal::CancelableCallbackImpl<base::RepeatingCallback<void ()> >::*)(), base::WeakPtr<base::internal::CancelableCallbackImpl<base::RepeatingCallback<void ()> > > const&&&) (in Electron Framework) (bind_internal.h:447)
    void base::internal::InvokeHelper<true, void>::MakeItSo<void (base::internal::CancelableCallbackImpl<base::RepeatingCallback<void ()> >::* const&)(), base::WeakPtr<base::internal::CancelableCallbackImpl<base::RepeatingCallback<void ()> > > const&>(void (base::internal::CancelableCallbackImpl<base::RepeatingCallback<void ()> >::* const&&&)(), base::WeakPtr<base::internal::CancelableCallbackImpl<base::RepeatingCallback<void ()> > > const&&&) (in Electron Framework) (bind_internal.h:553)
    void base::internal::Invoker<base::internal::BindState<void (base::internal::CancelableCallbackImpl<base::RepeatingCallback<void ()> >::*)(), base::WeakPtr<base::internal::CancelableCallbackImpl<base::RepeatingCallback<void ()> > > >, void ()>::RunImpl<void (base::internal::CancelableCallbackImpl<base::RepeatingCallback<void ()> >::* const&)(), std::__1::tuple<base::WeakPtr<base::internal::CancelableCallbackImpl<base::RepeatingCallback<void ()> > > > const&, 0ul>(void (base::internal::CancelableCallbackImpl<base::RepeatingCallback<void ()> >::* const&&&)(), std::__1::tuple<base::WeakPtr<base::internal::CancelableCallbackImpl<base::RepeatingCallback<void ()> > > > const&&&, std::__1::integer_sequence<unsigned long, 0ul>) (in Electron Framework) (bind_internal.h:604)
    base::internal::Invoker<base::internal::BindState<void (atom::NodeBindings::*)(), base::WeakPtr<atom::NodeBindings> >, void ()>::RunOnce(base::internal::BindStateBase*) + 20
    base::debug::TaskAnnotator::RunTask(char const*, base::PendingTask*) (in Electron Framework) (task_annotator.cc:61)
    base::MessageLoop::RunTask(base::PendingTask*) (in Electron Framework) (message_loop.cc:395)
    base::MessageLoop::DoWork() (in Electron Framework) (message_loop.cc:451)
    base::MessagePumpCFRunLoopBase::RunWork() (in Electron Framework) (message_pump_mac.mm:462)
    base::mac::CallWithEHFrame(void () block_pointer) (in Electron Framework) + 10
    base::MessagePumpCFRunLoopBase::RunWorkSource(void*) (in Electron Framework) (message_pump_mac.mm:441)
    __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    __CFRunLoopDoSource0 + 108
    __CFRunLoopDoSources0 + 195
    __CFRunLoopRun + 1219
    CFRunLoopRunSpecific + 463
    RunCurrentEventLoopInMode + 293
    ReceiveNextEventCommon + 618
    _BlockUntilNextEventMatchingListInModeWithFilter + 64
    _DPSNextEvent + 997
    -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1362
    -[NSApplication run] + 699
    base::MessagePumpNSApplication::DoRun(base::MessagePump::Delegate*) (in Electron Framework) (message_pump_mac.mm:831)
    base::MessagePumpCFRunLoopBase::Run(base::MessagePump::Delegate*) (in Electron Framework) (message_pump_mac.mm:192)
    base::RunLoop::Run() (in Electron Framework) (run_loop.cc:139)
    content::BrowserMainLoop::MainMessageLoopRun() (in Electron Framework) (browser_main_loop.cc:1645)
    content::BrowserMainLoop::RunMainMessageLoopParts() (in Electron Framework) (browser_main_loop.cc:1108)
    content::BrowserMainRunnerImpl::Run() (in Electron Framework) (browser_main_runner.cc:161)
    content::BrowserMain(content::MainFunctionParams const&) (in Electron Framework) (browser_main.cc:46)
    content::ContentMainRunnerImpl::Run() (in Electron Framework) (content_main_runner.cc:703)
    service_manager::Main(service_manager::MainParams const&) (in Electron Framework) (main.cc:453)
    content::ContentMain(content::ContentMainParams const&) (in Electron Framework) (content_main.cc:19)
    AtomMain + 68
    main + 43
    start + 1
    
  2. self-assigned this
    on Feb 25, 2019
  3. added
    electron-3
    on May 14, 2019
  4. jasonrudolph commented on May 14, 2019

    @jasonrudolph
    Contributor

    @smashwilson: Are you able to reproduce this issue? I tried to reproduce it on the electron-3.1 branch (as of 6e2c0b0), but I'm not having any luck.

    When I run script/test --core-renderer locally on that branch, all the tests complete without crashing. (Some of the tests fail, which is certainly something we'll have to address before we can ship the Electron 3.1 upgrade, but none of the tests crash for me.)

  5. smashwilson commented on May 15, 2019

    @smashwilson
    ContributorAuthor

    I think it was likely nsfw-related, but I'll give it a shot 👍

  6. smashwilson commented on May 15, 2019

    @smashwilson
    ContributorAuthor

    Confirmed, I cannot reproduce on the tip of electron-3.1:

    Finished in 446.795 seconds
    2108 tests, 8838 assertions, 99 failures, 2 skipped
    
  7. jasonrudolph commented on May 15, 2019

    @jasonrudolph
    Contributor

    Thanks, @smashwilson. Since we can't reproduce this issue, I'm gonna close it.

    We still need to resolve the test failures, but that will be a natural part of shipping the electron-3.1 branch.

  8. self-assigned this
    on May 15, 2019
  9. lock commented on Nov 11, 2019

    @lock

    This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

  10. locked as resolved and limited conversation to collaborators on Nov 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

crashelectron-3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions