-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
Hi,
the renderer crashes when used on the supplied buggy.zip (called via python -m rmrl buggy.zip ) resulting in the following error:
Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/florian/.local/lib/python3.9/site-packages/rmrl/__main__.py", line 53, in <module>
sys.exit(main())
File "/home/florian/.local/lib/python3.9/site-packages/rmrl/__main__.py", line 44, in main
stream = render(source,
File "/home/florian/.local/lib/python3.9/site-packages/rmrl/render.py", line 149, in render
merge_pages(basepage, rmpage, i in changed_pages, expand_pages)
File "/home/florian/.local/lib/python3.9/site-packages/rmrl/render.py", line 442, in merge_pages
bpage_box = list(map(float, basepage.CropBox
TypeError: 'NoneType' object is not iterable
Apparently, in this particular case, neither basepage.CropBox, nor basepage.MediaBox nor basepage.parent.CropBox exist.
I'm trying to debug it myself, but am not particularly confident right now. Could you provide me some hints?
Thank you very much :)
Metadata
Metadata
Assignees
Labels
No labels