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
What is the current behavior? I can compile and solve a circuit with a bad linecode in opendssdirect.py. However, when I exit out of python, the process crashes.
Error in `python': corrupted size vs. prev_size: 0x000055beae3e0f00
======= Backtrace: =========
What is the expected behavior? What is the motivation / use case for changing the behavior? report error with bad line code
What are the steps to reproduce this bug? Please provide a minimal working example of the bug if possible.
What is wrong with this linecode is that the nphases=3 indicates there are 3 conductors, but the Rmatrix has a 4*4 size, which expects there are 4 conductors, so there is a mismatch between these two attributes of a linecode.
Support Question
The text was updated successfully, but these errors were encountered:
Hi, thanks for reporting. This is an engine bug, like most reported here. I'm considering moving such issues to our hub repo (https://github.com/dss-extensions/dss-extensions) for visibility in the future.
I could reproduce with the upstream OpenDSS too, although the access violation exception there may happen down the line. This issue is probably inherited from very old code: there was already a check but that relied on Object Pascal exceptions, which probably worked fine on older Delphi versions and on 32-bit systems.
For the engine on DSS Extensions, per my local branch it now should error out with a message like:
(#65534) Matrix Buffer in ParseAsSymMatrix too small. Check your input data, especially dimensions and number of phases.
Note that this still allows providing less elements than required (the unfilled elements are left as 0). We plan to add warnings someday, per dss-extensions/dss-extensions#16
As soon as the new DSS C-API and DSS Python versions are out, a new version of OpenDSSDirect.py should be out with this fix, github.com//issues/121 and misc OpenDSS updates. We'll probably release another version soon after with #78 and other niceties.
Versions
Bug
What is the expected behavior? What is the motivation / use case for changing the behavior? report error with bad line code
What are the steps to reproduce this bug? Please provide a minimal working example of the bug if possible.
What is wrong with this linecode is that the
nphases=3
indicates there are 3 conductors, but theRmatrix
has a 4*4 size, which expects there are 4 conductors, so there is a mismatch between these two attributes of a linecode.Support Question
The text was updated successfully, but these errors were encountered: