View Single Post
Old 01-02-2024, 05:45 AM   #19
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,649
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Quote:
Originally Posted by kovidgoyal View Post
Should be easy enough to trace

put a

traceback.print_stack()

in the __init__ method of Cache in db/cache.py

See what is allocating the db.
No information added, different __init__ but not one near the request that is resetting the function:

Spoiler:
[' File "runpy.py", line 198, in _run_module_as_main\n', ' File "runpy.py", line 88, in _run_code\n', ' File "site.py", line 95, in <module>\n', ' File "site.py", line 90, in main\n', ' File "site.py", line 50, in run_entry_point\n', ' File "C:\\git\\calibre\\src\\calibre\\debug.py", line 231, in main\n', ' File "C:\\git\\calibre\\src\\calibre\\gui_launch.py ", line 73, in calibre\n', ' File "C:\\git\\calibre\\src\\calibre\\gui2\\main.py ", line 552, in main\n', ' File "C:\\git\\calibre\\src\\calibre\\gui2\\main.py ", line 564, in run_main\n', ' File "C:\\git\\calibre\\src\\calibre\\gui2\\main.py ", line 402, in run_gui\n', ' File "C:\\git\\calibre\\src\\calibre\\gui2\\main.py ", line 418, in run_gui_\n', ' File "C:\\git\\calibre\\src\\calibre\\gui2\\main.py ", line 376, in initialize\n', ' File "C:\\git\\calibre\\src\\calibre\\gui2\\main.py ", line 355, in initialize_db\n', ' File "C:\\git\\calibre\\src\\calibre\\gui2\\main.py ", line 312, in initialize_db_stage2\n', ' File "C:\\git\\calibre\\src\\calibre\\gui2\\main.py ", line 260, in start_gui\n', ' File "C:\\git\\calibre\\src\\calibre\\gui2\\ui.py", line 446, in post_initialize_actions\n', ' File "C:\\git\\calibre\\src\\calibre\\db\\cache.py" , line 2802, in __del__\n', ' File "C:\\git\\calibre\\src\\calibre\\db\\cache.py" , line 2840, in close\n', ' File "C:\\git\\calibre\\src\\calibre\\db\\backend.p y", line 1363, in close\n', ' File "C:\\git\\calibre\\src\\calibre\\utils\\formatter_ functions.py", line 2762, in unload_user_template_functions\n', ' File "C:\\git\\calibre\\src\\calibre\\utils\\formatter_ functions.py", line 109, in unregister_functions\n', ' File "C:\\git\\calibre\\src\\calibre\\utils\\formatter_ functions.py", line 102, in _register_functions\n']


Sorry for the format, but it's the only way to put at the proper point in windows.
Terisa de morgan is offline   Reply With Quote