2025-07-18 04:15 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0005469Spring engineGeneralpublic2017-02-12 14:51
Reportercleanrock 
Assigned ToKloot 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusresolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0005469: SIGFPE in GetHeadingFromVectorF
DescriptionPerhaps use epscmp() with dz at "if (dz != 0.0f)".

Program terminated with signal SIGFPE, Arithmetic exception.
#0 0x000000000059cba5 in GetHeadingFromVectorF (dx=0.993334234, dz=3.73964478e-20) at /home/johanr/my_projects/spring/rts/System/myMath.inl:46
46 h = HALFPI - d / (d * d + 0.28f);

(gdb) p d
$3 = 2.65622614e+19

(gdb) bt
#0 0x000000000059cba5 in GetHeadingFromVectorF (dx=0.993334234, dz=3.73964478e-20) at /home/johanr/my_projects/spring/rts/System/myMath.inl:46
#1 0x000000000059ccf1 in GetHeadingFromVector (dx=0.993334234, dz=3.73964478e-20) at /home/johanr/my_projects/spring/rts/System/myMath.inl:71
#2 0x0000000000d6af9d in CSolidObject::SetHeadingFromDirection (this=0x31955800) at /home/johanr/my_projects/spring/rts/Sim/Objects/SolidObject.cpp:443
0000003 0x0000000000d4437a in CStrafeAirMoveType::UpdateAirPhysics (this=0x7fccc7ae0560, rudder=-4.6791804e-18, aileron=4.02575032e-18, elevator=0.142084092, engine=1,
    engineThrustVector=...) at /home/johanr/my_projects/spring/rts/Sim/MoveTypes/StrafeAirMoveType.cpp:1141
0000004 0x0000000000d4146f in CStrafeAirMoveType::UpdateFlying (this=0x7fccc7ae0560, wantedHeight=330, engine=1)
    at /home/johanr/my_projects/spring/rts/Sim/MoveTypes/StrafeAirMoveType.cpp:881
0000005 0x0000000000d3e5cf in CStrafeAirMoveType::Update (this=0x7fccc7ae0560) at /home/johanr/my_projects/spring/rts/Sim/MoveTypes/StrafeAirMoveType.cpp:504
#6 0x0000000000e678eb in CUnitHandler::Update (this=0x11212100) at /home/johanr/my_projects/spring/rts/Sim/Units/UnitHandler.cpp:212
Additional Information103.0.1-611-g5e84a7293
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0017286

Anonymous (viewer)

Fix d9650067670c4580aa0ee43961d71f76797b67fe committed to develop branch: fix 0005469, repo: spring changeset id: 7921
+Notes

-Issue History
Date Modified Username Field Change
2017-02-12 08:46 cleanrock New Issue
2017-02-12 14:04 Kloot Assigned To => Kloot
2017-02-12 14:04 Kloot Status new => assigned
2017-02-12 14:51 Changeset attached => spring develop d9650067
2017-02-12 14:51 Anonymous Note Added: 0017286
2017-02-12 14:51 Anonymous Status assigned => resolved
2017-02-12 14:51 Anonymous Resolution open => fixed
+Issue History