Segmentation fault QCoreApplication::cs_isRealGuiApp()

Discuss anything related to product development
Post Reply
seasoned_geek
Posts: 123
Joined: Thu Jun 11 2020 12:18 pm

Segmentation fault QCoreApplication::cs_isRealGuiApp()

Post by seasoned_geek »

All,

(gdb) go
Command requires an argument.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff43f5234 in QCoreApplication::cs_isRealGuiApp() () from /usr/local/lib/libCsCore1.7.so
(gdb)

In the .cpp file for my Overlord class I had decided to be a good little programmer and near the top of the file.

Code: Select all

static const QSize DEFAULT_SIZE(450, 600);
static const QPoint DEFAULT_POSITION(0, 0);
static const QFont DEFAULT_FONT("Monospace", 12);
It's late and I'm tired, so I haven't dug much deeper. I know one of these, if not all three of these must have a call to QCoreApplication::cs_isRealGuiApp() in the constructor. My guess is it is QFont and I'm guessing whoever did it meant well, but now you can't have a static const outside of a class so it is only visible within a single .cpp file. It gets initialized before the QApplication in main.cpp.

Post Reply