![]() |
#1 |
Member
![]() Posts: 12
Karma: 10
Join Date: Aug 2010
Device: Kindle 3
|
Calibre crashes in windows on startup
Hi, I'm new to Calibre but it looks awesome and can't wait to try it! (New to ebook readers as well, still waiting on my Kindle 3 to arrive...)
So, after installing and trying to run it (normal and with admin rights) it crashes. I can get partially through the wizard or just sit there on the first screen and it always seems to crash about 5 seconds after starting. via debug I got (Windows Vista x64): [C:Program Files (x86)/Calibre2]|1> calibre-debug -g tt_face_build_cmaps: broken cmap sub-table ignored! FT_Stream_Open: could not open `C:/Windows/fonts/._Cirrus.pfm' FT_Stream_Open: could not open `C:/Windows/fonts/%Cirrus.pfm' FT_Stream_Open: could not open `C:/Windows/fonts/.AppleDouble/Cirrus.pfm' FT_Stream_Open: could not open `C:/Windows/fonts/Cirrus.pfm/..namedfork/rsrc' FT_Stream_Open: could not open `C:/Windows/fonts/Cirrus.pfm/rsrc' FT_Stream_Open: could not open `C:/Windows/fonts/resource.frk/Cirrus.pfm' FT_Stream_Open: could not open `C:/Windows/fonts/.resource/Cirrus.pfm' FT_Stream_Open: could not open `C:/Windows/fonts/._EN____.PFM' FT_Stream_Open: could not open `C:/Windows/fonts/%EN____.PFM' FT_Stream_Open: could not open `C:/Windows/fonts/.AppleDouble/EN____.PFM' FT_Stream_Open: could not open `C:/Windows/fonts/EN____.PFM/..namedfork/rsrc' FT_Stream_Open: could not open `C:/Windows/fonts/EN____.PFM/rsrc' FT_Stream_Open: could not open `C:/Windows/fonts/resource.frk/EN____.PFM' FT_Stream_Open: could not open `C:/Windows/fonts/.resource/EN____.PFM' Thanks, Jamz |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,260
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
you need to remove the invalid files from your windows fonts folder. All the files listed in the error message do not belong in c:\windows\fonts
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 12
Karma: 10
Join Date: Aug 2010
Device: Kindle 3
|
None of those files exist in my fonts directory. Even using dir command in a cmd window, nothing close to these files exist, especially the sub directories.
|
![]() |
![]() |
![]() |
#4 |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,865
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
They exist or it wouldn't produce the error the way it did. I'm guessing they're hidden. In explorer go to Tools - Folder Options and unhide the files (See attached).
|
![]() |
![]() |
![]() |
#5 |
Member
![]() Posts: 12
Karma: 10
Join Date: Aug 2010
Device: Kindle 3
|
I'm telling ya, they aren't there. And if they are there, windows isn't telling me...
I have Show Hidden and Show System files checked. I used Windows Explorer and it didn't show them. I used a CMD prompt with admin privliges and that's a no go. (I attached the results in a .txt file via dir > txtfile) I even used the gnu ls -a command in a shell and they didn't show. SO, how is calibre getting a list of files? Is it attempting to read the entire fonts directory? (if so, why?) Or is it maybe a registry thing? |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,905
Karma: 7076137
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
I have had similar problems in two cases. The first isn't relevant, because you are not seeing messages about killtimers. The second is, I think. I have seen problems caused by bad fonts.
The message "tt_face_build_cmaps: broken cmap sub-table ignored!" indicates that you have a truetype font installed that contains an invalid character mapping table. Calibre is discovering this font during font enumeration, but unfortunately the message is printed by the truetype library, and (as we see) it does not tell us *which* font. My impression is that once the font enumerator runs into a bad font, it never properly recovers. I see from your fonts.txt that you have a lot of extra .ttf fonts installed. Unfortunately, one or more of these is probably bad. The 'right' approach is to restore the windows font directory to its original set, then add fonts back until you find the one that is broken. Another approach is to create a VM with a clean Windows install. Both have their drawbacks. |
![]() |
![]() |
![]() |
#7 |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,865
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
It certainly seems as if you have touched all the bases. Try looking for some of the mystery files via search of the C drive. I recall a similar problem but I can find the thread at this time.
|
![]() |
![]() |
![]() |
#8 |
Member
![]() Posts: 12
Karma: 10
Join Date: Aug 2010
Device: Kindle 3
|
Well, I downloaded a font management program and it only found one issue (a registry problem).
And windows really sucks with fonts (you can't just cut/paste fonts out of the windows/fonts dir). For now, I just edited the C:\Program Files (x86)\Calibre2\fontconfig\fonts.conf and changed the path to the windows fonts and font cache dir and I can at least load Calibre now and play with it... |
![]() |
![]() |
![]() |
#9 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Windows keeps a list of fonts in the registry. By default, they are in the fonts directory, but there's no reason they have to be there, and some programs put them elsewhere, then put a pointer to them into the registry. Windows uses the registry list to tell programs about the font locations. I suggest you search your registry for fonts and you'll quickly find the list. The fonts that are listed there, but are not in the font directory stick out like a sore thumb due to the path info.
|
![]() |
![]() |
![]() |
#10 |
Member
![]() Posts: 12
Karma: 10
Join Date: Aug 2010
Device: Kindle 3
|
OK, got some more time to track down these bad fonts. I found and removed the Cirrus.pfm & EN____.PFM fonts and it's getting closer but still crashing with the following:
Starting up... tt_face_build_cmaps: broken cmap sub-table ignored! QObject::killTimers: timers cannot be stopped from another thread Is this still a font problem? If so, how do I know which fonts? |
![]() |
![]() |
![]() |
#11 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,260
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Update to the latest version of calibre, that should remove the killtimers problem
|
![]() |
![]() |
![]() |
#12 |
Member
![]() Posts: 12
Karma: 10
Join Date: Aug 2010
Device: Kindle 3
|
I'm already at 0.7.18. Do I need to do a reinstall?
And it must still be a bad font or something, if I comment out the fonts.conf config it loads up ok. Just don't know which font now ![]() I have like 1300 fonts, is there limit in calibre or anything? (On x64 Vista, so no OS limit). |
![]() |
![]() |
![]() |
#13 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,260
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
As far as I know, calibre has no font limit, but I've never really tested that.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
A Howto: Running Calibre Content server on Windows Startup | sherman | Calibre | 26 | 02-17-2019 10:37 PM |
Calibre 0.6.10 GUI crashes on startup | Wagenius | Calibre | 1 | 09-03-2009 01:53 AM |
Automatically grab news at windows startup ? | phkoech | Calibre | 3 | 08-25-2009 02:14 AM |
Calibre 0.5.0 crashes on startup | gilamon | Calibre | 28 | 03-20-2009 12:42 AM |
Windows Startup Files - What/Why | gvtexas | Feedback | 0 | 06-11-2003 10:00 AM |