Closed
Description
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 a bug report that matches the one I want to file, without success.
Electron Version
18.2.4
What operating system are you using?
macOS
Operating System Version
macOS Monterey 12.3.1
What arch are you using?
x64
Last Known Working Electron version
18.2.4
Expected Behavior
Expect crashReporter.start
to return quickly. It takes only 33ms in Electron@11
with the same code on the same machine.
Actual Behavior
It seems that #33072 does not the same question. crashReporter.start
takes a long time while spawn
returns quickly, and seriously delay the app startup.
/** Electron@18.2.4, node@v16.13.0 */
console.time('crashReporter')
crashReporter.start({ submitURL: 'https://your-domain.com/url-to-submit' })
console.timeEnd('crashReporter')
// => crashReporter: 762.32ms
console.time('spawn')
child_process.spawn('ls')
console.timeEnd('spawn')
// => spawn: 3.836ms
/** Electron@11.5.0, node@v16.13.0 */
console.time('crashReporter')
crashReporter.start({ submitURL: 'https://your-domain.com/url-to-submit' })
console.timeEnd('crashReporter')
// => crashReporter: 32.330ms
console.time('spawn')
child_process.spawn('ls')
console.timeEnd('spawn')
// => spawn: 6.081ms
Testcase Gist URL
https://gist.github.com/cupools/9336a79b76ef5da2b61105a63c796824
Additional Information
No response