FPS draw error in DXTextPainter::SaveBitmapToStream() [Win8 Metro]

This has happened before, but it’s been a few weeks since I last saw this error. Now, today, this error keeps coming up again and again. I will probably not see this error again for days or weeks. I’ve done a Windows update but haven’t rebooted yet; anything to do with that?

This member function DXTextPainter::SaveBitmapToStream(…) is throwing an error at
@ DX::ThrowIfFailed(
imageEncoder->WriteFrame(
d2dBitmap.Get(),
wicFrameEncode.Get(),
nullptr // Use default WICImageParameter options.
)
);@

The hr code is 0x8899000c which is defined as D2DERR_RECREATE_TARGET.

The program at this point is trying to draw the FPS which is “60.0”; size is approximately 46.7 x 27.5 with center alignment.

Here is the call stack:
@ KernelBase.dll!77064b32() Unknown
[Frames below may be incorrect and/or missing, no symbols loaded for KernelBase.dll]
msvcr110d.dll!CxxThrowException Line 152 C+
HelloWorld.exe!DX::ThrowIfFailed Line 21 C*+
HelloWorld.exe!DXTextPainter::SaveBitmapToStream Line 376 C*+
HelloWorld.exe!DXTextPainter::DrawTextToImage Line 217 C*+
HelloWorld.exe!cocos2d::CCImage::initWithString Line 73 C*+
HelloWorld.exe!cocos2d::CCTexture2D::initWithString Line 531 C*+
HelloWorld.exe!cocos2d::CCTexture2D::initWithString Line 519 C*+
HelloWorld.exe!cocos2d::CCLabelTTF::setString Line 125 C*+
HelloWorld.exe!cocos2d::CCDirector::showFPS Line 712 C*+

HelloWorld.exe!cocos2d::CCDirector::drawScene Line 225 C*+
HelloWorld.exe!cocos2d::CCDisplayLinkDirector::mainLoop Line 931 C*+
HelloWorld.exe!cocos2d::CCFrameworkView::::Run Line 165 C*+
HelloWorld.exe!cocos2d::CCFrameworkView::::*abi_Windows_ApplicationModel_Core_IFrameworkView_*abi_Run C+
twinapi.dll!644dc9dd Unknown
twinapi.dll!644dcab2 Unknown
twinapi.dll!644dc9f6 Unknown
SHCore.dll!75005a10 Unknown
kernel32.dll!767d8543 Unknown
ntdll.dll!77b6ac69 Unknown
ntdll.dll!77b6ac3c Unknown
@

Here is the lower half of the output :
The thread 0x13ac has exited with code 0 .
‘HelloWorld.exe’ : Loaded ‘C:64\twinapi.dll’. Cannot find or open the PDB file.
‘HelloWorld.exe’ : Loaded ‘C:64\WinTypes.dll’. Cannot find or open the PDB file.
‘HelloWorld.exe’ : Loaded ‘C:64\cryptsp.dll’. Cannot find or open the PDB file.
‘HelloWorld.exe’ : Loaded ‘C:64\rsaenh.dll’. Cannot find or open the PDB file.
CCFrameworkView::*CCFrameworkView
CCFrameworkView::~~CCFrameworkView
CCFrameworkView::*Initialize
CCFrameworkView::-Initialize
‘HelloWorld.exe’ : Loaded ‘C:64\actxprxy.dll’. Cannot find or open the PDB file.
‘HelloWorld.exe’ : Loaded ‘C:64\Windows.UI.Immersive.dll’. Cannot find or open the PDB file.
‘HelloWorld.exe’ : Loaded ‘C:64\dui70.dll’. Cannot find or open the PDB file.
‘HelloWorld.exe’ : Loaded ‘C:64\Windows.UI.dll’. Cannot find or open the PDB file.
‘HelloWorld.exe’ : Loaded ‘C:64\ninput.dll’. Cannot find or open the PDB file.
‘HelloWorld.exe’ : Loaded ‘C:64\uxtheme.dll’. Cannot find or open the PDB file.
‘HelloWorld.exe’ : Loaded ‘C:Files (x86)Files\Microsoft Shared\Ink\tiptsf.dll’. Cannot find or open the PDB file.
CCFrameworkView::*SetWindow
‘HelloWorld.exe’ : Loaded ‘C:64\Windows.Graphics.dll’. Cannot find or open the PDB file.
‘HelloWorld.exe’ : Loaded ‘C:64\d2d1debug1.dll’. Cannot find or open the PDB file.
‘HelloWorld.exe’ : Loaded ‘C:64\advapi32.dll’. Cannot find or open the PDB file.
‘HelloWorld.exe’ : Loaded ‘C:64\WindowsCodecs.dll’. Cannot find or open the PDB file.
‘HelloWorld.exe’ : Loaded ‘C:64\dxgidebug.dll’. Cannot find or open the PDB file.
‘HelloWorld.exe’ : Loaded ‘C:64\igd10umd32.dll’. Cannot find or open the PDB file.
‘HelloWorld.exe’ : Loaded ‘C:64\d3d11_1sdklayers.dll’. Cannot find or open the PDB file.
‘HelloWorld.exe’ : Loaded ‘C:64\dwmapi.dll’. Cannot find or open the PDB file.
‘HelloWorld.exe’ : Loaded ‘C:64\dcomp.dll’. Cannot find or open the PDB file.
CCFrameworkView::~~SetWindow
CCFrameworkView::*Load
CCFrameworkView::-Load
CCFrameworkView::OnActivated
CCFrameworkView::~~OnActivated
CCFrameworkView::Run
‘HelloWorld.exe’ : Loaded ‘C:64\shell32.dll’. Cannot find or open the PDB file.
‘HelloWorld.exe’ : Loaded ‘C:64\shlwapi.dll’. Cannot find or open the PDB file.
‘HelloWorld.exe’ : Loaded ‘C:64\MMDevAPI.dll’. Cannot find or open the PDB file.
‘HelloWorld.exe’ : Loaded ‘C:64\devobj.dll’. Cannot find or open the PDB file.
‘HelloWorld.exe’ : Loaded ‘C:64\AudioSes.dll’. Cannot find or open the PDB file.
‘HelloWorld.exe’ : Loaded ‘C:64\powrprof.dll’. Cannot find or open the PDB file.
‘HelloWorld.exe’ : Loaded ‘C:64\Windows.ApplicationModel.dll’. Cannot find or open the PDB file.
‘HelloWorld.exe’ : Loaded ‘C:64\propsys.dll’. Cannot find or open the PDB file.
CCFrameworkView::OnWindowActivationChanged
CCFrameworkView::~~OnWindowActivationChanged
‘HelloWorld.exe’ : Loaded ‘C:64\UIAutomationCore.dll’. Cannot find or open the PDB file.
‘HelloWorld.exe’ : Loaded ‘C:64\oleacc.dll’. Cannot find or open the PDB file.
The thread 0x17c0 has exited with code 0 .
D3D11: Removing Device.
D3D11 WARNING: ID3D11Device::RemoveDevice: Device removal has been triggered for the following reason . [ EXECUTION WARNING #379: DEVICE_REMOVAL_PROCESS_POSSIBLY_AT_FAULT]
D2D DEBUG WARNING - A Draw call by a render target failed . Tags .
First-chance exception at 0x77064B32 in HelloWorld.exe: Microsoft C
+ exception: _com_error at memory location 0x0300C1C4.
First-chance exception at 0x77064B32 in HelloWorld.exe: Microsoft C
+ exception:com_error at memory location 0x0300D1CC.
First-chance exception at 0x77064B32 in HelloWorld.exe: Microsoft C
+ exception: _com_error at memory location 0x0300D2F8.
First-chance exception at 0x77064B32 in HelloWorld.exe: Microsoft C
+ exception:*com_error at memory location 0x0300E4D4.
First-chance exception at 0x77064B32 in HelloWorld.exe: Microsoft C++ exception: Platform::COMException ^ at memory location 0x0300E9DC. HRESULT:0x8899000C

Thanks for reading.