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

Some shader functions cause corruption, freezes or crashes #158

Open
VisualEhrmanntraut opened this issue Sep 6, 2023 · 112 comments
Open

Some shader functions cause corruption, freezes or crashes #158

VisualEhrmanntraut opened this issue Sep 6, 2023 · 112 comments

Comments

@VisualEhrmanntraut
Copy link
Member

VisualEhrmanntraut commented Sep 6, 2023

Software like Chrome and Sublime Text 4 can cause corruption and freezes.

To Reproduce

  1. Open software which uses dual source blend like Chrome and Sublime Text 4
  2. Observe

Expected behavior
The software working perfectly fine.

Screenshots
Screenshot 2023-09-06 at 10 45 40

@VisualEhrmanntraut VisualEhrmanntraut added this to the Version 1.0.0 milestone Sep 6, 2023
@VisualEhrmanntraut VisualEhrmanntraut self-assigned this Sep 6, 2023
@github-project-automation github-project-automation bot moved this to 🆕 New in NootedRed Sep 6, 2023
@VisualEhrmanntraut VisualEhrmanntraut moved this from 🆕 New to 📋 Backlog in NootedRed Sep 6, 2023
@VisualEhrmanntraut VisualEhrmanntraut pinned this issue Sep 6, 2023
@Xtuber14

This comment has been minimized.

@VisualEhrmanntraut
Copy link
Member Author

ANGLE is for WebGL. Nothing to do with Chrome itself glitching out.

@b00t0x

This comment has been minimized.

@DepsCian

This comment has been minimized.

@Xtuber14

This comment has been minimized.

@jalavoui

This comment has been minimized.

@Xtuber14

This comment has been minimized.

@jalavoui

This comment has been minimized.

@b00t0x

This comment has been minimized.

@shenfu1991

This comment has been minimized.

@VisualEhrmanntraut

This comment has been minimized.

@jalavoui

This comment has been minimized.

@VisualEhrmanntraut
Copy link
Member Author

Talking about that workaround... I just realised something:
With the VTable wrap hack the team ex-member came up with, if the called function inside the wrap calls another virtual function in the this pointer, then the wrong function gets called

@jalavoui

This comment was marked as spam.

@VisualEhrmanntraut
Copy link
Member Author

(The VTable hack has to do with HWAlignManager used inside it for calculations)

@alvindimas05

This comment has been minimized.

@truongvantuan

This comment has been minimized.

@alvindimas05

This comment has been minimized.

@revogabe
Copy link

@VisualEhrmanntraut Do you have any predictions if we can have any solution for chrome-based browsers natively in the future?

@VisualEhrmanntraut
Copy link
Member Author

New prediction available: No prediction available.

@alvindimas05

This comment was marked as off-topic.

@txrm
Copy link

txrm commented Oct 4, 2023

DOSBOX's OpenGL freezes the system immediately, looking into what triggers it since it's a fast and reliable crash.

Config field is output = surface | overlay | opengl | openglnb | ddraw

@VisualEhrmanntraut
Copy link
Member Author

I've just received some very crucial data. On a person's system, the screen corruption magically reverted. This reinforces my thoughts on the issue, and I think getting rid of what I mentioned previously will fix it!

@VisualEhrmanntraut
Copy link
Member Author

it no worky

IMAGE 2024-06-28 22:19:21

@phpete1
Copy link

phpete1 commented Jun 28, 2024

it no worky

IMAGE 2024-06-28 22:19:21

Have you tried switching it off and on again?

@phpete1
Copy link

phpete1 commented Jun 28, 2024

it no worky

IMAGE 2024-06-28 22:19:21

In all seriousness, can't wait to see a fix for this, hopefully

@AlfCraft07
Copy link
Member

My pc with Minecraft Java (that uses OpenGL) doesn’t do that; the game runs even smoother than in Windows

@VisualEhrmanntraut
Copy link
Member Author

