Solved Qt Creator crashing on start-up
-
Last night I installed Qt Creator 4.14.0 with Qt 6.0.0, I then launched the MaintenanceTool and added 5.15.1 and 5.15.2. I left the installation overnight, when I returned there were no errors or warnings as far as I could see everything was ok.
When I launched Qt Creator it immediately shut down, I tried several times, same thing. I've submitted a bug report and thought I'd post this here to see if anyone has any advice because I cannot continue work until its resolved.
Bug report:
https://bugreports.qt.io/browse/QTCREATORBUG-25187 -
@KroMignon , thank you, it launched, but does the same, pops up in the launch bar then disappears very quickly.
I was in the Qt folder which on my system is:
/Users/sy/Qt
I then typed:
Qt\ Creator.app/Contents/MacOS/Qt\ Creator -noload all -load core
Result:
sy@Simons-iMac Qt % Qt\ Creator.app/Contents/MacOS/Qt\ Creator -noload all -load core The plugin "core" does not exist. Usage: Qt Creator [OPTION]... [FILE]... Options: -help Display this help -version Display program version -client Attempt to connect to already running first instance -settingspath <path> Override the default path where user settings are stored -installsettingspath <path> Override the default path from where user-independent settings are read -temporarycleansettings Use clean settings for debug or testing reasons -pid <pid> Attempt to connect to instance given by pid -block Block until editor is closed -pluginpath <path> Add a custom search path for plugins -load <plugin> Load <plugin> and all plugins that it requires -load all Load all available plugins -noload <plugin> Do not load <plugin> and all plugins that require it -noload all Do not load any plugin (useful when followed by one or more "-load" arguments) -profile Profile plugin loading -no-crashcheck Disable startup check for previously crashed instance Plugin: Core -color <color> Override selected UI color -theme <default|dark> Choose a built-in theme or pass a .creatortheme file -presentationMode Enable presentation mode with pop-ups for key combos Plugin: Debugger -debug <pid> Attach to local process -debug <executable>[,kit=<kit>][,terminal={0,1}][,sysroot=<sysroot>] Start and debug executable -debug [executable,]core=<corefile>[,kit=<kit>][,sysroot=<sysroot>] Attach to core file -debug <executable>,server=<server:port>[,kit=<kit>][,sysroot=<sysroot>] Attach to remote debug server -wincrashevent <eventhandle:pid> Event handle used for attaching to crashed processes Plugin: Git -git-show <git commit hash> Show given commit hash Plugin: ProjectExplorer -customwizard-verbose Verbose loading of custom wizards -ensure-kit-for-binary <file path> Create kit with architecture matching a given application or library -lastsession Restore the last session <session> Restore a saved session Plugin: QmlDesigner -capture-puppet-stream <capture file> Captures the Qml Puppet stream Plugin: Welcome -notour Do not ask for taking a UI tour on startup
However, I then tried:
sy@Simons-iMac Qt % Qt\ Creator.app/Contents/MacOS/Qt\ Creator -noload all -load Core
Which fixes the issue, core has to be Core. But the only tab showing is Edit, how do I fix?
When I tried to open my 'pro' file a dialog with an exclamation icon is displayed with the text:
Could not open "/users/sy/XMLMPAM/XMLMPAM.pro.user": Cannot open files of type "application/xml".
I then launched the Maintenance Tool then removed everything. Then from my profile I checked for files and folders and found .config, I went into this folder and found the folder QtProject, which contained several Qt Creator specific files, I removed the QtProject folder and its contents then reinstalled Qt.
That worked!
-
@SPlatten
Thanks for sharing the bug report link.Did you check the common settings as in https://forum.qt.io/topic/76015/qt-creator-crashes-after-startup ?
-
@koahnig , thank you, how do I do that? I've checked your link, all I have in is the "Qt Creator.app", how do I do the same with that?
-
@SPlatten You have to start QtCreator with command line arguments
-noload all -load core
This will disable all modules and only load the core module
=> As usual you can check this in documentation ;) -
@KroMignon , thank you, I realise that my question is how do I launch Qt Creator with command line arguments, since all I have is "Qt Creator.app" ?
-
What is your OS?
-
@koahnig , macOS Big Sur Version 11.1
-
@SPlatten said in Qt Creator crashing on start-up:
macOS Big Sur Version 11.1
I've got Linux and Windows, but in documentation there is written:
On macOS: Qt\ Creator.app/Contents/MacOS/Qt\ Creator -noload all -load core
-
@KroMignon , thank you, it launched, but does the same, pops up in the launch bar then disappears very quickly.
I was in the Qt folder which on my system is:
/Users/sy/Qt
I then typed:
Qt\ Creator.app/Contents/MacOS/Qt\ Creator -noload all -load core
Result:
sy@Simons-iMac Qt % Qt\ Creator.app/Contents/MacOS/Qt\ Creator -noload all -load core The plugin "core" does not exist. Usage: Qt Creator [OPTION]... [FILE]... Options: -help Display this help -version Display program version -client Attempt to connect to already running first instance -settingspath <path> Override the default path where user settings are stored -installsettingspath <path> Override the default path from where user-independent settings are read -temporarycleansettings Use clean settings for debug or testing reasons -pid <pid> Attempt to connect to instance given by pid -block Block until editor is closed -pluginpath <path> Add a custom search path for plugins -load <plugin> Load <plugin> and all plugins that it requires -load all Load all available plugins -noload <plugin> Do not load <plugin> and all plugins that require it -noload all Do not load any plugin (useful when followed by one or more "-load" arguments) -profile Profile plugin loading -no-crashcheck Disable startup check for previously crashed instance Plugin: Core -color <color> Override selected UI color -theme <default|dark> Choose a built-in theme or pass a .creatortheme file -presentationMode Enable presentation mode with pop-ups for key combos Plugin: Debugger -debug <pid> Attach to local process -debug <executable>[,kit=<kit>][,terminal={0,1}][,sysroot=<sysroot>] Start and debug executable -debug [executable,]core=<corefile>[,kit=<kit>][,sysroot=<sysroot>] Attach to core file -debug <executable>,server=<server:port>[,kit=<kit>][,sysroot=<sysroot>] Attach to remote debug server -wincrashevent <eventhandle:pid> Event handle used for attaching to crashed processes Plugin: Git -git-show <git commit hash> Show given commit hash Plugin: ProjectExplorer -customwizard-verbose Verbose loading of custom wizards -ensure-kit-for-binary <file path> Create kit with architecture matching a given application or library -lastsession Restore the last session <session> Restore a saved session Plugin: QmlDesigner -capture-puppet-stream <capture file> Captures the Qml Puppet stream Plugin: Welcome -notour Do not ask for taking a UI tour on startup
However, I then tried:
sy@Simons-iMac Qt % Qt\ Creator.app/Contents/MacOS/Qt\ Creator -noload all -load Core
Which fixes the issue, core has to be Core. But the only tab showing is Edit, how do I fix?
When I tried to open my 'pro' file a dialog with an exclamation icon is displayed with the text:
Could not open "/users/sy/XMLMPAM/XMLMPAM.pro.user": Cannot open files of type "application/xml".
I then launched the Maintenance Tool then removed everything. Then from my profile I checked for files and folders and found .config, I went into this folder and found the folder QtProject, which contained several Qt Creator specific files, I removed the QtProject folder and its contents then reinstalled Qt.
That worked!