"Invalid stride" error after duplex scan with Canon P-208II #298
dominikbayerl
started this conversation in
Support
Replies: 2 comments
-
The problem is that the buffer (sent by the Canon driver) reports itself as being full color which implies 3 bytes per pixel, but the bytesPerRow value is only 1 byte per column (pixel), so it's invalid. There are a few things that could be wrong, that might make this fixable:
So the questions I would ask:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Oh, and while I'd like to fix this in NAPS2, you might be able to just get this to work now: in your profile settings, under Advanced -> Twain Implementation, select "Native Transfer". |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I am not sure if I should file a bug report for this, so if in doubt I'll just post here instead.
When I try to scan a Duplex page with my Canon P-208II scanner, I sometimes receive an error during processing of the second page. I am using the TWAIN default backend. I tried to do some debugging on this and the exception seems to happen in
naps2/NAPS2.Images/Bitwise/PixelInfo.cs
Lines 5 to 25 in 7a2ecff
I inspected the passed
TwainMemoryBuffer memoryBuffer
object in a debugger. The object looks like this:Obviously the calculation fails, since
minStride = (2504 * 24 + 7) / 8 = 7512
and, the passedstride = 2504
.However, I can't really figure out what is wrong here. I attached the debug log below.
I am very thankful about any hints for this issue!
Beta Was this translation helpful? Give feedback.
All reactions