Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Application crashes if QTcpSocket::bind is called.

    General and Desktop
    3
    7
    1459
    Loading More Posts
    • 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.
    • G
      Gilbert Lee last edited by Gilbert Lee

      Hi all.

      If "bind" is called before "connectToHost", the application crashes while using QTcpSocket. I've made a video snapshot for this problem.

      https://www.youtube.com/watch?v=LH6AtaUnL8s

      Thanks in advance.

      [Environment]
      qt : Qt Creator 3.5.1(opensource) based on Qt 5.5.1
      os : ubuntu 14.04 LTS
      processor : intel i5-3570
      os type : 64-bit

      1 Reply Last reply Reply Quote 0
      • stackprogramer
        stackprogramer last edited by

        please see
        https://www.youtube.com/watch?v=LH6AtaUnL8s
        https://forum.qt.io/topic/13524/crash-in-qtcpsocket-inherited-class-help-needed/6
        goodluck

        1 Reply Last reply Reply Quote 0
        • G
          Gilbert Lee last edited by

          Hi, stackprogrammer.
          I don't know what you are talking about.

          stackprogramer 1 Reply Last reply Reply Quote 0
          • stackprogramer
            stackprogramer @Gilbert Lee last edited by stackprogramer

            @Gilbert-Lee said:

            Hi, stackprogrammer.
            I don't know what you are talking about.

            i 'm sorry,i was wrong,channel youtube is for you!!excuse me,i taught the solution is shared.

            1 Reply Last reply Reply Quote 0
            • G
              Gilbert Lee last edited by Gilbert Lee

              Ok, I see. I've searched a lot of articles through the internet using the keyword "QTcpSocket bind crash", but I can not find the appropriate solution. This is why I've made the video for myself. :)

              1 Reply Last reply Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                Hi,

                What version of Qt are you using to build your application ?

                By the way, your application is not crashing, it's blocking, which is not the same thing to debug. In any case you might be hitting QTBUG-29732

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

                G 1 Reply Last reply Reply Quote 0
                • G
                  Gilbert Lee @SGaist last edited by

                  @SGaist Thank you for your replay.

                  What version of Qt are you using to build your application ?
                  qt : Qt Creator 3.5.1(opensource) based on Qt 5.5.1
                  os : ubuntu 14.04 LTS
                  processor : intel i5-3570
                  os type : 64-bit

                  your application is not crashing, it's blocking
                  I agree with you.

                  And the bug I've issued does not match QTBUG-29732. My application binds a local local port perfectly.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post