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
Hello. I'm using Windows and trying to open the file "ASUS PRIME B250M-A{BOARDVIEW}" attached, I have the FZ keys, tried versions 9.95.0, 9.90.0, 9.0.3, the error message is:
There was an error opening the file: < path >
/home/piernov/devel/OpenBoardView/src/openboardview/FileFormats/ASCFile.cpp:60: ASCFile::parse_pin(char*&, char*&, char*&, char*&, line_iterator_t&)::<lambda()>: Assertion `value >= 0' failed.
Only version 9.0.2 opens the file normally.
By the way, it's not possible to copy the error message, I had to write it manually here.
The text was updated successfully, but these errors were encountered:
Lines 6168-6175 and 6250-6257 of PINS.ASC , pins 59 to 66 of JM21 and JM22 all have missing properties. Not sure if it can only happen for this specific case. Would be quite tricky to handle in a general case (i.e. any missing property for any item).
Anyway, 20c971d on master already partially fixes this specific case as a side-effect but it'll still render unconnected pins at (0,0).
On Fri, May 19, 2023 at 1:27 PM piernov ***@***.***> wrote:
Lines 6168-6175 and 6250-6257 of PINS.ASC , pins 59 to 66 of JM21 and JM22
all have missing properties. Not sure if it can only happen for this
specific case. Would be quite tricky to handle in a general case (i.e. any
missing property for any item).
Anyway, 20c971d
<20c971d>
on master already partially fixes this specific case as a side-effect but
it'll still render unconnected pins at (0,0).
—
Reply to this email directly, view it on GitHub
<#289 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A767AIIZ2F3O5C3UYLD5ZVTXG6NQDANCNFSM6AAAAAAYH6F7NA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
In the ASCFile code where we parse the pin, we can resolve this issue by testing to see if p is not at the EOL.
The hiccup though will be that you'll need to read in the pin ID/number/name explicitly else the pin numbers will slip for each time we return early.
pin.part = parts.size();
pin.snum = READ_STR();
pin.name = READ_STR();
if ((*line_it) -p < 2) return; // Test to see if p is too close to the EOL, if so, just move to next line.
double posx = READ_DOUBLE();
pin.pos.x = posx * 1000.0f;
double posy = READ_DOUBLE();
ASUS PRIME B250M-A{BOARDVIEW}.zip
Hello. I'm using Windows and trying to open the file "ASUS PRIME B250M-A{BOARDVIEW}" attached, I have the FZ keys, tried versions 9.95.0, 9.90.0, 9.0.3, the error message is:
There was an error opening the file: < path >
/home/piernov/devel/OpenBoardView/src/openboardview/FileFormats/ASCFile.cpp:60: ASCFile::parse_pin(char*&, char*&, char*&, char*&, line_iterator_t&)::<lambda()>: Assertion `value >= 0' failed.
Only version 9.0.2 opens the file normally.
By the way, it's not possible to copy the error message, I had to write it manually here.
The text was updated successfully, but these errors were encountered: