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.

Native crash while editing text #18915

Closed
Closed

Description

@smashwilson

I just saw this native renderer-process crash on macOS. I was typing into a TextBuffer, Atom froze and beachballed for a few moments, then I got the "renderer process has crashed" notification.

Details
0 + 78345104964
0 + 78345109459
0 + 78344540663
0 + 78344540663
0 + 78344540663
0 + 78344540663
0 + 78348112298
0 + 78344540663
0 + 78344540663
0 + 78344768864
0 + 78344624236
0 + 78344402753
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::TryCall(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>*, v8::internal::Execution::MessageHandling, v8::internal::MaybeHandle<v8::internal::Object>*, v8::internal::Execution::Target) (in libnode.dylib) (execution.cc:239)
v8::internal::Execution::RunMicrotasks(v8::internal::Isolate*, v8::internal::Execution::MessageHandling, v8::internal::MaybeHandle<v8::internal::Object>*) (in libnode.dylib) (execution.cc:270)
v8::internal::Isolate::RunMicrotasks() (in libnode.dylib) (isolate.cc:3887)
blink::V8ScriptRunner::CallFunction(v8::Local<v8::Function>, blink::ExecutionContext*, v8::Local<v8::Value>, int, v8::Local<v8::Value>*, v8::Isolate*) (in Electron Framework) (optional.h:62)
blink::V8EventListener::CallListenerFunction(blink::ScriptState*, v8::Local<v8::Value>, blink::Event*) (in Electron Framework) (V8EventListener.cpp:115)
blink::V8AbstractEventListener::InvokeEventHandler(blink::ScriptState*, blink::Event*, v8::Local<v8::Value>) (in Electron Framework) (V8AbstractEventListener.cpp:153)
blink::V8AbstractEventListener::HandleEvent(blink::ScriptState*, blink::Event*) (in Electron Framework) (V8AbstractEventListener.cpp:106)
blink::V8AbstractEventListener::handleEvent(blink::ExecutionContext*, blink::Event*) (in Electron Framework) (V8AbstractEventListener.cpp:0)
blink::EventTarget::FireEventListeners(blink::Event*, blink::EventTargetData*, blink::HeapVector<blink::RegisteredEventListener, 1ul>&) (in Electron Framework) (EventTarget.cpp:814)
blink::EventTarget::FireEventListeners(blink::Event*) (in Electron Framework) (EventTarget.cpp:661)
blink::EventTarget::DispatchEventInternal(blink::Event*) (in Electron Framework) (EventTarget.cpp:566)
blink::XMLHttpRequestProgressEventThrottle::DispatchReadyStateChangeEvent(blink::Event*, blink::XMLHttpRequestProgressEventThrottle::DeferredEventAction) (in Electron Framework) (XMLHttpRequestProgressEventThrottle.cpp:137)
blink::XMLHttpRequest::DispatchReadyStateChangeEvent() (in Electron Framework) (XMLHttpRequest.cpp:625)
blink::XMLHttpRequest::EndLoading() (in Electron Framework) (XMLHttpRequest.cpp:1762)
blink::XMLHttpRequest::DidFinishLoadingInternal() (in Electron Framework) (XMLHttpRequest.cpp:1695)
blink::XMLHttpRequest::DidFinishLoading(unsigned long, double) (in Electron Framework) (XMLHttpRequest.cpp:1671)
blink::DocumentThreadableLoader::HandleSuccessfulFinish(unsigned long, double) (in Electron Framework) (DocumentThreadableLoader.cpp:1129)
blink::Resource::NotifyFinished() (in Electron Framework) (ResourceClientWalker.h:49)
blink::ResourceFetcher::HandleLoaderFinish(blink::Resource*, double, blink::ResourceFetcher::LoaderFinishType, unsigned int, bool) (in Electron Framework) (ResourceFetcher.cpp:1442)
content::WebURLLoaderImpl::Context::OnCompletedRequest(network::URLLoaderCompletionStatus const&) (in Electron Framework) (trace_event.h:1094)
content::WebURLLoaderImpl::Context::HandleDataURL() (in Electron Framework) (web_url_loader_impl.cc:1084)
base::debug::TaskAnnotator::RunTask(char const*, base::PendingTask*) (in Electron Framework) (task_annotator.cc:61)
blink::scheduler::internal::ThreadControllerImpl::DoWork(blink::scheduler::internal::Sequence::WorkType) (in Electron Framework) (thread_controller_impl.cc:164)
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
-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 280
base::MessagePumpNSRunLoop::DoRun(base::MessagePump::Delegate*) (in Electron Framework) (message_pump_mac.mm:734)
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::RendererMain(content::MainFunctionParams const&) (in Electron Framework) (renderer_main.cc:235)
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

Seen on the last Atom nightly with Electron 3:

$ atom-nightly --version
Atom    : 1.37.0-nightly5
Electron: 3.1.3
Chrome  : 66.0.3359.181
Node    : 10.2.0

Activity

  1. lee-dohm commented on Feb 26, 2019

    @lee-dohm
    Contributor

    Would you mind including the version info?

  2. smashwilson commented on Feb 26, 2019

    @smashwilson
    ContributorAuthor

    Oh, right. Edited in 👍

  3. winstliu commented on Feb 26, 2019

    @winstliu
    Contributor

    Can confirm that I've seen a few crashes as described. Typing, realizing nothing's showing up, followed by a crash/disappearance a few seconds later.

  4. added
    electron-3
    and removed on May 14, 2019
  5. nathansobo commented on May 24, 2019

    @nathansobo
    Contributor

    Now that we're getting clarity on the causes of #19372, I think we can close this issue as a duplicate. Bottom-line: We were using a version of mksnapshot to construct our startup snapshots that left us vulnerable to segmentation faults. I think that was likely the cause of this crash as well, and we don't have enough actionable information on this issue to do much else with it at this point. Thanks for opening it however as it was helpful to have this data point.

  6. lock commented on Nov 20, 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!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    crashelectron-3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions