Fix TMBad windows bug#935
Conversation
Instructions for code reviewerHello reviewer, thanks for taking the time to review this PR!
Checklist
|
|
I'm leaving these two commits as separate to demonstrate adding TMBad fails on Windows but then initializing |
|
Great find 🔍 @Andrea-Havron-NOAA. I am wondering if you mind adding a comment on how you found the 🐛? Did you use vagrind, gdb, or some other method? |
|
I had to debug on my local Windows machine so Valgrind was not available. I also was not able to set breakpoints with gdb because there are size issues with compiling FIMS with the debugger turned on. In the end, I used the logging system to print out messages to discover where the code failed. I determined the code crashed when accessing |
5ef2561 to
f88ffb7
Compare
kellijohnson-NOAA
left a comment
There was a problem hiding this comment.
Thank you @Andrea-Havron-NOAA!
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #935 +/- ##
=======================================
Coverage 75.19% 75.19%
=======================================
Files 82 82
Lines 8416 8418 +2
Branches 460 463 +3
=======================================
+ Hits 6328 6330 +2
Misses 1981 1981
Partials 107 107 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
What is the feature?
How have you implemented the solution?
unfished_biomasswas not being initialized. This was causing an instability that was only picked up by Windows when running TMBad.Does the PR impact any other area of the project, maybe another repo?