Forum Discussion

Re: DXGI_ERROR_DEVICE_REMOVED or DXGI_ERROR_DEVICE_HUNG

While playing Battlefield 6 on Ultra settings with FPS capped at 140, I encountered repeated DXGI_DEVICE_HUNG and D3D11: Removing Device. errors. After extensive diagnostics, I’ve traced the root cause to invalid AV1 encoder calls originating from Edge WebView2, which appears to be used by EA’s in-game overlay or telemetry components.

System Details:

  • GPU: RX 9070XT
  • Driver Version: AMD Adrenalin 25.20.x (latest)
  • Game: Battlefield 6 (DX12)
  • OS: Windows 11 x64
  • Monitoring Tools Used: DebugView, PIX, ProcMon

Observed Errors:

AMF_INVALID_ARG: Property=Av1Level

HRESULT(0x80070057)

AMFAsyncEncoderMF::OnCheckOutputType failed

D3D11: Removing Device.

DXGI_ERROR_DEVICE_HUNG

What I Did to Diagnose the Issue:

  1. Enabled DX12 debug layer and GPU-based validation
  2. Captured logs using DebugView and PIX
  3. Used ProcMon to trace DLL loads and encoder activity
  4. Confirmed that Battlefield 6 itself was not calling the AV1 encoder
  5. Identified msedgewebview2.exe as the process triggering encoder calls
  • Located in:

C:\Program Files (x86)\Microsoft\EdgeWebView\Application\...\msedgewebview2.exe

  • This Chromium-based WebView attempted to initialize AMD’s AV1 and H.264 encoders with invalid parameters
  • These calls consistently preceded GPU device removal and DXGI_DEVICE_HUNG errors

Steps Taken to Resolve the Issue:

  • Disabled AV1, Instant Replay, and Anti-Lag+ in AMD Adrenalin
  • Disabled EA App’s In-Game Overlay
  • Renamed the Edge WebView2 runtime folder to block encoder calls
  • Battlefield 6 now runs cleanly at Ultra settings and 140 FPS with no device removals

Request:

Please investigate whether Battlefield 6 or the EA App is invoking AV1 or H.264 encoders via WebView2, and whether the in-game overlay or telemetry system is responsible. These encoder calls appear to be misconfigured and are triggering GPU device removal on AMD systems.

I can provide logs, PIX traces, and minidumps if needed.

7 Replies

  • xMrNiceGuy_85x's avatar
    xMrNiceGuy_85x
    Rising Novice
    20 days ago

    Update from today - game seems to be running really well after further diagnostics- No signs of issues in Debug atter reg suppression

     

    Description:

    Battlefield 6 consistently triggered DXGI_ERROR_DEVICE_REMOVED crashes under Ultra settings on an AMD RDNA3 GPU. Through a multi-phase forensic diagnostic process, I isolated the root cause to invalid encoder parameters passed to AMD’s AMF stack — specifically involving AV1 or H.264 initialization — even when overlays and telemetry were disabled.

    System Context:

    • GPU: AMD Radeon (RDNA3)
    • Driver: Adrenalin 23.x
    • OS: Windows 11 Pro
    • Game: Battlefield 6 (Ultra, DX11)
    • Tools: DebugView with filters for AMF, D3D11, DXGI, HRESULT

    Diagnostic Summary:

    1. Crash logs showed AMF encoder faults and device removal:

    AMFEncoderCoreH264::SetPropertyInternal() → AMF_INVALID_ARG HRESULT: 0x887A0007 (DXGI_ERROR_DEVICE_REMOVED)

    1. Disabled overlays and telemetry (EA App, Adrenalin, CCP_APP) — crash persisted
    2. No replay/highlight toggle found in BF6 UI or config
    3. Registry suppression of AMF and AV1 resolved the issue:
      • EnableAMF=0, DisableAV1=1, ForceH264=1, EnableReLive=0, EnableStreaming=0
      • Applied to both HKLM\SOFTWARE\AMD\CN and HKLM\SOFTWARE\AMD\DVR
    4. Post-suppression: No encoder logs, no device removal, game stable under Ultra load

    Recommendation:

    Please investigate whether Battlefield 6 is initializing encoder paths unnecessarily or with malformed parameters. Consider exposing a toggle for internal replay/highlight systems or suppressing encoder hooks when overlays are disabled.

  • xMrNiceGuy_85x's avatar
    xMrNiceGuy_85x
    Rising Novice
    20 days ago

    Copy the registry suppression info I entered, chuck it into Chat GPT and go from there. I did a lot of other changes but i believe these are the main ones 

  • HeadHunterIt's avatar
    HeadHunterIt
    Seasoned Rookie
    19 days ago

    I had high hopes for your workaround. Unfortunately, the issue persists.

    This is absolutely ridiculous.

Featured Places

Node avatar for Battlefield 6 Technical Issues

Battlefield 6 Technical Issues

Having issues with Battlefield 6? Join here to find help with connectivity, performance issues, crashes and more.Latest Activity: 3 minutes ago
5,136 Posts