You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This crash only occurs in release builds, which leads me to believe that the crash is something to do with an optimisation that is prematurely freeing `entityUniforms`.
If I insert `print(entityUniforms.count)` at line 112 (to force the compiler to let the variable live long enough), the crash no longer occurs.
I have attached the report generated by address sanitiser. If any more information is required I would happy to provide it.
The text was updated successfully, but these errors were encountered:
Attachment: Download
Environment
macOS 12.0.1
MacBook Air, Dual-Core Intel Core i5
Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)
Xcode Version 13.2 (13C90)
Additional Detail from JIRA
md5: 08445327acee57f1911ce291bc9b1475
Issue Description:
The method is quite big so I'll instead link the offending file: https://github.com/stackotter/delta-client/blob/04d2e93c0aa11b12c7a297a1c30537ccc602161c/Sources/Core/Sources/Render/Entity/EntityRenderer.swift. The offending method is `EntityRenderer.render`. The code crashes at lines 101 and 110 (depending on which branch is taken) with a use-after-free of the local variable `entityUniforms`.
This crash only occurs in release builds, which leads me to believe that the crash is something to do with an optimisation that is prematurely freeing `entityUniforms`.
If I insert `print(entityUniforms.count)` at line 112 (to force the compiler to let the variable live long enough), the crash no longer occurs.
I have attached the report generated by address sanitiser. If any more information is required I would happy to provide it.
The text was updated successfully, but these errors were encountered: