Skip to content

Fix Garch opengl check, add ARC conditionals to HgiMetal.#2

Merged
dgovil merged 1 commit intodgovil:ios-imagingfrom
wabiverse:ios-imaging
Sep 9, 2024
Merged

Fix Garch opengl check, add ARC conditionals to HgiMetal.#2
dgovil merged 1 commit intodgovil:ios-imagingfrom
wabiverse:ios-imaging

Conversation

@furby-tm
Copy link
Copy Markdown

@furby-tm furby-tm commented Sep 9, 2024

Description of Change(s)

  • HgiMetal: conditionally compile the newly added release calls with !__has_feature(objc_arc), so this change is in line with the PR linked above.

Checklist

* Note blitCmds.mm is still using the wrong MTLResource
  type on L.361, which should be MTLBuffer, but that issue
  is addressed in the following PR:
  PixarAnimationStudios#3226

Signed-off-by: furby™ <devs@wabi.foundation>
@dgovil dgovil merged commit 1b18166 into dgovil:ios-imaging Sep 9, 2024
dgovil pushed a commit that referenced this pull request Oct 8, 2025
dirty expression prior to removing it from the collection tables.

Reported by the testLightLinkingSceneIndex test under asan, as:

=1343067==ERROR: AddressSanitizer: heap-use-after-free on address 0x60c0009bd598 at pc 0x7f2b478c6b23 bp 0x7ffff1bf6350 sp 0x7ffff1bf6340
READ of size 8 at 0x60c0009bd598 thread T0
    #0 0x7f2b478c6b22 in std::vector<SdfPathExpression::Op, std::allocator<SdfPathExpression::Op> >::size() const /usr/lib/gcc/x86_64-redhat-linux/11/../../../../include/c++/11/bits/stl_vector.h:919
    #1 0x7f2b478c6b22 in std::vector<SdfPathExpression::Op, std::allocator<SdfPathExpression::Op> >::vector(std::vector<SdfPathExpression::Op, std::allocator<SdfPathExpression::Op> > const&) /usr/lib/gcc/x86_64-redhat-linux/11/../../../../include/c++/11/bits/stl_vector.h:555
    #2 0x7f2b478c6b22 in SdfPathExpression::SdfPathExpression(SdfPathExpression const&) /depts/tools/build_archive/dev/builds/2379295/inst/fedora-gcc64-opt-asan/pxr/include/pxr/usd/sdf/pathExpression.h:54
    #3 0x7f2b478cf89d in std::pair<SdfPathExpression, std::optional<std::pair<SdfPath, TfToken> > >::pair<std::pair<SdfPath, TfToken> const&, true>(SdfPathExpression const&, std::pair<SdfPath, TfToken> const&) /usr/lib/gcc/x86_64-redhat-linux/11/../../../../include/c++/11/bits/stl_pair.h:337
    PixarAnimationStudios#4 0x7f2b478cf89d in HdsiLightLinkingSceneIndex_Impl::_Cache::ProcessCollection(SdfPath const&, TfToken const&, SdfPathExpression const&) imaging/hdsi/lightLinkingSceneIndex.cpp:156

(Internal change: 2379722)
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.

2 participants