You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Carl Osterwisch (JIRA)" <ji...@apache.org> on 2015/03/25 16:01:03 UTC
[jira] [Created] (CMIS-904) Memory error creating large documents
Carl Osterwisch created CMIS-904:
------------------------------------
Summary: Memory error creating large documents
Key: CMIS-904
URL: https://issues.apache.org/jira/browse/CMIS-904
Project: Chemistry
Issue Type: Improvement
Components: python-cmislib
Affects Versions: cmislib 0.5.1
Environment: Windows 32 bit, Anaconda Python 2.7
Reporter: Carl Osterwisch
I'm getting a memory error when I call Folder.createDocument(), passing a contentFile of 120MB or greater. Smaller files are uploading without trouble.
I understand from Jeff Potts that it would help if the library implemented the appendContentStream method available in CMIS 1.1.
Thanks for any suggestions!
-Carl
{noformat}
File "C:\Anaconda\lib\site-packages\cmislib-0.5.1-py2.7.egg\cmislib\model.py",
line 2756, in createDocument
contentEncoding)
File "C:\Anaconda\lib\site-packages\cmislib-0.5.1-py2.7.egg\cmislib\model.py",
line 1185, in createDocument
result = self._cmisClient.post(postUrl.encode('utf-8'), xmlDoc.toxml(encodin
g='utf-8'), ATOM_XML_ENTRY_TYPE)
File "C:\Anaconda\lib\xml\dom\minidom.py", line 46, in toxml
return self.toprettyxml("", "", encoding)
File "C:\Anaconda\lib\xml\dom\minidom.py", line 58, in toprettyxml
self.writexml(writer, "", indent, newl, encoding)
File "C:\Anaconda\lib\xml\dom\minidom.py", line 1749, in writexml
node.writexml(writer, indent, addindent, newl)
File "C:\Anaconda\lib\xml\dom\minidom.py", line 814, in writexml
node.writexml(writer, indent+addindent, addindent, newl)
File "C:\Anaconda\lib\xml\dom\minidom.py", line 814, in writexml
node.writexml(writer, indent+addindent, addindent, newl)
File "C:\Anaconda\lib\xml\dom\minidom.py", line 810, in writexml
self.childNodes[0].writexml(writer, '', '', '')
File "C:\Anaconda\lib\xml\dom\minidom.py", line 1038, in writexml
_write_data(writer, "%s%s%s" % (indent, self.data, newl))
File "C:\Anaconda\lib\xml\dom\minidom.py", line 298, in _write_data
writer.write(data)
File "C:\Anaconda\lib\codecs.py", line 351, in write
data, consumed = self.encode(object, self.errors)
MemoryError
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)