8000 [Bug]: `crashReporter.start` blocks main process takes more than 600ms on macOS · Issue #34321 · electron/electron · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Bug]: crashReporter.start blocks main process takes more than 600ms on macOS #34321
Closed
@cupools

Description

@cupools

Preflight Checklist

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0