Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Application crashes if QTcpSocket::bind is called.
QtWS25 Last Chance

Application crashes if QTcpSocket::bind is called.

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 3 Posters 1.8k 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.
  • Gilbert LeeG Offline
    Gilbert LeeG Offline
    Gilbert Lee
    wrote on last edited by Gilbert Lee
    #1

    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
    0
    • stackprogramerS Offline
      stackprogramerS Offline
      stackprogramer
      wrote on last edited by
      #2

      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
      0
      • Gilbert LeeG Offline
        Gilbert LeeG Offline
        Gilbert Lee
        wrote on last edited by
        #3

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

        stackprogramerS 1 Reply Last reply
        0
        • Gilbert LeeG Gilbert Lee

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

          stackprogramerS Offline
          stackprogramerS Offline
          stackprogramer
          wrote on last edited by stackprogramer
          #4

          @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
          0
          • Gilbert LeeG Offline
            Gilbert LeeG Offline
            Gilbert Lee
            wrote on last edited by Gilbert Lee
            #5

            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
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              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

              Gilbert LeeG 1 Reply Last reply
              0
              • SGaistS SGaist

                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

                Gilbert LeeG Offline
                Gilbert LeeG Offline
                Gilbert Lee
                wrote on last edited by
                #7

                @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
                0

                • Login

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