Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt 5.11 + Embedded Linux + QtVirtualKeyboard segmentation fault

Qt 5.11 + Embedded Linux + QtVirtualKeyboard segmentation fault

Scheduled Pinned Locked Moved Solved Mobile and Embedded
7 Posts 3 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jason57
    wrote on last edited by
    #1

    Hello,

    Recently I want to use QML with Qtvirtualkeyboard, but I got "Segmentation fault" after I add "InputPanel" in the qml file, I'm not using Boot 2 QT device, is this the problem?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Run your app with a debugger - it will show you exactly where the crash happened.

      Not running Boot2Qt is not in itself a problem. Check the documentation on Qt Virtual Keyboard (it contains a guide on how to deploy and use it), make sure you have it installed/ compiled with your Qt version.

      (Z(:^

      1 Reply Last reply
      1
      • J Offline
        J Offline
        Jason57
        wrote on last edited by
        #3

        Hello,

        I'vd finish run my program with both desktop and arm in remote debut mode, but I cannot step into the process after enter engine.load(QUrl(QStringLiteral("qrc:/main.qml")));

        I also enabled the QT_DEBUG and QT_DEBUG_PLUGINS, the difference between both configuration is that the arm version stopped after load "libqtquicktemplates2plugin.so", the desktop version still loading following library:
        loaded library "/usr/local/Qt-5.11.1/plugins/imageformats/libqgif.so"
        loaded library "/usr/local/Qt-5.11.1/plugins/imageformats/libqicns.so"
        loaded library "/usr/local/Qt-5.11.1/plugins/imageformats/libqico.so"
        loaded library "/usr/local/Qt-5.11.1/plugins/imageformats/libqjpeg.so"
        loaded library "/usr/local/Qt-5.11.1/plugins/imageformats/libqsvg.so"
        loaded library "/usr/local/Qt-5.11.1/plugins/imageformats/libqtga.so"
        loaded library "/usr/local/Qt-5.11.1/plugins/imageformats/libqtiff.so"
        loaded library "/usr/local/Qt-5.11.1/plugins/imageformats/libqwbmp.so"
        loaded library "/usr/local/Qt-5.11.1/plugins/imageformats/libqwebp.so"

        is the arm version crashed whiling loading libqgif.so?

        how can I know what happen inside the qml loading process?

        besides, my application runs correctly in both desktop and arm version without the "Input Panel" in the main.qml.

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Do you have QtVirtualoKeyboard compiled in your ARM version of Qt?

          (Z(:^

          1 Reply Last reply
          2
          • J Offline
            J Offline
            Jason57
            wrote on last edited by
            #5

            Hello,
            Yes, the program loaded the plugin,

            QFactoryLoader::QFactoryLoader() looking at "/usr/local/qt/plugins/platforminputcontexts/libqtvirtualkeyboardplugin.so"
            Found metadata in lib /usr/local/qt/plugins/platforminputcontexts/libqtvirtualkeyboardplugin.so, metadata=
            {
                "IID": "org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1",
                "MetaData": {
                    "Keys": [
                        "qtvirtualkeyboard"
                    ]
                },
                "className": "QVirtualKeyboardPlugin",
                "debug": false,
                "version": 330497
            }
            
            
            Got keys from plugin meta data ("qtvirtualkeyboard")
            
            1 Reply Last reply
            0
            • J Offline
              J Offline
              Jason57
              wrote on last edited by
              #6

              Hello,

              I finally solved this problem. I compile both desktop and embedded version Qt from source, but the module was not compiled for version 5.11, QtQuickControls2, after finishing build this module and copy to the board, everything is OK.

              1 Reply Last reply
              2
              • K Offline
                K Offline
                kiran_r_baxter
                wrote on last edited by
                #7

                Hi Jason, We are too facing similar keyboard integration error for embedded linux. In this case did you rebuild the whole QT source code of v5.11 OR just QtQuickControl2 module only?

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved