Ben ff aan het spelen met QT/Embedded en ik krijg een onverklaarbare crash.
simpel hello-world progje:
als ik deze compile tegen QT3 dan werkt dit zonder problemen, het programma draait zonder crashes.
als ik deze compiletegen QT3/Embedded (die source-code compatible zou moeten zijn) dan compiled ie ook, als ik 'm run dan verschijnt het windowtje in de framebuffer (ik gebruik de virtual framebuffer die bij QT/E zit) waarna de app segfault ergens in de QT lib)
backtrace:
Is dit een bug in QT of doe ik zelf iets stoms
simpel hello-world progje:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| #include <qapplication.h>
#include <qpushbutton.h>
#include <iostream>
int main(int argc, char** argv)
{
QApplication myApp(argc,argv,QApplication::GuiServer);
QPushButton hello("Hello world",0,"hello1");
hello.resize(100,30);
cout << hello.text() << "<-- text\n";
myApp.setMainWidget(&hello);
hello.show();
return myApp.exec();
} |
als ik deze compile tegen QT3 dan werkt dit zonder problemen, het programma draait zonder crashes.
als ik deze compiletegen QT3/Embedded (die source-code compatible zou moeten zijn) dan compiled ie ook, als ik 'm run dan verschijnt het windowtje in de framebuffer (ik gebruik de virtual framebuffer die bij QT/E zit) waarna de app segfault ergens in de QT lib)
backtrace:
code:
1
2
3
4
5
6
7
8
9
10
11
12
| Program received signal SIGSEGV, Segmentation fault. 0x08307d41 in QGListIterator::QGListIterator () (gdb) bt #0 0x08307d41 in QGListIterator::QGListIterator () #1 0x080e18d3 in QApplication::internalNotify () #2 0x080e1891 in QApplication::notify () #3 0x080823a6 in QETWidget::repaintDecoration () #4 0x08080014 in QApplication::qwsProcessEvent () #5 0x0807f596 in QApplication::processNextEvent () #6 0x080e2b5f in QApplication::enter_loop () #7 0x0807f52e in QApplication::exec () #8 0x0804b52d in main () |
Is dit een bug in QT of doe ik zelf iets stoms
Those who do not understand Unix are condemned to reinvent it, poorly.