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

Cannot perform NvFBC patch on 495.44 #9

Closed
itsTyrion opened this issue Nov 7, 2021 · 5 comments
Closed

Cannot perform NvFBC patch on 495.44 #9

itsTyrion opened this issue Nov 7, 2021 · 5 comments

Comments

@itsTyrion
Copy link

itsTyrion commented Nov 7, 2021

Built according to unstructions, ran the commands:
cp /usr/lib/libnvidia-fbc.so.495.44 .
./nvlax_fbc -i ./libnvidia-fbc.so.495.44 -o ./libnvidia-fbc.so.495.44

Got:

[+] libnvidia-fbc.so
Assertion 'found' failed (ERROR)
  in file lax_fbc.cc, line 77
  function: int main(int, char**)
terminate called after throwing an instance of 'ppk::assert::AssertionException'
  what():  
[1]    24138 IOT instruction (core dumped)  ./nvlax_fbc -i /usr/lib/libnvidia-fbc.so.495.44 -o
@itsTyrion itsTyrion changed the title Cannot patch 495.44 Cannot perform NvFBC patch on 495.44 Nov 7, 2021
@itsTyrion
Copy link
Author

Likely very related to #7

@illnyang
Copy link
Owner

illnyang commented Nov 8, 2021

Send me your sample .so's (zippyshare will do) or checksums of those. Can't reproduce the issue on my end

@itsTyrion
Copy link
Author

itsTyrion commented Nov 8, 2021

zippyshare is geoblocked so here's both .so files on my VPS:
https://v.itstyrion.de/mirror/libnvidia-495.44.zip (same error with both the NvFBC and NvENC patch on the respective so)
image

SHA1 sums:
76077b3641461ce7488b1cb0f6d450bb11ce3b7e libnvidia-encode.so.495.44
0c9fe6a07e9000684f84249b68a87d448a74fec7 libnvidia-fbc.so.495.44

I'm on Fedora 35 btw

@OceanS2000
Copy link

OceanS2000 commented Nov 13, 2021

@itsTyrion AFAIK this patch and original nvidia-patch project only works on 64-bit version of driver. Unless you specifically need to run 32-bit application with patched driver you probably only need to patch the 64-bit version anyways.

On my Gentoo installation there is a 32-bit library in /usr/lib and 64-bit one in /usr/lib64.

SHA1 sums on my machine:

0c9fe6a07e9000684f84249b68a87d448a74fec7  /usr/lib/libnvidia-fbc.so
85197fccaee9f5bdd2ba0e3405b81e0c8c277e52  /usr/lib64/libnvidia-fbc.so (this is the one 64-bit application uses)

So it seems to me that you are trying to patch the 32-bit version but the 64-bit one is the way to go.
Not familiar with how fedora handles 32-bit and 64-bit libraries, but maybe you could look into /usr/lib64

@itsTyrion
Copy link
Author

itsTyrion commented Nov 13, 2021

.... How the actual hell did I not think of lib64? 🤦
Thanks.
image
Works now.
Error has been located in front of screen

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

No branches or pull requests

3 participants