HoloLens 2: device portal memory leak

LostMRDev 21 Reputation points
2021-08-16T07:22:01.627+00:00

There seems to be a memory leak in the device portal's mixed reality capture area.

When periodically calling the photo capture api, the device memory in use increases.

https://learn.microsoft.com/en-us/windows/mixed-reality/develop/platform-capabilities-and-apis/device-portal-api-reference#mixed-reality-capture

/api/holographic/mrc/photo (POST)

After several photo (30+) captures the device portal stops accepting most api requests.

The photo api returns the following error:

{"Code" : -2147024882, "CodeText" : "Not enough memory resources are available to complete this operation.\r\n", "Reason" : "Failed to take photo", "Success" : false}

Even when having a pause of 60 seconds in between the photo captures, the memory still fills up.
Only rebooting the device fixes the issue.

HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
387 questions
{count} votes

Accepted answer
  1. Hernando Ren 2,166 Reputation points
    2021-08-26T05:43:19.907+00:00

    Hello, Welcome to Microsoft Q&A,

    Thank you for reporting this device portal memory leak issue. This bug has been verified and reproduced at Microsoft. And we have filed it to seek resolution in a future update to the HoloLens 2 operating system. Currently, rebooting the device is the only workaround.

    ----
    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful