Windows 10: The Lifecycle of a UWP App

Discus and support The Lifecycle of a UWP App in Windows 10 News to solve the problem; Lifecycle management in a Universal Windows Platform (UWP) app is critical for the efficient use of battery power and memory. When done correctly, it... Discussion in 'Windows 10 News' started by Brink, Apr 27, 2016.

  1. Brink
    Brink New Member

    The Lifecycle of a UWP App


    Source: The Lifecycle of a UWP App | Building Apps for Windows

    :)
     
    Brink, Apr 27, 2016
    #1

  2. [UWP] all UWP application windows are not displayed anymore after a lot of start/kill of any UWP application

    Hello,

    This issue seems linked to the Windows Anniversary Update (build 10.0.14393,
    also reproduced on build 14905.rs_prerelease.160811-1739) and the new UWP lifecycle introduced with it, since this issue was not there before.

    The test scenario is simple:

    1. start any UWP application (in my example the windows calc.exe, the default Windows 10 calculator application)

    2. wait 0.5 second

    3. kill the same UWP application

    4. repeat the 1-2-3 steps 5000 times

    This scenario is basically reproducing an automated test environment.

    The expected result is that the tested application will always be displayed correctly.

    The actual result is that the tested application is not displayed anymore after a various number of loops (between 200 and 800). It looks like it is running in the background since the process can be seen in the task manager.

    When the UWP application window can't be displayed, the scope of the issue is much more important: no UWP content can be displayed anymore (Edge browser or Windows settings, etc).

    The way to recover from this is to log out from the user session and log in again.

    Here is a python script to reproduce the issue:

    Is it a known issue ? Any way to work around this (this is blocking our UWP automated testing environment)?

    BR

    Jean-Marc
     
    Jean-Marc T., Apr 27, 2016
    #2
  3. G.Ilex Win User
    Xbox app... not allowed to run on continuum?

    That is only when it's a so called UWP app. Not sure of the Xbox is an UWP app, don't think so
     
    G.Ilex, Apr 27, 2016
    #3
  4. Fafhrd Win User

    The Lifecycle of a UWP App

    Love the "Franglais" touch:
    Does this feature explain why Edge closes unexpectedly for no apparent reason, then on reopening, carries on as if nothing has happened?
     
    Fafhrd, Apr 28, 2016
    #4
Thema:

The Lifecycle of a UWP App

Loading...
  1. The Lifecycle of a UWP App - Similar Threads - Lifecycle UWP App

  2. Default UWP apps

    in Windows 10 Software and Apps
    Default UWP apps: Hi, I wanted to understand, If there are any Default UWP apps that comes with vanilla Win10 Prof OS. If yes, how can i verify which are the UWP apps that are currently installed. Is there command to pull the list....
  3. UWP apps not working

    in Windows 10 Ask Insider
    UWP apps not working: Hello, I am using a Surface Pro (2017) on the slow ring of Windows Insider. Over the couple last weeks, performance was so slow it began making the machine useless. I did a backup of all my files and decided to do a fresh install of Windows. To my surprise however, I was...
  4. Windows UWP apps

    in Microsoft Windows 10 Store
    Windows UWP apps: It is 2020, almost 5 years of Windows 10 and Microsoft redesigning the UWP app icons. But still now it icons are disappeared or Disappearing from taskbar. My Question to Microsoft, when you planed for a proper solution of this? as a windows 10 user and lover I am very...
  5. UWP Apps Crashing

    in Microsoft Windows 10 Store
    UWP Apps Crashing: Since upgrading to 1909, I noticed I'm having issues trying to launch some of the Windows Store apps. SO far I've found issues with both the Feedback Hub and Xbox Console Companion (including beta) apps. What happens is that the app will launch for a second, before force...
  6. Update UWP App

    in Windows 10 Support
    Update UWP App: This may have come with a LastPass install, but not sure. When booting this console window opens labeled like Thread Title. Cannot find how it is opening. Task Scheduler and AutoRuns checked. Scratching ass at this point as I never heard about Universal Apps while searching....
  7. Update UWP app

    in Windows 10 Installation and Upgrade
    Update UWP app: At bootup I keep getting this DOS window that says "Update UWP file?" It slows down my bootup noticeably! I researched this heading and found that the MIcrosoft Store Apps Settings should be Automatically ON. I followed the instructions and discovered thatthis feature is ON...
  8. UWP apps failing.

    in Windows 10 BSOD Crashes and Debugging
    UWP apps failing.: So recently, out of the blue, all of the apps that would come from the Microsoft Store stopped being able to boot. (This started happening around two weeks ago) Everything from the Calculator, to the Calendar, to Mail, to Groove Music, to Photos, Xbox Companion, and even the...
  9. UWP apps fonts

    in Windows 10 Customization
    UWP apps fonts: I have 3 PCs: Desktop 1 Desktop 2 Laptop One day I noticed that the font size/spacing is different for UWP apps while using the Windows 10 settings app. The two images show easily show a difference when switching between them in the sentences. Desktop 1 and Laptop are...
  10. UWP Apps not opening

    in Windows 10 Software and Apps
    UWP Apps not opening: Hello, I changed the permissions of the WindowsApps folder, as i was trying to edit some of the files, however now the apps will not open. I am sure that this is not due to me modifying any files. Is there a way to restore the permissions, or what permissions need to be...