Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Black Triangles/Shapes in PowerShell/Windows Terminal + Oh My Posh #18266

Closed
GustavoBorges13 opened this issue Dec 1, 2024 · 5 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting

Comments

@GustavoBorges13
Copy link

Windows Terminal version

1.22.3232.0

Windows build number

10.0.26100.2454

Other Software

oh-my-posh 24.11.2 (default theme, clean installation)

Steps to reproduce

Hello everyone,

I formatted my computer yesterday, and Oh-My-Posh with Windows Terminal was working perfectly before that. However, now I'm encountering rendering issues with some shapes/triangles. It seems to be an old problem that many people have experienced. I found several similar issues from the past, but so far, I haven’t found any recent ones. Just in case, I’m opening this issue in the hope that a solution might have been found after two years. Below is the reference material I studied and tried using the available solutions: #13553, #7014, #16271, #5897.

If anyone has any suggestions or insights on how to resolve this, I would greatly appreciate it. Thank you in advance for your help!

System Info

  • Edition: Windows 11 Pro
  • Version: 24H2
  • Installed on: 11/30/2024
  • OS Build: 26100.2454
  • Experience: 1000.26100.36.0

Steps to Reproduce

  1. Install PowerShell 7.4.6 (x64) from the Microsoft website.
    Image

  2. Install Windows Terminal Preview (or Windows Terminal) from the Microsoft Store.
    Image

  3. Open Windows Terminal.

  4. Install Oh My Posh from Windows Terminal:
    winget install JanDeDobbeleer.OhMyPosh -s winget
    Image

  5. Run:
    code $PROFILE
    Add the following line:
    oh-my-posh init pwsh --config "THEME PATH" | Invoke-Expression
    Image

  6. Restart Windows Terminal.
    Image

  7. Change the font: Go to Settings -> Defaults -> Appearance -> Text and set the Font face to "SpaceMono Nerd Font Mono".
    Image

  8. Reduce the background transparency: Settings -> Defaults -> Appearance -> Transparency -> Background opacity <= 80. (This setting alone triggers the bug).
    Image
    Image

  9. Enable acrylic material: Settings -> Defaults -> Appearance -> Transparency -> Enable acrylic material = ON. (The bug persists even with this setting).
    Image
    Image

Tests

10.1 Windows Configurations

  • Go to Personalization -> Colors -> Transparency effects and switch On to Off (2x).
    Image
    Image
    Result:
    Image

10.2 Update PSReadLine

  • Run the command:
    Update-Module PSReadLine
    Image

10.3 Change Graphics API for rendering

  • Go to Windows Terminal -> Configurations -> Rendering -> Graphics API and select Direct2D/Direct3D 11.
    Image
    Image

10.4 Virtual Machine
I tested performing the same operation on a machine with the same .iso I installed, and the error persists there as well. If needed, I am more than willing to test on other versions and different .isos.

Expected Behavior

Image
Image

Actual Behavior

Image
Image
Image
Image

@GustavoBorges13 GustavoBorges13 added Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Dec 1, 2024
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@lhecker
Copy link
Member

lhecker commented Dec 2, 2024

I may be missing something, but isn't your issue identical to what's described in #7014 (which you mention yourself)?

@GustavoBorges13
Copy link
Author

I may be missing something, but isn't your issue identical to what's described in #7014 (which you mention yourself)?

Yes, you’re right. I hadn’t noticed zadjii-msft's message at the end of the thread. Initially, I thought I was the only one experiencing this issue, but it seems a solution is already in development. In any case, this bug doesn’t bother me at all.

Thank you very much for your attention! You can go ahead and close the ticket.

@lhecker
Copy link
Member

lhecker commented Dec 3, 2024

Thank you for the report, however.
Unfortunately, it's not trivial to fix this issue without causing regressions and I won't have time to work on this in the near term. The ideal solution is to implement a so called "tiled deferred shading" via a compute shader for rendering the text.
I'll be closing the issue for now then.

@lhecker lhecker closed this as not planned Won't fix, can't repro, duplicate, stale Dec 3, 2024
@j4james
Copy link
Collaborator

j4james commented Dec 18, 2024

FYI, I recently discovered that nerd-fonts added a pair of inverted arrow head glyphs specifically to solve this problem. See ryanoasis/nerd-fonts#1490.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting
Projects
None yet
Development

No branches or pull requests

3 participants