-
-
Notifications
You must be signed in to change notification settings - Fork 124
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
PipewireEGL: failed to create a texture (reason = 'Arguments are inconsistent') #1028
Comments
Hi
|
Hello! |
Attrib values are:
Only file descriptor changes time from time. Any idea what is wrong or what to do next? |
The file description naturally changes every time, but we can't check if it's correct. If the app doesn't crash then it should be OK.
Could you compare the results to KDE? |
Removing DMA modifiers fixed the problem! Just to be sure, I commented these lines HyperHDR/sources/grabber/linux/pipewire/PipewireHandler.cpp Lines 799 to 803 in c24549c
|
Yes, that's the correct section. For some reason it doesn't like DrmModifier, I don't know why 🤷 Maybe _frameDrmModifier should be uint64_t (but probably it should make no difference)? Could you check it and enable the if section again?
|
Changing to |
|
This comment was marked as outdated.
This comment was marked as outdated.
@dankmolot I've prepared the workaround but can't test it under VirtualBox (no DRM support). Could you switch to pipewire_drm_workaround branch and compile&test it? |
No problem, but I can't test it right now. Will be able to tell how it goes after around 3 hours |
@awawa-dev Also your workaround spammed in output
|
Considering the users, the vast majority of whom approach with extreme distrust and reluctance to compile anything on their own😉 I think that a solution that would retry creating a texture without additional parameters for DRM would be more appropriate. Even at the cost of one additional line in the logs, besides it would not change the current tested path if the texture could be created on the first attempt: it does not cost us anything and will free me from explaining the same problem when it resurfaces on github 😄 As I explained, I do not have hardware setup to check and correct the algorithm for DRM now and it will have to wait a few days but I'm sure it will work. |
In KDE environment I get these values:
Here is full log: https://pastebin.com/MXqq7eJf |
That is totally fine! Thank you for figuring the problem and for being very responsive. I'm glad I can enjoy proper system capture :) |
Discord also suffers from wrong dma modifiers:
|
Well, this DRM bug is escalating quickly 😦 So let's not wait with workaround. I've fixed my code (one -1 too far) and committed the changes. Can you check your PR after changing to auto-retry if it works for you too? Then I will merge it. |
Bug report, debug log and your config file (FULL LOGS ARE MANDATORY)
debug log: https://pastebin.com/4gTe0Wyg
config: HyperHDR-21.0.0.0beta1-Backup-2024-12-29.json
I want also add that this issue probably related to Hyprland, since on KDE system capture was working.
Steps to reproduce
hyperhdr-git
from AURWhat is expected?
System capture will work as expected.
What is actually happening?
HyperHDR unable to capture system through pipewire (DmaBuf, egl) with error:
System
Additional system information:
The text was updated successfully, but these errors were encountered: