I would say that this is not a problem, and that this is not βnormalβ or βexpectedβ behavior. This is due to the hardware of your device and how the system handles overloading in resources or changes in music.
Your device will have a very flexible graphics accelerator, then your surfaces can survive a change in orientation. Look at the name of the device, the video mode changes completely and remembers those times when programming for desktop devices, when all DirectX surfaces (surfaces are video memory), must be recreated after changing the video mode from the desktop screen to full screen or semaphore.
The same thing happens when, maybe, your application is a difficult game to use resources, which uses the entire amount of video memory, both for surfaces for textures or back buffers, or so ... If you switch to another application, and this new one is required surface space, some or all of your video memory must be killed for this new screen to work.
And so ... See? ... It may happen that you donβt use all the significant part of the video memory or you just have a device with a poor supply with the latest software that can process as light or soft changes that do not destroy your resources.
The moral of my otherwise useless speech is that you must handle destruction if it is destroyed, even if it never happens on your device, or you will have many exceptions trying to block the canvas or render to zero.
source share