<h3 dir="auto">Preflight Checklist</h3>

<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong>
<ul dir="auto">
<li>6.0.0-beta3</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>macOS 10.13.6 10.14.4 / Windows 7 --&gt;</li>
</ul>
</li>
<li><strong>Last Known Working Electron version:</strong>:
<ul dir="auto">
<li>5.0.1</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">Clicked button  in renderer process, then show file chooser dialog and choose local files.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">Clicked button  in renderer process, then crash electron app.</p>
<h3 dir="auto">To Reproduce</h3>
<ol dir="auto">
<li>Clone and start sample app</li>
</ol>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ git clone https://github.com/agata/crash-electron-with-file-picker-dialog.git
$ cd ./crash-electron-with-file-picker-dialog
$ npm install
$ npm start"><pre class="notranslate">$ git clone https://github.com/agata/crash-electron-with-file-picker-dialog.git
$ <span class="pl-c1">cd</span> ./crash-electron-with-file-picker-dialog
$ npm install
$ npm start</pre></div>
<ol start="3" dir="auto">
<li>Click a button in the app -&gt; Crash electron app</li>
</ol>
<h3 dir="auto">Screenshots</h3>
<h4 dir="auto">Electron 5.0.1</h4>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/40473/57963337-ca08bb00-795d-11e9-9da0-75a2ca3e55d9.png"><img width="1261" alt="Electron-5 0 1" src="https://user-images.githubusercontent.com/40473/57963337-ca08bb00-795d-11e9-9da0-75a2ca3e55d9.png" style="max-width: 100%;"></a></p>
<h4 dir="auto">Electron 6.0.0-beta.3</h4>
<p dir="auto">Screencast: <a href="https://github.com/electron/electron/files/3193544/Electron-6.0.0-beta.3.mov.zip">Electron-6.0.0-beta.3.mov.zip</a></p>
<h3 dir="auto">Additional Information</h3>
<ul dir="auto">
<li>Electron version: 1.8.2-beta1</li>
<li>Operating system: Mac 10.12.6</li>
</ul>
<h3 dir="auto">Expected behavior</h3>

<p dir="auto">Not crash</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">crash</p>

<h3 dir="auto">How to reproduce</h3>
<p dir="auto">It seems like use auto-updater.check() may be crash. Not 100% occur</p>
<p dir="auto">the crash report</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="perating system: Mac OS X
                  10.12.5 16F73
CPU: amd64
     family 6 model 70 stepping 1
     8 CPUs

GPU: UNKNOWN

Crash reason:  EXC_BAD_ACCESS / EXC_I386_GPFLT
Crash address: 0x1046326e3
Process uptime: 6447 seconds

Thread 14 (crashed)
 0  Electron Framework!&lt;name omitted&gt; [transport_security_state.cc : 865 + 0x3]
    rax = 0xbadda3319a85bead   rdx = 0x00007f962ff47030
    rcx = 0x00007f962fe25a20   rbx = 0x00007f962fe25a20
    rsi = 0x00007f962fe25b00   rdi = 0x0000600000628a20
    rbp = 0x000070000e2b2150   rsp = 0x000070000e2b20d0
     r8 = 0x000070000e2b2120    r9 = 0x000070000e2b2008
    r10 = 0x0000000000000000   r11 = 0x0000000000000000
    r12 = 0x0000000000000000   r13 = 0x00007f962fe25a68
    r14 = 0x00007f962ff47030   r15 = 0x0000000000000000
    rip = 0x00000001046326e3
    Found by: given as instruction pointer in context
 1  Electron Framework!net::SSLClientSocketImpl::VerifyCT() [ssl_client_socket_impl.cc : 1557 + 0x5]
    rbp = 0x000070000e2b21d0   rsp = 0x000070000e2b2160
    rip = 0x000000010461e70a
    Found by: previous frame's frame pointer
 2  Electron Framework!net::SSLClientSocketImpl::DoVerifyCertComplete(int) [ssl_client_socket_impl.cc : 1231 + 0x8]
    rbp = 0x000070000e2b22a0   rsp = 0x000070000e2b21e0
    rip = 0x000000010461e4ab
    Found by: previous frame's frame pointer
 3  Electron Framework!net::SSLClientSocketImpl::DoHandshakeLoop(int) [ssl_client_socket_impl.cc : 1325 + 0xb]
    rbp = 0x000070000e2b2300   rsp = 0x000070000e2b22b0
    rip = 0x000000010461c08d
    Found by: previous frame's frame pointer
 4  Electron Framework!net::SSLClientSocketImpl::OnHandshakeIOComplete(int) [ssl_client_socket_impl.cc : 1288 + 0x5]
    rbp = 0x000070000e2b2340   rsp = 0x000070000e2b2310
    rip = 0x000000010461dbe5
    Found by: previous frame's frame pointer
 5  Electron Framework!net::CachingCertVerifier::OnRequestFinished(net::CertVerifier::RequestParams const&amp;, base::Time, base::Callback&lt;void (int), (base::internal::CopyMode)1, (base::internal::RepeatMode)1&gt; const&amp;, net::CertVerifyResult*, int) [callback.h : 80 + 0x3]
    rbp = 0x000070000e2b2370   rsp = 0x000070000e2b2350
    rip = 0x0000000104443699
    Found by: previous frame's frame pointer
 6  Electron Framework!net::CertVerifierJob::OnJobCompleted(std::__1::unique_ptr&lt;net::(anonymous namespace)::ResultHelper, std::__1::default_delete&lt;net::(anonymous namespace)::ResultHelper&gt; &gt;) [callback.h : 91 + 0x7]
    rbp = 0x000070000e2b2400   rsp = 0x000070000e2b2380
    rip = 0x0000000104530317
    Found by: previous frame's frame pointer
 7  Electron Framework!base::internal::Invoker&lt;base::internal::BindState&lt;void (net::CertVerifierJob::*)(std::__1::unique_ptr&lt;net::(anonymous namespace)::ResultHelper, std::__1::default_delete&lt;net::(anonymous namespace)::ResultHelper&gt; &gt;), base::WeakPtr&lt;net::CertVerifierJob&gt;, base::internal::PassedWrapper&lt;std::__1::unique_ptr&lt;net::(anonymous namespace)::ResultHelper, std::__1::default_delete&lt;net::(anonymous namespace)::ResultHelper&gt; &gt; &gt; &gt;, void ()&gt;::Run(base::internal::BindStateBase*) [bind_internal.h : 214 + 0x3]
    rbp = 0x000070000e2b2560   rsp = 0x000070000e2b2410
    rip = 0x00000001045307ca
    Found by: previous frame's frame pointer
 8  Electron Framework!base::(anonymous namespace)::PostTaskAndReplyRelay::RunReplyAndSelfDestruct() [callback.h : 91 + 0x3]
    rbp = 0x000070000e2b2590   rsp = 0x000070000e2b2570
    rip = 0x0000000102d264a7
    Found by: previous frame's frame pointer
 9  Electron Framework!&lt;name omitted&gt; [callback.h : 91 + 0x3]
    rbp = 0x000070000e2b26d0   rsp = 0x000070000e2b25a0
    rip = 0x0000000102d4f721
    Found by: previous frame's frame pointer
10  Electron Framework!&lt;name omitted&gt; [message_loop.cc : 423 + 0xf]
    rbp = 0x000070000e2b27a0   rsp = 0x000070000e2b26e0
    rip = 0x0000000102d17adb
    Found by: previous frame's frame pointer
11  Electron Framework!&lt;name omitted&gt; [message_loop.cc : 434 + 0xb]
    rbp = 0x000070000e2b27c0   rsp = 0x000070000e2b27b0
    rip = 0x0000000102d17e2c
    Found by: previous frame's frame pointer
