Skip to content

Crashpad not capturing invalid_parameter errors on Windows #327

@maxp1256

Description

@maxp1256

Description
I'm trying to catch an error with sentry/crashpad, but it's not detecting it. Should sentry being called through invoke_watson or could this exception type not be handled by sentry/crashpad? Are there any possibilities to debug the crashpad-handler / Windows Error Reporting?

When does the problem happen

  • When capturing a hard crash

Environment

  • OS: Windows Server 2016
  • Compiler: MSVC VS 2017

Issue
A messagebox (from windows) is showing that our app stopped working.

Callstack of our app:
ucrtbase.dll!__invoke_watson�() Unknown
ucrtbase.dll!__invalid_parameter�() Unknown
ucrtbase.dll!__invalid_parameter_noinfo�() Unknown
ucrtbase.dll!__crt_stdio_output::output_processor<char,__crt_stdio_output::string_output_adapter,__crt_stdio_output::standard_base<char,__crt_stdio_output::string_output_adapter>>::state_case_size() Unknown
ucrtbase.dll!___stdio_common_vsprintf�() Unknown
[Inline Frame] ourapp.exe!_vsnprintf_l(unsigned char * const) Line 1390 C
[Inline Frame] ourapp.exe!_vsprintf_l(unsigned char * const) Line 1462 C

Expected behavior
Sentry catches the Exception and our app quits.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Needs Investigation

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions