Solved Qt Application crash in QApplication App()
-
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.
-
Hi,
Here is the error log I got. -
From that it looks like you have a crash in protobuf generated code, not in QApplication constructor.
-
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.
-
Thank you :)
-
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.