Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-09-2017, 02:48 PM   #1
Fiat_Lux
Addict
Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.
 
Fiat_Lux's Avatar
 
Posts: 393
Karma: 6700000
Join Date: Jan 2012
Location: Gimel
Device: tablets
Very slow shutdown

All:

In shutting down Calibre, my current practice is to:
  • Click the close button;
  • Wait fifteen minutes;
  • Reboot the system (Windows)/run "kill -9 ####" (Linux)

Any suggestions on what to do, so I don't have to reboot the system/kill the process, to ensure that Calibre shuts down with in a reasonable amount of time.

FWIW, start up time is around 5 minutes.


Amber
Fiat_Lux is offline   Reply With Quote
Old 03-09-2017, 03:05 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,970
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Try starting Windows in safe mode and seeing if Calibre works as it should. If it does work, then the problem is with something you run when the system starts.
JSWolf is offline   Reply With Quote
Old 03-09-2017, 03:08 PM   #3
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@Fiat_Lux - try running calibre with the --ignore-plugins switch, see ==>> Command Line Interface

If that improves shut down times disable any "Library Closed Plugins".

Those start/stop times are atrocious, what sort of computer - a DEC Rainbow PC with a couple of DECTapes for mass storage?

Added:

Quote:
Originally Posted by Fiat_Lux View Post
Reboot the system (Windows)/run "kill -9 ####" (Linux)
That makes me wonder if you're using some sort of VM environment - what happens if you run calibre in native Windows or Linux.

BR

Last edited by BetterRed; 03-09-2017 at 03:17 PM.
BetterRed is online now   Reply With Quote
Old 03-09-2017, 03:17 PM   #4
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,082
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by Fiat_Lux View Post
All:

In shutting down Calibre, my current practice is to:
  • Click the close button;
  • Wait fifteen minutes;
  • Reboot the system (Windows)/run "kill -9 ####" (Linux)

Any suggestions on what to do, so I don't have to reboot the system/kill the process, to ensure that Calibre shuts down with in a reasonable amount of time.

FWIW, start up time is around 5 minutes.


Amber
First what operating system are you using?
Second Please post the results of starting calibre in debug mode.

Code:
calibre-debug -g
https://manual.calibre-ebook.com/gen...bre-debug.html


bernie
gbm is offline   Reply With Quote
Old 03-09-2017, 05:13 PM   #5
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
You could create a brand new library, switch to that library, then see if Calibre shuts down and restarts much faster. If you have not vacuumed/compressed your Calibre library in a long time, its metadata.db file might have grown enormously simply due to the way that SQLite works when you change metadata, and irrespective of your adding new books. Library > Library Maintenance > Check Library. Calibre will vacuum/compress it for you.


DaltonST
DaltonST is offline   Reply With Quote
Old 03-10-2017, 05:17 AM   #6
Fiat_Lux
Addict
Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.
 
Fiat_Lux's Avatar
 
Posts: 393
Karma: 6700000
Join Date: Jan 2012
Location: Gimel
Device: tablets
Quote:
Originally Posted by gbm View Post
First what operating system are you using?
  • Windows 7
  • Linux
Neither is running on VM.

Quote:
Second Please post the results of starting calibre in debug mode.
The following is from a different user login, and after vacuuming the database.
There are no extensions installed for Calibre, on this user login.
Code:
calibre-debug -g
calibre 2.80  embedded-python: True is64bit: True
Linux-4.7.0-0.bpo.1-amd64-x86_64-with-debian-8.7 Linux ('64bit', 'ELF')
('Linux', '4.7.0-0.bpo.1-amd64', '#1 SMP MX 4.7.8-1mx16+3 (2017-02-23)')
Python 2.7.9
Linux: ('debian', '8.7', '')
devicePixelRatio: 1.0
logicalDpi: 95.9370491803 x 95.8490566038
physicalDpi: 98.5212121212 x 96.7619047619
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: Permission denied
Starting up...
Amber
Fiat_Lux is offline   Reply With Quote
Old 03-10-2017, 05:50 AM   #7
Fiat_Lux
Addict
Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.
 
Fiat_Lux's Avatar
 
Posts: 393
Karma: 6700000
Join Date: Jan 2012
Location: Gimel
Device: tablets
And using my usual Linux login, which has installed extensions.
From startup to shut down.

Code:
calibre 2.80  embedded-python: True is64bit: True
Linux-4.7.0-0.bpo.1-amd64-x86_64-with-debian-8.7 Linux ('64bit', 'ELF')
('Linux', '4.7.0-0.bpo.1-amd64', '#1 SMP MX 4.7.8-1mx16+3 (2017-02-23)')
Python 2.7.9
Linux: ('debian', '8.7', '')
DEBUG:    0.0 GetFileName::__init__.py - loading translations
DEBUG:    0.0 GetFileName::__init__.py - loading translations
Successfully initialized third party plugins: iOS reader applications (1, 4, 7, 0, 0) && English Noun Frequency (1, 0, 6) && EpubCheck (0, 1, 1) && Unplugged (1, 0, 0) && KindleUnpack - The Plugin (0, 81, 4) && Manage Series (1, 2, 8) && Library Codes (1, 0, 27) && Job Spy (1, 0, 53) && User Category (1, 5, 3) && ADLIBRIS_NO (0, 0, 9) && Biblionet_gr (1, 1, 0) && Annotations (1, 4, 11) && Quality Check (1, 9, 11) && View Manager (1, 3, 2) && Diaps Editing Toolbag (0, 3, 4) && QRCode Tracker Filidel (0, 7, 0) && Extract ISBN (1, 4, 4) && Kobo Books (1, 1, 0) && Goodreads (1, 1, 12) && Similar Stories (1, 0, 58) && Medical Reader (1, 0, 1) && Save To Format (0, 0, 6) && Read MP3 AudioBook metadata (1, 0, 79) && SmartEject (2, 0, 6) && Media File Importer (1, 0, 16) && Fantastic Fiction Adults (1, 0, 4) && Barnes & Noble (1, 2, 14) && ADLIBRIS_SE (0, 2, 3) && Modify ePub (1, 3, 13) && APNX Generator (1, 1, 0) && KePub Metadata Reader (2, 7, 1) && Chinese Text Conversion (2, 1, 0) && FanFicFare (2, 9, 0) && GetFileName (0, 0, 12) && Author Book Count (2, 1, 4) && Embed Comic Metadata (1, 3, 4) && FictionDB (1, 0, 10) && Fantastic Fiction (1, 1, 6) && Save Composite Custom Columns (1, 1, 0) && Beam Ebooks (1, 0, 0) && Wiki Reader (2, 1, 0) && Resize Cover (1, 0, 2) && EpubSplit (2, 2, 0) && Count Pages (1, 7, 0) && Recipe Reader (1, 0, 1) && EpubMerge (2, 1, 0) && Copy Cover To Device (2, 0, 0) && Clean Metadata (0, 0, 6) && Author Book Count Hierarchy (1, 1, 6) && Generate Cover (1, 5, 21) && Hymn Reader (1, 0, 1) && Search The Internet (1, 7, 6) && Find Duplicates (1, 6, 2) && BBC GoodFood Recipe Reader (1, 1, 0) && NormComment (0, 0, 2) && Reading List (1, 6, 6) && MultiColumnSearch (1, 0, 69) && X-Ray Creator (3, 0, 4) && Ex Libris (1, 0, 19) && Prettify Cover (0, 9, 7) && INMONDADORI (0, 2, 1) && Amazon.com Multiple Countries (1, 0, 0) && Skoob (1, 2, 1) && Webscription (1, 1, 0)
devicePixelRatio: 1.0
logicalDpi: 95.9370491803 x 95.8490566038
physicalDpi: 98.5212121212 x 96.7619047619
Starting up...
Traceback (most recent call last):
  File "site-packages/calibre/gui2/ui.py", line 158, in __init__
  File "site-packages/calibre/gui2/ui.py", line 172, in init_iaction
  File "site-packages/calibre/customize/__init__.py", line 612, in load_actual_plugin
  File "importlib/__init__.py", line 37, in import_module
  File "site-packages/calibre/customize/zipplugin.py", line 183, in load_module
  File "calibre_plugins.similar_stories.action", line 12, in <module>
