JimmXinu / FanFicFare

FanFicFare is a tool for making eBooks from stories on fanfiction and other web sites.
Other
750 stars 161 forks source link

Calibre 6.0+ Switching from Dark Mode to Light after Checking for Updates and Reconnecting RDP #866

Closed Chirishman closed 2 years ago

Chirishman commented 2 years ago

So I know this is a weird edge case scenario but here's my observed behavior and usage pattern.

I run Calibre and fanficfare on my windows file server. As a result I connect to it to check updates etc via RDP.

Versions tested:

Calibre: 6.0 and 6.1 FanFicFare: 4.14.3

Steps to Reproduce:

  1. Open Calibre in an RDP session
  2. Run FanFicFare to check for updates
  3. Click "yes" (whether it found a new update or not)
  4. Disconnect the RDP session and then immediately reconnect.

Observed Behavior:

Calibre switches from Dark Mode to Light Mode (without closing and reopening which is normally required to change modes) about 0.5 to 1 seconds after the RDP session reconnects.

Screen Recording

Fully closing restarting Calibre will return it to dark mode, merely closing it to the system tray and reopening will not.

Excluded Possibilities & Thoughts

I've waited for it to occur on its own without doing the RDP disconnect/reconnect and it doesn't seem to be time based. It appears to be specifically triggered by the RDP session disconnecting and reconnecting. This may have to do with the resolution and DPI being set/changed during the RDP.

I understand this is most likely a Calibre bug/regression of some kind but no other plugin that I have nor any non-plugin interaction I can think of seems to trigger this behavior and I'm at a loss for how this could be occurring.

Here's the debug mode log, unfortunately the last event added to it is when I click "yes" and it doesn't seem to be producing any log entries connected to/during/after the RDP reconnect.

Debug Log

Failed to initialize plugin: 'C:\\Users\\Administrator\\AppData\\Roaming\\calibre\\plugins\\Comicvine.zip'
Traceback (most recent call last):
  File "calibre\customize\ui.py", line 744, in initialize_plugins
  File "calibre\customize\ui.py", line 64, in load_plugin
  File "calibre\customize\zipplugin.py", line 304, in load
  File "importlib\__init__.py", line 126, in import_module
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "calibre\customize\zipplugin.py", line 203, in exec_module
  File "calibre_plugins.comicvine.__init__", line 6, in <module>
ModuleNotFoundError: No module named 'source'
Failed to initialize plugin: 'C:\\Users\\Administrator\\AppData\\Roaming\\calibre\\plugins\\FictionDB.zip'
Traceback (most recent call last):
  File "calibre\customize\ui.py", line 744, in initialize_plugins
  File "calibre\customize\ui.py", line 64, in load_plugin
  File "calibre\customize\zipplugin.py", line 304, in load
  File "importlib\__init__.py", line 126, in import_module
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "calibre\customize\zipplugin.py", line 203, in exec_module
  File "calibre_plugins.fictiondb.__init__", line 11, in <module>
ImportError: cannot import name 'quote' from 'urllib' (C:\Program Files\Calibre2\app\bin\python-lib.bypy.frozen\urllib\__init__.pyc)
Failed to initialize plugin: 'C:\\Users\\Administrator\\AppData\\Roaming\\calibre\\plugins\\Goodreads More Tags.zip'
Traceback (most recent call last):
  File "calibre_plugins.goodreads_more_tags.config", line 12, in <module>
ImportError: cannot import name 'Qt' from 'qt' (C:\Program Files\Calibre2\app\bin\python-lib.bypy.frozen\qt\__init__.pyc)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "calibre\customize\ui.py", line 744, in initialize_plugins
  File "calibre\customize\ui.py", line 64, in load_plugin
  File "calibre\customize\zipplugin.py", line 304, in load
  File "importlib\__init__.py", line 126, in import_module
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "calibre\customize\zipplugin.py", line 203, in exec_module
  File "calibre_plugins.goodreads_more_tags.__init__", line 12, in <module>
  File "calibre\customize\zipplugin.py", line 203, in exec_module
  File "calibre_plugins.goodreads_more_tags.config", line 15, in <module>
ModuleNotFoundError: No module named 'PyQt4'
Failed to initialize plugin: 'C:\\Users\\Administrator\\AppData\\Roaming\\calibre\\plugins\\Kindle hi-res covers.zip'
Traceback (most recent call last):
  File "calibre\customize\ui.py", line 744, in initialize_plugins
  File "calibre\customize\ui.py", line 64, in load_plugin
  File "calibre\customize\zipplugin.py", line 304, in load
  File "importlib\__init__.py", line 126, in import_module
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "calibre\customize\zipplugin.py", line 203, in exec_module
  File "calibre_plugins.dummy2.__init__", line 9, in <module>
