MicrosoftEdge / MicrosoftEdge/WebView2Feedback

[Problem/Bug]: Power Apps App and Microsoft Teams Desktop Client (WebView2) - Possible Memory Leak

Open
#5,662 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

What happened?

We have a Power Apps App that runs within a Microsoft Teams environment. When the App is access from within Teams, memory is gradually consumed by a WebView2 process (msedgewebview2.exe) until Teams' auditActiveAppsMemory function appears to remove the App from the Teams UI frame, returning the below error from within the Teams desktop client:

[MemoryError::APP_OUT_OF_MEMORY]
Slot name:MAIN
Session ID:xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx
2026-08-03T15:27:09.194Z

The App within Teams generally crashes within ~1-2 minutes of accessing it, and the App has been observed running under the "WebView2 Subframe" and "Renderer" WebView2 processes.

There are what appear to be two viable workarounds:

  1. Opening the linked Power Apps app as a tab in a new window from within the Teams desktop client; or
  2. Accessing it from Teams for the web (https://teams.microsoft.com/v2/).

Relevant logs from Teams desktop client:

2026-08-03T15:27:09.174Z Inf PlatformAppsManagementService: removeApp: Removing app xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx with frame UUID xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx
2026-08-03T15:27:09.143Z Inf PlatformAppsManagementService: auditActiveAppsMemory: Triggering high memory event for largest active app xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx

2026-08-03T15:30:32.513Z Inf CID[xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx] useShowServicesUnavailable: useShowServicesUnavailable::showServiceOutageBadge=false&servicesUnavailableIconClass=undefined&hasDismissed=false
2026-08-03T15:27:24.175Z Inf CID[xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx] AppCaching: PlatformCacheManagementService: remove app on timeout: [xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx, tab::xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx, /providers/Microsoft.PowerApps/apps/xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx]
2026-08-03T15:27:09.214Z Inf CID[xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx] useRegisterSearchListener: Successfully reset MetaOsAppSearchHandlerState in cache
2026-08-03T15:27:09.201Z Inf CID[xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx] AppCaching resolver: removeSharedPlatformCachedApps: cached app list updated, writing query
2026-08-03T15:27:09.190Z Inf CID[xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx] Core Rendering Layer, Phased Rendering Framework – main Slot, PreCache App Render Mode: PhaseStateMachine instance id: 15, correlationId: PreCache-main-xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx, currentPhase: COMPLETE, Disposing with incomplete signals in phase CRITICAL. Signals platform_app_container_rendered,platform_app_frame_rendered,platform_app_frame_content_rendered were not received
2026-08-03T15:27:09.189Z Inf CID[xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx] AppCaching: CacheableAppHostIframe: useUpdateFrameStyles hideFrame: setPersistedAppContentProps to false for cacheable-iframe:xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx
2026-08-03T15:27:09.189Z Inf CID[xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx] Core Layout Persistence, PersistedAppContentContextProvider: Remove persisted app content for id: cacheable-iframe:xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx
2026-08-03T15:27:09.189Z Inf CID[xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx] AppCaching: CacheableAppHostIframe: removePersistedAppContent cacheable-iframe:xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx
2026-08-03T15:27:09.189Z Inf CID[xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx] AppCaching: PlatformCacheManagementService: shouldTriggerUnload for non-existent App [xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx, tab::xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx, /providers/Microsoft.PowerApps/apps/xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx]
2026-08-03T15:27:09.188Z Inf CID[xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx] HostedWebContentWithMetaOSInner: This hosted component has unmounted; appSessionId: xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx, appLaunchId: xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx
2026-08-03T15:27:09.187Z Inf CID[xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx] useSubscribeAppDevicePermissionRequests: ContentsId xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx, appId xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx: Unsubscribing from device permission requests
2026-08-03T15:27:09.187Z Inf CID[xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx] AppCaching: DevicePermissionSubscription: run iframe disposer cleanup, appId xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx, appSessionId xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx, platformFrameUuid b47590ce-8f6d-44f8-ad06-745f4f874f1a
2026-08-03T15:27:09.179Z Inf CID[xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx] useTaskCleanupHook: Running registered cleanup tasks count:2
2026-08-03T15:27:09.179Z Inf CID[xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx] HostedWebContentEntry: This hosted component has unmounted; appSessionId: xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx
2026-08-03T15:27:09.178Z Inf CID[xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx] AppCaching: useUpdateActivityStatusOfCachedApp: Cleanup Phase: Cached app not found , appId : xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx
2026-08-03T15:27:09.174Z Inf CID[xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx] Core Layout Persistence, PersistedAppContentContextProvider: Removing persisted app content with id: cacheable-iframe:xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx
2026-08-03T15:27:09.174Z Inf CID[xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx] Core Layout Persistence, PersistedAppContentContextProvider: Remove persisted app content for id: cacheable-iframe:xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx
2026-08-03T15:27:09.174Z Inf CID[xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx] AppCaching: AppManagementCache: disposeItem: removePersistedAppContent xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx with elementId cacheable-iframe:xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx
2026-08-03T15:27:09.173Z Inf CID[xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx] AppCaching: PlatformCacheManagementService: handleUnloading for App: [xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx, tab::xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx, /providers/Microsoft.PowerApps/apps/xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx].
2026-08-03T15:27:09.173Z Inf CID[xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx] AppCaching: PlatformCacheManagementService: setAppState loaded, unloading: [xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx, tab::xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx, /providers/Microsoft.PowerApps/apps/xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx], appSessionId: xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx
2026-08-03T15:27:09.173Z Inf CID[xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx] AppCaching: PlatformCacheManagementService: shouldTriggerUnload for App returns: [xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx, tab::xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx, /providers/Microsoft.PowerApps/apps/xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx] true, appSessionId: xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx, app unmounting started.
2026-08-03T15:27:09.173Z Inf CID[xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx] AppCaching: PlatformCacheManagementService: dispose
2026-08-03T15:27:09.168Z Err CID[xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx] SlotErrorBoundary: slotName: main, componentStack:
at https://teams.public.onecdn.static.microsoft/teams-modular-packages/hashed-assets/async-entry-47ff400edb25f1e1.js:1276:226400
at https://teams.public.onecdn.static.microsoft/teams-modular-packages/hashed-assets/async-entry-47ff400edb25f1e1.js:1276:229046
at Uu (https://teams.public.onecdn.static.microsoft/teams-modular-packages/hashed-assets/async-entry-47ff400edb25f1e1.js:29:27364)
at https://te...
2026-08-03T15:27:09.143Z Inf CID[xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx] AppCaching: PlatformCacheManagementService: Triggering high memory event for active app: xxxxxxxx-xxxxxxxx-xxxx-xxxxxxxxxxxx

Importance

Important. My app's user experience is significantly compromised.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

150.0.4078.105

SDK Version

No response

Framework

Other

Operating System

Windows 11

OS Version

25H2

Repro steps
  • Open Microsoft Teams desktop client
  • Navigate to Team channel containing tab link to Power Apps app
  • Access App from tab link
  • Wait approximately ~1-2 minutes
  • Error is displayed within the Teams desktop client UI: [MemoryError::APP_OUT_OF_MEMORY]
Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

No, this never worked

Last working version (if regression)

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in the Microsoft Teams desktop client with the linked Power Apps tab on Windows 11, using the listed WebView2 Runtime version and the one-to-two-minute wait. Compare the result with Teams for the web and the corresponding Edge version, then use the provided Teams memory and unload logs to determine whether the failure is specific to the desktop WebView2 host.

Written by the indexing model from the issue text.

Assessment

Domain
desktop, operating-systems
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.