Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. Qt Contribution
  4. Please provide ways of debugging internal errors in PyQt
QtWS25 Last Chance

Please provide ways of debugging internal errors in PyQt

Scheduled Pinned Locked Moved Unsolved Qt Contribution
2 Posts 2 Posters 668 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.
  • I Offline
    I Offline
    IDontKnowHowToCode
    wrote on last edited by
    #1

    Getting segfaults/errors in the Qt library when working with PyQt is unfortunately pretty common since a lot of errors in the underlying C++ code aren't caught. Its very hard to debug these errors since there is no console output, the program just exits with code 0xC0000005.

    Using the faulthandler module helps a little since it can at least provide a stacktrace but its still difficult to figure out what the issue is. There should be a better way of debugging this.

    JonBJ 1 Reply Last reply
    0
    • I IDontKnowHowToCode

      Getting segfaults/errors in the Qt library when working with PyQt is unfortunately pretty common since a lot of errors in the underlying C++ code aren't caught. Its very hard to debug these errors since there is no console output, the program just exits with code 0xC0000005.

      Using the faulthandler module helps a little since it can at least provide a stacktrace but its still difficult to figure out what the issue is. There should be a better way of debugging this.

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

      @IDontKnowHowToCode
      PyQt is produced by Riverbank Computing. If you would like to see them implement something in PyQt which would help you debug you can ask them. Or this might be a general issue in Python code which calls C libraries.

      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