ImportError: No module named PyQt4.Qt
Traceback (most recent call last):
  File "site-packages/calibre/gui2/ui.py", line 158, in __init__
  File "site-packages/calibre/gui2/ui.py", line 172, in init_iaction
  File "site-packages/calibre/customize/__init__.py", line 612, in load_actual_plugin
  File "importlib/__init__.py", line 37, in import_module
  File "site-packages/calibre/customize/zipplugin.py", line 183, in load_module
  File "calibre_plugins.apnx_generator.apnxaction", line 14, in <module>
ImportError: No module named PyQt4.Qt
Traceback (most recent call last):
  File "site-packages/calibre/gui2/ui.py", line 158, in __init__
  File "site-packages/calibre/gui2/ui.py", line 172, in init_iaction
  File "site-packages/calibre/customize/__init__.py", line 612, in load_actual_plugin
  File "importlib/__init__.py", line 37, in import_module
  File "site-packages/calibre/customize/zipplugin.py", line 183, in load_module
  File "calibre_plugins.bbcgf_ebook.ui", line 17, in <module>
  File "site-packages/calibre/customize/zipplugin.py", line 183, in load_module
  File "calibre_plugins.bbcgf_ebook.main", line 17, in <module>
ImportError: No module named PyQt4.Qt
DEBUG:    0.0 NormComment::action.py - loading translations
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
library being initialized for js settings:  /media/toki/HITACHI/C/Calibre Library
Calibre, and hence Job Spy, was gracefully shut down last time?  False
Last time daemon started:  never
Last time daemon failed:  never
Total daemon starts inception_to_date:  0
Total daemon failures inception-to-date:  0
libpng warning: iCCP: known incorrect sRGB profile
Job Spy has finished initialization...
libpng warning: iCCP: known incorrect sRGB profile
FFF: INFO: 2017-03-10 10:40:37,691: calibre_plugins.fanficfare_plugin.prefs(202): Attempting to read settings from predecessor--FFDL
FFF: INFO: 2017-03-10 10:40:37,722: calibre_plugins.fanficfare_plugin.prefs(207): Using default settings
FFF: DEBUG: 2017-03-10 10:40:37,935: calibre_plugins.fanficfare_plugin.fff_plugin(207): Plugin FanFicFare macmenuhack file_path:/home/toki/.config/calibre/plugins/fanficfare_macmenuhack.txt
EpubMerge: DEBUG: 2017-03-10 10:40:40,213: calibre_plugins.epubmerge.epubmerge_plugin(152): macmenuhack file_path:/home/toki/.config/calibre/plugins/fanficfare_macmenuhack.txt
MCS has finished initialization...
Started up in 310.07 seconds with 156411 books
ERROR:dbus.proxies:Introspect error on :1.44:/org/freedesktop/NetworkManager: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
MFI self.tmp_directory never used; returning True for shutdown.
Traceback (most recent call last):
  File "site-packages/calibre/utils/formatter.py", line 528, in safe_format
  File "site-packages/calibre/utils/formatter.py", line 499, in evaluate
  File "string.py", line 543, in vformat
  File "string.py", line 576, in _vformat
  File "site-packages/calibre/utils/formatter.py", line 446, in format_field
  File "site-packages/calibre/utils/formatter.py", line 403, in _eval_program
  File "site-packages/calibre/utils/formatter.py", line 185, in __init__
  File "site-packages/calibre/utils/formatter.py", line 47, in error
ValueError: Formatter: failed to scan program. Invalid input ' ) , $) near  (
Error evaluating column named: #testcompare
Traceback (most recent call last):
  File "site-packages/calibre/utils/formatter.py", line 528, in safe_format
  File "site-packages/calibre/utils/formatter.py", line 499, in evaluate
  File "string.py", line 543, in vformat
  File "string.py", line 576, in _vformat
  File "site-packages/calibre/utils/formatter.py", line 446, in format_field
  File "site-packages/calibre/utils/formatter.py", line 404, in _eval_program
  File "site-packages/calibre/utils/formatter.py", line 197, in program
  File "site-packages/calibre/utils/formatter.py", line 210, in statement
  File "site-packages/calibre/utils/formatter.py", line 281, in expr
  File "site-packages/calibre/utils/formatter.py", line 210, in statement
  File "site-packages/calibre/utils/formatter.py", line 286, in expr
  File "site-packages/calibre/utils/formatter.py", line 47, in error
ValueError: Formatter: missing closing parenthesis near  Barbo
Error evaluating column named: #testauthor
Traceback (most recent call last):
  File "site-packages/calibre/utils/formatter.py", line 528, in safe_format
  File "site-packages/calibre/utils/formatter.py", line 499, in evaluate
  File "string.py", line 543, in vformat
  File "string.py", line 576, in _vformat
  File "site-packages/calibre/utils/formatter.py", line 446, in format_field
  File "site-packages/calibre/utils/formatter.py", line 403, in _eval_program
  File "site-packages/calibre/utils/formatter.py", line 185, in __init__
  File "site-packages/calibre/utils/formatter.py", line 47, in error
ValueError: Formatter: failed to scan program. Invalid input ' ) , $) near  (
Error evaluating column named: #testauthor
Traceback (most recent call last):
  File "site-packages/calibre/utils/formatter.py", line 528, in safe_format
  File "site-packages/calibre/utils/formatter.py", line 499, in evaluate
  File "string.py", line 543, in vformat
  File "string.py", line 576, in _vformat
  File "site-packages/calibre/utils/formatter.py", line 446, in format_field
  File "site-packages/calibre/utils/formatter.py", line 404, in _eval_program
  File "site-packages/calibre/utils/formatter.py", line 197, in program
  File "site-packages/calibre/utils/formatter.py", line 210, in statement
  File "site-packages/calibre/utils/formatter.py", line 281, in expr
  File "site-packages/calibre/utils/formatter.py", line 210, in statement
  File "site-packages/calibre/utils/formatter.py", line 286, in expr
  File "site-packages/calibre/utils/formatter.py", line 47, in error
ValueError: Formatter: missing closing parenthesis near  s
Error evaluating column named: #testauthor
Traceback (most recent call last):
  File "site-packages/calibre/utils/formatter.py", line 528, in safe_format
  File "site-packages/calibre/utils/formatter.py", line 499, in evaluate
  File "string.py", line 543, in vformat
  File "string.py", line 576, in _vformat
  File "site-packages/calibre/utils/formatter.py", line 446, in format_field
  File "site-packages/calibre/utils/formatter.py", line 403, in _eval_program
  File "site-packages/calibre/utils/formatter.py", line 185, in __init__
  File "site-packages/calibre/utils/formatter.py", line 47, in error
ValueError: Formatter: failed to scan program. Invalid input ' ) , $) near  (
Error evaluating column named: #testcompare
Traceback (most recent call last):
  File "site-packages/calibre/utils/formatter.py", line 528, in safe_format
  File "site-packages/calibre/utils/formatter.py", line 499, in evaluate
  File "string.py", line 543, in vformat
  File "string.py", line 576, in _vformat
  File "site-packages/calibre/utils/formatter.py", line 446, in format_field
  File "site-packages/calibre/utils/formatter.py", line 403, in _eval_program
  File "site-packages/calibre/utils/formatter.py", line 185, in __init__
  File "site-packages/calibre/utils/formatter.py", line 47, in error
ValueError: Formatter: failed to scan program. Invalid input ' ) , $) near  (
Error evaluating column named: #testcompare
Traceback (most recent call last):
  File "site-packages/calibre/utils/formatter.py", line 528, in safe_format
  File "site-packages/calibre/utils/formatter.py", line 499, in evaluate
  File "string.py", line 543, in vformat
  File "string.py", line 576, in _vformat
  File "site-packages/calibre/utils/formatter.py", line 446, in format_field
  File "site-packages/calibre/utils/formatter.py", line 403, in _eval_program
  File "site-packages/calibre/utils/formatter.py", line 185, in __init__
  File "site-packages/calibre/utils/formatter.py", line 47, in error
ValueError: Formatter: failed to scan program. Invalid input ' ) , $) near  (
Error evaluating column named: #testcompare
Traceback (most recent call last):
  File "site-packages/calibre/utils/formatter.py", line 528, in safe_format
  File "site-packages/calibre/utils/formatter.py", line 499, in evaluate
  File "string.py", line 543, in vformat
  File "string.py", line 576, in _vformat
  File "site-packages/calibre/utils/formatter.py", line 446, in format_field
  File "site-packages/calibre/utils/formatter.py", line 403, in _eval_program
  File "site-packages/calibre/utils/formatter.py", line 185, in __init__
  File "site-packages/calibre/utils/formatter.py", line 47, in error
ValueError: Formatter: failed to scan program. Invalid input ' ) , $) near  (
Error evaluating column named: #testcompare
Traceback (most recent call last):
  File "site-packages/calibre/utils/formatter.py", line 528, in safe_format
  File "site-packages/calibre/utils/formatter.py", line 499, in evaluate
  File "string.py", line 543, in vformat
  File "string.py", line 576, in _vformat
  File "site-packages/calibre/utils/formatter.py", line 446, in format_field
  File "site-packages/calibre/utils/formatter.py", line 403, in _eval_program
  File "site-packages/calibre/utils/formatter.py", line 185, in __init__
  File "site-packages/calibre/utils/formatter.py", line 47, in error
ValueError: Formatter: failed to scan program. Invalid input ' ) , $) near  (
Error evaluating column named: #testcompare
Traceback (most recent call last):
  File "site-packages/calibre/utils/formatter.py", line 528, in safe_format
  File "site-packages/calibre/utils/formatter.py", line 499, in evaluate
  File "string.py", line 543, in vformat
  File "string.py", line 576, in _vformat
  File "site-packages/calibre/utils/formatter.py", line 446, in format_field
  File "site-packages/calibre/utils/formatter.py", line 403, in _eval_program
  File "site-packages/calibre/utils/formatter.py", line 185, in __init__
  File "site-packages/calibre/utils/formatter.py", line 47, in error
ValueError: Formatter: failed to scan program. Invalid input ' ) , $) near  (
Error evaluating column named: #testcompare
Traceback (most recent call last):
  File "site-packages/calibre/utils/formatter.py", line 528, in safe_format
  File "site-packages/calibre/utils/formatter.py", line 499, in evaluate
  File "string.py", line 543, in vformat
  File "string.py", line 576, in _vformat
  File "site-packages/calibre/utils/formatter.py", line 446, in format_field
  File "site-packages/calibre/utils/formatter.py", line 403, in _eval_program
  File "site-packages/calibre/utils/formatter.py", line 185, in __init__
  File "site-packages/calibre/utils/formatter.py", line 47, in error
ValueError: Formatter: failed to scan program. Invalid input ' ) , $) near  (
Error evaluating column named: #testcompare
Traceback (most recent call last):
  File "site-packages/calibre/utils/formatter.py", line 528, in safe_format
  File "site-packages/calibre/utils/formatter.py", line 499, in evaluate
  File "string.py", line 543, in vformat
  File "string.py", line 576, in _vformat
  File "site-packages/calibre/utils/formatter.py", line 446, in format_field
  File "site-packages/calibre/utils/formatter.py", line 404, in _eval_program
  File "site-packages/calibre/utils/formatter.py", line 197, in program
  File "site-packages/calibre/utils/formatter.py", line 210, in statement
  File "site-packages/calibre/utils/formatter.py", line 281, in expr
  File "site-packages/calibre/utils/formatter.py", line 210, in statement
  File "site-packages/calibre/utils/formatter.py", line 286, in expr
  File "site-packages/calibre/utils/formatter.py", line 47, in error
ValueError: Formatter: missing closing parenthesis near  Connor
Error evaluating column named: #testauthor
Traceback (most recent call last):
  File "site-packages/calibre/utils/formatter.py", line 528, in safe_format
  File "site-packages/calibre/utils/formatter.py", line 499, in evaluate
  File "string.py", line 543, in vformat
  File "string.py", line 576, in _vformat
  File "site-packages/calibre/utils/formatter.py", line 446, in format_field
  File "site-packages/calibre/utils/formatter.py", line 403, in _eval_program
  File "site-packages/calibre/utils/formatter.py", line 185, in __init__
  File "site-packages/calibre/utils/formatter.py", line 47, in error
ValueError: Formatter: failed to scan program. Invalid input ' ) , $) near  (
Error evaluating column named: #testcompare
Traceback (most recent call last):
  File "site-packages/calibre/utils/formatter.py", line 528, in safe_format
  File "site-packages/calibre/utils/formatter.py", line 499, in evaluate
  File "string.py", line 543, in vformat
  File "string.py", line 576, in _vformat
  File "site-packages/calibre/utils/formatter.py", line 446, in format_field
  File "site-packages/calibre/utils/formatter.py", line 404, in _eval_program
  File "site-packages/calibre/utils/formatter.py", line 197, in program
  File "site-packages/calibre/utils/formatter.py", line 210, in statement
  File "site-packages/calibre/utils/formatter.py", line 281, in expr
  File "site-packages/calibre/utils/formatter.py", line 210, in statement
  File "site-packages/calibre/utils/formatter.py", line 286, in expr
  File "site-packages/calibre/utils/formatter.py", line 47, in error
ValueError: Formatter: missing closing parenthesis near  s
Error evaluating column named: #testauthor
Traceback (most recent call last):
  File "site-packages/calibre/utils/formatter.py", line 528, in safe_format
  File "site-packages/calibre/utils/formatter.py", line 499, in evaluate
  File "string.py", line 543, in vformat
  File "string.py", line 576, in _vformat
  File "site-packages/calibre/utils/formatter.py", line 446, in format_field
  File "site-packages/calibre/utils/formatter.py", line 404, in _eval_program
  File "site-packages/calibre/utils/formatter.py", line 197, in program
  File "site-packages/calibre/utils/formatter.py", line 210, in statement
  File "site-packages/calibre/utils/formatter.py", line 281, in expr
  File "site-packages/calibre/utils/formatter.py", line 210, in statement
  File "site-packages/calibre/utils/formatter.py", line 286, in expr
  File "site-packages/calibre/utils/formatter.py", line 47, in error
ValueError: Formatter: missing closing parenthesis near  s
Error evaluating column named: #testauthor
Killed
Looks like those extensions are the cause of at least some of the long startup/shut down times.

Amber
Fiat_Lux is offline   Reply With Quote
Old 03-10-2017, 06:10 AM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,856
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Run calibre with --ignore-plugins and delete the #testauthor and #testcompare columns which have invalid templates
kovidgoyal is offline   Reply With Quote
Old 03-10-2017, 06:12 AM   #9
Fiat_Lux
Addict
Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.
 
Fiat_Lux's Avatar
 
Posts: 393
Karma: 6700000
Join Date: Jan 2012
Location: Gimel
Device: tablets
And then after running
Code:
sudo calibre-uninstall
cd ~/.config/calibre
rm -R *
cd ..
rmdir calibre
cd
sh updatecalibre.sh
calibre-debug -g
this is what gets displayed
from startup to shutdown.
Code:
calibre 2.81  embedded-python: True is64bit: True
Linux-4.7.0-0.bpo.1-amd64-x86_64-with-debian-8.7 Linux ('64bit', 'ELF')
('Linux', '4.7.0-0.bpo.1-amd64', '#1 SMP MX 4.7.8-1mx16+3 (2017-02-23)')
Python 2.7.9
Linux: ('debian', '8.7', '')
devicePixelRatio: 1.0
logicalDpi: 95.9370491803 x 95.8490566038
physicalDpi: 98.5212121212 x 96.7619047619
QXcbWindow: Unhandled client message: "_GTK_LOAD_ICONTHEMES"
Starting up...
Started up in 74.76 seconds with 156411 books
ERROR:dbus.proxies:Introspect error on :1.44:/org/freedesktop/NetworkManager: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Amber
Fiat_Lux is offline   Reply With Quote
Old 03-10-2017, 07:26 AM   #10
Fiat_Lux
Addict
Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.Fiat_Lux ought to be getting tired of karma fortunes by now.
 
Fiat_Lux's Avatar
 
Posts: 393
Karma: 6700000
Join Date: Jan 2012
Location: Gimel
Device: tablets
I deleted between half a dozen and a dozen custom columns, and startup time is just under two minutes. Shutdown time is under one minute.

To clear out any remaining debris from those custom columns, I am re-vacuuming the database.

The next step will be determine which of the extensions I had installed, I really need, and dispense with the rest.

Amber
Fiat_Lux is offline   Reply With Quote
Old 03-10-2017, 09:18 AM   #11
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,082
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by Fiat_Lux View Post
I deleted between half a dozen and a dozen custom columns, and startup time is just under two minutes. Shutdown time is under one minute.

To clear out any remaining debris from those custom columns, I am re-vacuuming the database.

The next step will be determine which of the extensions I had installed, I really need, and dispense with the rest.

Amber
From your post the following plugin have hot been updated to QT5 and should be uninstalled.
Code:
APNX Generator
BBC GoodFood Recipe Reader
Similar Stories
Listing of plugin's that have been and also not been updated to Qt5.

bernie
gbm is offline   Reply With Quote
Old 03-10-2017, 02:55 PM   #12
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by gbm View Post
From your post the following plugin have hot been updated to QT5 and should be uninstalled.
Code:
APNX Generator
BBC GoodFood Recipe Reader
Similar Stories
Listing of plugin's that have been and also not been updated to Qt5.
ninja'd

Quote:
Originally Posted by Fiat_Lux View Post
The next step will be determine which of the extensions I had installed, I really need, and dispense with the rest.
After removing the 'unnecessary' plugins I would also delete corresponding settings files from the configuration plugins folder - e.g if I removed the Goodreads Sync plugin I'd also delete the Goodreads Sync.json file.

Their presence won't effect performance but if you were to reinstall the plugin next year you would inherit those old settings - which may not work come 2018.

Some plugins store configuration settings in the database, I don't think there's a simple way to remove no longer used library level settings. You could carefully edit them out of the metadata_db_prefs_backup.json file and then run Library Maintenance->Restore database. Two caveats - on a library of 150,000+ books that could take a while - take a copy of the metadata.db and metadata_db_prefs_backup.json files first, in case you break something. See next post.

BR

Last edited by BetterRed; 03-10-2017 at 05:57 PM.
BetterRed is online now   Reply With Quote
Old 03-10-2017, 05:30 PM   #13
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
Job Spy: Purge Library-Specific Plug-in Preferences

Quote:
Some plugins store configuration settings in the database, I don't think there's a simple way to remove no longer used library level settings. You could carefully edit them out of the metadata_db_prefs_backup.json file and then run Library Maintenance->Restore database. Two caveats - on a library of 150,000+ books that could take a while - take a copy of the metadata.db and metadata_db_prefs_backup.json files first, in case you break something.
@Fiat_Lux:

I noted from your Calibre debug log that you have Job Spy installed. So, you already have the GUI Tool that is shown in the attached image. It does easily what the quoted post was referring to.


DaltonST
Attached Thumbnails
Click image for larger version

Name:	js_purge_library_specific_plugin_preferences.jpg
Views:	72
Size:	356.8 KB
ID:	155570  
DaltonST is offline   Reply With Quote
Old 03-10-2017, 05:49 PM   #14
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by DaltonST View Post
@Fiat_Lux:

I noted from your Calibre debug log that you have Job Spy installed. So, you already have the GUI Tool that is shown in the attached image. It does easily what the quoted post was referring to.
That's good to know

BR
BetterRed is online now   Reply With Quote
Reply

Tags
shut down time


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shutdown? Number9 Kobo Reader 1 08-14-2015 08:08 AM
Odyssey Going shutdown after 24h Wilewile Bookeen 11 04-19-2012 03:48 AM
PRS-600 Slow to Shut Down, Slow to Start UniquelyMoi Sony Reader 10 11-29-2010 04:57 PM
calibre - very slow conversion, very slow on PRS cremofix Calibre 3 06-10-2009 04:21 PM
iLiad auto shutdown jboardman iRex Developer's Corner 0 04-29-2009 03:04 PM


All times are GMT -4. The time now is 09:06 PM.


MobileRead.com is a privately owned, operated and funded community.