Opened 10 years ago

Closed 5 years ago

#3842 closed defect (cantfix)

Error calculating changeset size? TypeError: unsupported operand type(s) for +: 'NoneType' and 'NoneType'

Reported by: mculbert@… Owned by: Herbert Valerio Riedel
Priority: high Component: GitPlugin
Severity: critical Keywords:
Cc: Trac Release: 0.12


We are getting the following exception for some of our changesets. I don't have a lot of info on the changeset itself, but I do know that "old_node.get_content_length()" is returning None when it should be an int.

We do have the Python 2.4 backport installed, but it's pretty much vanilla aside from that.

File "/usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg/trac/web/", line 423, in _dispatch_request
File "/usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg/trac/web/", line 197, in dispatch
  resp = chosen_handler.process_request(req)
File "/usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg/trac/versioncontrol/web_ui/", line 323, in process_request
  self._render_html(req, repos, chgset, restricted, xhr, data)
File "/usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg/trac/versioncontrol/web_ui/", line 545, in _render_html
  diff_bytes += _estimate_changes(old_node, new_node)
File "/usr/lib/python2.4/site-packages/Trac-0.11.1-py2.4.egg/trac/versioncontrol/web_ui/", line 501, in _estimate_changes
  return old_size + new_size

User Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/2008071420 Firefox/ (X11; U; Linux x86_64; en-US; rv:
Trac: 	0.11.1
Python: 	2.4.4 (#1, Apr 5 2007, 18:41:00) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)]
setuptools: 	0.6c3
pyPgSQL: 	2.5.1
Genshi: 	0.5.1
mod_python: 	3.2.10
jQuery:	1.2.6

Attachments (1)

gitplugin-traceback.txt (7.5 KB) - added by mike 10 years ago.
Full trac traceback

Download all attachments as: .zip

Change History (7)

Changed 10 years ago by mike

Attachment: gitplugin-traceback.txt added

Full trac traceback

comment:1 Changed 10 years ago by anonymous

sounds like #3141

comment:2 Changed 9 years ago by Tim Hatch

Does changeset 82a7ea9a2073fadf8c310edd6ed8b3961d50aa36 contain anything interesting (like only directory changes or something)? I'm not sure there's enough here to reproduce the issue.

comment:3 Changed 8 years ago by Herbert Valerio Riedel

Resolution: invalid
Status: newclosed

since there isn't enough information to reproduce this problem, I'll have to close this ticket; feel free to reopen it when more information can be provided

comment:4 Changed 7 years ago by anonymous

Resolution: invalid
Status: closedreopened

Error apears when change contains only submodule version update. Same error can be reproduced when change contains information about merge branch into master.

comment:5 Changed 7 years ago by daniel.lindau@…

Trac Release: 0.110.12


We have the same problem with our implementation. Changesets that only contain changes to submodule versions give the same error as above.

Can we help in some way to get a resolution to this?

Regards Daniel Lindau

comment:6 Changed 5 years ago by Jun Omae

Resolution: cantfix
Status: reopenedclosed

That is Trac issue, t:#10162.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Herbert Valerio Riedel.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.