Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QtCreator Plugin Errors



  • Hello there,

    i am trying to use QtCreator 4.7 on Manjaro Linux 17.1.11. Unfortunately it doesn't work.
    With QT_DEBUG_PLUGINS=1 it shows a lot of errors while loading QtCreator:

    \QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/qt/plugins/platforms" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt/plugins/platforms/libqeglfs.so"
    /usr/lib/qt/plugins/platforms/libqeglfs.so: Cannot allocate memory
    "Out of memory while loading plugin '/usr/lib/qt/plugins/platforms/libqeglfs.so'." 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt/plugins/platforms/libqlinuxfb.so"
    /usr/lib/qt/plugins/platforms/libqlinuxfb.so: Cannot allocate memory
    "Out of memory while loading plugin '/usr/lib/qt/plugins/platforms/libqlinuxfb.so'." 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt/plugins/platforms/libqminimal.so"
    /usr/lib/qt/plugins/platforms/libqminimal.so: Cannot allocate memory
    "Out of memory while loading plugin '/usr/lib/qt/plugins/platforms/libqminimal.so'." 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt/plugins/platforms/libqminimalegl.so"
    /usr/lib/qt/plugins/platforms/libqminimalegl.so: Cannot allocate memory
    "Out of memory while loading plugin '/usr/lib/qt/plugins/platforms/libqminimalegl.so'." 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt/plugins/platforms/libqoffscreen.so"
    /usr/lib/qt/plugins/platforms/libqoffscreen.so: Cannot allocate memory
    "Out of memory while loading plugin '/usr/lib/qt/plugins/platforms/libqoffscreen.so'." 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt/plugins/platforms/libqvnc.so"
    /usr/lib/qt/plugins/platforms/libqvnc.so: Cannot allocate memory
    "Out of memory while loading plugin '/usr/lib/qt/plugins/platforms/libqvnc.so'." 
             not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/qt/plugins/platforms/libqxcb.so"
    /usr/lib/qt/plugins/platforms/libqxcb.so: Cannot allocate memory
    "Out of memory while loading plugin '/usr/lib/qt/plugins/platforms/libqxcb.so'." 
             not a plugin
    QFactoryLoader::QFactoryLoader() checking directory path "//platforms" ...
    qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
    This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
    
    Aborted (core dumped)
    

    How can I prevent the errors?


  • Lifetime Qt Champion

    Hi @slaus,

    how did you install QtCreator?


  • Lifetime Qt Champion

    Hi
    Also how much ram does your system have and
    how big is swap partition ?



  • Hi,
    installed it via pacman from the manjaro repositories.

    I have 16 GB of RAM and and 2 GB of swap which are not used.


  • Lifetime Qt Champion

    Hi,

    Might be a silly question but are you doing that in a docker container ?



  • Hi,

    @SGaist: No, what would be the differences there? Maybe it can help me.


  • Lifetime Qt Champion

    @slaus
    well if running in container/docker it might explain the : Cannot allocate memory
    which seems really odd considering you have 16 GB ram.



  • @SGaist
    I like the idea of having my IDE in a docker container :-)

    I set up a archlinux container with qtcreator and I experience the exact same error.
    Whether it's a docker container or not, I have enough memory and computing power. What changed in qtcreator 4.7 compared to 4.6 that causes these errors?

    As far as I know, docker containers have no resource limitation. Is this error common when using QT applications in a docker container?


  • Lifetime Qt Champion

    Wait, do you mean that Qt Creator 4.6 works on your system and in a container bug not Qt Creator 4.7 ?


Log in to reply