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.
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 2 Posters 505 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 4 Feb 2023, 20:50 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?

    J 1 Reply Last reply 5 Feb 2023, 08:12
    0
    • D DZK11
      4 Feb 2023, 20:50

      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?

      J Offline
      J Offline
      JonB
      wrote on 5 Feb 2023, 08:12 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 5 Feb 2023, 09:32
      0
      • J JonB
        5 Feb 2023, 08:12

        @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 5 Feb 2023, 09:32 last edited by
        #3

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

        J 1 Reply Last reply 5 Feb 2023, 09:33
        0
        • D DZK11
          5 Feb 2023, 09:32

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

          J Offline
          J Offline
          JonB
          wrote on 5 Feb 2023, 09:33 last edited by
          #4

          @DZK11 Yes, probably something wrong in your code.

          D 1 Reply Last reply 5 Feb 2023, 10:26
          1
          • J JonB
            5 Feb 2023, 09:33

            @DZK11 Yes, probably something wrong in your code.

            D Offline
            D Offline
            DZK11
            wrote on 5 Feb 2023, 10:26 last edited by
            #5

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

            J 1 Reply Last reply 5 Feb 2023, 10:29
            0
            • D DZK11
              5 Feb 2023, 10:26

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

              J Offline
              J Offline
              JonB
              wrote on 5 Feb 2023, 10:29 last edited by JonB 2 May 2023, 10:30
              #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 5 Feb 2023, 10:37
              1
              • J JonB
                5 Feb 2023, 10:29

                @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 5 Feb 2023, 10:37 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

                J 1 Reply Last reply 5 Feb 2023, 12:07
                0
                • D DZK11
                  5 Feb 2023, 10:37

                  @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

                  J Offline
                  J Offline
                  JonB
                  wrote on 5 Feb 2023, 12:07 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

                  1/8

                  4 Feb 2023, 20:50

                  • Login

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