Skip to content

Manually generated events are missing if the app is installed to the path that contains cyrillic symbols in certain circumstances #1388

@codelimit

Description

@codelimit

Description

I have a native app that uses sentry with crashpad backend. Manually generated events (from guide page) are missing on the "Issues" page if the app is installed to the path that contains cyrillic symbols.

By "certain circumstances" I meant:

  • app is installed to the path that contains cyrillic (and I guess other non ascii, like Chinese) symbols
  • sentry_options_set_symbolize_stacktraces enabled
  • specific Windows' administrative language settings (see screenshot in Environment settings)

When does the problem happen

  • During build
  • During run-time
  • When capturing a hard crash

Environment

  • OS: Windows 11 Enterprise 24H2
  • Compiler: Microsoft (R) C/C++ Optimizing Compiler Version 19.44.35216 for x64
  • CMake version and config: 4.1.1, SENTRY_BACKEND=crashpad
  • Sentry version 0.11.0

Administrative language settings:
Image


Steps To Reproduce
Option 1: Minimal example:

int main()
{
    sentry_options_t* options = sentry_options_new();
    sentry_options_set_dsn(
        options, "https://6869572e5ea8357d4ab866275274b197@o4510062763114496.ingest.us.sentry.io/4510062770388992");
    sentry_options_set_database_path(options, ".sentry-native");
    sentry_options_set_release(options, "[email protected]");
    sentry_options_set_debug(options, 1);
    sentry_options_set_auto_session_tracking(options, true);
    
    // following option leads to missing events on the server side
    sentry_options_set_symbolize_stacktraces(options, true);

    sentry_init(options);

    sentry_value_t event = sentry_value_new_event();
    sentry_value_t exc = sentry_value_new_exception("Exception", "Error message.");
    sentry_value_set_stacktrace(exc, nullptr, 0);
    sentry_event_add_exception(event, exc);
    sentry_capture_event(event);

    sentry_close();
}

Option 2: Reproduce with sentry_example:

  • build sentry cmake -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo and cmake --build build --config RelWithDebInfo
  • install to directory with cyrillic symbols cmake --install build --prefix папка --config RelWithDebInfo
  • copy sample app to bin directory cp build/RelWithDebInfo/sentry_example.exe папка/bin/sentry_example.exe
  • launch sample app ./папка/bin/sentry_example.exe capture-exception add-stacktrace log

From logs I can see that sentry actually do send event. But I can't find this event(s) on the issue's page.

Things start work correct if (any of the following):

  • move app to ascii directory
  • disable sentry_options_set_symbolize_stacktraces
  • change administrative language settings in a such way that default language for non-unicode programs is English.

Log output

[sentry] INFO using database path "e:\work\[sentry] DEBUG starting transport
[sentry] DEBUG starting background worker thread
[sentry] DEBUG starting backend
[sentry] DEBUG background worker thread started
[sentry] DEBUG starting crashpad backend with handler "e:\work\[sentry] DEBUG using minidump URL "https://o4510062763114496.ingest.us.sentry.io:443/api/4510062770388992/minidump/?sentry_client=sentry.native/0.11.0&sentry_key=6869572e5ea8357d4ab866275274b197"
[sentry] INFO started crashpad client handler
[sentry] DEBUG processing and pruning old runs
[sentry] DEBUG merging global scope into event
[sentry] DEBUG sending envelope
[sentry] DEBUG submitting task to background worker thread
[sentry] DEBUG executing task on worker thread
[sentry] DEBUG sending request using winhttp to "https://o4510062763114496.ingest.us.sentry.io:443/api/4510062770388992/envelope/":
x-sentry-auth:Sentry sentry_key=6869572e5ea8357d4ab866275274b197, sentry_version=7, sentry_client=sentry.native/0.11.0
content-type:application/x-sentry-envelope
content-length:9313

[sentry] DEBUG sending envelope
[sentry] DEBUG submitting task to background worker thread
[sentry] DEBUG shutting down backend
[sentry] DEBUG shutting down transport
[sentry] DEBUG shutting down background worker thread
[sentry] DEBUG submitting task to background worker thread
[sentry] DEBUG received response:
HTTP/1.1 200 OK
Date: Mon, 22 Sep 2025 14:00:44 GMT
Via: 1.1 google
Content-Length: 41
Content-Type: application/json
Server: nginx
Vary: origin, access-control-request-method, access-control-request-headers
access-control-allow-origin: *
access-control-expose-headers: x-sentry-error,x-sentry-rate-limits,retry-after
cross-origin-resource-policy: cross-origin
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000


[sentry] DEBUG request handled in 102ms
[sentry] DEBUG executing task on worker thread
[sentry] DEBUG sending request using winhttp to "https://o4510062763114496.ingest.us.sentry.io:443/api/4510062770388992/envelope/":
x-sentry-auth:Sentry sentry_key=6869572e5ea8357d4ab866275274b197, sentry_version=7, sentry_client=sentry.native/0.11.0
content-type:application/x-sentry-envelope
content-length:345

[sentry] DEBUG received response:
HTTP/1.1 200 OK
Date: Mon, 22 Sep 2025 14:00:44 GMT
Via: 1.1 google
Content-Length: 2
Content-Type: application/json
Server: nginx
Vary: origin, access-control-request-method, access-control-request-headers
access-control-allow-origin: *
access-control-expose-headers: x-sentry-error,x-sentry-rate-limits,retry-after
cross-origin-resource-policy: cross-origin
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000


[sentry] DEBUG request handled in 31ms
[sentry] DEBUG executing task on worker thread
[sentry] DEBUG background worker thread shut down

Metadata

Metadata

Assignees

Labels

BugSomething isn't workingNative

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions