-
-
Notifications
You must be signed in to change notification settings - Fork 58
fix: Specify debug symbol upload files and folders #2485
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
base: fix/move-native
Are you sure you want to change the base?
fix: Specify debug symbol upload files and folders #2485
Conversation
Semver Impact of This PR🟢 Patch (bug fixes) 📋 Changelog PreviewThis is how your changes will appear in the changelog. Bug Fixes 🐛
Build / dependencies / internal 🔧Deps
Other
🤖 This preview updates automatically when you update the PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
| paths += $" \"{xboxSentryPluginPath}\""; | ||
| AddPath(paths, Path.Combine(buildOutputDir, "GameAssembly.dll"), logger, required: true); | ||
| // Sentry native in build output | ||
| AddPath(paths, Path.Combine(buildOutputDir, $"{baseName}_Data", "Plugins", "x86_64", "sentry.dll"), logger); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
32-bit Windows IL2CPP sentry.dll path hardcoded incorrectly
Low Severity
The code handles both BuildTarget.StandaloneWindows (32-bit) and BuildTarget.StandaloneWindows64 (64-bit) in the same case block, but the sentry.dll path at line 220 is hardcoded to x86_64. For 32-bit Windows IL2CPP builds, Unity places native plugins in the x86 folder instead. This causes the Sentry native DLL's debug symbols to not be found and therefore not uploaded for 32-bit builds.
Summary
With #2298 we introduced pointing sentry-cli to the output folder to recursively upload everything from there. This introduces the problem that the target folder could be anything (e.g., the project root, or the downloads folder), causing very long upload times, "invalid MachO file" warnings, and even upload errors.
Instead, we're going back to specifying which files and folders are supposed to be picked up for each platform.
Changes