Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-128810

QRemoteObjectHost crashes when using hostUrl method

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • 5.15
    • 5.14.2
    • Remote Objects
    • None

      When you create a QRemoteObjectHost with an IP adress that does not belong to the computer you are running the application, you get an internal QSocketError. Now when you use hostUrl() it crashes.

       

      auto pHost = new QRemoteObjectHost("tcp://99.99.99.99:12345");

      pHost->hostUrl();

       

      Example:

      #include <QtWidgets/QApplication>
      #include <QtRemoteObjects/QRemoteObjectHost>
      
      int main(int argc, char* argv[])
      {
        QApplication a(argc, argv);
        auto pHost = new QRemoteObjectHost("tcp://99.99.99.99:12345"); // use an ip address that does not belong to your adapters
        pHost->hostUrl();
        return a.exec();
      } 
       
      

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            bstottle Brett Stottlemyer
            schnieder Christian schnueder
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes