application locks when calling statistical correction
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
BookLiberator |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
Whenever running against a full book's worth of images, bkrpr.py locks up when switching to the "Applying statistical correction to cropped images" step. The relevant terminal output from three occurrences follows:
======= Book 1:
Applying statistical correction to cropped images.
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib/
self.run()
File "/usr/lib/
self.
File "/home/
25, in _start
for ret in self.generator(
File "/home/
do_sanity_check
self.
File "/home/
_recrop_out_of_spec
self.left_mean, 'left', 5)
File "/home/
next_white_col
if not self.white(
File "/home/
return self.im.
File "/usr/lib/
getpixel
return self.im.
IndexError: image index out of range
======= Book 2:
Applying statistical correction to cropped images.
Lowering the top.
Exception in thread Thread-5:
Traceback (most recent call last):
File "/usr/lib/
self.run()
File "/usr/lib/
self.
File "/home/
25, in _start
for ret in self.generator(
File "/home/
do_sanity_check
self.
File "/home/
_recrop_out_of_spec
self.
File "/home/
lower_the_top
t1 = self.next_
File "/home/
next_white_row
if not self.white(
File "/home/
return self.im.
File "/usr/lib/
getpixel
return self.im.
IndexError: image index out of range
======= Book 3:
Applying statistical correction to cropped images.
Lowering the top.
Raising the bottom.
Adjusted /home/ian/
Lowering the top.
Raising the bottom.
Adjusted /home/ian/
Lowering the top.
Raising the bottom.
Adjusted /home/ian/
Lowering the top.
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib/
self.run()
File "/usr/lib/
self.
File "/home/
25, in _start
for ret in self.generator(
File "/home/
do_sanity_check
self.
File "/home/
_recrop_out_of_spec
self.
File "/home/
lower_the_top
t1 = self.next_
File "/home/
next_white_row
if not self.white(
File "/home/
return self.im.
File "/usr/lib/
getpixel
return self.im.
IndexError: image index out of range
This bug has been fixed in the wx branch, which will be merged into trunk shortly.