Prints to trace code. Some sort of bounds error when accessing database.
Not sure what the source of the problem is.