[Bug 664608] Re: simple-scan crashes when saving to PDF

2012-06-05 Thread Michael Nagel
*** This bug is a duplicate of bug 931496 ***
https://bugs.launchpad.net/bugs/931496

** This bug has been marked a duplicate of bug 931496
   Simple scan crashes when a PDF is saved

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/664608

Title:
  simple-scan crashes when saving to PDF

To manage notifications about this bug go to:
https://bugs.launchpad.net/simple-scan/+bug/664608/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 664608] Re: simple-scan crashes when saving to PDF

2012-04-11 Thread Michael Nagel
Bug #931496 has been fixed in simple-scan 3.3.92

Hopefully that version fixes the problems described here as well.
Please report back whether or not you can reproduce the problem with 
simple-scan 3.3.92 or later.

Best Regards

** Changed in: simple-scan
   Status: Triaged = Incomplete

** Changed in: simple-scan (Ubuntu)
   Status: Confirmed = Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/664608

Title:
  simple-scan crashes when saving to PDF

To manage notifications about this bug go to:
https://bugs.launchpad.net/simple-scan/+bug/664608/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 664608] Re: simple-scan crashes when saving to PDF

2012-03-28 Thread Gunter Ohrner
Normally also affected by this very same bug, I just got the following
abort in glibc while saving a larger (several pages) scanned document.

I'm not sure if this actually is a different symptom of the same
problem?

*** glibc detected *** simple-scan: free(): invalid next size (normal): 
0x02d00c00 ***
=== Backtrace: =
/lib/x86_64-linux-gnu/libc.so.6(+0x78a96)[0x7fabe88ada96]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x6c)[0x7fabe88b1d7c]
/usr/lib/x86_64-linux-gnu/libcairo.so.2(+0x3357b)[0x7fabe9a1c57b]
/usr/lib/x86_64-linux-gnu/libcairo.so.2(+0x1b7f9)[0x7fabe9a047f9]
/usr/lib/x86_64-linux-gnu/libcairo.so.2(+0x1bfc8)[0x7fabe9a04fc8]
/usr/lib/x86_64-linux-gnu/libcairo.so.2(+0x4d264)[0x7fabe9a36264]
/usr/lib/x86_64-linux-gnu/libcairo.so.2(+0x4e26a)[0x7fabe9a3726a]
/usr/lib/x86_64-linux-gnu/libcairo.so.2(+0x48602)[0x7fabe9a31602]
/usr/lib/x86_64-linux-gnu/libcairo.so.2(+0x1)[0x7fabe9a0b221]
/usr/lib/x86_64-linux-gnu/libcairo.so.2(cairo_stroke_preserve+0x20)[0x7fabe9a024a0]
/usr/lib/x86_64-linux-gnu/libcairo.so.2(cairo_stroke+0x9)[0x7fabe9a024b9]
/usr/lib/libgtk-3.so.0(+0x224fbf)[0x7fabea6a8fbf]   
   
/usr/lib/libgtk-3.so.0(gtk_render_handle+0x12e)[0x7fabea65700e] 
   
/usr/lib/libgtk-3.so.0(+0x29cc18)[0x7fabea720c18]   
   
/usr/lib/libgtk-3.so.0(+0x152f18)[0x7fabea5d6f18]   
   
/usr/lib/libgtk-3.so.0(+0x27eab0)[0x7fabea702ab0]   
   
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_closure_invoke+0x154)[0x7fabe97a70a4]
  
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x20e5f)[0x7fabe97b8e5f] 
   
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0x623)[0x7fabe97c2483]
  
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x82)[0x7fabe97c2852]
  
/usr/lib/libgtk-3.so.0(+0x2901ea)[0x7fabea7141ea]   
   
/usr/lib/libgtk-3.so.0(gtk_widget_send_expose+0x141)[0x7fabea714331]
   
/usr/lib/libgtk-3.so.0(gtk_main_do_event+0x659)[0x7fabea5d6e29] 
   
/usr/lib/libgdk-3.so.0(+0x34797)[0x7fabea23c797]
   
/usr/lib/libgdk-3.so.0(+0x34733)[0x7fabea23c733]
   
/usr/lib/libgdk-3.so.0(+0x33d8f)[0x7fabea23bd8f]
   
