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 Application crash in QApplication App()
Forum Updated to NodeBB v4.3 + New Features

Qt Application crash in QApplication App()

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 3 Posters 1.2k 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.
  • G Offline
    G Offline
    Gannu Bangalore
    wrote on last edited by
    #1

    We have build Qt application integrated with tensorflow with Bazel build system. But the application crashes in QApplication app( argc, argv ); line.... as we are not using Qt creator it is difficult to debug...any suggestion or reason for the crash?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Impossible to say without more info.

      Attach a debugger, if not by Qt Creator then use gdb directly.

      Or run your app through valgrind, it will likely show you where the problem is.

      (Z(:^

      1 Reply Last reply
      2
      • G Offline
        G Offline
        Gannu Bangalore
        wrote on last edited by
        #3

        Hi,
        Here is the error log I got.

        0_1547722385283_gdb_error.png

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          From that it looks like you have a crash in protobuf generated code, not in QApplication constructor.

          (Z(:^

          1 Reply Last reply
          2
          • G Offline
            G Offline
            Gannu Bangalore
            wrote on last edited by
            #5

            Any idea to resolve? it would be helpful.

            sierdzioS 1 Reply Last reply
            0
            • G Gannu Bangalore

              Any idea to resolve? it would be helpful.

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

              @Gannu-Bangalore said in Qt Application crash in QApplication App():

              Any idea to resolve? it would be helpful.

              Nope, I don't know protobuf very well.

              Step through your sources, see at which point it crashes, exactly. If you can't do it with gdb, try with the simplest thing: insert qDebug() between each lines of your main.cpp and see where it stops.

              (Z(:^

              1 Reply Last reply
              3
              • G Offline
                G Offline
                Gannu Bangalore
                wrote on last edited by
                #7

                Thank you :)

                1 Reply Last reply
                0
                • mranger90M Offline
                  mranger90M Offline
                  mranger90
                  wrote on last edited by
                  #8

                  In my experience, a crash in protobuf code could be because the sender and the receiver definitions are not the same. Verify that the protobuf definition for the sender and the receiver are the same.

                  1 Reply Last reply
                  3

                  • Login

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