View Issue Details

IDProjectCategoryView StatusLast Update
0016340ScribusGeneralpublic2021-03-23 06:25
Reportersreerajp Assigned Tojghali  
PrioritynoneSeveritytrivialReproducibilityalways
Status closedResolutionfixed 
PlatformWindowsOS10OS Version1909
Product Version1.5.7.svn 
Fixed in Version1.5.7.svn 
Summary0016340: Unable to open one scribus document
DescriptionI 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
TagsNo tags attached.
PatchNo

Activities

jghali

2020-11-16 10:16

administrator   ~0048434

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.

sreerajp

2020-11-16 10:26

reporter   ~0048435

If something like this happens how will we be able to identify the issue?

jghali

2020-11-16 10:52

administrator   ~0048436

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.

sreerajp

2020-11-16 11:17

reporter   ~0048437

Thanks for the help

jghali

2020-11-23 13:33

administrator   ~0048477

I committed a fix for the infinite loop which occurs in this case.

Issue History

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