Results 1 to 2 of 2

Thread: Qt 4.7.1 DirectFB surface not released?

  1. #1
    Join Date
    Jan 2011
    Posts
    9
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Qt 4.7.1 DirectFB surface not released?

    I intergrate QT4.7.1 with DirectFB 1.4.1 Phase 2.5, but after browsering several pages with the QT demobrowser,the following error occured.I add printf statement when requests createSurface operation and releaseSurface,and found some surfaces create are not released?

    Qt Code:
    1. (!) bcmNexus/Pool: NEXUS_Surface_Create failed!
    2. (!) bcmNexus/Pool: NEXUS_Surface_Create failed!
    3. (!) Core/SurfBuffer: Buffer allocation failed!
    4. --> General failure!
    5. (!) bcmNexus/Pool: NEXUS_Surface_Create failed!
    6. (!) bcmNexus/Pool: NEXUS_Surface_Create failed!
    7. (!) Core/SurfBuffer: Buffer allocation failed!
    8. --> General failure!
    To copy to clipboard, switch view to plain text mode 

    My bootscript file
    Qt Code:
    1. #!/bin/sh
    2. mount -t nfs -o intr,nolock,rsize=1024,wsize=1024 10.0.3.134:/opt /home
    3. mount -t nfs -o intr,nolock,rsize=1024,wsize=1024 10.0.3.134:/home/dfb /usr/local
    4. export export gfx_heap_size=20000000(The bigger size setting,the later error occur)
    5. export QWS_SIZE=1280x720
    6. export QT_INSTALL_DIR=/home/qt471
    7. export QT_QWS_FONTDIR=${QT_INSTALL_DIR}/lib/fonts
    8. export QT_PLUGIN_PATH=${QT_INSTALL_DIR}/plugins
    9. export LD_LIBRARY_PATH=/home/qt471/lib:$LD_LIBRARY_PATH
    10. export LD_LIBRARY_PATH=/home/qt471/extralib:$LD_LIBRARY_PATH
    11. export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
    12. cd /usr/local/bin/directfb/1.4
    13. ./rundfb.sh ${QT_INSTALL_DIR}/demos/browser/browser -qws -display directfb -font simhei http://10.0.3.37/index.asp
    To copy to clipboard, switch view to plain text mode 

    qmake.conf
    Qt Code:
    1. #
    2. # qmake configuration for building with mipsel-linux-g++
    3. #
    4.  
    5. include(../../common/g++.conf)
    6. include(../../common/linux.conf)
    7. include(../../common/qws.conf)
    8.  
    9. # modifications to g++.conf
    10. QMAKE_CC = mipsel-linux-gcc
    11. QMAKE_CXX = mipsel-linux-g++
    12. QMAKE_CFLAGS += -mips32
    13. QMAKE_CXXFLAGS += -mips32
    14. QMAKE_LINK = mipsel-linux-g++
    15. QMAKE_LINK_SHLIB = mipsel-linux-g++
    16.  
    17. # modifications to linux.conf
    18. QMAKE_AR = mipsel-linux-ar cqs
    19. QMAKE_OBJCOPY = mipsel-linux-objcopy
    20. QMAKE_STRIP = mipsel-linux-strip
    21.  
    22. QT_CFLAGS_DIRECTFB = -I/home/dfb/include/directfb -D_REENTRANT
    23. QT_LIBS_DIRECTFB = -L/home/dfb/lib -ldirect -ldirectfb -lfusion -lz
    24. load(qt_config)
    To copy to clipboard, switch view to plain text mode 



    Thank you for your tips.

  2. #2
    Join Date
    Nov 2011
    Location
    India
    Posts
    8
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Qt 4.7.1 DirectFB surface not released?

    I am experiencing the same problem, but usually the problem occurs when i switch to higher resolutions, by default i guess directFb allocates 16M buffer, you have to explicitly increase the buffer to say 64M or so. I don't know how to increase it.

    EXPERIENCED USERS HELP REQUIRED

Similar Threads

  1. Replies: 13
    Last Post: 21st September 2010, 15:12
  2. Replies: 0
    Last Post: 7th March 2010, 13:13
  3. qt with image Surface as triple buffered to directfb
    By guruvadhiraj in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 20th May 2009, 16:17
  4. opengl bezier surface
    By zorro68 in forum Qt Programming
    Replies: 6
    Last Post: 22nd February 2007, 17:44
  5. Replies: 2
    Last Post: 30th August 2006, 10:09

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.