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

Fix crashes when vkAllocateMemory fails #5754

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Upliner
Copy link
Contributor

@Upliner Upliner commented Oct 21, 2024

When system doesn't have enough VRAM, vkAllocateMemory fails and my app crashes. This patch fixes this by always checking return value of allocate_memory and allocate_dedicated_memory so my app can properly report error instead of crashing.

@github-actions github-actions bot added the core label Oct 21, 2024
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.98%. Comparing base (70310e9) to head (0765937).
Report is 27 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #5754       +/-   ##
===========================================
- Coverage   94.58%   89.98%    -4.60%     
===========================================
  Files         787      265      -522     
  Lines      248626    78782   -169844     
===========================================
- Hits       235164    70893   -164271     
+ Misses      13462     7889     -5573     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

Successfully merging this pull request may close these issues.

2 participants