Issue 1:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

Electron Version:

6.0.0-beta3

Operating System:

macOS 10.13.6 10.14.4 / Windows 7 -->

Last Known Working Electron version::

5.0.1

Expected Behavior

Clicked button in renderer process, then show file chooser dialog and choose local files.

Actual Behavior

Clicked button in renderer process, then crash electron app.

To Reproduce

Clone and start sample app

$ git clone https://github.com/agata/crash-electron-with-file-picker-dialog.git
$ cd ./crash-electron-with-file-picker-dialog
$ npm install
$ npm start

Click a button in the app -> Crash electron app

Screenshots

Electron 5.0.1

Electron 6.0.0-beta.3

Screencast: Electron-6.0.0-beta.3.mov.zip

Additional Information

Issue 2:
Electron version: 1.8.2-beta1

Operating system: Mac 10.12.6

Expected behavior

Not crash

Actual behavior

crash

How to reproduce

It seems like use auto-updater.check() may be crash. Not 100% occur

the crash report

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!<name omitted> [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&, base::Time, base::Callback<void (int), (base::internal::CopyMode)1, (base::internal::RepeatMode)1> const&, 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<net::(anonymous namespace)::ResultHelper, std::__1::default_delete<net::(anonymous namespace)::ResultHelper> >) [callback.h : 91 + 0x7]
rbp = 0x000070000e2b2400 rsp = 0x000070000e2b2380
rip = 0x0000000104530317
Found by: previous frame's frame pointer
7 Electron Framework!base::internal::Invoker<base::internal::BindState<void (net::CertVerifierJob::*)(std::__1::unique_ptr<net::(anonymous namespace)::ResultHelper, std::__1::default_delete<net::(anonymous namespace)::ResultHelper> >), base::WeakPtr<net::CertVerifierJob>, base::internal::PassedWrapper<std::__1::unique_ptr<net::(anonymous namespace)::ResultHelper, std::__1::default_delete<net::(anonymous namespace)::ResultHelper> > > >, void ()>::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!<name omitted> [callback.h : 91 + 0x3]
rbp = 0x000070000e2b26d0 rsp = 0x000070000e2b25a0
rip = 0x0000000102d4f721
Found by: previous frame's frame pointer
10 Electron Framework!<name omitted> [message_loop.cc : 423 + 0xf]
rbp = 0x000070000e2b27a0 rsp = 0x000070000e2b26e0
rip = 0x0000000102d17adb
Found by: previous frame's frame pointer
11 Electron Framework!<name omitted> [message_loop.cc : 434 + 0xb]
rbp = 0x000070000e2b27c0 rsp = 0x000070000e2b27b0
rip = 0x0000000102d17e2c
Found by: previous frame's frame pointer
12 Electron Framework!<name omitted> [message_loop.cc : 527 + 0xb]
rbp = 0x000070000e2b2950 rsp = 0x000070000e2b27d0
rip = 0x0000000102d181e3
Found by: previous frame's frame pointer
13 Electron Framework!<name omitted> [message_pump_libevent.cc : 219 + 0x9]
rbp = 0x000070000e2b29c0 rsp = 0x000070000e2b2960
rip = 0x0000000102d1aa05
Found by: previous frame's frame pointer
14 Electron Framework!<name omitted> [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!<name omitted> [browser_thread_impl.cc : 278 + 0x5]
rbp = 0x000070000e2b2cf0 rsp = 0x000070000e2b2bb0
rip = 0x0000000102fa7ce8
Found by: previous frame's frame pointer
17 Electron Framework!<name omitted> [browser_thread_impl.cc : 313 + 0xb]
rbp = 0x000070000e2b2e50 rsp = 0x000070000e2b2d00
rip = 0x0000000102fa7e76
Found by: previous frame's frame pointer
18 Electron Framework!<name omitted> [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