Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. shiboken6.exe crashing
Forum Updated to NodeBB v4.3 + New Features

shiboken6.exe crashing

Scheduled Pinned Locked Moved Unsolved Qt for Python
13 Posts 3 Posters 738 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.
  • S Offline
    S Offline
    Shakeel0x01
    wrote on last edited by
    #1

    Screenshot (8).png Screenshot (9).png Screenshot (10).png

    Hi everyone, I'm facing a crash with Shiboken6 that started yesterday evening (it was working fine in the morning). I'm using Windows (MSI computer, as seen in the Event Viewer). Here's the issue:

    Shiboken6 crashes without any output when I run it.
    Event Viewer shows an Application Error (Event ID 1000) with faulting module shiboken6.exe, exception code 0xc0000005.
    I've tried reinstalling PySide6 and Shiboken6 multiple times, but it didn't help.

    On running with python 3.13.3 I get this
    Exception ignored on threading shutdown:
    Traceback (most recent call last):
    File "C:\Users\moham\Desktop\bindings_generator_venv\Lib\threading.py", line 1524, in _shutdown
    if _main_thread._handle.is_done() and _is_main_interpreter():
    SystemError: <method 'is_done' of '_thread._ThreadHandle' objects> returned a result with an exception set

    Has anyone encountered this? Any ideas on what might be causing the crash or how to debug it further? Thanks!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Can you test again with Python 3.12 ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Shakeel0x01
        wrote on last edited by Shakeel0x01
        #3

        I've already tried it. It is crashing. I tried to use other versions of PySide6 and shiboken6_generator too but it didn't work
        .

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Can you provide a minimal project that shows this behavior ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • S Offline
            S Offline
            Shakeel0x01
            wrote on last edited by
            #5

            tst.h
            #ifndef TST_H
            #define TST_H

            #include <string>

            std::string get_msg();

            #endif

            tst.cpp
            #include "tst.h"

            std::string get_msg()
            {
            return std::string("Hi");
            }

            typesystem.xml
            <?xml version="1.0"?>

            <typesystem name="tst">
            <primitive-type name="std::string"/>
            <function signature="get_msg()" return-type="std::string"/>
            </typesystem>

            bindings.h
            #ifndef BINDINGS_H
            #define BINDINGS_H

            #include "tst.h"

            #endif

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              To be sure to try things as similar as possible: how are you calling shiboken ? (Parameters, etc.) ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • S Offline
                S Offline
                Shakeel0x01
                wrote on last edited by Shakeel0x01
                #7

                shiboken6 bindings.h typesystem.xml --generator-set=shiboken

                I made a custom candlestick chart in Qt c++ using QOpenGLWidget for performance. Now I want to expose it to python. Please tell me a way to do this.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  Shakeel0x01
                  wrote on last edited by
                  #8

                  Screenshot 2025-06-17 123727.png

                  I even tried to generate bindings from linux. There is some fault in shiboken6.

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    I tested on macOS with a freshly created conda environment using Python 3.13.5 and installed shiboken6-generator using pip.
                    No crash at all.
                    You might want to start shiboken6 with gdb to see if there's something that stands out.

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      Shakeel0x01
                      wrote last edited by
                      #10

                      Screenshot 2025-06-19 102748.png

                      I ran gdb. I got some errors. Do you know what it is and how to fix it?. Can you tell me?.

                      1 Reply Last reply
                      0
                      • P Offline
                        P Offline
                        papajoke
                        wrote last edited by
                        #11

                        Hi
                        the only error you get is that the encodings module is not found.
                        This is a standard lib module,
                        so your python is not configured on your machine.

                        1 Reply Last reply
                        1
                        • S Offline
                          S Offline
                          Shakeel0x01
                          wrote last edited by
                          #12

                          I tried setting PYTHONHOME, PYTHONPATH and all other environment vars. But still I get the same error.
                          Please tell me how to fix it.

                          1 Reply Last reply
                          0
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote last edited by
                            #13

                            Sorry I don't have a Windows machine at hand, I also tried on Linux with Python 3.13.5 and a fresh install of shiboken-generator (6.9.1 at the time of writing) and it all worked well.
                            How did you setup Python on Windows ?

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            1 Reply Last reply
                            0

                            • Login

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