Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-985

OverflowError on emitting Signals with integers outside of int32 boundaries

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.12.2
    • PySide
    • None
    • Windows, Python 3.7.2 64-bit
    • Windows

    Description

      When passing an integer to a signal outside of int32 boundaries, an OverflowError is raised. The same code runs on PyQt5 with no issues.

       

      Full simplified example:

      try:
          from PyQt5 import QtCore
          Signal = QtCore.pyqtSignal
      except ImportError:
          from PySide2 import QtCore
          Signal = QtCore.Signal
      
      
      class SomeClass(QtCore.QObject):
          signal = Signal(int)
      
          def test(self):
              int32_max = 2147483647
              self.signal.emit(int32_max + 1)  # OverflowError occurs here.
      
      
      sh = SomeClass()
      sh.test()
      
      

       

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            weswu Wesley Wu
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes