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

Please provide ways of debugging internal errors in PyQt

Scheduled Pinned Locked Moved Unsolved Qt Contribution
2 Posts 2 Posters 669 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 29 Jun 2023, 15:35 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.

    J 1 Reply Last reply 29 Jun 2023, 16:24
    0
    • I IDontKnowHowToCode
      29 Jun 2023, 15:35

      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.

      J Offline
      J Offline
      JonB
      wrote on 29 Jun 2023, 16:24 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

      2/2

      29 Jun 2023, 16:24

      • Login

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