Timo Partl

Results 202 comments of Timo Partl

The problem can be reproduce as follows: - make new UWP app from template in VS22 - comment out this line in the Default.rd.xml file: `` - add Sentry nuget...

Yes, I believe it has to do with reflection. Maybe that helps making the app trimming-safe: https://devblogs.microsoft.com/ifdef-windows/leveraging-trimming-to-make-the-microsoft-store-faster-and-reduce-its-binary-size/ https://devblogs.microsoft.com/dotnet/net-native-deep-dive-making-your-library-great/ As an example, the MSAL library uses this file to prevent their...

Those lines would at least prevent the crash at SDK initialization. I don't know if there's other classes that are trimmed away and would cause crashes when they are attempted...

I believe I have found another problem when trimming is enabled. I've noted that the stack traces I see for crashes in my UWP apps have a significantly shorter stack...

I verified that the stack trace is available - when I register the `UnhandledException` handler ([as per the docs](https://docs.sentry.io/platforms/dotnet/guides/winui/#configuration-with-trimming)) and logging the exception by other ways, I can see that...

Today I received another funny stack trace (it is the raw stack trace) - https://timopartl.sentry.io/issues/5216095235: ``` System.ArgumentException: Value does not fall within the expected range. Module "System.Runtime.ExceptionServices.ExceptionDispatchInfo", in Throw Module...

It is quite possible that it also didn't work in the past - by default UWP did not use trimming and I expect only the small subset of developers who...

@snigdha011997 sure, see here: [test.zip](https://github.com/user-attachments/files/20769676/test.zip) Hope it helps

@snigdha011997 I provided a repro, why has the "needs-repro" tag been added?

I don' think it is dependent on `xamarin_is_gc_coop`. I might have posted links from the wrong commit, this one shows how the `xamarin_assertion_message` method is called in line 2441, like...