ModuleNotFoundError: No module named 'urlparse'
Traceback (most recent call last):
  File "calibre\gui2\ui.py", line 135, in __init__
  File "calibre\gui2\ui.py", line 153, in init_iaction
  File "calibre\customize\__init__.py", line 624, in load_actual_plugin
  File "importlib\__init__.py", line 126, in import_module
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "calibre\customize\zipplugin.py", line 203, in exec_module
  File "calibre_plugins.xray_creator.ui", line 14, in <module>
ModuleNotFoundError: No module named 'httplib'
EpubMerge: DEBUG: 2022-07-18 02:31:24,124: calibre_plugins.epubmerge.epubmerge_plugin(155): macmenuhack file_path:C:\Users\Administrator\AppData\Roaming\calibre\plugins\fanficfare_macmenuhack.txt
FFF: DEBUG: 2022-07-18 02:31:24,150: calibre_plugins.fanficfare_plugin.fff_plugin(218): Plugin FanFicFare macmenuhack file_path:C:\Users\Administrator\AppData\Roaming\calibre\plugins\fanficfare_macmenuhack.txt
calibre Debug log
calibre 6.1  embedded-python: True
Windows-10-10.0.17763-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.17763')
Python 3.10.1
Windows: ('10', '10.0.17763', 'SP0', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 49, 0) && DeDRM (7, 0, 0) && Package KFX (from KFX Input) (1, 49, 0) && BookFusion Plugin (0, 6, 3) && Count Pages (1, 11, 2) && Embed Comic Metadata (1, 6, 1) && English Noun Frequency (1, 0, 15) && EpubMerge (2, 13, 0) && FanFicFare (4, 14, 3) && Find Duplicates (1, 9, 5) && Generate Cover (2, 1, 1) && Goodreads (1, 5, 3) && Goodreads Sync (1, 15, 4) && Job Spy (1, 0, 192) && KFX metadata reader (from KFX Input) (1, 49, 0) && KFX Input (1, 49, 0) && Set KFX metadata (from KFX Output) (1, 63, 0) && KFX Output (1, 63, 0) && Kindle Collections (1, 7, 29) && KyBook3 Sync (1, 0, 12) && Library Codes (1, 0, 53) && Mass Search-Replace (1, 4, 3) && Media File Importer (1, 0, 26) && MultiColumnSearch (1, 0, 89) && Open With (1, 7, 1) && Overdrive Link (2, 51, 0) && Reading List (1, 12, 0) && Save Composite Custom Columns (1, 1, 1) && TTS to MP3 (0, 6, 0) && WordDumb (3, 23, 1) && X-Ray Creator (3, 2, 1) && all recipes Recipe Reader (1, 0, 2) && food network Recipe Reader (1, 0, 2)
calibre 6.1  embedded-python: True
Windows-10-10.0.17763-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.17763')
Python 3.10.1
Windows: ('10', '10.0.17763', 'SP0', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 49, 0) && DeDRM (7, 0, 0) && Package KFX (from KFX Input) (1, 49, 0) && BookFusion Plugin (0, 6, 3) && Count Pages (1, 11, 2) && Embed Comic Metadata (1, 6, 1) && English Noun Frequency (1, 0, 15) && EpubMerge (2, 13, 0) && FanFicFare (4, 14, 3) && Find Duplicates (1, 9, 5) && Generate Cover (2, 1, 1) && Goodreads (1, 5, 3) && Goodreads Sync (1, 15, 4) && Job Spy (1, 0, 192) && KFX metadata reader (from KFX Input) (1, 49, 0) && KFX Input (1, 49, 0) && Set KFX metadata (from KFX Output) (1, 63, 0) && KFX Output (1, 63, 0) && Kindle Collections (1, 7, 29) && KyBook3 Sync (1, 0, 12) && Library Codes (1, 0, 53) && Mass Search-Replace (1, 4, 3) && Media File Importer (1, 0, 26) && MultiColumnSearch (1, 0, 89) && Open With (1, 7, 1) && Overdrive Link (2, 51, 0) && Reading List (1, 12, 0) && Save Composite Custom Columns (1, 1, 1) && TTS to MP3 (0, 6, 0) && WordDumb (3, 23, 1) && X-Ray Creator (3, 2, 1) && all recipes Recipe Reader (1, 0, 2) && food network Recipe Reader (1, 0, 2)
QPA platform: windows
devicePixelRatio: 1.5
logicalDpi: 96.0 x 96.0
physicalDpi: 140.31650485436893 x 140.13793103448276
Using calibre Qt style: True
[0.00] Starting up...
[0.00] Showing splash screen...
[0.22] splash screen shown
[0.22] Initializing db...
[0.33] db initialized
[0.33] Constructing main UI...
DEBUG:    0.0 Goodreads Sync::dialogs.py - loading translations
DEBUG:    0.0 GoodreadsSync::action.py - loading translations
DEBUG:    2.7 HttpHelper::__init__: proxy=None
Job Spy has begun initialization...
Calibre, and hence Job Spy, was gracefully shut down last time?  True
Last time daemon started:  never
Last time daemon failed:  never
Total daemon starts inception_to_date:  0
Total daemon failures inception-to-date:  0
Job Spy has finished initialization...
DEBUG MassSearchReplace: rebuild_menus
DEBUG MassSearchReplace: Rebuilding menu
[0] un-optimized number of undesirable characters accumulated:  756
[1] optimized number of undesirable characters accumulated:  596
MCS has finished initialization...
D:\Literary\Manga Ingest is not a valid directory to watch for new ebooks, ignoring
[5.48] main UI initialized...
[5.48] Hiding splash screen
Starting QuickView
FFF: DEBUG: 2022-07-18 02:31:32,876: calibre_plugins.fanficfare_plugin.fff_plugin(1129): FanFicFare v4.14.3
FFF: DEBUG: 2022-07-18 02:31:33,138: configurable.py(1044): use_browser_cache:
FFF: DEBUG: 2022-07-18 02:31:33,139: configurable.py(1058): use_basic_cache:true
FFF: DEBUG: 2022-07-18 02:31:33,144: calibre_plugins.fanficfare_plugin.fff_plugin(1447): update existing id:561
FFF: DEBUG: 2022-07-18 02:31:33,188: calibre_plugins.fanficfare_plugin.fff_plugin(1594): existing epub tmp:C:\Users\ADMINI~1\AppData\Local\Temp\2\calibre_c8klnwud\fanficfare_ngkfktbe\old-561-khzlatp7.epub
FFF: DEBUG: 2022-07-18 02:31:33,205: calibre_plugins.fanficfare_plugin.fff_plugin(1661): title:Dao of the Deal
FFF: DEBUG: 2022-07-18 02:31:33,205: calibre_plugins.fanficfare_plugin.fff_plugin(1662): outfile:C:\Users\ADMINI~1\AppData\Local\Temp\2\calibre_c8klnwud\fanficfare_ngkfktbe\bgmeta-4lkh1s2d.epub
FFF: DEBUG: 2022-07-18 02:32:53,196: calibre_plugins.fanficfare_plugin.fff_plugin(2168): update_error_column_loop prev_val:None
FFF: DEBUG: 2022-07-18 02:32:55,105: calibre_plugins.fanficfare_plugin.fff_plugin(1814): add/update Dao of the Deal https://forums.spacebattles.com/threads/dao-of-the-deal-xianxia.1017549/ id(561)
DeDRM v7.0.0: Trying to decrypt bgmeta-4lkh1s2d.epub
DeDRM v7.0.0: Verifying zip archive integrity
DeDRM v7.0.0: “bgmeta-4lkh1s2d.epub” is neither an Adobe Adept nor a Barnes & Noble encrypted ePub
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
  File "calibre\customize\ui.py", line 175, in _run_filetype_plugins
  File "calibre_plugins.dedrm.__init__", line 638, in run
  File "calibre_plugins.dedrm.__init__", line 414, in ePubDecrypt
calibre_plugins.dedrm.DeDRMError: DeDRM v7.0.0: Couldn't decrypt after 0.2 seconds. DRM free perhaps?
FFF: DEBUG: 2022-07-18 02:32:58,905: calibre_plugins.fanficfare_plugin.fff_plugin(2211): deleteotherforms remove f:AZW3
FFF: DEBUG: 2022-07-18 02:33:05,305: calibre_plugins.fanficfare_plugin.fff_plugin(2325): Skipping custom column(Characters) update, set to New Books Only
FFF: DEBUG: 2022-07-18 02:33:05,306: calibre_plugins.fanficfare_plugin.fff_plugin(2325): Skipping custom column(Content Rated) update, set to New Books Only
FFF: DEBUG: 2022-07-18 02:33:05,306: calibre_plugins.fanficfare_plugin.fff_plugin(2325): Skipping custom column(Date Added) update, set to New Books Only
FFF: DEBUG: 2022-07-18 02:33:05,306: calibre_plugins.fanficfare_plugin.fff_plugin(2325): Skipping custom column(Genre) update, set to New Books Only
FFF: DEBUG: 2022-07-18 02:33:05,307: calibre_plugins.fanficfare_plugin.fff_plugin(2325): Skipping custom column(Pairings) update, set to New Books Only
FFF: DEBUG: 2022-07-18 02:33:05,307: calibre_plugins.fanficfare_plugin.fff_plugin(2325): Skipping custom column(Parody) update, set to New Books Only
FFF: DEBUG: 2022-07-18 02:33:06,843: calibre_plugins.fanficfare_plugin.fff_plugin(2325): Skipping custom column(Warnings) update, set to New Books Only
FFF: INFO: 2022-07-18 02:33:08,390: calibre_plugins.fanficfare_plugin.fff_plugin(2469): cover_image:
FFF: DEBUG: 2022-07-18 02:33:09,345: calibre_plugins.fanficfare_plugin.fff_plugin(1892): set_marked_ids:{561: 'fff_success_0000'}
FFF: DEBUG: 2022-07-18 02:33:09,423: calibre_plugins.fanficfare_plugin.fff_plugin(1901): Finished Adding/Updating 1 books.
FFF: DEBUG: 2022-07-18 02:33:09,429: calibre_plugins.fanficfare_plugin.fff_plugin(1904): removed tdir
FFF: DEBUG: 2022-07-18 02:33:09,648: calibre_plugins.fanficfare_plugin.fff_plugin(1932): Starting auto conversion of 1 books.
[8.14] splash screen hidden
[8.14] Started up in 8.14 seconds with 461 books
Worker Launch took: 0.06 seconds
Job: 0 Download 1 FanFiction Book(s) finished
Download 1 FanFiction Book(s)

    Failed to initialize plugin: 'C:\\Users\\Administrator\\AppData\\Roaming\\calibre\\plugins\\Comicvine.zip'

    Failed to initialize plugin: 'C:\\Users\\Administrator\\AppData\\Roaming\\calibre\\plugins\\FictionDB.zip'

    Failed to initialize plugin: 'C:\\Users\\Administrator\\AppData\\Roaming\\calibre\\plugins\\Goodreads More Tags.zip'

    Failed to initialize plugin: 'C:\\Users\\Administrator\\AppData\\Roaming\\calibre\\plugins\\Kindle hi-res covers.zip'

    FFF: INFO: 2022-07-18 02:31:34,181: calibre_plugins.fanficfare_plugin.jobs(49): CPUs:3

    FFF: INFO: 2022-07-18 02:31:34,182: calibre_plugins.fanficfare_plugin.jobs(52): FanFicFare v4.14.3

    FFF: INFO: 2022-07-18 02:31:34,183: calibre_plugins.fanficfare_plugin.jobs(68): Launch background process for site forums.spacebattles.com:

    https://forums.spacebattles.com/threads/dao-of-the-deal-xianxia.1017549/

    FFF: INFO: 2022-07-18 02:32:49,531: calibre_plugins.fanficfare_plugin.jobs(130): 

    ================================================================================ site:(forums.spacebattles.com)

    Failed to initialize plugin: 'C:\\Users\\Administrator\\AppData\\Roaming\\calibre\\plugins\\Comicvine.zip'

    Failed to initialize plugin: 'C:\\Users\\Administrator\\AppData\\Roaming\\calibre\\plugins\\FictionDB.zip'

    Failed to initialize plugin: 'C:\\Users\\Administrator\\AppData\\Roaming\\calibre\\plugins\\Goodreads More Tags.zip'

    Failed to initialize plugin: 'C:\\Users\\Administrator\\AppData\\Roaming\\calibre\\plugins\\Kindle hi-res covers.zip'

    FFF: INFO: 2022-07-18 02:31:36,514: calibre_plugins.fanficfare_plugin.jobs(211): 

    -------------------------------------------------------------------------------- https://forums.spacebattles.com/threads/dao-of-the-deal-xianxia.1017549/

    FFF: DEBUG: 2022-07-18 02:31:36,555: configurable.py(1044): use_browser_cache:

    FFF: DEBUG: 2022-07-18 02:31:36,556: configurable.py(1058): use_basic_cache:true

    FFF: INFO: 2022-07-18 02:31:36,557: base_xenforoforum_adapter.py(451): url: https://forums.spacebattles.com/threads/dao-of-the-deal-xianxia.1017549/

    FFF: DEBUG: 2022-07-18 02:31:36,557: fetcher.py(234): 

    ========== MISS (GET) BasicCache

    https://forums.spacebattles.com/threads/dao-of-the-deal-xianxia.1017549/

    FFF: DEBUG: 2022-07-18 02:31:36,558: fetcher.py(469): 

    ---------- REQ (GET) RequestsFetcher

    https://forums.spacebattles.com/threads/dao-of-the-deal-xianxia.1017549/

    FFF: DEBUG: 2022-07-18 02:32:19,084: fetcher.py(482): response code:200

    FFF: DEBUG: 2022-07-18 02:32:19,085: fetcher.py(156): random sleep(3.00-9.00):3.85

    FFF: DEBUG: 2022-07-18 02:32:22,937: requestable.py(50): Encoding:utf8

    FFF: INFO: 2022-07-18 02:32:22,938: base_xenforoforum_adapter.py(455): use useurl: https://forums.spacebattles.com/threads/dao-of-the-deal-xianxia.1017549/

    FFF: DEBUG: 2022-07-18 02:32:24,189: fetcher.py(234): 

    ========== MISS (GET) BasicCache

    https://forums.spacebattles.com/threads/dao-of-the-deal-xianxia.1017549/threadmarks

    FFF: DEBUG: 2022-07-18 02:32:24,190: fetcher.py(469): 

    ---------- REQ (GET) RequestsFetcher

    https://forums.spacebattles.com/threads/dao-of-the-deal-xianxia.1017549/threadmarks

    FFF: DEBUG: 2022-07-18 02:32:24,328: fetcher.py(482): response code:200

    FFF: DEBUG: 2022-07-18 02:32:24,329: fetcher.py(156): random sleep(3.00-9.00):4.06

    FFF: DEBUG: 2022-07-18 02:32:28,387: requestable.py(50): Encoding:utf8

    FFF: DEBUG: 2022-07-18 02:32:28,871: fetcher.py(234): 

    ========== MISS (GET) BasicCache

    https://forums.spacebattles.com/threads/dao-of-the-deal-xianxia.1017549/threadmarks?threadmark_category=19

    FFF: DEBUG: 2022-07-18 02:32:28,871: fetcher.py(469): 

    ---------- REQ (GET) RequestsFetcher

    https://forums.spacebattles.com/threads/dao-of-the-deal-xianxia.1017549/threadmarks?threadmark_category=19

    FFF: DEBUG: 2022-07-18 02:32:29,015: fetcher.py(482): response code:200

    FFF: DEBUG: 2022-07-18 02:32:29,016: fetcher.py(156): random sleep(3.00-9.00):5.69

    FFF: DEBUG: 2022-07-18 02:32:34,703: requestable.py(50): Encoding:utf8

    FFF: INFO: 2022-07-18 02:32:36,228: calibre_plugins.fanficfare_plugin.jobs(370): Do update - epub(26) vs url(29)

    FFF: INFO: 2022-07-18 02:32:36,228: calibre_plugins.fanficfare_plugin.jobs(371): write to C:\Users\ADMINI~1\AppData\Local\Temp\2\calibre_c8klnwud\fanficfare_ngkfktbe\bgmeta-4lkh1s2d.epub

    FFF: INFO: 2022-07-18 02:32:36,271: base_writer.py(183): Save directly to file: C:\Users\ADMINI~1\AppData\Local\Temp\2\calibre_c8klnwud\fanficfare_ngkfktbe\bgmeta-4lkh1s2d.epub

    FFF: DEBUG: 2022-07-18 02:32:40,223: base_xenforoforum_adapter.py(704): Getting chapter text for: https://forums.spacebattles.com/posts/85547607/ index: 25

    FFF: DEBUG: 2022-07-18 02:32:40,224: base_xenforoforum_adapter.py(715): Using reader mode

    FFF: DEBUG: 2022-07-18 02:32:40,226: fetcher.py(234): 

    ========== MISS (GET) BasicCache

    https://forums.spacebattles.com/threads/dao-of-the-deal-xianxia.1017549/reader/page-3?threadmark_category=1

    FFF: DEBUG: 2022-07-18 02:32:40,227: fetcher.py(469): 

    ---------- REQ (GET) RequestsFetcher

    https://forums.spacebattles.com/threads/dao-of-the-deal-xianxia.1017549/reader/page-3?threadmark_category=1

    FFF: DEBUG: 2022-07-18 02:32:40,450: fetcher.py(482): response code:200

    FFF: DEBUG: 2022-07-18 02:32:40,451: fetcher.py(156): random sleep(3.00-9.00):3.56

    FFF: DEBUG: 2022-07-18 02:32:44,008: requestable.py(50): Encoding:utf8

    FFF: DEBUG: 2022-07-18 02:32:45,216: base_xenforoforum_adapter.py(704): Getting chapter text for: https://forums.spacebattles.com/posts/85593540/ index: 26

    FFF: DEBUG: 2022-07-18 02:32:45,217: base_xenforoforum_adapter.py(715): Using reader mode

    FFF: DEBUG: 2022-07-18 02:32:45,217: base_xenforoforum_adapter.py(735): post found in cache

    FFF: DEBUG: 2022-07-18 02:32:45,387: base_xenforoforum_adapter.py(704): Getting chapter text for: https://forums.spacebattles.com/posts/85640111/ index: 27

    FFF: DEBUG: 2022-07-18 02:32:45,388: base_xenforoforum_adapter.py(715): Using reader mode

    FFF: DEBUG: 2022-07-18 02:32:45,388: base_xenforoforum_adapter.py(735): post found in cache

    FFF: INFO: 2022-07-18 02:32:45,557: writer_epub.py(360): Saving EPUB Version 2.0

    FFF: DEBUG: 2022-07-18 02:32:48,187: calibre_plugins.fanficfare_plugin.wordcount(60):   Word count - count_words method:72031

    FFF: INFO: 2022-07-18 02:32:48,189: base_writer.py(183): Save directly to file: C:\Users\ADMINI~1\AppData\Local\Temp\2\calibre_c8klnwud\fanficfare_ngkfktbe\bgmeta-4lkh1s2d.epub

    FFF: INFO: 2022-07-18 02:32:48,193: writer_epub.py(360): Saving EPUB Version 2.0

    FFF: INFO: 2022-07-18 02:32:49,532: calibre_plugins.fanficfare_plugin.jobs(142): 

    Download Results:

    Add https://forums.spacebattles.com/threads/dao-of-the-deal-xianxia.1017549/ Update epub completed, added 3 chapters for 29 total.

    FFF: INFO: 2022-07-18 02:32:49,532: calibre_plugins.fanficfare_plugin.jobs(166): 

    Add

    https://forums.spacebattles.com/threads/dao-of-the-deal-xianxia.1017549/

