Meaningful error messages when number of subscripts differs between compile and runtime#2024
Conversation
|
✔️ c4cdc82 -> Azure artifacts URL |
|
✔️ 34bdfda -> Azure artifacts URL |
Codecov Report
@@ Coverage Diff @@
## master #2024 +/- ##
==========================================
+ Coverage 48.66% 48.84% +0.17%
==========================================
Files 518 518
Lines 115929 116022 +93
==========================================
+ Hits 56416 56670 +254
+ Misses 59513 59352 -161
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
✔️ eddcadc -> Azure artifacts URL |
~30 models now exhibit dimension errors |
Can you rerun. Any that are |
|
✔️ 4df6b9c -> Azure artifacts URL |
Now we have 25 with |
OK -- I can review the content of the PR. The last run of the ModelDB CI (https://github.com/neuronsimulator/nrn-modeldb-ci/actions/runs/3344566067) was still showing some differences with these changes, e.g.:
Is this expected / something you're aware of and happy with? |
Thanks! I guess it is back to the drawing board in regard to the bad stack access. I'll have to examine that more closely. The Matrix fix I need to do in ModelDB. |
|
✔️ 007145e -> Azure artifacts URL |
|
✔️ a88d395 -> Azure artifacts URL |
|
Decided to allow legacy |
|
Sorry. Could not remember how to specify use of the hines/vardimfix branch for a nrn-modeldb-ci action. |
|
✔️ d586408 -> Azure artifacts URL |
It uses the Python wheels, so you take the URL posted by the bot:
and manually launch the pipeline: which I did to get https://github.com/neuronsimulator/nrn-modeldb-ci/actions/runs/3379383559 |
|
Hmm. Another surprise. 114355 now generates a |
|
✔️ a2cce15 -> Azure artifacts URL |
olupton
left a comment
There was a problem hiding this comment.
Generally looks good to me, I launched https://github.com/neuronsimulator/nrn-modeldb-ci/actions/runs/3383688282 comparing this against neuron-nightly (i.e. the current master) to check one more time.
This one looks good. We should follow up later on today's diffs between |
|
✔️ 55f75f9 -> Azure artifacts URL |
|
@wvangeit @DrTaDa: Just want to inform you about this PR/change in the current master / future releases of NEURON. In one of our internal GitLab CI test I saw today error like: This is one of the old circuits (accessible in
|
|
@nrnhines a distilled version of the above failure (thanks a lot to @WeinaJi 💪🎉 ) is: where expression A produces: and if it is commented out, expression B produces: what do you think the best fix would be here? |
This demonstrates an error that started appearing in BBP-internal models after #2024 was merged.
Expression A is an invalid statement in hoc world (in python world it refers to the segment at x=0) |
Fixes an error introduced by #2024 in some models.


Variables have always been allowed to be redeclared. But if the number of subscripts changes after compilation of a procedure, the stack can become corrupted, overflow, or generate a message far from the cause of the error.
This PR generates meaningful error message when the number of subscripts for a variable at compile time differs from the
number of subscripts at runtime due to redeclaring the variable after compiling a function.
A HOC example that used to segfault
now generates the message