Open tipa opened 1 day ago
Tagging subscribers to 'arch-android': @vitek-karas, @simonrozsival, @steveisok, @akoeplinger See info in area-owners.md if you want to be subscribed.
@tipa is your custom.aprof
generated for net9?
/cc @jonathanpeppers in the off chance this is not something in runtime.
Yes I re-generated the custom.aprof
after switching to .NET 9.
I haven't regenerated it while using .NET 8 and I didn't have issues doing that (but as I said, I also didn't use AndroidEnableProfiledAot
).
Could it be necessary to re-generate the custom.aprof
after every release now? If that is the case, I would expect the problem to occur for every user, but it's only for a very few (and seemingly not persistent for them), indicating a race condition... (like in the first issue I linked)?
Could it be necessary to re-generate the custom.aprof
after every release now? If that is the case, I would expect the problem to occur for every user, but it's only for a very few (and seemingly not persistent for them), indicating a race condition... (like in the first issue I linked)?
Generally, you'll need to regenerate in order to have a more effective capture. I'm not suggesting it is the problem. Helps capture what your setup is.
I would check if the problem still happens without a custom.aprof
at all?
I would suspect the issue is enabling $(AndroidStripILAfterAOT)
in this app.
Meaning AndroidStripILAfterAOT
and custom.aprof
are somewhat "incompatible"? I can remove one or the other with my next update (depending on which has the smaller impact on app size) and report back
No, I suspect $(AndroidStripILAfterAOT)
is the only issue here.
Description
.NET 8 introduced the AndroidStripILAfterAOT build property. When trying it last year, I encountered this bug, as a consequence I stopped using the option again. It was supposed to be fixed in .NET 9, so I re-enabled it. Now I see crashes in production that I haven't seen before.
Reproduction Steps
I have set these Release-related build properties.
Expected behavior
No crashes
Actual behavior
I get crash reports on Firebase that indicate a
System.TypeInitializationException
on app launch:I also got this exception when the app was launched through a BroadcastReceiver for my widgets:
Regression?
No response
Known Workarounds
No response
Configuration
android 35.0.0-rc.2.152/9.0.100-rc.2
Other information
I am not sure that this crash is related to
AndroidEnableProfiledAot
, but since I didn't see those crashes when I use .NET 8 without using that build property, there is reason to assume it.