PDA

View Full Version : QFontDatabase::loadFromCache: Could not open font database cache!



hgedek
26th September 2007, 14:32
I got this error.
On my device a QWSServer application is running.With it I am trying to run my own application.My application needs this server so there is a client-server structure.But I got this error.
QFontDatabase::loadFromCache: Could not open font database cache!

jacek
26th September 2007, 15:32
Do you happen to have any static QFont variables?

hgedek
26th September 2007, 18:04
No I have not.My application was working correctly before creating QWSServer application.QWSServer is a keyboard driver and is working continuously.

jacek
26th September 2007, 22:00
Was this server started by the same user as your application? Maybe it's matter of access rights?

ardvark
23rd November 2010, 17:15
Qt seems to create the font db in the /tmp directory. Make sure that you have space on this device. An application will run with '-qws' as it creates the fonts (to render in display pixel depth, etc), but clients are expecting to load the glyphs from a cache.

$ df
...
rwfs 512 512 0 100% /tmp

$ mount -o remount,relatime,size=4M /tmp
$ df
...
rwfs 4096 512 3584 13% /tmp