Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Unable to use QtCharts, Keep crashing when run

Unable to use QtCharts, Keep crashing when run

Scheduled Pinned Locked Moved Solved QML and Qt Quick
7 Posts 3 Posters 612 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.
  • F Offline
    F Offline
    Fizer
    wrote on last edited by
    #1

    Screenshot 2023-09-28 at 11.35.42 AM.png

    sierdzioS 1 Reply Last reply
    0
    • F Fizer

      Screenshot 2023-09-28 at 11.35.42 AM.png

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @Fizer Run with debugger attached (F5), it will show you exactly where the crash occurs.

      (Z(:^

      F 1 Reply Last reply
      0
      • sierdzioS sierdzio

        @Fizer Run with debugger attached (F5), it will show you exactly where the crash occurs.

        F Offline
        F Offline
        Fizer
        wrote on last edited by
        #3

        @sierdzio it keeps stating this in the log
        sQML Debugger: Socket state changed to QAbstractSocket::HostLookupState
        sQML Debugger: Socket state changed to QAbstractSocket::ConnectingState
        sQML Debugger: Socket state changed to QAbstractSocket::UnconnectedState
        wQML Debugger: Error: QAbstractSocket::ConnectionRefusedError

        sierdzioS 1 Reply Last reply
        0
        • F Fizer

          @sierdzio it keeps stating this in the log
          sQML Debugger: Socket state changed to QAbstractSocket::HostLookupState
          sQML Debugger: Socket state changed to QAbstractSocket::ConnectingState
          sQML Debugger: Socket state changed to QAbstractSocket::UnconnectedState
          wQML Debugger: Error: QAbstractSocket::ConnectionRefusedError

          sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          @Fizer make sure both C++ and QML debugger is set to Automatic in Projects->Run.

          (Z(:^

          F 1 Reply Last reply
          0
          • sierdzioS sierdzio

            @Fizer make sure both C++ and QML debugger is set to Automatic in Projects->Run.

            F Offline
            F Offline
            Fizer
            wrote on last edited by
            #5

            @sierdzio both are automatic.
            The debugger states this

            dNOTE: ENGINE SETUP OK
            dState changed from EngineSetupRequested(1) to EngineRunRequested(3)
            dCALL: RUN ENGINE
            Running requested...
            <45runEngine({"token":45})

            (lldb) script theDumper.runEngine({"token":45})

            @
            state="enginerunfailed"@
            dNOTE: ENGINE RUN FAILED
            Run failed.
            dState changed from EngineRunRequested(3) to EngineRunFailed(4)
            dState changed from EngineRunFailed(4) to EngineShutdownRequested(14)
            dCALL: SHUTDOWN ENGINE
            dQUIT DEBUGGER REQUESTED IN STATE 14
            dLLDB PROCESS ERROR: 1
            dNOTE: ENGINE SHUTDOWN FINISHED
            dState changed from EngineShutdownRequested(14) to EngineShutdownFinished(15)
            Debugger finished.
            dState changed from EngineShutdownFinished(15) to DebuggerFinished(16)

            sQML Debugger: Socket state changed to QAbstractSocket::HostLookupState
            sQML Debugger: Socket state changed to QAbstractSocket::ConnectingState
            sQML Debugger: Socket state changed to QAbstractSocket::UnconnectedState
            wQML Debugger: Error: QAbstractSocket::ConnectionRefusedError

            GrecKoG 1 Reply Last reply
            0
            • F Fizer

              @sierdzio both are automatic.
              The debugger states this

              dNOTE: ENGINE SETUP OK
              dState changed from EngineSetupRequested(1) to EngineRunRequested(3)
              dCALL: RUN ENGINE
              Running requested...
              <45runEngine({"token":45})

              (lldb) script theDumper.runEngine({"token":45})

              @
              state="enginerunfailed"@
              dNOTE: ENGINE RUN FAILED
              Run failed.
              dState changed from EngineRunRequested(3) to EngineRunFailed(4)
              dState changed from EngineRunFailed(4) to EngineShutdownRequested(14)
              dCALL: SHUTDOWN ENGINE
              dQUIT DEBUGGER REQUESTED IN STATE 14
              dLLDB PROCESS ERROR: 1
              dNOTE: ENGINE SHUTDOWN FINISHED
              dState changed from EngineShutdownRequested(14) to EngineShutdownFinished(15)
              Debugger finished.
              dState changed from EngineShutdownFinished(15) to DebuggerFinished(16)

              sQML Debugger: Socket state changed to QAbstractSocket::HostLookupState
              sQML Debugger: Socket state changed to QAbstractSocket::ConnectingState
              sQML Debugger: Socket state changed to QAbstractSocket::UnconnectedState
              wQML Debugger: Error: QAbstractSocket::ConnectionRefusedError

              GrecKoG Offline
              GrecKoG Offline
              GrecKo
              Qt Champions 2018
              wrote on last edited by
              #6

              @Fizer Are you using a QGuiApplication or a QApplication? The latter should be used since QtCharts depends on Qt Widgets.

              F 1 Reply Last reply
              2
              • GrecKoG GrecKo

                @Fizer Are you using a QGuiApplication or a QApplication? The latter should be used since QtCharts depends on Qt Widgets.

                F Offline
                F Offline
                Fizer
                wrote on last edited by
                #7

                @GrecKo Thank you, this solve the issue. Appreciate it.

                1 Reply Last reply
                0
                • F Fizer has marked this topic as solved on

                • Login

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