Fails to read first page #49281

Closed
opened 2016-09-07 14:58:53 +02:00 by Florian Meyer · 7 comments
Member

System Information
Arch Manjaro

Blender Version
2.78

Short description of error12379-2.pdf
There seems to be an error while trying to parse the first page

Traceback (most recent call last):

File "/home/felix/blender/2.78/scripts/addons_contrib/io_vector/__init__.py", line 204, in execute
  self.action(context)
File "/home/felix/blender/2.78/scripts/addons_contrib/io_vector/__init__.py", line 173, in action
  (mdl, msg) = import_vecfile.ReadVecFileToModel(self.filepath, options)
File "/home/felix/blender/2.78/scripts/addons_contrib/io_vector/import_vecfile.py", line 72, in ReadVecFileToModel
  art = vecfile.ParseVecFile(fname)
File "/home/felix/blender/2.78/scripts/addons_contrib/io_vector/vecfile.py", line 128, in ParseVecFile
  contents = pdf.ReadPDFPageOneContents(filename)
File "/home/felix/blender/2.78/scripts/addons_contrib/io_vector/pdf.py", line 502, in ReadPDFPageOneContents
  return GetPDFPageOneContents(contents)
File "/home/felix/blender/2.78/scripts/addons_contrib/io_vector/pdf.py", line 523, in GetPDFPageOneContents
  (trailerdict, crossrefs) = GetPDFTrailerAndCrossrefs(s)
File "/home/felix/blender/2.78/scripts/addons_contrib/io_vector/pdf.py", line 439, in GetPDFTrailerAndCrossrefs
  while crossrefi > 0:

TypeError: unorderable types: tuple() > int()

Exact steps for others to reproduce the error
Try to import attached pdf

**System Information** Arch Manjaro **Blender Version** 2.78 **Short description of error**[12379-2.pdf](https://archive.blender.org/developer/F355311/12379-2.pdf) There seems to be an error while trying to parse the first page Traceback (most recent call last): ``` File "/home/felix/blender/2.78/scripts/addons_contrib/io_vector/__init__.py", line 204, in execute self.action(context) File "/home/felix/blender/2.78/scripts/addons_contrib/io_vector/__init__.py", line 173, in action (mdl, msg) = import_vecfile.ReadVecFileToModel(self.filepath, options) File "/home/felix/blender/2.78/scripts/addons_contrib/io_vector/import_vecfile.py", line 72, in ReadVecFileToModel art = vecfile.ParseVecFile(fname) File "/home/felix/blender/2.78/scripts/addons_contrib/io_vector/vecfile.py", line 128, in ParseVecFile contents = pdf.ReadPDFPageOneContents(filename) File "/home/felix/blender/2.78/scripts/addons_contrib/io_vector/pdf.py", line 502, in ReadPDFPageOneContents return GetPDFPageOneContents(contents) File "/home/felix/blender/2.78/scripts/addons_contrib/io_vector/pdf.py", line 523, in GetPDFPageOneContents (trailerdict, crossrefs) = GetPDFTrailerAndCrossrefs(s) File "/home/felix/blender/2.78/scripts/addons_contrib/io_vector/pdf.py", line 439, in GetPDFTrailerAndCrossrefs while crossrefi > 0: ``` TypeError: unorderable types: tuple() > int() **Exact steps for others to reproduce the error** Try to import attached pdf
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

Added subscriber: @florianfelix

Added subscriber: @florianfelix
Howard Trickey was assigned by Bastien Montagne 2016-09-07 17:05:39 +02:00
Member

I confirm the crash and will look at this.

I confirm the crash and will look at this.

This issue was referenced by blender/blender-addons-contrib@de1d5d8236

This issue was referenced by blender/blender-addons-contrib@de1d5d82367d2d3ae9c35bf9950a958d9d9b2913
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Member

The given test file now imports, though probably not in a satsifying way for you. This importer only pays attention to vector geometry that forms closed polygons, and the imported file has images and / or bare edges for most of the interesting stuff.
Thanks for the report. Always good to fix crashes!

The given test file now imports, though probably not in a satsifying way for you. This importer only pays attention to vector geometry that forms closed polygons, and the imported file has images and / or bare edges for most of the interesting stuff. Thanks for the report. Always good to fix crashes!
Author
Member

thx for looking anyway.

thx for looking anyway.
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#49281
No description provided.