Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #51537 > unrolled thread
| Started by | CM <cmpython@gmail.com> |
|---|---|
| First post | 2013-07-29 19:02 -0700 |
| Last post | 2013-07-30 03:17 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
SQLite logic error or missing database CM <cmpython@gmail.com> - 2013-07-29 19:02 -0700
Re: SQLite logic error or missing database Chris Angelico <rosuav@gmail.com> - 2013-07-30 03:17 +0100
| From | CM <cmpython@gmail.com> |
|---|---|
| Date | 2013-07-29 19:02 -0700 |
| Subject | SQLite logic error or missing database |
| Message-ID | <b0298f45-ea28-4b5e-9f5e-8a4d0adab34b@googlegroups.com> |
(Posted to SQLite users list first; 3 views so far, and no answers, so trying here, thinking that perhaps a Python user would have some clues; I hope that is OK) I am using SQLite through either Python 2.5 or 2.7, which is the sqlite3 module. In a desktop application, every now and then, and in a fairly irreproducible way, when committing to the database I get this error: "sqlite3.OperationalError: SQL logic error or missing database" I thought this was a PySqlite generated error, but now I see the same error is seen with Ruby, PHP, C++ and other languages, so now I think it is generated by SQLite itself...but I really don't know. If I try additional commits in that same instance of my app being open, it gives me the same error every time. If I close the app and re-open it, it does not give me this error, with the same or very similar data being written in the same routines. So I "know" that the code as written is correct (a significant--greater than 90%?--of the time I don't see this error). In terms of what is causing this, I don't know. But I've noticed that on the occasions that this has happened my computer's RAM was pretty bogged down and my computer is pretty laggy. That said, I've had other times when my RAM was hogged just as much and it didn't do this. This error might go away if I used a newer/cleaner/more RAM computer, but I want to "stress test" my application for those who may be using similarly clunky computers--I want to try to avoid it even for older model computers. Any advice appreciated.
[toc] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2013-07-30 03:17 +0100 |
| Message-ID | <mailman.5299.1375150654.3114.python-list@python.org> |
| In reply to | #51537 |
On Tue, Jul 30, 2013 at 3:02 AM, CM <cmpython@gmail.com> wrote: > If I try additional commits in that same instance of my app being open, > it gives me the same error every time. If I close the app and re-open > it, it does not give me this error, with the same or very similar data > being written in the same routines. So I "know" that the code as > written is correct (a significant--greater than 90%?--of the time I > don't see this error). Is it a race between two concurrent instances of the app? I don't know sqlite but that seems like something to consider, at least. ChrisA
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web