hp-scan segfaults when lineart selected
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
In Progress
|
Undecided
|
Unassigned |
Bug Description
When using "hp-scan -r 2400 -m lineart", hp-scan segfaults.
It seems to happen inside python-pillow due to incorrect parameters:
hp-scan[30127]: debug: PPL=20400 lines=28064 depth=1 BPL=2550 pad=0 total=71563200
lines=28064
pixels_
total=71563200
buf = bytearray(total)
im = Image.frombuffe
(segfaults, or gives a traceback with newer versions of python-pillow)
Based on the idea that 'RGBA' is the wrong parameter -- isn't the scanner giving us bw bitmap data? -- I tried this change:
diff -up hplip-3.
--- hplip-3.
+++ hplip-3.
@@ -977,8 +977,8 @@ try:
- im = Image.frombuffe
- 'raw', 'RGBA', 0, 1).convert('L')
+ im = Image.frombuffe
+ 'raw', '1', 0, 1).convert('L')
But that also fails and seem to consume a large amount of memory in doing so.
HPLIP 3.14.6 on Fedora 20.
Original bug report:
https:/
Hi Tim,
Thank you for reporting this issue. We will take a look at it.
Can you tell us on which device you are able to produce this issue ?
Thanks,
goutam