Qt Application crash in QApplication App()
-
wrote on 17 Jan 2019, 10:08 last edited by
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?
-
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.
-
wrote on 17 Jan 2019, 10:53 last edited by
-
From that it looks like you have a crash in protobuf generated code, not in QApplication constructor.
-
wrote on 17 Jan 2019, 11:38 last edited by
Any idea to resolve? it would be helpful.
-
Any idea to resolve? it would be helpful.
@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.
-
wrote on 21 Jan 2019, 06:24 last edited by
Thank you :)
-
wrote on 21 Jan 2019, 13:39 last edited by
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.
4/8