Open BioTurboNick opened 3 weeks ago
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
ShellSectionRenderer.OnCreateView()
leading to 8-second blocking during startup (#19415), similarity score: 0.76Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Presumably the cause is that the feature saves to Android's shared preferences. Which was something I noted in closed #19415, but this issue is more focused on one specific problem with a minimal reproducer, and it's MAUI itself which is causing the issue.
Verified this issue with Visual Studio 17.11.0 Preview 2.0 (8.0.60 & 8.0.40& 8.0.21&8.0.3). Can repro on Android platform with sample project.
Description
When I enable VersionTracking, I encounter 2 (4 on first run) strict mode violations due to blocking disk reads each lasting ~600 ms (on the emulator) during application startup.
Steps to Reproduce
Add version tracking to
MauiAppBuilder
:Enable StrictMode on the main thread to detect main thread blocking operations in Android's
MainApplication.OnCreate
:Run the app on the emulator.
Link to public reproduction project repository
https://github.com/BioTurboNick/MAUIEssentialsThreadBlockingRepro
Version with bug
8.0.60 SR6
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 13
Did you find any workaround?
No response
Relevant log output
First run:
Subsequent runs: