Invalid frame dimension (negative or non-finite)
AvdLee opened this issue · 0 comments
AvdLee commented
See:
Xcode 14 shows these as purple warnings, whereas Xcode 13 only shows them as system logs.
The affected method:
(lldb) po totalHeight
96.0
(lldb) po value
-97134000.0
(lldb) po maxValue
149426000.0
(lldb) po divideByZeroProtection(CGFloat.self, value, maxValue)
-0.6500475151580046
(lldb) po totalHeight * divideByZeroProtection(CGFloat.self, value, maxValue)
-62.40456145516845
It starts with this method: