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

Corrupted font / characters using AMD 6800 GPU #20008

Closed
1 of 7 tasks
zach-morris opened this issue Jul 30, 2021 · 16 comments · Fixed by #21276
Closed
1 of 7 tasks

Corrupted font / characters using AMD 6800 GPU #20008

zach-morris opened this issue Jul 30, 2021 · 16 comments · Fixed by #21276

Comments

@zach-morris
Copy link

Bug report

Describe the bug

Here is a clear and concise description of what the problem is:
The last character of every word in the Kodi GUI appears corrupted using Windows 10 (or 11) paired with an AMD 6800 GPU (or similar, see forum links below, other similar models show the same issue). See the following images:
TA2i6A8
Kodi-1
Kodi-2

Expected Behavior

Here is a clear and concise description of what was expected to happen:
Text is not corrupted when using the GPU(s) noted.

Actual Behavior

Text is corrupted, every last character of every word, when using the GPU(s) noted.

Possible Fix

Unknown if this is a GPU driver issue or Kodi fixable issue. A moderator in the Kodi forum suggested this was a driver issue, but I'm not sure how that conclusion was made.

To Reproduce

Steps to reproduce the behavior:

  1. Install Kodi on a Windows 10 or newer PC paired with an AMD 6800 GPU or similar
  2. Start Kodi, note corrupted fonts

Understand that this may be difficult to troubleshoot without the appropriate hardware, so I'm willing to help if necessary with additional troubleshooting or information.

Debuglog

Below is a debug log showing my system build. There is no other notable information in debug logs. I will note I installed the latest nightly v20 Alpha, and the latest v19 stable, hoping the Harfbuzz library would potentially fix the problem, but the problem persists with any version of Kodi newer than 18.9:

2020-12-12 21:19:18.311 T:7836  NOTICE: -----------------------------------------------------------------------
2020-12-12 21:19:18.311 T:7836  NOTICE: Starting Kodi (18.9 (18.9.0) Git:20201023-0655c2c718). Platform: Windows NT x86 64-bit
2020-12-12 21:19:18.311 T:7836  NOTICE: Using Release Kodi x64 build
2020-12-12 21:19:18.311 T:7836  NOTICE: Kodi compiled 2020-10-23 by MSVC 191627035 for Windows NT x86 64-bit version 10.0 (0x0A000007)
2020-12-12 21:19:18.311 T:7836  NOTICE: Running on Windows 10, kernel: Windows NT x86 64-bit version 10.0.19042
2020-12-12 21:19:18.311 T:7836  NOTICE: FFmpeg version/source: 4.0.4-Kodi
2020-12-12 21:19:18.311 T:7836  NOTICE: Host CPU: AMD Ryzen 5 5600X 6-Core Processor, 12 cores available
2020-12-12 21:19:18.311 T:7836  NOTICE: Desktop Resolution: 1280x800 32Bit at 32Hz
...
2020-12-12 21:19:18.400 T:7836   DEBUG: DX:eviceResources::HandleOutputChange: selected AMD Radeon RX 6800 adapter.
2020-12-12 21:19:18.400 T:7836   DEBUG: CWinSystemWin32DX::InitHooks: Hooking into UserModeDriver on device .
2020-12-12 21:19:18.400 T:7836   DEBUG: CWinSystemWin32DX::InitHooks: error open registry key with error 2.
2020-12-12 21:19:18.402 T:7836   DEBUG: DX:eviceResources::CreateDeviceResources: creating DirectX 11 device.
2020-12-12 21:19:18.422 T:7836   DEBUG: DX:eviceResources::CreateDeviceResources: device is created on adapter 'AMD Radeon RX 6800' with feature level b100.

Screenshots

Here are some links or screenshots to help explain the problem:
I also compiled Freetype / freetype demo (ftview) from source to see if I could find a common issue with Freetype and the AMD GPU itself. Below is a screenshot of ftview showing the Kodi's arial.ttf font, with no noted corrupt characters:
Screen Shot 2021-07-30 at 1 13 57 PM

Additional context or screenshots (if appropriate)

Here is some additional context or explanation that might help:
Links to the issue in Kodi Forums:
https://forum.kodi.tv/showthread.php?tid=359715
https://forum.kodi.tv/showthread.php?tid=359105

Links to the issue on the AMD forums:
https://community.amd.com/t5/graphics/radeon-rx-6900-xt-and-kodi-compatibility/td-p/436372

Additional notes are that using the DXVK Transitional Layer (Vulkan) fixes the issue (not sure if this points to the driver or not) . However, this breaks video player capability in Kodi, so it's not a viable workaround.

Your Environment

Used Operating system:

  • Android

  • iOS

  • tvOS

  • Linux

  • OSX

  • Windows

  • Windows UWP

  • Operating system version/name:

  • Kodi version: v18.9 or newer (up to v20 Alpha as of 07/30/21).

note: Once the issue is made we require you to update it with new information or Kodi versions should that be required.
Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.

@sarbes
Copy link
Member

sarbes commented Oct 20, 2021

The last vertex of every string is messed up, as one can see in renderdoc. It almost seems like it never gets data.

It seems to me that other drivers mask this issue, but not the ones for the newer cards. Visually, it looks fine on my RX 570.

A DX dev would need to look into it.

@zach-morris
Copy link
Author

Interesting, I've never heard of RenderDoc, but if capturing data with it would be useful with a 6800 let me know.

@ariael
Copy link

ariael commented Jan 14, 2022

I have exactly same problem on 6800XT...
Strange fact - i try use Nvidia 1080Ti back (previous card) - and same problem looks had Nvidia too. Something strange happens...

But i found on internet previous reported same problem on other card, Nvidia or AMD, without similar mix card brand.

@luca-iodice
Copy link

same problem here with an rx 6600xt

@simkin
Copy link

simkin commented Feb 15, 2022

Would be nice if kodi would append a fully transparent/empty character in every textbox as temp workaround.

Perhaps an idea to create a AMD language/translation that does exactly this? And a plugin that does the same with subtitles?

@zach-morris
Copy link
Author

@simkin,

Great idea. I tried that as a workaround: Editing the strings.po file and putting spaces, empty characters, etc to see if the problem would go away. I wasn't unfortunately able to find a blank/empty/small character that would remove the issue. The problem persists if for example you just append a space to every string.

@NickFurlo
Copy link

Same problem here on AMD RX 6700 XT with current drivers and AMD Adrenaline. The worst part is that this issue affects subtitles as well which hurts accessibility.

@thexai thexai added v19 Matrix v20 Nexus Triage: Has proposed fix Issue has been reproduced and has a pending proposed fix and removed Triage: Confirmed issue has been reproduced by a team member labels Apr 16, 2022
@thexai
Copy link
Member

thexai commented Apr 16, 2022

Test build (v20) with fix/workaround:
https://mirrors.kodi.tv/test-builds/windows/win64/KodiSetup-20220416-3b80f9ba-fix-font-AMD-x64.exe

thexai@3b80f9b

@thexai
Copy link
Member

thexai commented Apr 17, 2022

New build with better fix:
https://mirrors.kodi.tv/test-builds/windows/win64/KodiSetup-20220418-c88e3449-fix-font-AMD-x64.exe

(the one before was a dirty workaround this is a true fix)

@ariael
Copy link

ariael commented Apr 17, 2022

Fix looks working... Beware - fix is Alpha Kodi 20!

@thexai thexai added the Resolution: Fixed issue was resolved by a code change label Apr 19, 2022
@Banteel
Copy link

Banteel commented Nov 21, 2022

Am having the same issue with AMD 6750 XT I installed the other day. Good to hear that there may be a possible fix in v20.

@DALEcz
Copy link

DALEcz commented Nov 27, 2022

I also have this issue - on latest WIN11 update and AMD 680M iGPU graphic.
Any update? The build with a fix is no longer available... thx

@mmortal03
Copy link

I also have this issue - on latest WIN11 update and AMD 680M iGPU graphic. Any update? The build with a fix is no longer available... thx

It looks like the fix was merged into master shortly afterwards back in April, so you should test the latest master from the following and confirm whether it's fixed for you: https://mirrors.kodi.tv/nightlies/windows/win64/master/

@DALEcz
Copy link

DALEcz commented Nov 27, 2022

It looks like the fix was merged into master shortly afterwards back in April, so you should test the latest master from the following and confirm whether it's fixed for you: https://mirrors.kodi.tv/nightlies/windows/win64/master/

You are right! It seems it is fixed and everything is working (it even took the settings from my previous installation)! I will test it more tonight.
(Btw. if I uninstall the previous version now, I will most likely lose the settings in both versions right? I did not uninstall the orig. version before installing the nightly one...)

@mmortal03
Copy link

I believe it installs to the same place by default, so your previous version was overwritten, while keeping settings. I don't remember what happens if you uninstall it, whether it gives you the option to leave the settings files in place or not. If it were me, I I wouldn't uninstall, I'd just continue using the master as long as you don't notice any new bugs.

@DALEcz
Copy link

DALEcz commented Nov 28, 2022

Actually, I installed it into a separate folder so that's why I was surprised it used the previous settings (including addons etc.).
But yeah, I think you are right - I will just leave it as it is and use the working, nightly, version. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants