ChefKissInc / NootedRed

The AMD Vega iGPU support patch kext. No commercial use.
https://ChefKissInc.github.io/nred
Other
1.55k stars 669 forks source link

Display blur and crash with terminal application "alacritty" #200

Closed laris closed 7 months ago

laris commented 7 months ago

When open the alacritty, screen blur and system hung and crash.

https://github.com/alacritty/alacritty

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

System Information:

Additional context Add any other context about the problem here.

VisualEhrmanntraut commented 7 months ago

Duplicate of #158

laris commented 7 months ago

Need I upload the diagnosticlog here for analysis?

VisualEhrmanntraut commented 7 months ago

Sure! Crash logs would be nice as well :)

laris commented 7 months ago

2023.11.19-diagnosticreports.zip

I forgot to upload and found you marked it closed :)

Thanks for your works!

ExtremeXT commented 7 months ago

@laris It looks like you're on an old version of NootedRed.

laris commented 7 months ago

I checked opencore config, it should be ci1055 20231112 dfd2ffa commit. let me try 20231117-957505c-ci1057

laris commented 7 months ago

update to latest and now will test again.


/Volumes/EFI/EFI/OC/Kexts/NootedRed-ci1057-20231117-957505c-DEBUG.kext

kextstat -b com.ChefKissInc.NootedRed
Executing: /usr/bin/kmutil showloaded --bundle-identifier com.ChefKissInc.NootedRed
No variant specified, falling back to release
Index Refs Address            Size       Wired      Name (Version) UUID <Linked Against>
   59    0 0xffffff8003c9f000 0x114000   0x114000   com.ChefKissInc.NootedRed (1.0.0) 2405C963-EC91-3C81-9A1D-8FB2F68556FC <58 18 9 7 6 3 2 1>
laris commented 7 months ago

@laris It looks like you're on an old version of NootedRed.

Could you share how to double confirm the driver version? I confirm according opencore config ref https://github.com/ChefKissInc/NootedRed/issues/200#issuecomment-1818104578

I can provide more detail or log if you need.

laris commented 7 months ago

https://github.com/ChefKissInc/NootedRed/assets/951666/5ff1b4dd-9c79-46bb-aae8-93a56c64e938

upload video, after open the alacritty, the dock status.

VisualEhrmanntraut commented 7 months ago

Same problem as Sublime Text. The only thing you can do is wait for a fix and/or disable HW acceleration for the app temporarily

jalavoui commented 7 months ago

@laris this is related to this setting

`pub enum ShaderVersion { /// OpenGL 3.3 core shaders. Glsl3,

/// OpenGL ES 2.0 shaders.
Gles2,

}`

alacry and other gl apps try to use OpenGL 3.3 core shaders and crash

in alacry you can boot with this flag to force use gl 2 shader .../Alacritty.app/Contents/MacOS/alacritty -o debug.renderer=gles2_pure -v

Captura de ecrã 2023-11-23, às 20 22 14

laris commented 7 months ago

thank you. But it looks like cannot get shell with black window.

./alacritty -o debug.renderer=gles2_pure -v
Created log file at "/var/folders/py/_4bld1296cx59mt3l3wqnv7h0000gn/T/Alacritty-1354.log"
[0.000009558s] [INFO ] [alacritty] Welcome to Alacritty
[0.000272171s] [INFO ] [alacritty] Version 0.12.3 (5efb069)
[0.000670589s] [INFO ] [alacritty_config_derive] Config import not found:
[0.001092822s] [INFO ] [alacritty] Configuration files loaded from:
2023-11-24 08:44:30.111 alacritty[1354:20366] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
[0.031249001s] [INFO ] [alacritty] Using Apple CGL
[0.078801984s] [INFO ] [alacritty] Window scale factor: 2
[0.106355648s] [INFO ] [alacritty] Running on AMD Radeon Graphics OpenGL Engine
[0.106441899s] [INFO ] [alacritty] Using OpenGL ES 2.0 renderer
[0.117393902s] [INFO ] [alacritty] Cell size: 19 x 44
[0.117465807s] [INFO ] [alacritty] Padding: 0 x 0
[0.117493580s] [INFO ] [alacritty] Width: 2280, Height: 2200
[0.119880180s] [INFO ] [alacritty] PTY dimensions: 50 x 120
[0.123276487s] [INFO ] [alacritty] Initialisation complete
[0.155839656s] [INFO ] [alacritty] Padding: 0 x 0
[0.155955574s] [INFO ] [alacritty] Width: 2280, Height: 1592
jalavoui commented 7 months ago

[0.000010129s] [INFO ] [alacritty] Welcome to Alacritty [0.000240591s] [INFO ] [alacritty] Version 0.13.0-dev [0.000579707s] [INFO ] [alacritty_config_derive] No config file found; using default [0.018771536s] [INFO ] [alacritty] Using Apple CGL [0.062913091s] [INFO ] [alacritty] Window scale factor: 1 [0.127304355s] [INFO ] [alacritty] Running on AMD Radeon Vega 8 OpenGL Engine [0.127382631s] [INFO ] [alacritty] OpenGL version 4.1 ATI-4.14.1, shader_version 4.10 [0.127416505s] [INFO ] [alacritty] Using OpenGL ES 2.0 renderer [0.154107661s] [INFO ] [alacritty] Cell size: 6 x 13 [0.154202819s] [INFO ] [alacritty] Padding: 0 x 0 [0.154234368s] [INFO ] [alacritty] Width: 800, Height: 600 [0.165975563s] [INFO ] [alacritty] PTY dimensions: 46 x 133 [0.168769652s] [INFO ] [alacritty] Initialisation complete

try ask help in alacrity forum idk why fonts not rendering

VisualEhrmanntraut commented 7 months ago

that's a macOS OpenGL driver bug with the texture display. even mesa has the same issue on OpenGL 2 renderer