Skip to content

Instantly share code, notes, and snippets.

@lukebranch
Created April 12, 2017 00:36
Show Gist options
  • Save lukebranch/f0a834866008029d4d3c98506ae67169 to your computer and use it in GitHub Desktop.
Save lukebranch/f0a834866008029d4d3c98506ae67169 to your computer and use it in GitHub Desktop.
2017-04-12 00:35:41,670 2188 ERROR Zeeva_HK openerp.service.web_services: Exception:
identity=[ImageReader@0x7bfcd90]
handle_pageBegin args=()
Traceback (most recent call last):
File "/opt/openerp/server/openerp/service/web_services.py", line 712, in go
(result, format) = obj.create(cr, uid, ids, datas, context)
File "/opt/openerp/server/openerp/report/report_sxw.py", line 444, in create
fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
File "/opt/openerp/server/openerp/report/report_sxw.py", line 513, in create_source_pdf
return self.create_single_pdf(cr, uid, ids, data, report_xml, context)
File "/opt/openerp/server/openerp/report/report_sxw.py", line 535, in create_single_pdf
pdf = create_doc(etree.tostring(processed_rml),rml_parser.localcontext,logo,title.encode('utf8'))
File "/opt/openerp/server/openerp/report/interface.py", line 206, in create_pdf
obj.render()
File "/opt/openerp/server/openerp/report/render/render.py", line 59, in render
self._result = self._render()
File "/opt/openerp/server/openerp/report/render/rml.py", line 41, in _render
return rml2pdf.parseNode(self.rml, self.localcontext, images=self.bin_datas, path=self.path,title=self.title)
File "/opt/openerp/server/openerp/report/render/rml2pdf/trml2pdf.py", line 1035, in parseNode
r.render(fp)
File "/opt/openerp/server/openerp/report/render/rml2pdf/trml2pdf.py", line 348, in render
pt_obj.render(el)
File "/opt/openerp/server/openerp/report/render/rml2pdf/trml2pdf.py", line 1019, in render
self.doc_tmpl.build(fis)
File "/usr/lib/python2.7/dist-packages/reportlab/platypus/doctemplate.py", line 877, in build
self.clean_hanging()
File "/usr/lib/python2.7/dist-packages/reportlab/platypus/doctemplate.py", line 510, in clean_hanging
self.handle_flowable(self._hanging)
File "/usr/lib/python2.7/dist-packages/reportlab/platypus/doctemplate.py", line 757, in handle_flowable
f.apply(self)
File "/usr/lib/python2.7/dist-packages/reportlab/platypus/doctemplate.py", line 140, in apply
getattr(doc,arn)(*args)
File "/usr/lib/python2.7/dist-packages/reportlab/pdfgen/canvas.py", line 840, in drawImage
File "/usr/lib/python2.7/dist-packages/reportlab/platypus/doctemplate.py", line 535, in handle_pageBegin
self.pageTemplate.onPage(self.canv,self)
File "/opt/openerp/server/openerp/report/render/rml2pdf/trml2pdf.py", line 617, in render
cnv.render(self.node)
File "/opt/openerp/server/openerp/report/render/rml2pdf/trml2pdf.py", line 600, in render
tags[n.tag](n)
File "/opt/openerp/server/openerp/report/render/rml2pdf/trml2pdf.py", line 543, in _image
self.canvas.drawImage(img, **args)
File "/usr/lib/python2.7/dist-packages/reportlab/pdfgen/canvas.py", line 840, in drawImage
rawdata = image.getRGBData()
File "/usr/lib/python2.7/dist-packages/reportlab/lib/utils.py", line 658, in getRGBData
annotateException('\nidentity=%s'%self.identity())
File "/usr/lib/python2.7/dist-packages/reportlab/lib/utils.py", line 655, in getRGBData
self._data = im.tostring()
File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 552, in tostring
return string.join(data, "")
File "/usr/lib/python2.7/string.py", line 318, in join
return sep.join(words)
MemoryError:
identity=[ImageReader@0x7bfcd90]
handle_pageBegin args=()
2017-04-12 00:35:41,798 2481 INFO Zeeva_HK werkzeug: 104.199.168.203 - - [12/Apr/2017 00:35:41] "POST /web/menu/load_needaction HTTP/1.1" 200 -
2017-04-12 00:35:41,840 2188 ERROR Zeeva_HK openerp.netsvc:
identity=[ImageReader@0x7bfcd90]
handle_pageBegin args=()
(<type 'exceptions.MemoryError'>, MemoryError('\nidentity=[ImageReader@0x7bfcd90]\n handle_pageBegin args=()',), <traceback object at 0x7c15bd8>)
Traceback (most recent call last):
File "/opt/openerp/server/openerp/netsvc.py", line 292, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/opt/openerp/server/openerp/service/web_services.py", line 654, in dispatch
res = fn(db, uid, *params)
File "/opt/openerp/server/openerp/service/web_services.py", line 760, in exp_report_get
return self._check_report(report_id)
File "/opt/openerp/server/openerp/service/web_services.py", line 738, in _check_report
netsvc.abort_response(exc, exc.message, 'warning', exc.traceback)
File "/opt/openerp/server/openerp/netsvc.py", line 71, in abort_response
raise openerp.osv.osv.except_osv(description, details)
except_osv: (u'\nidentity=[ImageReader@0x7bfcd90]\n handle_pageBegin args=()', (<type 'exceptions.MemoryError'>, MemoryError('\nidentity=[ImageReader@0x7bfcd90]\n handle_pageBegin args=()',), <traceback object at 0x7c15bd8>))
2017-04-12 00:35:41,842 2188 INFO Zeeva_HK werkzeug: 104.199.168.203 - - [12/Apr/2017 00:35:41] "POST /web/report H
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment