<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 403: Cached device list causes issue</title><link>https://sourceforge.net/p/gscan2pdf/bugs/403/</link><description>Recent changes to 403: Cached device list causes issue</description><atom:link href="https://sourceforge.net/p/gscan2pdf/bugs/403/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 28 Sep 2022 07:55:52 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/gscan2pdf/bugs/403/feed.rss" rel="self" type="application/rss+xml"/><item><title>#403 Cached device list causes issue</title><link>https://sourceforge.net/p/gscan2pdf/bugs/403/?limit=25#a87f</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Apologies for the late response.&lt;/p&gt;
&lt;p&gt;The device list should be cached at the point that you enable the cache, and then also every time the list is updated.&lt;/p&gt;
&lt;p&gt;Disabling the cache  does not clear it. Would it make sense to clear it when the cache is disabled? Are there situations where the user disables the cache to do something (i.e. plug in a new device).&lt;/p&gt;
&lt;p&gt;I don't think so, as even with the cache enabled, you can still select "Rescan for devices" from the device drop-down. And indeed this should have solved your problem immediately.&lt;/p&gt;
&lt;p&gt;Hence, I see two improvement I could make here:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;If gscan2pdf sees the "Error opening device" error, it could offer to rescan for devices.&lt;/li&gt;
&lt;li&gt;Disabling the cache should clear it.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;What do you think?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jeffrey Ratcliffe</dc:creator><pubDate>Wed, 28 Sep 2022 07:55:52 -0000</pubDate><guid>https://sourceforge.nete459bb053163aa241bbb2e0236782ca873689a10</guid></item><item><title>#403 Cached device list causes issue</title><link>https://sourceforge.net/p/gscan2pdf/bugs/403/?limit=25#0950</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;edit: the issue reappeared. &lt;/p&gt;
&lt;p&gt;The exact error message is: &lt;br/&gt;
&lt;code&gt;Error opening device: opening device 'smfp:usb;
04e8;343d;Z4OQBAFC201175B': Operation not supported&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;followed by this when trying to start the scan nevertheless:&lt;br/&gt;
&lt;code&gt;gscan2pdf: must open device before starting scan&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;When I disable the caching, the scanner is detected and scanning works. But I want to keep caching enabled, so I reenable the setting and after restarting gscan2pdf, the same error message appears.&lt;/p&gt;
&lt;p&gt;I think I fixed it now: Disable cache device list, research scanner, enable caching, research again. THEN you may exit gscan2pdf. Otherwise the old cache with the broken device will be reused.&lt;/p&gt;
&lt;p&gt;Should disabling caching clear the cache?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jan</dc:creator><pubDate>Mon, 11 Jul 2022 11:41:40 -0000</pubDate><guid>https://sourceforge.netdf29a1ea9a541e8a5a075b794c3893132a49ec3f</guid></item><item><title>Cached device list causes issue</title><link>https://sourceforge.net/p/gscan2pdf/bugs/403/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, I recently reinstalled my Linux distro and after that gscan2pdf would not work anymore. My scanner would show up but when trying to start a scan, it would complain that the operation to start the scanner is not permitted. Searching again for the scanner returned "no devices found".&lt;/p&gt;
&lt;p&gt;I was able to fix this by disabling "cache device list" in the preference menu which allowed me to restart the device search. Apparently the device ID had changed due to the reinstallation of my OS. Maybe there is a smart way to automate this process? E.g. throw away the device list if search fails or a device cannot be found? Or this can be included as a help-note when searching a scanner fails?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jan</dc:creator><pubDate>Mon, 11 Jul 2022 11:32:36 -0000</pubDate><guid>https://sourceforge.netdc1ddef4e6c32ea5baf27fb5a9209bb6edb15c1f</guid></item></channel></rss>