[Bug 851025] New: calibre crashes on startup - some problem with font directories
https://bugzilla.novell.com/show_bug.cgi?id=851025 https://bugzilla.novell.com/show_bug.cgi?id=851025#c0 Summary: calibre crashes on startup - some problem with font directories Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: Other OS/Version: openSUSE 12.3 Status: NEW Severity: Critical Priority: P5 - None Component: X11 Applications AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: volker3204@paradise.net.nz QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.34 (KHTML, like Gecko) konqueror/4.10.5 Safari/534.34 Traceback (most recent call last): File "/usr/bin/calibre", line 20, in <module> sys.exit(main()) File "/usr/lib64/calibre/calibre/gui2/main.py", line 448, in main gui_debug=gui_debug) File "/usr/lib64/calibre/calibre/gui2/main.py", line 311, in run_gui app.load_builtin_fonts(scan_for_fonts=True) File "/usr/lib64/calibre/calibre/gui2/__init__.py", line 840, in load_builtin_fonts from calibre.utils.fonts.scanner import font_scanner File "/usr/lib64/calibre/calibre/utils/fonts/scanner.py", line 377, in <module> font_scanner = Scanner() File "/usr/lib64/calibre/calibre/utils/fonts/scanner.py", line 115, in __init__ self.folders = folders + font_dirs() + [os.path.join(config_dir, 'fonts'), TypeError: can only concatenate list (not "function") to list Dirty fix to make it start at least: --- /usr/lib64/calibre/calibre/utils/fonts/scanner.py.orig 2013-11-08 16:44:31.000000000 +1300 +++ /usr/lib64/calibre/calibre/utils/fonts/scanner.py 2013-11-19 11:16:13.529323902 +1300 @@ -112,7 +112,7 @@ def __init__(self, folders=[], allowed_extensions={'ttf', 'otf'}): Thread.__init__(self) - self.folders = folders + font_dirs() + [os.path.join(config_dir, 'fonts'), + self.folders = folders + default_font_dirs() + [os.path.join(config_dir, 'fonts'), Also happens with a new empty user login so it's not any user files causing it. The system has a large number of fonts installed in /usr/local, most of them type 1 (which calibre doesn't even seem able to handle) originating from some commercial font DVDs, LaTeX related, and several open source fonts. This has been working for years and no other application has ever complained (though not all can use all fonts). calibre-1.9-180.1.x86_64.rpm calibre-0.9.13-2.2.1.x86_64.rpm from the KED:Extras repo Reproducible: Always Steps to Reproduce: 1. Start from command line to see the error msg. 2. 3. Actual Results: Application crashes on startup before any window is opened. Upstream is not interested in fixing it. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=851025
https://bugzilla.novell.com/show_bug.cgi?id=851025#c1
--- Comment #1 from Volker Kuhlmann
https://bugzilla.novell.com/show_bug.cgi?id=851025
https://bugzilla.novell.com/show_bug.cgi?id=851025#c
Volker Kuhlmann
https://bugzilla.novell.com/show_bug.cgi?id=851025
https://bugzilla.novell.com/show_bug.cgi?id=851025#c2
--- Comment #2 from Volker Kuhlmann
https://bugzilla.novell.com/show_bug.cgi?id=851025
https://bugzilla.novell.com/show_bug.cgi?id=851025#c
zhang jiajun
participants (1)
-
bugzilla_noreply@novell.com