Crash after scan or rotating

Bug #645901 reported by bojo42
136
This bug affects 21 people
Affects Status Importance Assigned to Milestone
Simple Scan
Fix Released
High
Unassigned
simple-scan (Ubuntu)
Fix Released
High
Unassigned
Maverick
Fix Released
Medium
Unassigned

Bug Description

Impact: simple-scan crashes when completing a single page being scanned or rotated
Resolution: Change in upstream project to fix rendering loop accessing pixels outside of image (patch in package branch and in comments below)
To reproduce:
1. Run simple-scan, e.g.
   $ simple-scan test
2. Scan one page
Expected result: Page is scanned and shows correct data
Observed result: simple-scan crashes when page complete or if page is rotated while scanning (note that since this bug is due to memory corruption it is not guaranteed to crash. A reliable method is to run simple-scan through valgrind as this will show invalid reads when rendering the page).

Patch has been tested and crash does not occur anymore, no errors reported by valgrind. Bug is well-defined (off by one error), no regression problems expected.

Revision history for this message
bojo42 (bojo42) wrote :
Revision history for this message
bojo42 (bojo42) wrote :
Revision history for this message
bojo42 (bojo42) wrote :
Revision history for this message
bojo42 (bojo42) wrote :

while valgrind debugging with valgrind i was able to do a 360 degrees rotation to the right.

Revision history for this message
bojo42 (bojo42) wrote :

this is still true in 2.32.0-0ubuntu1 backported to lucid. although i doubt it, but can someone please confirm that it isn't present in maverick.

Changed in simple-scan:
status: New → Confirmed
Changed in simple-scan (Ubuntu):
status: New → Confirmed
Revision history for this message
Markus Dresch (markus-dresch) wrote :

i have the same problem with 2.32.0 in maverick.

Changed in simple-scan:
importance: Undecided → High
Changed in simple-scan (Ubuntu):
importance: Undecided → High
Changed in simple-scan:
status: Confirmed → Fix Committed
Changed in simple-scan (Ubuntu):
status: Confirmed → Fix Committed
summary: - Segmentation fault on rotating
+ Crash after scan or rotating
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Patch that fixes the problem

tags: added: regression-update
description: updated
Changed in simple-scan (Ubuntu Maverick):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted simple-scan into maverick-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in simple-scan (Ubuntu Maverick):
status: Confirmed → Fix Committed
tags: added: verification-needed
Revision history for this message
bojo42 (bojo42) wrote :

works so far, but is it possible that rotating is now a bit slower? maybe it's just because i am now on a different machine. but great simple scan is usable again :)

Martin Pitt (pitti)
tags: added: verification-done
removed: verification-needed
Revision history for this message
Martin Pitt (pitti) wrote :

2.32.0-0ubuntu3 accepted into maverick-proposed, please test.

Revision history for this message
Simon Hintermann (krazy-yvan) wrote : Re: [Bug 645901] Re: Crash after scan or rotating

 Excellent!! But I updated with 2.32.0-0ubuntu2...

Thank you so much!

Simon

On 10/14/2010 09:36 AM, Martin Pitt wrote:
> 2.32.0-0ubuntu3 accepted into maverick-proposed, please test.
>

Revision history for this message
bojo42 (bojo42) wrote :

backported 2.32.0-0ubuntu3 still works fine. thumbs up for moving to -updates. have checked my speed issues and they are also in 2.32.0-0ubuntu1, so it's only related to my current machine.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package simple-scan - 2.32.0-0ubuntu3

---------------
simple-scan (2.32.0-0ubuntu3) maverick-proposed; urgency=low

  * debian/patches/03-blank_pdf.patch:
    - Fix error that caused the output PDF to be square

simple-scan (2.32.0-0ubuntu2) maverick-proposed; urgency=low

  * debian/patches/03_render_bug.patch:
    - Fix crash in page rendering (LP: #645901)
  * debian/patches/04_blank_pdf.patch
    - Fix invalid PDF files generate in locales that use ',' for a decimal point
      (LP: #644734)
 -- Robert Ancell <email address hidden> Wed, 13 Oct 2010 09:27:05 +1100

Changed in simple-scan (Ubuntu Maverick):
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Copied to natty as well.

Changed in simple-scan (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Robert Ancell (robert-ancell) wrote :

Fixed in simple-scan 2.32.0.1

Changed in simple-scan:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.