windowsuwpxbox-one

Xbox UWP Memory Usage Limit


I have a UWP video player app which runs on Xbox One. The app downloads resources: videos and audio, and then plays once completed. On my laptop, everything works fine and I can play the videos. However on the Xbox, at exactly the same point, I call fopen, which returns a nullptr andGetLastError() returning 112 - ERROR_DISK_FULL.

The total data size is about 7.5GB, but this error occurs less than half way through downloading. Is there some kind of storage limit on the Xbox? I have read this link https://learn.microsoft.com/en-us/windows/uwp/xbox-apps/system-resource-allocation which says that deployed using Visual Studio these limits don't apply. I am currently using VS to debug the application so this should be possible if it is the reason.

Any help on this would be appreciated.

Many thanks, Peter


Solution

  • To summary the issue. The error shows that the disk space of the Xbox that is used to store files is running out. What the document mentioned is about the memory limitation, not the disk limitation.

    There is only a certain amount of space dedicated for file storage as the drive is split into partitions. Just like an external drive, it can be formatted for file storage or games and apps. It can't hold both. So they split the internal drive so there is some file storage with most of the drive dedicated to the storage of games and apps.

    The application data folder that you are storing to goes to a drive that they can’t increase, a drive that is NOT the developer drive. It’s a fixed size.