Bug Report OBS studio crashes and spams log with AMF_DIRECTX_FAILED

fluor1te

New Member
Streams fine for 30 minutes to an hour, than crashes. This bug is repeatable by streaming for 30 minutes to an hour and happens 100% of the time I do this.
the log message are as follows and repeats for about 700,000 lines after crashing. here is a snippet from the log.
15:20:29.918: [AMF Encoder] [15:20:29.897][AMFSurfaceImpl] Error: ..\..\..\..\..\runtime\src\core\SurfaceImpl.cpp(292):AMF_ERROR 18 : AMF_DIRECTX_FAILED: AllocPlanes()- CreateSurface
15:20:30.018: [AMF Encoder] [15:20:29.930][AMFDeviceDX11Impl] Error: ..\..\..\..\..\runtime\src\core\DeviceDX11Impl.cpp(162):COM failed, HR = 80070057:CreateNativeSurface - CreateTexture2D failed
15:20:30.018: [AMF Encoder] [15:20:29.930][AMFDeviceDX11Impl] Error: ..\..\..\..\..\runtime\src\core\DeviceDX11Impl.cpp(200):AMF_ERROR 18 : AMF_DIRECTX_FAILED: CreateNativeSurface(format, width, height, true, (void**)&pSurface)

EDIT: This bug only appears on windows 7 while using AMD hardware encoding, and has something to do with directx11 being used instead of directx9
 
Last edited:

fluor1te

New Member
Have it be noted that OBS classic does not have this issue and I have resorted to using it as a work around.
 

fluor1te

New Member
it follows with this before the log ends for about 100 lines.
28.336: [AMF Encoder] GPU Encoder overloaded, dropping frame instead...
15:24:29.336: [AMF Encoder] GPU Encoder overloaded, dropping frame instead...
15:24:30.336: [AMF Encoder] GPU Encoder overloaded, dropping frame instead...
 

fluor1te

New Member
Update, has been running solid for 3 hours now on software encoding mode using cpu instead of vnc. The bug appears to only be with vnc.
 
Last edited:

fluor1te

New Member
Some googling suggests that on windows 7 which I am using there is an issue with directx11 encoding. I thought this had been resolved or fixed to use directx9?
 
Top