[Bug]: crash when do_recdev = 0 is combined with SRR option 7 (but work-around is available)
@Rick-Methot-NOAA đang làm issue này rồi.
Từ ngày 1/2/2024.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Describe the bug
@quang-huynh reported an issue with combining SRR option 7 with the setting do_recdev = 0, which leads to the following error:
Finished calculating benchmarks
array bound exceeded -- index too high in prevariable::operator()
The error does not occur when the Beverton-Holt stock-recruit option is used.
This is a low priority to fix because the recdevs can be turned off via negative phase instead of do_recdevs, but good to have reported here anyway so we have a record of the problem if it happens to anyone else.
If a fix isn't easy to find, we could add a warning saying to use negative phase instead of do_recdevs when working with SRR option 7.
To Reproduce
Within Spinydogfish_2011 in test-models, change do_recdevs from 1 to 0 on this line and run with a recent SS3 executable
https://github.com/nmfs-ost/ss3-test-models/blob/main/models/Spinydogfish_2011/Spiny_Dogfish.CTL#L128.
Expected behavior
@quang-huynh says that the combination of SRR option 7 and do_recdev = 0 worked in SS version 3.30.16.
Screenshots
No response
Which OS are you seeing the problem on?
Windows
Which version of SS3 are you seeing the problem on?
3.30.22.1
Additional Context
No response
- Ngôn ngữ chính
- C++
- Star
- 46
- Fork
- 20
- Merge trung bình
- 2 ngày 6 giờ
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nmfs-ost/ss3-source-code
-
[Bug]: non-integer `Lbin_lo`/`Lbin_hi` are silently truncated under `Lbin_method = 1`, while method 3 raises a fatal error for the equivalent mistakeCó thể đã có người làm @Rick-Methot-NOAA đã nhận 22 ngày trước. Đang mở
nmfs-ost/ss3-source-code#784 · 1 người được giao ·
-
need warning and improved logic for generalized sizecompCó thể làm lại được @Rick-Methot-NOAA đã nhận 257 ngày trước và không có pull request nào đang mở. Đang mởcomposition in progress
nmfs-ost/ss3-source-code#751 · 1 bình luận · 1 người được giao ·
-
[Feature]: Add standard errors for area-specific quantitiesCó thể làm lại được @Rick-Methot-NOAA đã nhận 395 ngày trước và không có pull request nào đang mở. Đang mởarea & movement
nmfs-ost/ss3-source-code#731 · 3 bình luận · 1 người được giao ·
-
[Feature]: Create a basic report list that could serve as better starting configuration for customizationCó thể làm lại được @Rick-Methot-NOAA đã nhận 402 ngày trước và không có pull request nào đang mở. Đang mởmisc. output
nmfs-ost/ss3-source-code#723 · 1 người được giao ·
-
[Feature]: restrict biology output using the use_morph(g) flagCó thể làm lại được @Rick-Methot-NOAA đã nhận 424 ngày trước và không có pull request nào đang mở. Đang mởbiology misc. output ongoing
nmfs-ost/ss3-source-code#702 · 1 người được giao ·
Tất cả issue của nmfs-ost/ss3-source-code
Issue tương tự
-
backlog bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
EchoTools/nevr-runtime#653 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
InfiniTimeOrg/InfiniTime#2492 ·
-
accessibility good first issue hacktoberfest help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
OpenChemistry/avogadrolibs#3184 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Tracktion/tracktion_engine#475 ·
Maintainer thường phản hồi trong vòng 1 ngày