View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0016340 | Scribus | General | public | 2020-11-16 06:28 | 2021-03-23 06:25 |
Reporter | sreerajp | Assigned To | jghali | ||
Priority | none | Severity | trivial | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Windows | OS | 10 | OS Version | 1909 |
Product Version | 1.5.7.svn | ||||
Fixed in Version | 1.5.7.svn | ||||
Summary | 0016340: Unable to open one scribus document | ||||
Description | I am sharing the link to a Scribus Document, which we are unable to open. We couldn't find the reason for the issue. If somebody can help, it is very helpful https://drive.google.com/file/d/1E04stWtcpXXJXIUa1wcesmQGK98C98k3/view?usp=sharing | ||||
Tags | No tags attached. | ||||
Patch | No | ||||
|
There is a broken path at line 1226: copath="Mnan 0 Cnan 0 nan 0 nan 0 Cnan 0 nan 1389.79 nan 1389.79 Cnan 1389.79 nan 1389.79 nan 1389.79 Cnan 1389.79 nan 0 nan 0 Z" The most simple solution to fix the file is to replace the "copath" value by the content of "path" attribute. |
|
If something like this happens how will we be able to identify the issue? |
|
Not sure. The fact copath value contains nan values, means the path was broken even before saving the file. A path containing NaN values may well trigger quite a few weird behaviors as any processing of such data is basically undefined behavior. Once file is saved, such path data will trigger an infinite loop in path parsing code (FPointArray::parseSVG()) when reloading the doc. So if a file seems stuck when loading, just look for "nan" in "path" or "copath" attributes. |
|
Thanks for the help |
|
I committed a fix for the infinite loop which occurs in this case. |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-11-16 06:28 | sreerajp | New Issue | |
2020-11-16 10:16 | jghali | Note Added: 0048434 | |
2020-11-16 10:26 | sreerajp | Note Added: 0048435 | |
2020-11-16 10:52 | jghali | Note Added: 0048436 | |
2020-11-16 11:17 | sreerajp | Note Added: 0048437 | |
2020-11-23 13:33 | jghali | Assigned To | => jghali |
2020-11-23 13:33 | jghali | Status | new => resolved |
2020-11-23 13:33 | jghali | Resolution | open => fixed |
2020-11-23 13:33 | jghali | Fixed in Version | => 1.5.7.svn |
2020-11-23 13:33 | jghali | Note Added: 0048477 | |
2021-03-23 06:25 | cbradney | Status | resolved => closed |