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
Read from location 000000c1 caused an access violation.
This happened while journalling (non-verbose), so I have at least part of a journal.
This is below the current master (comparison), but note that this is not an instance of #872, as it is above the fix.
The fail-safe that was supposed to ensure that an accidental destruction of the trajectories of the flight plan would cause a FATAL failure, rather than a use-after-free, was incorrect: the on_destroy callback was not reinstated on deserialization. In the current master (3bc0a40), the callback is added in three distinct places.
The first item is an ordinary programming error.
The second item above is a failure of TDD: for a bug fix, even if the test is, for convenience, written after the fix, it should always be written or cherry-picked onto a commit pre-dating the fix, so that it can be seen that it exercises the bug.
The third item points to a design flaw in FlightPlan; the fail-safe callback needs to be managed in several places, and while the deserialization could be factored by having two separate constructors, one delegating to the other, it is harder to see how the remaining use (in CoastIfReachesManœuvreInitialTime) could be factored. Additionally, while it is possible to factor the registration of those callbacks post hoc, there is no check that they are not mistakenly removed as was the case here in the deserialization.
It shall be noted that #895, if it were to be merged, would fully address this item.
This happened while journalling (non-verbose), so I have at least part of a journal.
This is below the current master (comparison), but note that this is not an instance of #872, as it is above the fix.
See also the logs.
Decoded stack trace
physics/forkable_body.hpp:258
ksp_plugin/vessel_body.hpp:189
ksp_plugin/plugin.cpp:632
ksp_plugin/interface.cpp:814
The text was updated successfully, but these errors were encountered: