Skip to content

[VC++2019/CMake] __sentry-breadcrumb1 / __sentry-breadcrumb2 : No such file or directory (2) #111

@Amphaal

Description

@Amphaal

Maybe related to #84 ? Many thanks in advance for your help !

Context

I'm trying to trigger a sentry event from a simple exception, to feed my Sentry dockerized environment. My unsecure HTTP Sentry app is based on the "onpremise Sentry" project, as of getsentry/self-hosted@9ec53c3, with no changes to the default configuration files.

I'm using

  • VC++2019 (16.4.1)
  • CMake (3.16.0)
  • sentry-native 0.1.4 from "Releases"
    • using "gen_windows" (linking crashpad_handler.vcxproj + sentry_crashpad.vcxproj)

Issue

After initiating Sentry as of :

auto options = sentry_options_new();
sentry_options_set_dsn(options, SENTRY_ENDPOINT);

QString environement = "Production";
#ifdef _DEBUG
    environement = "Debug";
#endif
sentry_options_set_environment(options, environement.toStdString().c_str());

sentry_options_set_release(options, GITHUB_VERSION_NAME);
sentry_options_set_debug(options, 1);

//crashpad integration
sentry_options_set_handler_path(options, CRASHPAD_HANDLER_NAME);
// auto dbStr = AppContext::getAppDataLocation() + "/sentry_db";
// sentry_options_set_database_path(options, dbStr.toStdString().c_str());

sentry_init(options);

...and triggering the same kind of exception as #84, my program shuts down as expected, but outputs unexpected logs :

[sentry] crash handler enabled (reporting to http://ec083db6fedc4b64b0233ddb1fb9551f:@lvwl.to2x.ovh:9000/1)
[sentry] started client handler.
[sentry] starting background worker
[11964:7372:20191212,034649.005:ERROR file_io_win.cc:161] CreateFile ./.sentry-native\sentry-runs\1576118808-1100518007\__sentry-breadcrumb1: Le fichier spécifié est introuvable. (2)
[11964:7372:20191212,034649.005:ERROR file_io_win.cc:161] CreateFile ./.sentry-native\sentry-runs\1576118808-1100518007\__sentry-breadcrumb2: Le fichier spécifié est introuvable. (2)

About the issue

  • Release and Debug executables produce this behavior
  • sentry_shutdown() cannot be reached after the error, even if I try to :
    • define a call with std::set_terminate callback
    • catch the exception with try-catch, then call it

What happened

  • a valid minidump file is created at .sentry-native\reports, containing expected data
  • 3 files are created at .sentry-native\attachments\xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx
    • __sentry-breadcrumb1, empty 0 Ko file
    • __sentry-breadcrumb2, empty 0 Ko file
    • __sentry-event, containing :
      ‰¨contexts€«environmentªProduction¥extra€¥level¥error¨platform¦native§release­rpgrpz@0.20.5£sdkƒ¤name­sentry-native¨packages‘‚¤name¾github:getsentry/sentry-native§version¥0.1.4§version¥0.1.4¤tags€¤userÀ
  • 1 file is created at .sentry-native\sentry-runs\1576118808-1100518007 :
    • __sentry-event, same content as above.
  • my Sentry app also generated 2 events !
    • AttributeError/api/{project_id}/minidump/ - 'WSGIRequest' object has no attribute 'user'
    • UnreadablePostError/api/{project_id}/minidump/ - unable to receive chunked part

image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions