Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. [Moved] Invalid Signal signature: errorSignal(long)
Forum Update on Monday, May 27th 2025

[Moved] Invalid Signal signature: errorSignal(long)

Scheduled Pinned Locked Moved Language Bindings
15 Posts 2 Posters 6.7k 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.
  • T Offline
    T Offline
    ThomasDalla
    wrote on 3 May 2011, 05:53 last edited by
    #6

    Yeah I think it's not a signature problem as the program is actually working 99% of the time.
    Just that 1% that I cannot figure out why... with the same program, same execution parameters...

    Anyway, it's occurring less and less, and I just need to retry if it occurs but I was just wondering if there is a way to fix it.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      ThomasDalla
      wrote on 7 May 2011, 06:29 last edited by
      #7

      I think I found the problem.
      I'm not sure but it seems that it happens when an object is deleted too early.

      The problem happens with a QNetworkReply and raises weird errors such as "QNetworkReply doesn't have a createRequest() method".
      I don't know if this error is linked to the previous one but that's a new error that occurs right after the previous ones already introduced previously.
      And I think this error is raised because the object QNetworkReply was deleted too early (by a manual Object.deleteLater(reply)).

      1 Reply Last reply
      0
      • F Offline
        F Offline
        Franzk
        wrote on 7 May 2011, 09:43 last edited by
        #8

        Good to see you found it.

        "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

        http://www.catb.org/~esr/faqs/smart-questions.html

        1 Reply Last reply
        0
        • T Offline
          T Offline
          ThomasDalla
          wrote on 8 May 2011, 08:07 last edited by
          #9

          Well I'm not sure that was the problem...
          It was finally raised even if I don't manually "QOBject.deleteLater()"...

          I got more information from the debugger this time:

          @Error in sys.excepthook:
          Traceback (most recent call last):
          File "C:\Program Files (x86)\Programming\PyCharm 1.2.1\helpers\pydev\pydevd_breakpoints.py", line 58, in excepthook
          frame = frames[-1]
          IndexError: list index out of range

          Original exception was:
          TypeError: errorOccured() takes exactly 2 arguments (1 given)
          Invalid Signal signature: errorSignal(long,QString)
          Invalid Signal signature: partPercent(long,long,long)
          Invalid Signal signature: doneSignal(long,QString)
          Invalid Signal signature: aSlot()
          Invalid Signal signature: anotherSlot(QNetworkReply::NetworkError) @

          1 Reply Last reply
          0
          • F Offline
            F Offline
            Franzk
            wrote on 8 May 2011, 11:31 last edited by
            #10

            Any chance you could share the code or mock up an example that shows the same behavior?

            "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

            http://www.catb.org/~esr/faqs/smart-questions.html

            1 Reply Last reply
            0
            • T Offline
              T Offline
              ThomasDalla
              wrote on 9 May 2011, 04:31 last edited by
              #11

              I sent you an email with the code, thanks for your help!

              1 Reply Last reply
              0
              • F Offline
                F Offline
                Franzk
                wrote on 9 May 2011, 05:52 last edited by
                #12

                It's probably useful if other people can have a look at the code as well.

                "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

                http://www.catb.org/~esr/faqs/smart-questions.html

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  ThomasDalla
                  wrote on 9 May 2011, 06:05 last edited by
                  #13

                  Well actually this is only one part of a non really open-source project.
                  I was allowed to send one class only (the one raising the error) to you but not to 'everyone'.

                  I'll ask permission for that and might edit this post!
                  If I can't use it directly, I'll try to rewrite a similar class but it will need more time.

                  1 Reply Last reply
                  0
                  • F Offline
                    F Offline
                    Franzk
                    wrote on 9 May 2011, 07:20 last edited by
                    #14

                    I'd go the extra mile to try and produce the error in a separate mock up then. I could not find anything odd or wrong reviewing your code, but I'm not proficient enough using PySide to notice more subtle errors.

                    It'll be a learning experience for either of us then :)

                    "Horse sense is the thing a horse has which keeps it from betting on people." -- W.C. Fields

                    http://www.catb.org/~esr/faqs/smart-questions.html

                    1 Reply Last reply
                    0
                    • T Offline
                      T Offline
                      ThomasDalla
                      wrote on 9 May 2011, 08:52 last edited by
                      #15

                      Well the main code of the mock up example is there:
                      http://pastebin.com/a2Z2tx02

                      The main class it is using is there:
                      http://pastebin.com/u46TXF0z

                      However, the error is raised almost never...
                      I even could not get the error after trying the mock up example more than 50 times.
                      Maybe I already fixed the error.
                      It used to appear sometimes only.

                      I'm not sure this mock-up is very meaningful, but maybe some people might find some huge mistakes in the main class.
                      This is very crappy coding by the way, this is my first PySide program and it was rapidly coded...

                      1 Reply Last reply
                      0

                      15/15

                      9 May 2011, 08:52

                      • Login

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