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

Crash reports on Windows player with Mono run time use Windows-style paths and cannot be associated with source code #1764

Closed
wilg opened this issue Aug 14, 2024 · 3 comments
Labels
Bug Something isn't working Unity 6

Comments

@wilg
Copy link

wilg commented Aug 14, 2024

Environment

How do you use Sentry?
Sentry SaaS (sentry.io)

Which version of the SDK?
sentry-unity 2.1.3

How did you install the package? (Git-URL, Assetstore)
Git

Which version of Unity?
6000.0.14f1

Is this happening in Unity (editor) or on a player like Android, iOS, Windows?
Player

Steps to Reproduce

Any crash.

Expected Result

Sentry shows my source code as configured through the Code Mapping in the Github Integratinon.

Actual Result

This is the full "Raw Stack Trace" that appears in Sentry.

Newest

System.ArgumentNullException: Value cannot be null.
Parameter name: value
  Module "StorytellerSaveManager", in CurrentSaveGame
  Module "StorytellerSaveManager", in SwitchScene
  Module "InteractableSceneTransition", in DidTrigger
  Module "InteractableTrigger", in CompleteTrigger
  Module "InteractableTrigger", in Trigger
  Module "InteractableManager", in InteractButtonPress
  Module "InteractableManager", in Interact1ButtonPress
  Module "ButtonHoldHandler", in OnPerformed
  Module "UnityEngine.InputSystem.Utilities.DelegateHelpers", in InvokeCallbacksSafe

Source files are not associated. I think this may be due to the Windows style paths, which other sentry SDKs may normalize? Not sure the expected approach here.

Image

I have a potentially related issue with my Mac players, but those do not show file and line numbers at all. #1763

@bitsandfoxes
Copy link
Contributor

Hey @wilg, sorry to see you run into troubles. Are you opting in uploading sources to Sentry in the sentry-cli options as well?

@bitsandfoxes bitsandfoxes added Bug Something isn't working Unity 6 labels Aug 26, 2024
@tustanivsky
Copy link
Collaborator

Hi @wilg, did you add any custom code mappings for the existing GitHub integration (Organization Settings > Integrations > Configure GitHub)? These should help link Sentry stack trace to the corresponding file in your source code so that you can easily navigate between them. For instance, here's the code mapping example that works on Windows (Assets folder is located in GitHub repo root):

Image

Also, did you try to enable Upload Sources option in Unity? Having it opted in will allow you to display relevant code right next to stack trace at the event's page.

@wilg
Copy link
Author

wilg commented Aug 27, 2024

Hey, thanks! I think I had an error in the code mapping setup, and I did not realize that the code mapping was insufficient to show source inline. I thought the GitHub integration would do that, but I will try with Upload Sources enabled.

@wilg wilg closed this as completed Aug 27, 2024
@github-project-automation github-project-automation bot moved this to Done in GDX Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Unity 6
Projects
Archived in project
Archived in project
Development

No branches or pull requests

3 participants