get_library_config - start
get_library_config - start
QueueProgressDialog - self.input_order= ['epub', 'azw3', 'mobi', 'lit', 'prc', 'fb2', 'html', 'htm', 'xhtm', 'shtml', 'xhtml', 'zip', 'docx', 'odt', 'rtf', 'pdf', 'txt', 'shtm', 'docm', 'updb', 'pobi', 'kfx', 'djvu', 'htmlz', 'azw', 'kfx-zip', 'tcr', 'azw8', 'pml', 'azw4', 'rar', 'fbz', 'recipe', 'downloaded_recipe', 'md', 'chm', 'cbc', 'cbz', 'lrf', 'markdown', 'cbr', 'textile', 'pdb', 'opf', 'snb', 'kpf', 'djv', 'text', 'rb', 'txtz', 'pmlz']
For book 'Dao of the Deal', using format epub
Worker Launch took: 0.01 seconds
Worker Launch took: 0.05 seconds
Job: 1 Count Page/Word Statistics finisheCount Page/Word Statistics

    Failed to initialize plugin: 'C:\\Users\\Administrator\\AppData\\Roaming\\calibre\\plugins\\Comicvine.zip'

    Failed to initialize plugin: 'C:\\Users\\Administrator\\AppData\\Roaming\\calibre\\plugins\\FictionDB.zip'

    Failed to initialize plugin: 'C:\\Users\\Administrator\\AppData\\Roaming\\calibre\\plugins\\Goodreads More Tags.zip'

    Failed to initialize plugin: 'C:\\Users\\Administrator\\AppData\\Roaming\\calibre\\plugins\\Kindle hi-res covers.zip'

    do_count_statistics - book_path=C:\Users\ADMINI~1\AppData\Local\Temp\2\calibre_c8klnwud\av4bn6bn_count_pages\561.epub, pages_algorithm=0, page_count_mode=Estimate, statistics_to_run=['PageCount', 'FleschReading', 'FleschGrade', 'GunningFog'], custom_chars_per_page=1500, icu_wordcount=True

    do_count_statistics - job started for file book_path=C:\Users\ADMINI~1\AppData\Local\Temp\2\calibre_c8klnwud\av4bn6bn_count_pages\561.epub

    -------------------------------

    Logfile for book ID 561 (Dao of the Deal)

        Method of counting _page_count_mode=Estimate _download_sources=[]

        results= {'PageCount': 182, 'FleschReading': 83.85535731195829, 'FleschGrade': 5.567431003189082, 'GunningFog': 10.018545164970366}

        Found 182 pages

        Computed 83.9 Flesch Reading

        Computed 5.6 Flesch-Kincaid Grade

        Computed 10.0 Gunning Fog Index

    561

    Failed to initialize plugin: 'C:\\Users\\Administrator\\AppData\\Roaming\\calibre\\plugins\\Comicvine.zip'

    Failed to initialize plugin: 'C:\\Users\\Administrator\\AppData\\Roaming\\calibre\\plugins\\FictionDB.zip'

    Failed to initialize plugin: 'C:\\Users\\Administrator\\AppData\\Roaming\\calibre\\plugins\\Goodreads More Tags.zip'

    Failed to initialize plugin: 'C:\\Users\\Administrator\\AppData\\Roaming\\calibre\\plugins\\Kindle hi-res covers.zip'

    do_statistics_for_book:  C:\Users\ADMINI~1\AppData\Local\Temp\2\calibre_c8klnwud\av4bn6bn_count_pages\561.epub 0 Estimate [] ['PageCount', 'FleschReading', 'FleschGrade', 'GunningFog'] 1500 True

        Estimated accurate page count

          Lines: 4966  Divs: 39  Paras: 1

          Accurate count: 160  Fast count: 182

        Page count: 182

        Results of NLTK text analysis:

          Number of characters: 330443

          Number of words: 76691

          Number of sentences: 4758

          Number of syllables: 96652

          Number of complex words: 6847

          Average words per sentence: 16.118327028163094

    For this book, using language=eng

        Flesch Reading Ease: 83.85535731195829

        Flesch Kincade Grade: 5.567431003189082

        Gunning Fog: 10.018545164970366

