Error 0x8007046b running emacs -nw with software rendering disabled #23009

Closed
opened 2026-01-31 08:29:49 +00:00 by claunia · 7 comments
Owner

Originally created by @PinaBG on GitHub (Mar 11, 2025).

Originally assigned to: @lhecker on GitHub.

Windows Terminal version

1.21.10351.0

Windows build number

10.0.26100.3194

Other Software

emacs (inside wsl)

Steps to reproduce

  • Disable software rendering (WARP).
  • Open a terminal.
  • Run emacs -nw.
  • Observe the error message or unexpected behavior.

Expected Behavior

Emacs should open in terminal mode (-nw) without errors

Actual Behavior

  • The following error messages appear:
    • "Renderer encountered an unexpected error: 0x8007046b A potential deadlock condition has been detected."
    • "This terminal has encountered an issue with the graphics driver and it could not recover in time."
  • Emacs does not open in terminal mode (-nw).
  • When enabling software rendering, Emacs works normally.
  • However, enabling software rendering disables the "experimental.pixelShaderPath" feature.
  • Looking for a solution that allows both "experimental.pixelShaderPath" and Emacs in terminal mode to work together.

Here's my settings.json in case it helps troubleshoot the issue!

{
   "$help":"https://aka.ms/terminal-documentation",
   "$schema":"https://aka.ms/terminal-profiles-schema",
   "actions":[
      {
         "command":"toggleFocusMode",
         "id":"User.toggleFocusMode",
         "keys":"shift+f11"
      },
      {
         "command":"toggleShaderEffects",
         "id":"User.toggleShaderEffects",
         "keys":"shift+f10"
      },
      {
         "command":{
            "action":"splitPane",
            "split":"auto",
            "splitMode":"duplicate"
         },
         "id":"User.splitPane.A6751878",
         "keys":"alt+shift+d"
      },
      {
         "command":{
            "action":"copy",
            "singleLine":false
         },
         "id":"User.copy.644BA8F2",
         "keys":"ctrl+c"
      },
      {
         "command":"paste",
         "id":"User.paste",
         "keys":"ctrl+v"
      },
      {
         "command":"find",
         "id":"User.find",
         "keys":"ctrl+shift+f"
      }
   ],
   "centerOnLaunch":true,
   "copyFormatting":"none",
   "copyOnSelect":false,
   "defaultProfile":"{a5a97cb8-8961-5535-816d-772efe0c6a3f}",
   "initialCols":90,
   "initialPosition":",",
   "newTabMenu":[
      {
         "type":"remainingProfiles"
      }
   ],
   "profiles":{
      "defaults":{
         "colorScheme":"Dracula",
         "experimental.pixelShaderPath":"C:\\Users\\bruno\\Documents\\workspace\\windows-terminal-shaders\\crt.hlsl",
         "font":{
            "face":"Cascadia Mono",
            "size":12
         }
      },
      "list":[
         {
            "commandline":"%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
            "guid":"{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
            "hidden":false,
            "name":"Windows PowerShell"
         },
         {
            "commandline":"%SystemRoot%\\System32\\cmd.exe",
            "guid":"{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
            "hidden":false,
            "name":"Command Prompt"
         },
         {
            "commandline":"C:\\Program Files\\Git\\bin\\bash.exe",
            "font":{
               "face":"Monocraft Nerd Font"
            },
            "guid":"{5127da2a-63e0-4d74-8b4d-52d9166b4759}",
            "hidden":false,
            "icon":"C:\\Program Files\\Git\\mingw64\\share\\git\\git-for-windows.ico",
            "name":"Git Bash"
         },
         {
            "font":{
               "face":"Monocraft Nerd Font",
               "size":14
            },
            "guid":"{a5a97cb8-8961-5535-816d-772efe0c6a3f}",
            "hidden":false,
            "name":"Arch",
            "source":"Windows.Terminal.Wsl"
         }
      ]
   },
   "schemes":[
      {
         "background":"#282A36",
         "black":"#21222C",
         "blue":"#BD93F9",
         "brightBlack":"#6272A4",
         "brightBlue":"#D6ACFF",
         "brightCyan":"#A4FFFF",
         "brightGreen":"#69FF94",
         "brightPurple":"#FF92DF",
         "brightRed":"#FF6E6E",
         "brightWhite":"#FFFFFF",
         "brightYellow":"#FFFFA5",
         "cursorColor":"#F8F8F2",
         "cyan":"#8BE9FD",
         "foreground":"#F8F8F2",
         "green":"#50FA7B",
         "name":"Dracula",
         "purple":"#FF79C6",
         "red":"#FF5555",
         "selectionBackground":"#44475A",
         "white":"#F8F8F2",
         "yellow":"#F1FA8C"
      }
   ],
   "startOnUserLogin":true,
   "themes":[
      
   ]
}
Originally created by @PinaBG on GitHub (Mar 11, 2025). Originally assigned to: @lhecker on GitHub. ### Windows Terminal version 1.21.10351.0 ### Windows build number 10.0.26100.3194 ### Other Software emacs (inside wsl) ### Steps to reproduce - Disable software rendering (WARP). - Open a terminal. - Run emacs -nw. - Observe the error message or unexpected behavior. ### Expected Behavior Emacs should open in terminal mode (-nw) without errors ### Actual Behavior - The following error messages appear: - `"Renderer encountered an unexpected error: 0x8007046b A potential deadlock condition has been detected."` - `"This terminal has encountered an issue with the graphics driver and it could not recover in time."` - Emacs does not open in terminal mode (`-nw`). - When enabling software rendering, Emacs works normally. - However, enabling software rendering disables the `"experimental.pixelShaderPath"` feature. - Looking for a solution that allows both `"experimental.pixelShaderPath"` and Emacs in terminal mode to work together. Here's my `settings.json` in case it helps troubleshoot the issue! ```json { "$help":"https://aka.ms/terminal-documentation", "$schema":"https://aka.ms/terminal-profiles-schema", "actions":[ { "command":"toggleFocusMode", "id":"User.toggleFocusMode", "keys":"shift+f11" }, { "command":"toggleShaderEffects", "id":"User.toggleShaderEffects", "keys":"shift+f10" }, { "command":{ "action":"splitPane", "split":"auto", "splitMode":"duplicate" }, "id":"User.splitPane.A6751878", "keys":"alt+shift+d" }, { "command":{ "action":"copy", "singleLine":false }, "id":"User.copy.644BA8F2", "keys":"ctrl+c" }, { "command":"paste", "id":"User.paste", "keys":"ctrl+v" }, { "command":"find", "id":"User.find", "keys":"ctrl+shift+f" } ], "centerOnLaunch":true, "copyFormatting":"none", "copyOnSelect":false, "defaultProfile":"{a5a97cb8-8961-5535-816d-772efe0c6a3f}", "initialCols":90, "initialPosition":",", "newTabMenu":[ { "type":"remainingProfiles" } ], "profiles":{ "defaults":{ "colorScheme":"Dracula", "experimental.pixelShaderPath":"C:\\Users\\bruno\\Documents\\workspace\\windows-terminal-shaders\\crt.hlsl", "font":{ "face":"Cascadia Mono", "size":12 } }, "list":[ { "commandline":"%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", "guid":"{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", "hidden":false, "name":"Windows PowerShell" }, { "commandline":"%SystemRoot%\\System32\\cmd.exe", "guid":"{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", "hidden":false, "name":"Command Prompt" }, { "commandline":"C:\\Program Files\\Git\\bin\\bash.exe", "font":{ "face":"Monocraft Nerd Font" }, "guid":"{5127da2a-63e0-4d74-8b4d-52d9166b4759}", "hidden":false, "icon":"C:\\Program Files\\Git\\mingw64\\share\\git\\git-for-windows.ico", "name":"Git Bash" }, { "font":{ "face":"Monocraft Nerd Font", "size":14 }, "guid":"{a5a97cb8-8961-5535-816d-772efe0c6a3f}", "hidden":false, "name":"Arch", "source":"Windows.Terminal.Wsl" } ] }, "schemes":[ { "background":"#282A36", "black":"#21222C", "blue":"#BD93F9", "brightBlack":"#6272A4", "brightBlue":"#D6ACFF", "brightCyan":"#A4FFFF", "brightGreen":"#69FF94", "brightPurple":"#FF92DF", "brightRed":"#FF6E6E", "brightWhite":"#FFFFFF", "brightYellow":"#FFFFA5", "cursorColor":"#F8F8F2", "cyan":"#8BE9FD", "foreground":"#F8F8F2", "green":"#50FA7B", "name":"Dracula", "purple":"#FF79C6", "red":"#FF5555", "selectionBackground":"#44475A", "white":"#F8F8F2", "yellow":"#F1FA8C" } ], "startOnUserLogin":true, "themes":[ ] } ```
Author
Owner

