dotTrace fails while activating cpp/cli type from c# app

I'm getting this error on one of my .NET 8 app. I created SO post with an example of an app that causes this.

Fatal error. Internal CLR error. (0x80131506)
at System.StubHelpers.StubHelpers.ProfilerBeginTransitionCallback(IntPtr, IntPtr, System.Object)
at .ATL.CSimpleStringT<wchar_t,0>.{ctor}(ATL.CSimpleStringT<wchar_t,0>, ATL.IAtlStringMgr)
at .ATL.CStringT<wchar_t,ATL::StrTraitATL<wchar_t,ATL::ChTraitsCRT<wchar_t> > >.{ctor}(ATL.CStringT<wchar_t,ATL::StrTraitATL<wchar_t,ATL::ChTraitsCRT<wchar_t> > >, Char)
at CppCli.CppCliType..ctor()
at System.RuntimeType+ActivatorCache.CallConstructor(System.Object)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean, Boolean)
at System.Activator.CreateInstance(System.Type, Boolean, Boolean)
at System.Activator.CreateInstance(System.Type, Boolean)
at System.Activator.CreateInstance(System.Type)
at Program.$(System.String[])

0
3 comments

Hi!

Thank you for reporting.

Is this issue only reproduced in Tracing or Line-By-Line mode?

Could you please check if it's relevant for Sampling or Timeline modes?

0

I've tested in Tracing mode. Now tried it in Line-By-Line mode and saw the same error. But in Sampling mode the app was able to run fine and got a snapshot. But probably our QAs will not be satisfied with this mode :/

0

This is a known issue that is reproducible with .NET: https://youtrack.jetbrains.com/issue/PROF-1508/Profiled-application-crashes-if-profile-it-in-Tracing-or-Line-by-Line-mode

Please follow the ticket to get updates on this.

 

0

Please sign in to leave a comment.