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

egl-wayland: Fix eglCreateSync and streamAcquireImage handling #124

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

amshafer
Copy link
Collaborator

@amshafer amshafer commented Aug 6, 2024

This fixes two issues:

  • eglCreateSync takes ownership of the fd passed to it, so we shoul not close the fd after passing it in.
  • eglStreamAcquireImage's failure case only bails out of the function if acquireSync is valid, which is not the case when explicit sync is not in use.

This fixes two issues:
* eglCreateSync takes ownership of the fd passed to it, so we shoul
  not close the fd after passing it in.
* eglStreamAcquireImage's failure case only bails out of the function
  if acquireSync is valid, which is not the case when explicit sync
  is not in use.
@amshafer
Copy link
Collaborator Author

amshafer commented Aug 6, 2024

CC: @mahkoh

@dkorkmazturk
Copy link
Collaborator

Thanks for working on this @amshafer, LGTM.

@scaronni
Copy link

scaronni commented Aug 8, 2024

@amshafer please merge, it is also confirmed to fix the Firefox 128 crashes on Fedora: https://bodhi.fedoraproject.org/updates/FEDORA-2024-3a273427fc

@Nodens-
Copy link

Nodens- commented Aug 8, 2024

@amshafer I can confirm that with git egl-wayland and both PR123 plus PR124 merged, I have had no fd crashes for 24 hours on 555 driver. Waiting 560.31.02 release on rpmfusion so I can test with that version too.

@amshafer amshafer merged commit 4480345 into NVIDIA:master Aug 8, 2024
@ofourdan
Copy link

ofourdan commented Aug 9, 2024

Is that supposed to work with the r555 driver as well?

I am using this code on Fedora 40 (from @scaronni 's https://bodhi.fedoraproject.org/updates/FEDORA-2024-3a273427fc) with the NVIDIA driver version 555.58.02 and I am still seeing a suspectful high rate of crashes in Firefox 128.0.3 when playing Youtube.

@ofourdan
Copy link

ofourdan commented Aug 9, 2024

Ah nevermind, looks like I failed at picking up the update yesterday, it works much better now! Sorry for the noise.

@Nodens-
Copy link

Nodens- commented Aug 9, 2024

Bad fd crashes not reproducible anymore with 560 branch either

@scaronni
Copy link

scaronni commented Aug 9, 2024

Ah nevermind, looks like I failed at picking up the update yesterday, it works much better now! Sorry for the noise.

Will update to 1.1.15 in the same update as soon as it's tagged.

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

Successfully merging this pull request may close these issues.

5 participants