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
I'm looking for some ideas to debug floating point (resulting numbers are way off) issues that seem to only occur in debug builds without sanitizers. Once I build debug+sanitizers or release (-O3), everything seems to work. Those issues also only happen with Emscripten (3.1.17 at the moment), whereas GCC and Visual Studio builds don't show those problems at all.
Has someone seen something like that before or has tips on how to approach this? I already found some expression variants that change the result. Like replacing Eigen expression such as vector*a - vector*b with vector*(a-b) or vector = matrix * vector with copy=vector; copy = matrix * vectorgives different results. But that seems not directly limited to Eigen, we also see this with external libraries such as https://github.com/jbuckmccready/CavalierContours.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi fellow Emscripten Debuggers,
I'm looking for some ideas to debug floating point (resulting numbers are way off) issues that seem to only occur in debug builds without sanitizers. Once I build debug+sanitizers or release (-O3), everything seems to work. Those issues also only happen with Emscripten (3.1.17 at the moment), whereas GCC and Visual Studio builds don't show those problems at all.
Has someone seen something like that before or has tips on how to approach this? I already found some expression variants that change the result. Like replacing Eigen expression such as
vector*a - vector*b
withvector*(a-b)
orvector = matrix * vector
withcopy=vector; copy = matrix * vector
gives different results. But that seems not directly limited to Eigen, we also see this with external libraries such as https://github.com/jbuckmccready/CavalierContours.Thanks!
Sven
Beta Was this translation helpful? Give feedback.
All reactions