12  Electron Framework!&lt;name omitted&gt; [message_loop.cc : 527 + 0xb]
    rbp = 0x000070000e2b2950   rsp = 0x000070000e2b27d0
    rip = 0x0000000102d181e3
    Found by: previous frame's frame pointer
13  Electron Framework!&lt;name omitted&gt; [message_pump_libevent.cc : 219 + 0x9]
    rbp = 0x000070000e2b29c0   rsp = 0x000070000e2b2960
    rip = 0x0000000102d1aa05
    Found by: previous frame's frame pointer
14  Electron Framework!&lt;name omitted&gt; [message_loop.cc : 387 + 0x9]
    rbp = 0x000070000e2b2b10   rsp = 0x000070000e2b29d0
    rip = 0x0000000102d177ae
    Found by: previous frame's frame pointer
15  Electron Framework!base::RunLoop::Run() [run_loop.cc : 37 + 0x5]
    rbp = 0x000070000e2b2ba0   rsp = 0x000070000e2b2b20
    rip = 0x0000000102d308e3
    Found by: previous frame's frame pointer
16  Electron Framework!&lt;name omitted&gt; [browser_thread_impl.cc : 278 + 0x5]
    rbp = 0x000070000e2b2cf0   rsp = 0x000070000e2b2bb0
    rip = 0x0000000102fa7ce8
    Found by: previous frame's frame pointer
17  Electron Framework!&lt;name omitted&gt; [browser_thread_impl.cc : 313 + 0xb]
    rbp = 0x000070000e2b2e50   rsp = 0x000070000e2b2d00
    rip = 0x0000000102fa7e76
    Found by: previous frame's frame pointer
18  Electron Framework!&lt;name omitted&gt; [thread.cc : 333 + 0xd]
    rbp = 0x000070000e2b2ec0   rsp = 0x000070000e2b2e60
    rip = 0x0000000102d52789
    Found by: previous frame's frame pointer
19  Electron Framework!base::(anonymous namespace)::ThreadFunc(void*) [platform_thread_posix.cc : 71 + 0x8]
    rbp = 0x000070000e2b2ef0   rsp = 0x000070000e2b2ed0
    rip = 0x0000000102d257b7
    Found by: previous frame's frame pointer
20  libsystem_pthread.dylib + 0x393b
    rbp = 0x000070000e2b2f10   rsp = 0x000070000e2b2f00
    rip = 0x00007fffb828b93b
    Found by: previous frame's frame pointer
21  libsystem_pthread.dylib + 0x3887
    rbp = 0x000070000e2b2f50   rsp = 0x000070000e2b2f20
    rip = 0x00007fffb828b887
    Found by: previous frame's frame pointer
22  libsystem_pthread.dylib + 0x308d
    rbp = 0x000070000e2b2f78   rsp = 0x000070000e2b2f60
    rip = 0x00007fffb828b08d
    Found by: previous frame's frame pointer
23  Electron Framework + 0x25f760
    rsp = 0x000070000e2b3028   rip = 0x0000000102d25760
    Found by: stack scanning
"><pre class="notranslate"><code class="notranslate">perating system: Mac OS X
                  10.12.5 16F73
CPU: amd64
     family 6 model 70 stepping 1
     8 CPUs

GPU: UNKNOWN

Crash reason:  EXC_BAD_ACCESS / EXC_I386_GPFLT
Crash address: 0x1046326e3
Process uptime: 6447 seconds

Thread 14 (crashed)
 0  Electron Framework!&lt;name omitted&gt; [transport_security_state.cc : 865 + 0x3]
    rax = 0xbadda3319a85bead   rdx = 0x00007f962ff47030
    rcx = 0x00007f962fe25a20   rbx = 0x00007f962fe25a20
    rsi = 0x00007f962fe25b00   rdi = 0x0000600000628a20
    rbp = 0x000070000e2b2150   rsp = 0x000070000e2b20d0
     r8 = 0x000070000e2b2120    r9 = 0x000070000e2b2008
    r10 = 0x0000000000000000   r11 = 0x0000000000000000
    r12 = 0x0000000000000000   r13 = 0x00007f962fe25a68
    r14 = 0x00007f962ff47030   r15 = 0x0000000000000000
    rip = 0x00000001046326e3
    Found by: given as instruction pointer in context
 1  Electron Framework!net::SSLClientSocketImpl::VerifyCT() [ssl_client_socket_impl.cc : 1557 + 0x5]
    rbp = 0x000070000e2b21d0   rsp = 0x000070000e2b2160
    rip = 0x000000010461e70a
    Found by: previous frame's frame pointer
 2  Electron Framework!net::SSLClientSocketImpl::DoVerifyCertComplete(int) [ssl_client_socket_impl.cc : 1231 + 0x8]
    rbp = 0x000070000e2b22a0   rsp = 0x000070000e2b21e0
    rip = 0x000000010461e4ab
    Found by: previous frame's frame pointer
 3  Electron Framework!net::SSLClientSocketImpl::DoHandshakeLoop(int) [ssl_client_socket_impl.cc : 1325 + 0xb]
    rbp = 0x000070000e2b2300   rsp = 0x000070000e2b22b0
    rip = 0x000000010461c08d
    Found by: previous frame's frame pointer
 4  Electron Framework!net::SSLClientSocketImpl::OnHandshakeIOComplete(int) [ssl_client_socket_impl.cc : 1288 + 0x5]
    rbp = 0x000070000e2b2340   rsp = 0x000070000e2b2310
    rip = 0x000000010461dbe5
    Found by: previous frame's frame pointer
 5  Electron Framework!net::CachingCertVerifier::OnRequestFinished(net::CertVerifier::RequestParams const&amp;, base::Time, base::Callback&lt;void (int), (base::internal::CopyMode)1, (base::internal::RepeatMode)1&gt; const&amp;, net::CertVerifyResult*, int) [callback.h : 80 + 0x3]
    rbp = 0x000070000e2b2370   rsp = 0x000070000e2b2350
    rip = 0x0000000104443699
    Found by: previous frame's frame pointer
 6  Electron Framework!net::CertVerifierJob::OnJobCompleted(std::__1::unique_ptr&lt;net::(anonymous namespace)::ResultHelper, std::__1::default_delete&lt;net::(anonymous namespace)::ResultHelper&gt; &gt;) [callback.h : 91 + 0x7]
    rbp = 0x000070000e2b2400   rsp = 0x000070000e2b2380
    rip = 0x0000000104530317
    Found by: previous frame's frame pointer
 7  Electron Framework!base::internal::Invoker&lt;base::internal::BindState&lt;void (net::CertVerifierJob::*)(std::__1::unique_ptr&lt;net::(anonymous namespace)::ResultHelper, std::__1::default_delete&lt;net::(anonymous namespace)::ResultHelper&gt; &gt;), base::WeakPtr&lt;net::CertVerifierJob&gt;, base::internal::PassedWrapper&lt;std::__1::unique_ptr&lt;net::(anonymous namespace)::ResultHelper, std::__1::default_delete&lt;net::(anonymous namespace)::ResultHelper&gt; &gt; &gt; &gt;, void ()&gt;::Run(base::internal::BindStateBase*) [bind_internal.h : 214 + 0x3]
    rbp = 0x000070000e2b2560   rsp = 0x000070000e2b2410
    rip = 0x00000001045307ca
    Found by: previous frame's frame pointer
 8  Electron Framework!base::(anonymous namespace)::PostTaskAndReplyRelay::RunReplyAndSelfDestruct() [callback.h : 91 + 0x3]
    rbp = 0x000070000e2b2590   rsp = 0x000070000e2b2570
    rip = 0x0000000102d264a7
    Found by: previous frame's frame pointer
 9  Electron Framework!&lt;name omitted&gt; [callback.h : 91 + 0x3]
    rbp = 0x000070000e2b26d0   rsp = 0x000070000e2b25a0
    rip = 0x0000000102d4f721
    Found by: previous frame's frame pointer
10  Electron Framework!&lt;name omitted&gt; [message_loop.cc : 423 + 0xf]
    rbp = 0x000070000e2b27a0   rsp = 0x000070000e2b26e0
    rip = 0x0000000102d17adb
    Found by: previous frame's frame pointer
11  Electron Framework!&lt;name omitted&gt; [message_loop.cc : 434 + 0xb]
    rbp = 0x000070000e2b27c0   rsp = 0x000070000e2b27b0
    rip = 0x0000000102d17e2c
    Found by: previous frame's frame pointer
12  Electron Framework!&lt;name omitted&gt; [message_loop.cc : 527 + 0xb]
    rbp = 0x000070000e2b2950   rsp = 0x000070000e2b27d0
    rip = 0x0000000102d181e3
    Found by: previous frame's frame pointer
13  Electron Framework!&lt;name omitted&gt; [message_pump_libevent.cc : 219 + 0x9]
    rbp = 0x000070000e2b29c0   rsp = 0x000070000e2b2960
    rip = 0x0000000102d1aa05
    Found by: previous frame's frame pointer
14  Electron Framework!&lt;name omitted&gt; [message_loop.cc : 387 + 0x9]
    rbp = 0x000070000e2b2b10   rsp = 0x000070000e2b29d0
    rip = 0x0000000102d177ae
    Found by: previous frame's frame pointer
15  Electron Framework!base::RunLoop::Run() [run_loop.cc : 37 + 0x5]
    rbp = 0x000070000e2b2ba0   rsp = 0x000070000e2b2b20
    rip = 0x0000000102d308e3
    Found by: previous frame's frame pointer
16  Electron Framework!&lt;name omitted&gt; [browser_thread_impl.cc : 278 + 0x5]
    rbp = 0x000070000e2b2cf0   rsp = 0x000070000e2b2bb0
    rip = 0x0000000102fa7ce8
    Found by: previous frame's frame pointer
17  Electron Framework!&lt;name omitted&gt; [browser_thread_impl.cc : 313 + 0xb]
    rbp = 0x000070000e2b2e50   rsp = 0x000070000e2b2d00
    rip = 0x0000000102fa7e76
    Found by: previous frame's frame pointer
18  Electron Framework!&lt;name omitted&gt; [thread.cc : 333 + 0xd]
    rbp = 0x000070000e2b2ec0   rsp = 0x000070000e2b2e60
    rip = 0x0000000102d52789
    Found by: previous frame's frame pointer
19  Electron Framework!base::(anonymous namespace)::ThreadFunc(void*) [platform_thread_posix.cc : 71 + 0x8]
    rbp = 0x000070000e2b2ef0   rsp = 0x000070000e2b2ed0
    rip = 0x0000000102d257b7
    Found by: previous frame's frame pointer
20  libsystem_pthread.dylib + 0x393b
    rbp = 0x000070000e2b2f10   rsp = 0x000070000e2b2f00
    rip = 0x00007fffb828b93b
    Found by: previous frame's frame pointer
21  libsystem_pthread.dylib + 0x3887
    rbp = 0x000070000e2b2f50   rsp = 0x000070000e2b2f20
    rip = 0x00007fffb828b887
    Found by: previous frame's frame pointer
22  libsystem_pthread.dylib + 0x308d
    rbp = 0x000070000e2b2f78   rsp = 0x000070000e2b2f60
    rip = 0x00007fffb828b08d
    Found by: previous frame's frame pointer
23  Electron Framework + 0x25f760
    rsp = 0x000070000e2b3028   rip = 0x0000000102d25760
    Found by: stack scanning

</code></pre></div>