VisualEhrmanntraut commented Jun 28, 2024

This is Sublime Text 4.

@AlfCraft07
Copy link
Member

AlfCraft07 commented Jun 28, 2024

Ok. So it happens on Chrome, and is there any other app that can make it happen?

@ChitoKim
Copy link

League of Legends client(also opengl) used to crack like shit before. As I use the latest nightly kext it was fixed.

@JuniorHerakuresu
Copy link

League of Legends client(also opengl) used to crack like shit before. As I use the latest nightly kext it was fixed.

It glitches for me with nightly but a "bit" less than other times, but still annoying

@divasgt
Copy link

divasgt commented Jul 7, 2024

Ok. So it happens on Chrome, and is there any other app that can make it happen?

it happens when opening canva.com on firefox, and on chromium based browsers and apps i have to turn off graphics acceleration then they give no issue but then they uses high cpu and makes my laptop hotter

@techmare
Copy link
Member

techmare commented Jul 7, 2024

@divasgt Yes same here

@aidanbae123
Copy link

I use a site called notion for my studies and it used to crash any chromium or even firebox browser when simply opening the site. I installed the most recent nightly build and it no longer crashes my browser. However, the standalone app still causes severe graphical glitches and crashes my entire system if not closed in time. Either way, glad to see good progress.

@aidanbae123
Copy link

Also one thing I notices just now is that discord now seems to be crashing with slight graphical glitches which eventually becomes a blank grey tab. Not sure if this is the same issue but it was working fine before.

@pokewizardSAM
Copy link

Also one thing I notices just now is that discord now seems to be crashing with slight graphical glitches which eventually becomes a blank grey tab. Not sure if this is the same issue but it was working fine before.

from the last update or past 3-4 days mine does that too.

@aidanbae123
Copy link

yeah, I double checked by opening discord on arc (chromium-based) and it seems to be crashing as well. Works fine on safari though.

@diandiweb
Copy link

Programs that require hardware acceleration will crash

@aidanbae123
Copy link

Yeah I am very well aware of that, but my point was it wasn't crashing before

@frezyn
Copy link

frezyn commented Jul 18, 2024

i have same problem, Some fix to that?

@ChefKissInc ChefKissInc locked and limited conversation to collaborators Jul 23, 2024
@VisualEhrmanntraut
Copy link
Member Author

VisualEhrmanntraut commented Aug 25, 2024

We have found what causes the corruption; it's dual source blend. Switching ANGLE to OpenGL and ANGLE feature flags to disableBlendFuncExtended fixes the corruption. Sublime Text also uses this feature.
EDIT: Not always. It seems to be blending functions in general that are problematic.

@VisualEhrmanntraut VisualEhrmanntraut changed the title Advanced OpenGL apps may cause graphical glitches and/or GPU hangs Dual source blend causes corruption and freezes Aug 25, 2024
@VisualEhrmanntraut VisualEhrmanntraut moved this from 📋 Backlog to 🏗 In progress in NootedRed Aug 25, 2024
@VisualEhrmanntraut VisualEhrmanntraut changed the title Dual source blend causes corruption and freezes Some blend functions cause corruption and freezes Sep 6, 2024
@VisualEhrmanntraut VisualEhrmanntraut marked this as a duplicate of #340 Feb 17, 2025
@VisualEhrmanntraut VisualEhrmanntraut marked this as a duplicate of #299 Mar 2, 2025
@VisualEhrmanntraut VisualEhrmanntraut changed the title Some blend functions cause corruption and freezes Some shader functions cause corruption, freezes or crashes Mar 2, 2025
@VisualEhrmanntraut
Copy link
Member Author

To resolve this issue user-space patches are needed, more complex ones than you can do with Lilu, and as such this issue will probably be unable to be resolved without hacks. Lilu user-space patching causes issues anyways, like app crashes and system instability. I will make an announcement regarding this to bring attention to the matter.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Status: 📋 Backlog
Development

No branches or pull requests