Job: 2 Convert book 1 of 1 (Dao of the Deal) finished
Convert book 1 of 1 (Dao of the Deal)

    Failed to initialize plugin: 'C:\\Users\\Administrator\\AppData\\Roaming\\calibre\\plugins\\Comicvine.zip'

    Failed to initialize plugin: 'C:\\Users\\Administrator\\AppData\\Roaming\\calibre\\plugins\\FictionDB.zip'

    Failed to initialize plugin: 'C:\\Users\\Administrator\\AppData\\Roaming\\calibre\\plugins\\Goodreads More Tags.zip'

    Failed to initialize plugin: 'C:\\Users\\Administrator\\AppData\\Roaming\\calibre\\plugins\\Kindle hi-res covers.zip'

    DeDRM v7.0.0: Trying to decrypt uqx_l1of.epub
    DeDRM v7.0.0: Verifying zip archive integrity
    DeDRM v7.0.0: “uqx_l1of.epub” is neither an Adobe Adept nor a Barnes & Noble encrypted ePub
    Running file type plugin DeDRM failed with traceback:

    Traceback (most recent call last):

      File "calibre\customize\ui.py", line 175, in _run_filetype_plugins

      File "calibre_plugins.dedrm.__init__", line 638, in run

      File "calibre_plugins.dedrm.__init__", line 414, in ePubDecrypt

    calibre_plugins.dedrm.DeDRMError: DeDRM v7.0.0: Couldn't decrypt after 0.2 seconds. DRM free perhaps?

    Conversion options changed from defaults:

      read_metadata_from_opf: 'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\2\\calibre_c8klnwud\\qd5y4x39.opf'

      verbose: 2

      output_profile: 'tablet'

    Resolved conversion options

    calibre version: 6.1.0

    {'asciiize': False,

     'author_sort': None,

     'authors': None,

     'base_font_size': 0.0,

     'book_producer': None,

     'change_justification': 'original',

     'chapter': "//*[((name()='h1' or name()='h2') and re:test(., "

                "'\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', "

                "'i')) or @class = 'chapter']",

     'chapter_mark': 'pagebreak',

     'comments': None,

     'cover': None,

     'debug_pipeline': None,

     'dehyphenate': True,

     'delete_blank_paragraphs': True,

     'disable_font_rescaling': False,

     'dont_compress': False,

     'duplicate_links_in_toc': False,

     'embed_all_fonts': False,

     'embed_font_family': None,

     'enable_heuristics': False,

     'expand_css': False,

     'extra_css': None,

     'extract_to': None,

     'filter_css': '',

     'fix_indents': True,

     'font_size_mapping': None,

     'format_scene_breaks': True,

     'html_unwrap_factor': 0.4,

     'input_encoding': None,

     'input_profile': <calibre.customize.profiles.InputProfile object at 0x00000214E45C5A50>,

     'insert_blank_line': False,

     'insert_blank_line_size': 0.5,

     'insert_metadata': False,

     'isbn': None,

     'italicize_common_cases': True,

     'keep_ligatures': False,

     'language': None,

     'level1_toc': None,

     'level2_toc': None,

     'level3_toc': None,

     'line_height': 0.0,

     'linearize_tables': False,

     'margin_bottom': 5.0,

     'margin_left': 5.0,

     'margin_right': 5.0,

     'margin_top': 5.0,

     'markup_chapter_headings': True,

     'max_toc_links': 50,

     'minimum_line_height': 120.0,

     'mobi_toc_at_start': False,

     'no_chapters_in_toc': False,

     'no_inline_navbars': False,

     'no_inline_toc': False,

     'output_profile': <calibre.customize.profiles.TabletOutput object at 0x00000214E45C60E0>,

     'page_breaks_before': '/',

     'prefer_author_sort': False,

     'prefer_metadata_cover': False,

     'pretty_print': False,

     'pubdate': None,

     'publisher': None,

     'rating': None,

     'read_metadata_from_opf': 'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\2\\calibre_c8klnwud\\qd5y4x39.opf',

     'remove_fake_margins': True,

     'remove_first_image': False,

     'remove_paragraph_spacing': False,

     'remove_paragraph_spacing_indent_size': 1.5,

     'renumber_headings': True,

     'replace_scene_breaks': '',

     'search_replace': '[]',

     'series': None,

     'series_index': None,

     'share_not_sync': False,

     'smarten_punctuation': False,

     'sr1_replace': None,

     'sr1_search': None,

     'sr2_replace': None,

     'sr2_search': None,

     'sr3_replace': None,

     'sr3_search': None,

     'start_reading_at': None,

     'subset_embedded_fonts': False,

     'tags': None,

     'timestamp': None,

     'title': None,

     'title_sort': None,

     'toc_filter': None,

     'toc_threshold': 6,

     'toc_title': None,

     'transform_css_rules': '[]',

     'transform_html_rules': '[]',

     'unsmarten_punctuation': False,

     'unwrap_lines': True,

     'use_auto_toc': False,

     'verbose': 2}

    DeDRM v7.0.0: Trying to decrypt uqx_l1of.epub
    DeDRM v7.0.0: Verifying zip archive integrity
    DeDRM v7.0.0: “uqx_l1of.epub” is neither an Adobe Adept nor a Barnes & Noble encrypted ePub
    Running file type plugin DeDRM failed with traceback:

    Traceback (most recent call last):

      File "calibre\customize\ui.py", line 175, in _run_filetype_plugins

      File "calibre_plugins.dedrm.__init__", line 638, in run

      File "calibre_plugins.dedrm.__init__", line 414, in ePubDecrypt

    calibre_plugins.dedrm.DeDRMError: DeDRM v7.0.0: Couldn't decrypt after 0.1 seconds. DRM free perhaps?

    InputFormatPlugin: EPUB Input running

    on C:\Users\ADMINI~1\AppData\Local\Temp\2\calibre_c8klnwud\uqx_l1of.epub

    Parsing all content...

    Parsing OEBPS/file0007.xhtml ...

    Parsing OEBPS/file0014.xhtml ...

    Parsing OEBPS/file0005.xhtml ...

    Parsing OEBPS/file0020.xhtml ...

    Parsing OEBPS/file0024.xhtml ...

    Parsing OEBPS/file0028.xhtml ...

    Parsing OEBPS/file0013.xhtml ...

    Parsing OEBPS/title_page.xhtml ...

    Parsing OEBPS/file0004.xhtml ...

    Parsing OEBPS/file0011.xhtml ...

    Parsing OEBPS/file0017.xhtml ...

    Parsing OEBPS/file0019.xhtml ...

    Parsing OEBPS/file0023.xhtml ...

    Parsing OEBPS/file0027.xhtml ...

    Parsing OEBPS/file0010.xhtml ...

    Parsing OEBPS/file0016.xhtml ...

    Parsing OEBPS/file0001.xhtml ...

    Parsing OEBPS/stylesheet.css ...

    Parsing OEBPS/file0008.xhtml ...

    Parsing OEBPS/file0009.xhtml ...

    Parsing OEBPS/file0012.xhtml ...

    Parsing OEBPS/file0022.xhtml ...

    Parsing OEBPS/file0026.xhtml ...

    Parsing OEBPS/file0002.xhtml ...

    Parsing OEBPS/file0003.xhtml ...

    Parsing OEBPS/file0006.xhtml ...

    Parsing OEBPS/file0015.xhtml ...

    Parsing OEBPS/file0018.xhtml ...

    Parsing OEBPS/file0021.xhtml ...

    Parsing OEBPS/file0025.xhtml ...

    Parsing OEBPS/file0029.xhtml ...

    Reading TOC from NCX...

    Merging user specified metadata...

    Detecting structure...

    Flattening CSS and remapping font sizes...

    Source base font size is 12.00000pt

    Removing fake margins...

    Found 30 items of level: div_1

    Found 8 items of level: div_2

    div_1  left margin stats: Counter()

    div_1  right margin stats: Counter()

    div_2  left margin stats: Counter()

    div_2  right margin stats: Counter()

    Cleaning up manifest...

    Trimming unused files from manifest...

    Creating AZW3 Output...

    Serializing resources...

    Splitting markup on page breaks and flow limits, if any...

    Creating KF8 output

        Generating in-line ToC

        Generating KF8 markup...

        Compressing markup...

        Creating indices...

    AZW3 output written to C:\Users\ADMINI~1\AppData\Local\Temp\2\calibre_c8klnwud\v6adro2w.azw3

About to refresh GUI - book_ids_to_update= [561, 561, 561, 561]
plugin Save Composite Custom Columns library D:\Literary\Webfiction: updated 461 books in 0:00:02.347283
JimmXinu commented 2 years ago

I'll leave this issue open for now, but I don't think I'm not going to be able to do anything about it.

For those of us who didn't know off hand, RDP is Remote Desktop Protocol, a proprietary Microsoft protocol for remote access. I don't actually know anything about RDP, nor do I have a suitable setup for testing with it.

The only thing FFF does with color palette/theme is look for it and change some colors with:

    if( hasattr(QApplication.instance(),'is_dark_theme') 
        and QApplication.instance().is_dark_theme ):

And that code is only called when you open the personal.ini editor or view the download log.

My only idea is setting your Calibre "Color palette" to Dark explicitly instead of System Default.

Chirishman commented 2 years ago

My only idea is setting your Calibre "Color palette" to Dark explicitly instead of System Default.

That's the thing unfortunately, it already is set explicitly to Dark...

Chirishman commented 2 years ago

I found another way to trigger the behavior: Using the bulk metadata editor and then doing the RDP Disconnect/Reconnect.

Now to go report it on the Calibre repo...