Results 1 to 5 of 5

Thread: QFontDatabase::loadFromCache: Could not open font database cache!

  1. #1
    Join Date
    Jul 2007
    Posts
    104
    Thanks
    22
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default QFontDatabase::loadFromCache: Could not open font database cache!

    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!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QFontDatabase::loadFromCache: Could not open font database cache!

    Do you happen to have any static QFont variables?

  3. #3
    Join Date
    Jul 2007
    Posts
    104
    Thanks
    22
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: QFontDatabase::loadFromCache: Could not open font database cache!

    No I have not.My application was working correctly before creating QWSServer application.QWSServer is a keyboard driver and is working continuously.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QFontDatabase::loadFromCache: Could not open font database cache!

    Was this server started by the same user as your application? Maybe it's matter of access rights?

  5. #5
    Join Date
    Nov 2010
    Posts
    16
    Thanked 1 Time in 1 Post

    Default Re: QFontDatabase::loadFromCache: Could not open font database cache!

    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

Similar Threads

  1. couldn't open fontconfigs chosen font with Xft!!!
    By Kenneth Freidank in forum Qt Programming
    Replies: 0
    Last Post: 5th October 2006, 04:14

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.