Edgewall Software
Modify

Opened 13 years ago

Last modified 7 months ago

#9871 new defect

error occurs when upload an attachment with size of about 800M in a ticket

Reported by: 382919930@… Owned by:
Priority: normal Milestone: next-stable-1.6.x
Component: general Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Remy Blank)

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/api.py", line 436, in send_error
    data, 'text/html')
  File "/usr/lib/python2.4/site-packages/trac/web/chrome.py", line 864, in render_template
    stream.render(method, doctype=doctype, out=buffer)
  File "/usr/lib/python2.4/site-packages/Genshi-0.6-py2.4.egg/genshi/core.py", line 183, in render
  File "/usr/lib/python2.4/site-packages/Genshi-0.6-py2.4.egg/genshi/output.py", line 58, in encode
  File "/usr/lib/python2.4/site-packages/Genshi-0.6-py2.4.egg/genshi/output.py", line 339, in __call__
  File "/usr/lib/python2.4/site-packages/Genshi-0.6-py2.4.egg/genshi/output.py", line 826, in __call__
  File "/usr/lib/python2.4/site-packages/Genshi-0.6-py2.4.egg/genshi/output.py", line 670, in __call__
  File "/usr/lib/python2.4/site-packages/Genshi-0.6-py2.4.egg/genshi/output.py", line 771, in __call__
  File "/usr/lib/python2.4/site-packages/Genshi-0.6-py2.4.egg/genshi/output.py", line 586, in __call__
  File "/usr/lib/python2.4/site-packages/Genshi-0.6-py2.4.egg/genshi/core.py", line 288, in _ensure
  File "/usr/lib/python2.4/site-packages/Genshi-0.6-py2.4.egg/genshi/core.py", line 288, in _ensure
  File "/usr/lib/python2.4/site-packages/trac/web/chrome.py", line 957, in _generate
    for kind, data, pos in stream:
  File "/usr/lib/python2.4/site-packages/Genshi-0.6-py2.4.egg/genshi/template/base.py", line 605, in _include
  File "/usr/lib/python2.4/site-packages/Genshi-0.6-py2.4.egg/genshi/template/markup.py", line 378, in _match
  File "/usr/lib/python2.4/site-packages/Genshi-0.6-py2.4.egg/genshi/template/markup.py", line 378, in _match
  File "/usr/lib/python2.4/site-packages/Genshi-0.6-py2.4.egg/genshi/template/markup.py", line 327, in _match
  File "/usr/lib/python2.4/site-packages/Genshi-0.6-py2.4.egg/genshi/template/base.py", line 545, in _flatten
  File "/usr/lib/python2.4/site-packages/Genshi-0.6-py2.4.egg/genshi/core.py", line 288, in _ensure
  File "/usr/lib/python2.4/site-packages/Genshi-0.6-py2.4.egg/genshi/path.py", line 588, in _generate
  File "/usr/lib/python2.4/site-packages/Genshi-0.6-py2.4.egg/genshi/template/base.py", line 605, in _include
  File "/usr/lib/python2.4/site-packages/Genshi-0.6-py2.4.egg/genshi/template/markup.py", line 316, in _strip
  File "/usr/lib/python2.4/site-packages/Genshi-0.6-py2.4.egg/genshi/template/base.py", line 545, in _flatten
  File "/usr/lib/python2.4/site-packages/Genshi-0.6-py2.4.egg/genshi/core.py", line 288, in _ensure
  File "/usr/lib/python2.4/site-packages/Genshi-0.6-py2.4.egg/genshi/path.py", line 588, in _generate
  File "/usr/lib/python2.4/site-packages/Genshi-0.6-py2.4.egg/genshi/template/base.py", line 605, in _include
  File "/usr/lib/python2.4/site-packages/Genshi-0.6-py2.4.egg/genshi/template/markup.py", line 316, in _strip
  File "/usr/lib/python2.4/site-packages/Genshi-0.6-py2.4.egg/genshi/template/base.py", line 565, in _flatten
  File "/usr/lib/python2.4/site-packages/Genshi-0.6-py2.4.egg/genshi/template/base.py", line 277, in _eval_expr
  File "/usr/lib/python2.4/site-packages/Genshi-0.6-py2.4.egg/genshi/template/eval.py", line 178, in evaluate
  File "/usr/lib/python2.4/site-packages/trac/templates/error.html", line 73, in <Expression u'pprint(req.args)'>
    ${pprint(req.args)}
  File "/usr/lib64/python2.4/pprint.py", line 59, in pformat
    return PrettyPrinter(indent=indent, width=width, depth=depth).pformat(object)
  File "/usr/lib64/python2.4/pprint.py", line 110, in pformat
    self._format(object, sio, 0, 0, {}, 0)
  File "/usr/lib64/python2.4/pprint.py", line 128, in _format
    rep = self._repr(object, context, level - 1)
  File "/usr/lib64/python2.4/pprint.py", line 194, in _repr
    self._depth, level)
  File "/usr/lib64/python2.4/pprint.py", line 206, in format
    return _safe_repr(object, context, maxlevels, level)
  File "/usr/lib64/python2.4/pprint.py", line 250, in _safe_repr
    vrepr, vreadable, vrecur = saferepr(v, context, maxlevels, level)
  File "/usr/lib64/python2.4/pprint.py", line 291, in _safe_repr
    rep = repr(object)
  File "/usr/lib64/python2.4/cgi.py", line 532, in __repr__
    return "FieldStorage(%r, %r, %r)" % (
SystemError: Negative size passed to PyString_FromStringAndSize

Attachments (0)

Change History (5)

comment:1 by Remy Blank, 13 years ago

Description: modified (diff)

This is a secondary error happening while trying to render the error page. We should probably try to avoid that. Could you please paste the traceback for the primary error (it should be in your trac.log, shortly before the traceback you provided).

Then again, I'd be surprised that uploading 800MB attachments would ever work, so we may not fix that.

comment:2 by Ryan J Ollos, 9 years ago

Milestone: next-minor-0.12.xnext-stable-1.0.x

comment:3 by Ryan J Ollos, 7 years ago

Milestone: next-stable-1.0.xnext-stable-1.2.x

Moved ticket assigned to next-stable-1.0.x since maintenance of 1.0.x is coming to a close. Please move the ticket back if it's critical to fix on 1.0.x.

comment:4 by Ryan J Ollos, 4 years ago

Milestone: next-stable-1.2.xnext-stable-1.4.x

comment:5 by Ryan J Ollos, 7 months ago

Milestone: next-stable-1.4.xnext-stable-1.6.x

Milestone renamed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.