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. Help - When i hover over a button it crashes the server.
Qt 6.11 is out! See what's new in the release blog

Help - When i hover over a button it crashes the server.

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 2 Posters 827 Views 1 Watching
  • 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
    DZK11
    wrote on last edited by
    #1

    I am trying to make a multiplayer game which uses python sockets and PYQT5. Once the clients connect to the server and the gameboard is presented, the serverside crashes when I hover over a button. Is this due to a signal being sent when i hover my mouse over the button or what?

    JonBJ 1 Reply Last reply
    0
    • D DZK11

      I am trying to make a multiplayer game which uses python sockets and PYQT5. Once the clients connect to the server and the gameboard is presented, the serverside crashes when I hover over a button. Is this due to a signal being sent when i hover my mouse over the button or what?

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @DZK11
      Clients don't send anything to server unless you tell them to, especially not on a "hover" event.

      D 1 Reply Last reply
      0
      • JonBJ JonB

        @DZK11
        Clients don't send anything to server unless you tell them to, especially not on a "hover" event.

        D Offline
        D Offline
        DZK11
        wrote on last edited by
        #3

        @JonB Do you know any reason why it may crash?

        JonBJ 1 Reply Last reply
        0
        • D DZK11

          @JonB Do you know any reason why it may crash?

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @DZK11 Yes, probably something wrong in your code.

          D 1 Reply Last reply
          1
          • JonBJ JonB

            @DZK11 Yes, probably something wrong in your code.

            D Offline
            D Offline
            DZK11
            wrote on last edited by
            #5

            @JonB If i were to send you my code do you think you could have a look at it?

            JonBJ 1 Reply Last reply
            0
            • D DZK11

              @JonB If i were to send you my code do you think you could have a look at it?

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by JonB
              #6

              @DZK11
              No. Produce a minimal example (that means, you have to take the time narrow the code down to just what is needed to reproduce the issue) and post it here.

              Obviously the very first thing to look at is whether you are doing anything in your client-side code when you "hover a button". If not then how could the server react to anything like that happening at the client? If the server "crashes" have you run it under a debugger?

              D 1 Reply Last reply
              1
              • JonBJ JonB

                @DZK11
                No. Produce a minimal example (that means, you have to take the time narrow the code down to just what is needed to reproduce the issue) and post it here.

                Obviously the very first thing to look at is whether you are doing anything in your client-side code when you "hover a button". If not then how could the server react to anything like that happening at the client? If the server "crashes" have you run it under a debugger?

                D Offline
                D Offline
                DZK11
                wrote on last edited by
                #7

                @JonB When i hover over the button, i get an unhandled exception where i recieve data saying the connection was forcibly closed but i dont understand why it does that if hovering over a button doesn't send any signals

                JonBJ 1 Reply Last reply
                0
                • D DZK11

                  @JonB When i hover over the button, i get an unhandled exception where i recieve data saying the connection was forcibly closed but i dont understand why it does that if hovering over a button doesn't send any signals

                  JonBJ Offline
                  JonBJ Offline
                  JonB
                  wrote on last edited by
                  #8

                  @DZK11
                  Hovering over a QPushButton (or any QWidget) generates a number of QEventHover.../QHoverEvents. These are Qt events, not signals. You would know if you have subclassed to handle/generate such events or emit signals for them. Have you done so??

                  If not, it would seem unlikely that anything about "hovering" would cause a problem. Maybe your diagnosis is coincidence?

                  The most important question is: does anything in your code try to communicate between client and server when you perform any such action in the client? If not, what do you imagine could possibly be going on? Qt is not going to do anything between client and server just because you move a mouse.... Indeed, it's not going to send/receive anything unless your code does so. So where/under what circumstances do you do any communication between these apps?

                  If the server gets an unhandled exception what have you done about:
                  @JonB said in Help - When i hover over a button it crashes the server.:

                  If the server "crashes" have you run it under a debugger?

                  1 Reply Last reply
                  1

                  • Login

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