@PankajBhojwani commented on GitHub (Mar 12, 2025):

Thank you for reporting this! Could you capture a transcript by following these instructions please Troubleshooting Tips · microsoft/terminal Wiki /? Also, what graphics card are you using (specifically the model) and which graphics driver version are you on?

@PankajBhojwani commented on GitHub (Mar 12, 2025): Thank you for reporting this! Could you capture a transcript by following these instructions please [Troubleshooting Tips · microsoft/terminal Wiki](https://github.com/microsoft/terminal/wiki/Troubleshooting-Tips#script) /? Also, what graphics card are you using (specifically the model) and which graphics driver version are you on?
Author
Owner

@PinaBG commented on GitHub (Mar 12, 2025):

Sure! My processor is a 13th Gen Intel(R) Core(TM) i7-1360P 2.20 GHz with an integrated Intel Iris Xe Graphics card.
Looks like my TypeScript file is too large to upload here, but it was just a bunch of Emacs resets. Here's a shorter version:

typescript.txt

@PinaBG commented on GitHub (Mar 12, 2025): Sure! My processor is a 13th Gen Intel(R) Core(TM) i7-1360P 2.20 GHz with an integrated Intel Iris Xe Graphics card. Looks like my TypeScript file is too large to upload here, but it was just a bunch of Emacs resets. Here's a shorter version: [typescript.txt](https://github.com/user-attachments/files/19218479/typescript.txt)
Author
Owner

@PinaBG commented on GitHub (Mar 12, 2025):

The driver version of my integrated graphics is 32.0.101.6078

@PinaBG commented on GitHub (Mar 12, 2025): The driver version of my integrated graphics is 32.0.101.6078
Author
Owner

@zadjii-msft commented on GitHub (Mar 26, 2025):

Just to be totally sure - does this happen with

  • software rendering disabled
  • the pixel shader disabled

I idly wonder if it's that particular shader?

@zadjii-msft commented on GitHub (Mar 26, 2025): Just to be totally sure - does this happen with * software rendering disabled * the pixel shader disabled I idly wonder if it's that particular shader?
Author
Owner

@PinaBG commented on GitHub (Mar 31, 2025):

I was trying to take a screenshot to send you, but for some reason, in version 1.22.107.31.0 of Windows Terminal, the error is gone! Now I can run emacs -nw with the shader normally! I noticed that the driver version of my integrated graphics hasn't changed, so I think this has to do with the Windows Terminal version.

@PinaBG commented on GitHub (Mar 31, 2025): I was trying to take a screenshot to send you, but for some reason, in version 1.22.107.31.0 of Windows Terminal, the error is gone! Now I can run emacs -nw with the shader normally! I noticed that the driver version of my integrated graphics hasn't changed, so I think this has to do with the Windows Terminal version.
Author
Owner

@PinaBG commented on GitHub (Mar 31, 2025):

Image

@PinaBG commented on GitHub (Mar 31, 2025): ![Image](https://github.com/user-attachments/assets/a0585ece-e406-4343-841b-26d8ced2dcc7)
Author
Owner

@DHowett commented on GitHub (Apr 2, 2025):

Well that's wild!

Thanks so much for circling back. I'm glad it's gone, but a bit worried that it is lying in wait to strike when you least expect it.

Let us know if that happens!

@DHowett commented on GitHub (Apr 2, 2025): Well that's _wild!_ Thanks so much for circling back. I'm glad it's gone, but a bit worried that it is lying in wait to strike when you least expect it. Let us know if that happens!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#23009