/usr/lib/libgdk-3.so.0(gdk_window_process_all_updates+0x1a0)[0x7fabea23c200]
/usr/lib/libgtk-3.so.0(+0xcd156)[0x7fabea551156]
/usr/lib/libgdk-3.so.0(+0x1a32f)[0x7fabea22232f]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x1dd)[0x7fabe94e6a5d]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x45258)[0x7fabe94e7258]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_loop_run+0x162)[0x7fabe94e7792]
/usr/lib/libgtk-3.so.0(gtk_main+0x8d)[0x7fabea5d5edd]
simple-scan(application_main+0x30f)[0x41aedf]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7fabe885630d]
simple-scan[0x40c5d9]
=== Memory map: 
0040-0043c000 r-xp  fd:00 7426   
/usr/bin/simple-scan
0063b000-0063c000 r--p 0003b000 fd:00 7426   
/usr/bin/simple-scan
0063c000-0063d000 rw-p 0003c000 fd:00 7426   
/usr/bin/simple-scan
00f04000-039a3000 rw-p  00:00 0  [heap]
7fabc13d9000-7fabc13da000 ---p  00:00 0 
7fabc13da000-7fabc1bda000 rw-p  00:00 0 
7fabc23db000-7fabc23dc000 ---p  00:00 0 
7fabc23dc000-7fabc2bdc000 rw-p  00:00 0 
7fabc41c9000-7fabc41de000 r-xp  08:05 34 
/lib/x86_64-linux-gnu/libgcc_s.so.1
7fabc41de000-7fabc43dd000 ---p 00015000 08:05 34 
/lib/x86_64-linux-gnu/libgcc_s.so.1
7fabc43dd000-7fabc43de000 r--p 00014000 08:05 34 
/lib/x86_64-linux-gnu/libgcc_s.so.1
7fabc43de000-7fabc43df000 rw-p 00015000 08:05 34 
/lib/x86_64-linux-gnu/libgcc_s.so.1
7fabc43df000-7fabc43e ---p  00:00 0 
7fabc43e-7fabc4be rw-p  00:00 0 
7fabc4be-7fabc4be1000 ---p  00:00 0 
7fabc4be1000-7fabc53e1000 rw-p  00:00 0 
7fabc53e1000-7fabc53e4000 r-xp  08:05 132
/lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
7fabc53e4000-7fabc55e3000 ---p 3000 08:05 132
/lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
7fabc55e3000-7fabc55e4000 r--p 2000 08:05 132
/lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
7fabc55e4000-7fabc55e5000 rw-p 3000 

[Bug 664608] Re: simple-scan crashes when saving to PDF

2012-02-29 Thread Stef Walter
Added the attached printfs. Here's the output:


** WARNING **: scanner.vala:1204: Scan completed with 1584 lines, expected 2250 
lines
allocated: data_length = 711000, height = 2250, width = 1264
shift_count: offset 711000 = data_length 711000 (x = 1263, width = 1264)
simple-scan: malloc.c:2453: sYSMALLOc: Assertion `(old_top == (((mbinptr) 
(((char *) ((av)-bins[((1) - 1) * 2])) - __builtin_offsetof (struct 
malloc_chunk, fd  old_size == 0) || ((unsigned long) (old_size) = 
(unsigned long)__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * 
(sizeof(size_t))) - 1))  ~((2 * (sizeof(size_t))) - 1)))  ((old_top)-size  
0x1)  ((unsigned long)old_end  pagemask) == 0)' failed.
Aborted (core dumped)

This is a buffer overrun by one byte. You can see clearly that all the
other color depths (besides DeviceGray) add an extra byte to account for
this overflow. Only the DeviceGray one does not, adding one to the
data_length calculations for DeviceGray fixes the problem.

Please let me know if you want any other printfs or information in
specific places.

** Patch added: Printfs
   
https://bugs.launchpad.net/ubuntu/+source/simple-scan/+bug/664608/+attachment/2793651/+files/debug-printfs.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/664608

Title:
  simple-scan crashes when saving to PDF

To manage notifications about this bug go to:
https://bugs.launchpad.net/simple-scan/+bug/664608/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 664608] Re: simple-scan crashes when saving to PDF

2012-02-29 Thread Stef Walter
Duh, I attached this to the wrong bug. This may be a duplicate of bug
931496

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/664608

Title:
  simple-scan crashes when saving to PDF

To manage notifications about this bug go to:
https://bugs.launchpad.net/simple-scan/+bug/664608/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 664608] Re: simple-scan crashes when saving to PDF

2012-02-16 Thread TheGhost
I think the crashes are related to the scan size format. I only got
these crashes when the scan size is set to Automatically instead of
A4. When using A4 this does not happen.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/664608

Title:
  simple-scan crashes when saving to PDF

To manage notifications about this bug go to:
https://bugs.launchpad.net/simple-scan/+bug/664608/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 664608] Re: simple-scan crashes when saving to PDF

2012-02-12 Thread Michael Nagel
Hi everyone,

I brought this bug to Robert Ancell's attention. Good thing: he looked
into it. Bad thing: he could not reproduce/debug the issue.

Robert believes this  happens due to a corrupted adress space, caused by a bad 
scanner driver running in the same adress space as Simple Scan. I do not think 
Robert is right, and that maybe some size control information (image size or 
the like) returned by the scanner is incorrect, but the adress space itself is 
intact, because
a) the pixel data is good enough to be displayed, so it should be good enough 
to be saved
b) there are not random crashes, but it happens deterministically when saving a 
PDF

So, to see who is right we need the following:
- A description in your own words what exacly you do to recreate (not: me 
too) and if it happens in 100% of the cases or just sometimes/most of the 
times/rarely/...
- Make, Model and ID (as listed by lsusb) of the scanner
- An apport report might be useful. Enable apport: 
https://wiki.ubuntu.com/Apport then make the problem happen and report the 
issue via apport. Include make, model and id in the description and CLEARLY 
STATE that is a reproduction of this bug, #664608 You might need to change the 
issue from private to public visibility so we can see it.
- If someone who can recreate -- and has the necessary skills -- could poke 
around a bit with gdb that might help...

Best Regards
Michael

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/664608

Title:
  simple-scan crashes when saving to PDF

To manage notifications about this bug go to:
https://bugs.launchpad.net/simple-scan/+bug/664608/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs