Edgewall Software
Modify

Opened 3 years ago

Last modified 3 years ago

#11772 new defect

tracd js script resource loading intermittently crashes python

Reported by: lkraav <leho@…> Owned by:
Priority: normal Milestone: not applicable
Component: database backend Version: 1.1.1dev
Severity: normal Keywords: sqlite
Cc:
Release Notes:
API Changes:

Description

Not sure why or how, but some of the js resources loadings crash tracd 1.1.2b1. I'm not sure if there's a pattern whether some JS resources crash more than others. The crash is usually noticeable when jquery-ui doesn't load and some UI elements don't get their dynamics on that pageview.

This happens intermittently. A bunch of pageloads is fine, then one fails, etc. Less than 5 users are usually working with this instance. This tracd is sitting behind an Apache reverse proxy.

There's a relatively highly customized site.html active.

Trac detected an internal error:

SystemError: /var/tmp/portage/dev-lang/python-2.7.7/work/Python-2.7.7/Objects/tupleobject.c:142: bad argument to internal function

Traceback:

File "/home/trac/src/trac.git/trac/web/main.py", line 550, in _dispatch_request
  dispatcher.dispatch(req)
File "/home/trac/src/trac.git/trac/web/main.py", line 224, in dispatch
  resp = chosen_handler.process_request(req)
File "/home/trac/src/trac.git/trac/web/chrome.py", line 632, in process_request
  req.send_file(path, get_mimetype(path))
File "/home/trac/src/trac.git/trac/web/api.py", line 639, in send_file
  self.send_response(304)
File "/home/trac/src/trac.git/trac/web/main.py", line 82, in send_response
  self.session.save()
File "/home/trac/src/trac.git/trac/web/api.py", line 384, in __getattr__
  value = self.callbacks[name](self)
File "/home/trac/src/trac.git/trac/web/main.py", line 305, in _get_session
  return Session(self.env, req)
File "/home/trac/src/trac.git/trac/web/session.py", line 210, in __init__
  self.get_session(req.authname, authenticated=True)
File "/home/trac/src/trac.git/trac/web/session.py", line 227, in get_session
  super(Session, self).get_session(sid, authenticated)
File "/home/trac/src/trac.git/trac/web/session.py", line 89, in get_session
  """, (sid, int(authenticated))))
File "/home/trac/src/trac.git/trac/db/util.py", line 128, in execute
  cursor.execute(query, params if params is not None else [])
File "/home/trac/src/trac.git/trac/db/util.py", line 72, in execute
  return self.cursor.execute(sql_escape_percent(sql), args)
File "/home/trac/src/trac.git/trac/db/sqlite_backend.py", line 82, in execute
  self.rows = PyFormatCursor.fetchall(self)

System Information

Trac 1.1.2beta1 Genshi 0.7 (with speedups) Pygments 1.6 pysqlite 2.6.0 Python 2.7.7 (default, Sep 16 2014, 10:26:02) [GCC 4.7.3] setuptools 0.9.8 SQLite 3.8.2

Installed Plugins

NameVersionLocation
NavAdd0.3/home/trac/src/trac-hacks.git/navaddplugin/trunk
trac-proxy-auth0.2.0/home/trac/src/trac-proxy-auth.hg/src
tracvatar1.9/home/trac/src/tracvatar.git

Attachments (0)

Change History (2)

comment:1 Changed 3 years ago by Jun Omae

Component: web frontend/tracddatabase backend
Keywords: sqlite added
Milestone: not applicable

It seems like Python-issue:15108.

comment:2 Changed 3 years ago by lkraav <leho@…>

Great find! Wow, bad bad bad. Last traffic 2012 and nothing like nearing resolution. Any ideas what to try within tracd context?

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.
The owner will be changed from (none) to anonymous.

Add Comment


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

 
Note: See TracTickets for help on using tickets.