Forum Discussion
What is the "gap" and how do I eliminate it?
I have an MSIX installed via App Installer. I've got it working, but sometimes after an update there is a very long pause before the app is relaunched.
In the Event Viewer there is a helpful breakdown of where the time during an install/upgrade operation is spent. Unfortunately almost all the time is allocated to something simply called "Gap", strongly implying that during this pause the App Installer is in fact doing ... nothing. Example:
- Performance summary of Deployment Add operation on Package DemoApp_3.10.0.0_x64__49jahnq5qzr1m:
- Overall time: 32875 ms
- Enqueue cost: 359 ms
- Dequeue delay: 0 ms
- Bundle processing cost: 0 ms
- Indexing cost: 16 ms
- Resolve dependency cost: 16 ms
- Check approval cost: 125 ms
- Evaluation cost: 187 ms
- Hardlinking evaluation cost: 31 ms
- Stage required cost: 500 ms
- Flushing and closing files cost: 0 ms
- Machine register cost: 0 ms
- Stage user data cost: 0 ms
- Gap: 31453 ms
- Registration cost: 47 ms
- Gap: 31 ms
- Repository commit transaction cost: 79 ms
- Gap: 46 ms
- Data flush cost: 16 ms
- Post DeStage repository commit transaction cost: 0 ms
- Remaining cost: 0 ms
This is rather puzzling, to say the least. Most of the categories are self explanatory, but can any MSIX experts explain why there is an apparently pointless 31.4 second pause after "Stage user data" and "Registration"? And, does anyone know how I can get rid of this "gap"?
4 Replies
- Aditi_Narvekar
Microsoft
MikeH Thank you for your question. If you reproduce the behavior and file a bug in the Feedback Hub app, someone on our team can take a look at it. You can file it under "Install and Update" -> "App installation issues".
- GrahamGBIron ContributorAditi_Narvekar / MikeH what was the end result of this, as I have similar experiences with the Package Analyzer stalling after apparently successfully installing the MSIX package.
https://techcommunity.microsoft.com/t5/msix/msix-packaging-tool-package-analyzer/m-p/4038759#M3988- Fiza_Azmi
Microsoft
Hi GrahamGB
Is this delay in launch happening only for this specific package or other packages as well?
You can try to uninstall the package and then Analyze Package again using MSIX Packaging tool.
Once you do this, please collect and share the logs using Get-AppxLog (Appx) | Microsoft Learn for any error warnings that point to the cause of delay.
Thanks,
Fiza
PM, MSIX