Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fujitsu Scanner Freezes when TWAINDSM asks it to scan #23

Open
MichaelHurd opened this issue Apr 28, 2022 · 4 comments
Open

Fujitsu Scanner Freezes when TWAINDSM asks it to scan #23

MichaelHurd opened this issue Apr 28, 2022 · 4 comments

Comments

@MichaelHurd
Copy link

I'm using TWAINDSM to connect a 64-bit Java application to 64-bit scanner drivers on Windows machines. It seems to work normally unless we're using a Fujitsu scanner. Approximately half the time, the scanner will freeze for an indeterminate amount of time before pulling paper through the feeder. While in this frozen state, the scanner immediately feeds the paper through if I lock the screen or press Ctrl + Alt + Delete.

I've turned on full TWAIN logging for more information. It looks to be freezing right after the scanner reports that it's ready to transfer. The timestamps pause from 0727... to 0734..., at which point I locked my screen to unfreeze it.

[072722387 dsm.cpp  2382     0 0000000000008EB0] PaperStream IP fi-7160 -> <?>

[072722387 dsm.cpp  2391     0 0000000000008EB0] DG_CONTROL/DAT_NULL/MSG_XFERREADY

[072722387 dsm.cpp  2382     0 0000000000008EB0]   DSM -> <?>

[072722387 dsm.cpp  2391     0 0000000000008EB0]   DG_CONTROL/DAT_NULL/MSG_XFERREADY

[072722387 dsm.cpp  2446     0 0000000000008EB0]   TWRC_SUCCESS


[072722387 dsm.cpp  2446     0 0000000000008EB0] TWRC_SUCCESS


[073411903 dsm.cpp  2382     0 0000000000008EB0] <?> -> PaperStream IP fi-7160

[073411903 dsm.cpp  2391     0 0000000000008EB0] DG_IMAGE/DAT_IMAGEINFO/MSG_GET

[073414533 dsm.cpp  2446     0 0000000000008EB0] TWRC_SUCCESS


[073414533 dsm.cpp  2382     0 0000000000008EB0] <?> -> PaperStream IP fi-7160

[073414533 dsm.cpp  2387     0 0000000000008EB0] DG_CONTROL/DAT_CAPABILITY/MSG_GET/ICAP_UNDEFINEDIMAGESIZE

[073414533 dsm.cpp  2446     0 0000000000008EB0] TWRC_SUCCESS TWON_ENUMERATION
@MichaelHurd
Copy link
Author

I have downloaded the TWAINDSM 2.5.0 DLL to ensure the bug is occurring in the latest version.

@MichaelHurd
Copy link
Author

Based on what I've learned and some other logs, it looks like the MSG_XFERREADY message in the application side is the part that's not working properly.
Shortly before the copied log, we also make a call with MSG_ENABLEDS. Since clicking Ctrl + Alt + Delete pushes past this freeze, it seems very likely that something is wrong with the MSG_ENABLEDS and the window handle.

@BevanZeeGee
Copy link

BevanZeeGee commented Oct 2, 2023

Noticing a similar issue with Fujitsu and Kodak document scanners getting hangs with both on 64-bit windows with the 64-bit scanner driver. Wanted to see if there was any traction here.

@therentabrain
Copy link

therentabrain commented Jun 23, 2024

Don't know if it's related, but I've been having a freeze problem in Windows Server 2019 with a fujitsu scanner:
https://twain.org/forums/topic/fujitsu-fi-7160-hangs-on-msg_closeds-after-acquire-twain2-x/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants