Strange crashes

Roy Smith roy at panix.com
Thu Dec 12 00:52:46 EST 2013


In article <mailman.3961.1386826313.18130.python-list at python.org>,
 Chris Angelico <rosuav at gmail.com> wrote:

> On Thu, Dec 12, 2013 at 4:25 PM, Igor Korot <ikorot01 at gmail.com> wrote:
> > ProgrammingError: SQLite objects created in a thread can only be used
> > in that same thread.The object was created in thread id 14260 and this
> > is thread id 9264
> >
> > Where should I start looking for causes?

One thing you might try is having your program print out the names and 
ids of all the threads.  Something like:

for t in threading.enumerate():
   print t.ident, t.name

If you're lucky, you might get some clue as to what each thread is doing 
from its name.  Or, it may not give you any useful information at all.



More information about the Python-list mailing list