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 740 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.
  • 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 on 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