Software Despeck setting - reload-recursion-limit (1225)
Brought to you by:
ra28145
Hello,
(possibly related to #285 and/or #275)
when "playing" with "Scan Document" window, some settings (especially "Enhancements / Software Despeck") put the program to freeze, until a warning window about "reload recursion limit (1225)" appears.
Strange thing is, this setting shouls be "On" or "Off", but the bar can also be put somewhere in-between.
Two in one (tell me if I have to open a separate report): when using the main menu "Tools / Cleanup", a warning window about "unpaper" appears.
Attached log (first and last 100'000 lines).
Cheers
The problem is that the "clear calibration" button (which is part of your default profile) is causing a reload, which causes gscan2pdf to press the button, which causes a reload, etc., etc.
I'll add an option in Edit/Preferences for the next release to include (or not) button presses in profiles.
Until then, the workaround would be to edit ~/.config/gscan2pdfrc to remove the clear-calibration option from default-scan-options - or simply delete ~/.config/gscan2pdfrc if you don't mind losing your settings.
You can safely ignore the unpaper warnings if you are happy with the results.
Please attach a screenshot of the software despeck option. Looking at your log file, there should be two - one boolean, and one spinbox with the diameter of the specks to remove.
Thank you for your quick reply.
Workaround "edit gscan2pdfrc to remove clear-calibration option" worked, no more reload-recursion-limit errors now when I set or unset the "Enhancements / Software Despeck" option.
I will ignore the unpaper warnings, results are ok; but those messages could intimidate and turn away some unexperienced users?
Keep up the good work!
Cheers
Here are the screenshots (I recreated the "bug" by re-editing the config file and setting the
{ "clear-calibration" : null} option again).
As you can see by the timestamps of the screenshots, it lasts almost two minutes until the warning window appears; program is frozen (not the machine though).
HTH, tell me if I can help further
I assume that the fact that you can half slide the slider is due to the GUI being busy recursing.
I now have a proper fix for this. If I give you a patch, can you test it? If not I'll release a new version.
Yes, please, I would be glad to test the patch.
(So, the problem was with the "Clear calibration" button, not with the "Software Despeck" option...)
Please try this.