Skip to content

[0.66+] App freeze on UWP resume after 5 min of suspension #11070

@Chris-Guy

Description

@Chris-Guy

Problem Description

Hello,

After the upgrade from 0.64 to 0.70 of the PowerApps Windows app, Windows 10 devices would experience a freeze for the application during several minutes or hours on UWP resume. It does not reproduce on the latest Windows 11 version, even if it looks like old versions of W11 might have it (to be checked)
See video (MSFT internals only) for a simple Power App: demo- At the beginning, I minimize the UWP app for suspension

  • At 5:34, I resume the app. You can see that the UI is not responsive to the windows, and no button is working. Double clicking anywhere on the app expand it.
  • At 9:55, the app finally come back from the freeze.

Remark: PowerApps production version has reverted the upgrade since then to 0.64, but we have some features relying on this new version. Also, the master branch is now forked due to that, reducing our release velocity there.

I am trying to get a minimal reproduction, but currently I cannot build the react-native-gallery app, so looking at fixing my issues there.

Steps To Reproduce

  1. Get the latest version of the Power Apps Windows app (from App Center)
  2. Open a Power App (which leverages a react-native full window control)
  3. Minimize the app to go to suspension
  4. Expand and resume the app after 5 minutes

Expected Results

No app freeze

CLI version

9.2.1

Environment

System:
    OS: Windows 10 10.0.19045
    CPU: (12) x64 Intel(R) Xeon(R) CPU E5-1650 v3 @ 3.50GHz
    Memory: 18.78 GB / 31.92 GB
  Binaries:
    Node: 14.21.2 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - C:\Program Files\nodejs\yarn.CMD
    npm: 6.14.17 - C:\Program Files\nodejs\npm.CMD
    Watchman: Not Found
  SDKs:
    Android SDK: Not Found
    Windows SDK:
      AllowDevelopmentWithoutDevLicense: Enabled
      Versions: 10.0.17134.0, 10.0.17763.0, 10.0.18362.0, 10.0.19041.0, 10.0.20348.0, 10.0.22000.0, 10.0.22621.0
  IDEs:
    Android Studio: Not Found
    Visual Studio: 17.4.33205.214 (Visual Studio Enterprise 2022), 16.11.33130.400 (Visual Studio Enterprise 2019)
  Languages:
    Java: Not Found
  npmPackages:
    @react-native-community/cli: 9.2.1 => 9.2.1
    react: 18.1.0 => 18.1.0
    react-native: 0.70.5 => 0.70.5
    react-native-windows: 0.70.4 => 0.70.4
  npmGlobalPackages:
    *react-native*: Not Found

Target Platform Version

10.0.19041

Target Device(s)

Desktop

Visual Studio Version

Visual Studio 2022

Build Configuration

DebugBundle

Snack, code example, screenshot, or link to a repository

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions