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

Tracy's error handling overrides dotnet's #61

Open
amylizzle opened this issue Dec 8, 2024 · 0 comments
Open

Tracy's error handling overrides dotnet's #61

amylizzle opened this issue Dec 8, 2024 · 0 comments

Comments

@amylizzle
Copy link

A null deref while Tracy is attached causes the whole program to exit and Tracy to report a crash. Normally the program would handle the null deref gracefully using a try/catch, but Tracy's error catching seems to override it. We have encountered a similar issue previously with Chromium Embedded Framework which was fixed by passing --disable-in-process-stack-traces as an argument in it's init proc.

Reproduction steps:

  1. Have a C# program with Tracy attached through Tracy-CSharp (great project, thanks so much!)
  2. intentionally trigger a null dereference in a try/catch loop
try {
    MyObject thing;
    thing.MyProc() //null deref
} catch (Exception e) {
    //handled gracefully
}
  1. Tracy reports a crash, the debugged program exits with code 0.

System info:
Linux x64 - Ubuntu 24.10, X11 window manager, dotnet 8, Tracy/Tracy-CSharp version 0.11.1

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

1 participant