app runs fine outside dotTrace, but crashes on startup when run inside dotT

Has anyone else ever had a problem where running your inside dotTrace causes the app to crash?

My app runs fine outside dotTrace, but crashes on startup when running inside dotTrace.

Not sure where it crashes... time to write some Console.WriteLine(...)'s to see if I can find out where it crashes.

1
6 comments

I figured this out. It turns out that it's just the fact that the program is .NET 3.5, and dotTrace can't handle .NET 3.5.

Jet Brains - any update on when you might support .NET 3.5? It's been out for a while ...

0

oops - I take that back - it seems OK with .NET 3.5.

The issue was that if you rename a thread in your application to have a null name, then the profiler crashes.

0
Avatar
Permanently deleted user

Sorry for raising the dead. Was this issue ever flagged or fixed? Encountering a similar problem, but we're debugging plugins and don't have access to the source for the host.

0

Hi Luke, what does the crash look like? Are there any exception, messages, errors? Does the profiling start (does dotTrace Controller appear, is the field Process there empty)?

0

For me I can see in Windows Event Viewer that the application crashes on startup. The error is 

Failed to load the dll from [c:\users\user\.dotnet\host\fxr\8.0.6\hostfxr.dll], HRESULT: 0x800700C1

The library hostfxr.dll was found, but loading it from C:\Users\user\.dotnet\host\fxr\8.0.6\hostfxr.dll failed
 

If I run the application from Rider and then use Profile Running Process, it works, so I guess that is what I will do from now on.

0

How do you start a profiling session in Rider? Do you attach to already running process or run from scratch using the “Profile with” action?

Could you please submit a request here and attach dotTrace logs from %temp%\JetLogs folder?

Please also collect Rider logs using Help | Collect logs and Diagnostic Data in Rider.

0

Please sign in to leave a comment.