Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

Qt creator plugin crash

$
0
0
Hi ! I have try to build simplest qt creator plugin using standart Libraries->Qt creator plugin selection from project wizard. Of course, previosly I build debug version of qt creator from sources, using qmake with flags -r -spec macx-g++ CONFIG+=debug CONFIG+=x86_64 CONFIG+=declarative_debug CONFIG+=qml_debug, which qt creator uses for debuging (plugin also was built with the same flags). Plugin was successfully compiled and installed to my qt creator debuging assembly. But when I try to run it, qt creator (my debugging assembly of course) crashes, although it worked well without my plugin. Crash occours BEFORE call of MyPluginPlugin::initialize(), in function AnalyzerManagerPrivate::modeChanged() (from qt creator code itself) here is it code: void AnalyzerManagerPrivate::modeChanged(IMode *mode) {     if (mode && mode == m_mode) {         m_mainWindow->setDockActionsVisible(true);         static bool firstTime = true;         if (firstTime)             selectSavedTool();         firstTime = false;         updateRunActions();     } else {         m_mainWindow->setDockActionsVisible(false);     } } in the first call of this function. The reason of crash: m_mainWindow = NULL. When I add if(!m_mainWindow) return; into beginning of function, it begins works. But function initialize() of my plugin not called at all. All other plugins loads correctly and qt creator works. Can anybody say, wath is wrong ? P.S. My working enironment is: MacOS 10.8.2, QtSDK 5.0.0, Qt Creator 2.6.1. Qt Creator sources also 2.6.1 Regards Eugene

Viewing all articles
Browse latest Browse all 18427

Trending Articles