hyprwm / xdg-desktop-portal-hyprland

xdg-desktop-portal backend for Hyprland
BSD 3-Clause "New" or "Revised" License
307 stars 49 forks source link

wrong color on obs #106

Closed glepnir closed 1 year ago

glepnir commented 1 year ago

relate issue https://github.com/obsproject/obs-studio/issues/9627

vaxerski commented 1 year ago

are you on legacy_renderer?

glepnir commented 1 year ago

you mean hyprland-legacyrenderer ? I don't install it . it's necessary? note I just install hyprland from archinstall script

vaxerski commented 1 year ago

no, it was just a question as legacy_renderer for sure had issues with that

vaxerski commented 1 year ago

what's the xdph ver? I assume 1.1. Does this happen on -wlr too?

glepnir commented 1 year ago

xdph is 1.1.0-3 i don't install xdpw but the link issue original author solved by switch to wlr. I am not sure.

vaxerski commented 1 year ago

this most likely means an issue in selecting a format (BGR <-> RGB)

can I get a verbose log of xdph?

add -v to launching xdph and redirect its logs to somewhere (so e.g. -v > /tmp/xdphlog) and provide the log from an offending session

try the nuclear script from here to make sure it runs correctly

glepnir commented 1 year ago

just run that bash script . and some warning give. can be ignore ?

xdg-desktop-portal-wlr: no process found

(/usr/lib/xdg-desktop-portal:43243): xdg-desktop-portal-WARNING **: 20:38:22.001: No skeleton to export
  1. open obs and close after select screen monitor

the log a bit long .not sure this is you want.

xdphlog.txt

vaxerski commented 1 year ago

it's the correct log, thank you

vaxerski commented 1 year ago

hm... It forces SHM, what GPU are you using...?

glepnir commented 1 year ago

amd rx580sp

vaxerski commented 1 year ago

does wl-screenrec work? I am weirded out why obs doesn't choose dma (aur: wl-screenrec or wl-screenrec-git)

glepnir commented 1 year ago

I am weirded out why obs doesn't choose dma

then you may need talk with obs developer :)

vaxerski commented 1 year ago

well I am working with you first because nobody else has the issue. Can you try wl-screenrec and see if it works? It might be your gpu trying to push weird dma modifiers and not a fault of obs

glepnir commented 1 year ago

okay make sure it write in rust right ? after install problem still exist

vaxerski commented 1 year ago

what?

glepnir commented 1 year ago

image

vaxerski commented 1 year ago

wl-screenrec is a screen recorder utility just like obs. I am asking whether it works, not obs.

glepnir commented 1 year ago

lol I misunderstand then..idk what's that tool do haha.. okay I can't use that tool some error through out.

vaxerski commented 1 year ago

if it crashes, then it means your GPU is advertising invalid modifiers, and that's why dma fails.

Odd that shm has an invalid format though, hm.

glepnir commented 1 year ago

no idea what happen. it works before. but i do yay everyday :) so someday it's broken T.T

create an issue on wl-screenrec but seems like author not active rencently. so I think the reply will have a delay.

I don't do nothing special on gpu driver. all installed by archinstall script.

vaxerski commented 1 year ago

It used to work probably prior to the 1.0 rewrite. Can't see what went wrong during the rewrite though, all works just fine on my end, even with shm.

glepnir commented 1 year ago

interesting. everything works fine in your local right. is it possiable to switch to before version to see what happen ? seems like original link issue author switch to xdpw solved it . i don't wanna install it :)

vaxerski commented 1 year ago

if you use arch you can just downgrade from your package cache in /var/cache/pacman/pkg

you can also clone the repo, reset to 0.5 and compile

vaxerski commented 1 year ago

can you post the output of lscpu | grep Byte

glepnir commented 1 year ago

yes I am in arch. output is Byte Order: Little Endian

vaxerski commented 1 year ago

okay so that is ruled out. Thanks.

glepnir commented 1 year ago

you are welcome :) lmao so you know what the problem is right :thinking: ?

vaxerski commented 1 year ago

I have no clue so far. Can you also provide a trace log from the working xdpw or xdph <= 0.5 ? Add -l TRACE > /tmp/xdpw.log to the cmdline like before.

I do have suspects but I have been scrubbing the code for an hour now and can't see what's wrong

glepnir commented 1 year ago

just want to make sure replace xdph by 0.5 version in /usr/lib still work right. need restart machine ? nothing change after replace.

glepnir commented 1 year ago

switch to xdpw works fine.

vaxerski commented 1 year ago

then provide a trace log from xdpw :)

glepnir commented 1 year ago

xdpw.log

vaxerski commented 1 year ago

thank u!!! >///< it seems I see where the fucky-wucky is, but I will have to do some scwubby wubby of the code to find the issue OwO pwease howd on

ardishko commented 1 year ago

Here is the only justified usage of ChatGPT:

Input: "Hello ChatGPT, could you please de-uwuify this for me?"

thank u!!! >///< it seems I see where the fucky-wucky is, but I will have to do some scwubby wubby of the code to find the issue OwO pwease howd on

Output:

Of course! Here's the de-uwuified version of your text:

"Thank you! It seems I see where the problem is, but I will have to do some scrubbing of the code to find the issue. Please hold on."

vaxerski commented 1 year ago

can you give me the output of pw-dump while screen capturing in xdph? (this can be just seeing your screen live in obs)

pw-dump > somefile.txt and attach that.

vaxerski commented 1 year ago

test with above, should be fixed.

glepnir commented 1 year ago

thanks install xdph git version wors fine now.