Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App reports invalid attachments from Chrome crashpad database #55

Open
alecazam opened this issue Nov 20, 2023 · 7 comments
Open

App reports invalid attachments from Chrome crashpad database #55

alecazam opened this issue Nov 20, 2023 · 7 comments

Comments

@alecazam
Copy link

alecazam commented Nov 20, 2023

Our game has a debug builds that don't include crashpad in the build, and crashpad_handler.exe isn't deployed alongside the .exe. Only our shipping builds do this. Yet when running the debug build, we get crashpad errors in our logs with errors trying to find attachments from Chrome. This is worriesome that somehow our app even without the crashpad library or handler is somehow triggering crashpad errors.

[1115/142504.058:ERROR:filesystem_win.cc(130)] GetFileAttributes C:\Users\foo\AppData\Local\Google\Chrome\User Data\Crashpad\attachments\c46abb11-db2d-4000-ae60-62c212511087: The system cannot find the file specified. (0x2)
[1115/142504.059:ERROR:filesystem_win.cc(130)] GetFileAttributes C:\Users\foo\AppData\Local\Google\Chrome\User Data\Crashpad\attachments\66f378f7-2f27-47b4-9284-722b89ddb398: The system cannot find the file specified. (0x2)
[1115/142504.059:ERROR:filesystem_win.cc(130)] GetFileAttributes C:\Users\foo\AppData\Local\Google\Chrome\User Data\Crashpad\attachments\201f16ff-7792-4774-8648-26ea43ec91a9: The system cannot find the file specified. (0x2)
[1115/142504.064:ERROR:filesystem_win.cc(130)] GetFileAttributes C:\Users\foo\AppData\Local\Google\Chrome\User Data\Crashpad\attachments\65950f34-8e80-4070-935b-25950d63ef02: The system cannot find the file specified. (0x2) 

The workaround for now, was to go to this folder delete the metadata file from Google/Chrome.

@KrzaQ
Copy link
Contributor

KrzaQ commented Nov 20, 2023

Don't initialize crashpad in the debug build if you don't want to use it.

@alecazam
Copy link
Author

alecazam commented Nov 20, 2023

We don't and we can't. The library isn't even loaded. So makes no sense why these errors show up. I've already reported the code in the Issues for how to wipe the crashpad database, and in Release we do that every time we launch. That code wasn't a part of the sample code from Backtrace. Without it, we were getting similar errors above but from our app metadata. The errors above are from Google Chrome but in our game.

@alecazam
Copy link
Author

#if IS_RELEASE

#include <client/crashpad_client.h>
#include <client/settings.h>
#include <client/crash_report_database.h>
#include <client/crashpad_info.h>

// This is using libs built from new sources
// renamed from client.lib
#pragma comment( lib, "crashpad_client.lib" )

#endif

@KrzaQ
Copy link
Contributor

KrzaQ commented Nov 20, 2023

Are you disabling the actual function calls for crashpad initialization?

@alecazam
Copy link
Author

alecazam commented Nov 21, 2023

Yes, they're all in that file.

#if IS_RELEASE
InitializeCrashpad( backtraceToken );
#else
(void)backtraceToken;
#endif

@KrzaQ
Copy link
Contributor

KrzaQ commented Nov 21, 2023

In that case, backtrace-crashpad is unlikely to be the culprit. Is it possible that your game or one of its dependencies include Google Chrome or something Chrome-based to render webpages (e.g. help, eula)?

@alecazam
Copy link
Author

Yes, maybe there's a Chromium or mini chromium that is causing this. Will see if that's the case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants