hdsoftware / evoluspencil

Automatically exported from code.google.com/p/evoluspencil
0 stars 0 forks source link

Error opening pencil file from Window at Linux (at same version 1.3.2) #393

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open Pencil on mozilla (Linux Ubuntu 11.10)
2. Try to open a pencil file created at windows.
3. Dialog appears: "Error thiz.doc.pages[p] is undefined"

What is the expected output? What do you see instead?
The file should be opened, but the Error dialog appears.

What version of the product are you using? On what operating system?
Pencil 1.3.2 saved at windows 7, tried to open at Ubuntu 11.10.
Mozilla Version: 9.0.1 (both: Ubuntu and Windows 7)

Please provide any additional information below.

Original issue reported on code.google.com by guilherm...@gmail.com on 13 Jan 2012 at 1:27

GoogleCodeExporter commented 9 years ago
Problem solved: Open the pencil .ep file at Gedit (for example) and save it. 
The idea is change the end of line characters from unix to windows.

Original comment by guilherm...@gmail.com on 13 Jan 2012 at 1:34

GoogleCodeExporter commented 9 years ago
I didn´t test the reverse idea (linux to windows) yet.

Original comment by guilherm...@gmail.com on 13 Jan 2012 at 1:35

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Same problem on Windows XP, Pencil 2.0.3

The following actions helped me to open file:
1. rename .ep to .xml
2. open .xml in Visual Studio
3. format all document (for better reading)
4. split document in separate files two pages each

Example:

Original document:

<?xml version="1.0"?>
<Document xmlns="http://www.evolus.vn/Namespace/Pencil">
  <Properties/>
  <Pages>
    <Page> ... page 1 content ... </Page>
    <Page> ... page 2 content ... </Page>
    <Page> ... page 3 content ... </Page>
    <Page> ... page 4 content ... </Page>
    <Page> ... page 5 content ... </Page>
  </Pages>
</Document>

Fixed documents:

<?xml version="1.0"?>
<Document xmlns="http://www.evolus.vn/Namespace/Pencil">
  <Properties/>
  <Pages>
    <Page> ... page 1 content ... </Page>
    <Page> ... page 2 content ... </Page>
  </Pages>
</Document>

<?xml version="1.0"?>
<Document xmlns="http://www.evolus.vn/Namespace/Pencil">
  <Properties/>
  <Pages>
    <Page> ... page 3 content ... </Page>
    <Page> ... page 4 content ... </Page>
  </Pages>
</Document>

<?xml version="1.0"?>
<Document xmlns="http://www.evolus.vn/Namespace/Pencil">
  <Properties/>
  <Pages>
    <Page> ... page 5 content ... </Page>
  </Pages>
</Document>

Original comment by pimkin.m...@gmail.com on 11 Jan 2013 at 5:25

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi Pimkin,

Thanks for your solution above. I had trouble using this solution simply 
because of the size of the file generated by Pencil (~15MB of XML!). Using 
gVim, I was able to access the files, but then found that large portions of the 
file had been lost at the point of failure (Windows XP blue screen of death).

This is a particularly annoying error / bug given that I saved constantly 
throughout the build process. At the point of failure, large portions of the 
file were corrupted and entire pages within the file lost.

Overall, I've unfortunately found Pencil to be full of bugs and I am constantly 
having to allow for it's unusual behaviour and instability.

Original comment by rodelli...@gmail.com on 14 Apr 2013 at 2:40

GoogleCodeExporter commented 9 years ago
I also had a similar problem when the program crashed in windows. I managed to 
change the file extension to xml, check the problem with XML copy editor 
(http://sourceforge.net/projects/xml-copy-editor/?source=dlp) and delete the 
corrupted parts and add the missing tags. Then changed the filename back to .ep 
and it was fine. Lost only one image. So thanks for the tip. 

Original comment by david.j....@gmail.com on 29 Apr 2013 at 12:00

GoogleCodeExporter commented 9 years ago
Thanks. This worked for me as well. I had to add the following to the end of 
file.

     </g>
    </Content>
   </Page>
  </Pages>
 </Document>

Original comment by AWJDThor...@gmail.com on 21 May 2013 at 12:07

GoogleCodeExporter commented 9 years ago
Hello everybody

I have to admit that I am a complete beginner and do not understand what you 
are talking about.

I cannot open a saved file from yesterday with exactly the same error message. 
Is there an "easy" way for me to open the file?

Best
Alex

Original comment by alexande...@gmail.com on 9 Dec 2014 at 3:15

GoogleCodeExporter commented 9 years ago
0 byte file also produces this error message. 

Original comment by mar...@gmail.com on 16 May 2015 at 9:14