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. QScreen Connect Problem

QScreen Connect Problem

Scheduled Pinned Locked Moved Mobile and Embedded
6 Posts 2 Posters 2.0k 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.
  • D Offline
    D Offline
    dreamerindia
    wrote on last edited by
    #1

    I have configure Linux Framebuffer has /dev/fb0, Using Examples/qws/framebuffer project is working fine, but
    When I am trying to connect using QScreen object it gives th following error
    @
    QPluginLoader *objPlug = new QPluginLoader("libcheckPlugin1.so",this);
    QScreenDriverPlugin obj = qobject_cast<QScreenDriverPlugin>(objPlug->instance());
    QScreen *objScr = obj->create("dbscreen",QScreen::LinuxFBClass);
    objScr->connect("LinuxFb:/dev/fb0" );
    objScr->initDevice();@

    It gives segementation fault.

    Kindly give me solution to connect the Framebuffer using QScreen plugin.

    ~Ravivarman~

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You should add some sanity check to your code. You don't verify that the plugin is correctly loaded, nor that any object is valid.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dreamerindia
        wrote on last edited by
        #3

        @ QPluginLoader *objPlug = new QPluginLoader("libcheckPlugin1.so",this);
        QScreenDriverPlugin obj = qobject_cast<QScreenDriverPlugin>(objPlug->instance());

        • if(obj != NULL)
          qDebug()<<"Object Reference:"<<obj->keys();
        • QScreen *objScr = obj->create("dbscreen",QScreen::LinuxFBClass);
          objScr->connect("LinuxFb:/dev/fb0" );
          objScr->initDevice();;@

        I have added the object check to my code and it is valid Screen plugin. but when I am trying to initdevice it is throwing segmentation fault. please let me know any certain configuration are required to init framebuffer device.

        ~Ravivarman~

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Do you have a stack trace of the crash ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • D Offline
            D Offline
            dreamerindia
            wrote on last edited by
            #5

            I dont find any stack trace but give me clue to debug any stack trace for this object.

            ~Ravivarman~

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Then you should run your application using a debugger so you would be able to see where exactly it crashes

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              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