Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Creator "The inferior stopped because it triggered an exception"
Forum Updated to NodeBB v4.3 + New Features

Qt Creator "The inferior stopped because it triggered an exception"

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 5 Posters 1.5k Views 2 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
    SimonR
    wrote on last edited by aha_1980
    #1

    I'm writing an application where I want to use the mongocxx driver. I've already created a topic because I got an error, but now, all dlls and libs are included, but when I run the program, I get the following error:
    af66f0ca-5eb5-44ef-aa37-4993cd7572ed-image.png
    Can someone tell me why this happens and how to solve this?
    The compiler is MSCV 2017 64 bit.

    jsulmJ 1 Reply Last reply
    0
    • S SimonR

      I'm writing an application where I want to use the mongocxx driver. I've already created a topic because I got an error, but now, all dlls and libs are included, but when I run the program, I get the following error:
      af66f0ca-5eb5-44ef-aa37-4993cd7572ed-image.png
      Can someone tell me why this happens and how to solve this?
      The compiler is MSCV 2017 64 bit.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @SimonR said in Qt Creator "The inferior stopped because it triggered an excepection":

      Can someone tell me why this happens and how to solve this?

      No, but debugger maybe

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      4
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi
        Set a breakpoint in main.cpp

        If the crash comes before reaching first line, it means something up with the DLLS.

        Else single step the app until you find the line that gives this exception.

        1 Reply Last reply
        4
        • S Offline
          S Offline
          SimonR
          wrote on last edited by
          #4

          The program crashes when I first use code from a third-party provider. I'll try to contact the support for the driver.

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

            Hi,

            Before that, are you sure that the corresponding dll can be found by your application ?

            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
              SimonR
              wrote on last edited by
              #6

              @SGaist
              Yes, all the dlls are in my build directory. I use this to tell my application where the .lib files are:

              LIBS += -LC:/mongo-cxx-driver-3.4.1/lib -lbsoncxx \
                      -LC:/mongo-cxx-driver-3.4.1/lib -lmongocxx
              
              jsulmJ 1 Reply Last reply
              0
              • S SimonR

                @SGaist
                Yes, all the dlls are in my build directory. I use this to tell my application where the .lib files are:

                LIBS += -LC:/mongo-cxx-driver-3.4.1/lib -lbsoncxx \
                        -LC:/mongo-cxx-driver-3.4.1/lib -lmongocxx
                
                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @SimonR said in Qt Creator "The inferior stopped because it triggered an exception":

                LIBS += -LC:/mongo-cxx-driver-3.4.1/lib -lbsoncxx
                -LC:/mongo-cxx-driver-3.4.1/lib -lmongocxx

                This is for the linker not for your application.
                "all the dlls are in my build directory" - you mean in the build directory of your application?

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                aha_1980A 1 Reply Last reply
                1
                • S Offline
                  S Offline
                  SimonR
                  wrote on last edited by
                  #8

                  @jsulm yes.

                  1 Reply Last reply
                  0
                  • jsulmJ jsulm

                    @SimonR said in Qt Creator "The inferior stopped because it triggered an exception":

                    LIBS += -LC:/mongo-cxx-driver-3.4.1/lib -lbsoncxx
                    -LC:/mongo-cxx-driver-3.4.1/lib -lmongocxx

                    This is for the linker not for your application.
                    "all the dlls are in my build directory" - you mean in the build directory of your application?

                    aha_1980A Offline
                    aha_1980A Offline
                    aha_1980
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    @jsulm

                    This is for the linker not for your application.

                    That is correct, but QtCreator adds these paths to LD_LIBRARY_PATH when running the app, so the app can find the libs.

                    No need to copy them around.

                    Regards

                    Qt has to stay free or it will die.

                    jsulmJ 1 Reply Last reply
                    0
                    • aha_1980A aha_1980

                      @jsulm

                      This is for the linker not for your application.

                      That is correct, but QtCreator adds these paths to LD_LIBRARY_PATH when running the app, so the app can find the libs.

                      No need to copy them around.

                      Regards

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @aha_1980 said in Qt Creator "The inferior stopped because it triggered an exception":

                      QtCreator adds these paths to LD_LIBRARY_PATH when running the app

                      Yes, if running from QtCreator

                      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