Summary: | crash when changing dpi, in ScanParams::slotNewResolution | ||
---|---|---|---|
Product: | [Applications] kooka | Reporter: | peter.geerds |
Component: | general | Assignee: | Jonathan Marten <jjm> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | momix1977, peter.geerds |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Patch to possibly fix |
Description
peter.geerds
2011-01-29 17:45:20 UTC
*** Bug 266330 has been marked as a duplicate of this bug. *** If possible, could you please let me know make/model of scanner and how connected. Could you also try running kooka in a terminal window and attach the log output. (In reply to comment #2) > If possible, could you please let me know make/model of scanner and how > connected. Could you also try running kooka in a terminal window and attach > the log output. SCSI processor "EPSON Perfection1200 1.03" at /dev/sg5 scsi-modules: aic7xxx 137233 0 scsi_transport_spi 29902 1 aic7xxx scsi_mod 190568 6 sg,sr_mod,sd_mod,aic7xxx,scsi_transport_spi,libata terminal: peter@thegnome:~> kooka X Error: BadDrawable (invalid Pixmap or Window parameter) 9 Major opcode: 55 (X_CreateGC) Resource id: 0x0 X Error: BadDrawable (invalid Pixmap or Window parameter) 9 Major opcode: 55 (X_CreateGC) Resource id: 0x0 X Error: BadGC (invalid GC parameter) 13 Major opcode: 60 (X_FreeGC) Resource id: 0x0 X Error: BadGC (invalid GC parameter) 13 Major opcode: 60 (X_FreeGC) Resource id: 0x0 KCrash: Application 'kooka' crashing... KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi from kdeinit sock_file=/home/peter/.kde4/socket-thegnome/kdeinit4__0 Created attachment 57552 [details]
Patch to possibly fix
If either of you can compile from current SVN source, please try the attached patch and see if the crash is still present. From the log files it seems to be one of those things that "shouldn't happen", but obviously it is...
> From: Jonathan Marten <jjm@keelhaul.me.uk>
> --- Comment #4 from Jonathan Marten <jjm keelhaul me uk> 2011-02-27 16:01:51 ---
> Created an attachment (id=57552)
> --> (http://bugs.kde.org/attachment.cgi?id=57552)
> Patch to possibly fix
>
> If either of you can compile from current SVN source, please try the attached
> patch and see if the crash is still present. From the log files it seems to be
> one of those things that "shouldn't happen", but obviously it is...
>
> --
Great - it works fine! Every solution up to 2400 dpi.
Thank you very much!
cu
Peter
Thanks for trying the patch Peter. Does this correctly update the previewer, i.e. does the size in pixels and the "expected file size" increase when the resolution is changed? If nothing happens to that when the resolution changes, can you check for any debug messages containing "ScanParams::slotNewResolution" in the terminal/log output. You may need to turn on kdebugdialog category 29000 (libkscan). > From: Jonathan Marten <jjm@keelhaul.me.uk>
> --- Comment #6 from Jonathan Marten <jjm keelhaul me uk> 2011-02-27 17:42:46 ---
> Thanks for trying the patch Peter. Does this correctly update the previewer,
> i.e. does the size in pixels and the "expected file size" increase when the
> resolution is changed?
>
> If nothing happens to that when the resolution changes, can you check for any
> debug messages containing "ScanParams::slotNewResolution" in the terminal/log
> output. You may need to turn on kdebugdialog category 29000 (libkscan).
>
> --
The previewer works correctly, size in pixels und expectet
file size increase when I change the resolution:
215x297 mmm
423x585 pix
30,2KiB
-> 50 dpi
215x297 mm
5079x7016 pix
4,2 MiB
-> 600 dpi
It works perfectly for me!
A lot of thanks :-)
cu
Peter
SVN commit 1223148 by marten: Fix null pointer crash when looking up the current scan resolution if the SANE_NAME_SCAN_RESOLUTION and SANE_NAME_SCAN_X_RESOLUTION option names are not the same and the scanner only has the former. They were equivalent in SANE 1.0.19, but in 1.0.20 they are different. BUG:264768 M +15 -13 kscandevice.cpp M +15 -15 scanparams.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1223148 Git commit d65940eedfec2205a1d1005f560cd0a0b9e7a937 by Jonathan Marten. Committed on 07/03/2011 at 12:48. Pushed by marten into branch 'master'. Fix NULL pointer crash in ScanParams::slotNewResolution() Happens when looking up the current scan resolution if the SANE_NAME_SCAN_RESOLUTION and SANE_NAME_SCAN_X_RESOLUTION option names are not the same and the scanner only has the former. They were equivalent in SANE 1.0.19, but in 1.0.20 they are different. BUG:264768 M +15 -13 libkscan/kscandevice.cpp M +15 -15 libkscan/scanparams.cpp http://commits.kde.org/kooka/d65940eedfec2205a1d1005f560cd0a0b9e7a937 |