Qt Creator keep crashing when opening *.ui file



  • Hi all,
    I'm using Qt SDK version 2010.05. Not sure why Qt Creator keep crashing when I try to load the ui file. No problem when running Qt Designer independently and the ui file can be loaded properly.
    I'm using Windows Vista Home Basic 32-bit. Please help.



  • Strange, can you post your ui file?



  • [quote author="pohdes" date="1293606852"]Hi all,
    I'm using Qt SDK version 2010.05. Not sure why Qt Creator keep crashing when I try to load the ui file. No problem when running Qt Designer independently and the ui file can be loaded properly.
    I'm using Windows Vista Home Basic 32-bit. Please help.[/quote]

    Can you try the same ui file with the installation of QtSDK 2010.05 at another O/S, such as Windows XP?



  • Never faced such an issue with Qt SDK version 2010.05. Does this happen with any particular .ui file. Or crashes with any .ui file.



  • Below is the ui file:
    @<ui version="4.0">
    <class>TestGUI</class>
    <widget class="QWidget" name="TestGUI" >
    <property name="geometry" >
    <rect>
    <x>0</x>
    <y>0</y>
    <width>400</width>
    <height>300</height>
    </rect>
    </property>
    <property name="windowTitle" >
    <string>TestGUI</string>
    </property>
    </widget>
    <layoutDefault spacing="6" margin="11" />
    <pixmapfunction></pixmapfunction>
    <resources/>
    <connections/>
    </ui>
    @

    Qtk: Yes, it crash with any ui file.



  • With that ui file qt creator crash for me!
    I'm Win Xp Sp3

    But in your ui file there isn't a
    @
    <?xml version="1.0" encoding="UTF-8"?>@
    in the first line.



  • stuk: This is an ui file created by qtCreator when I try to create a Qt GUI project. I didn't change anything in it. So, I need to add that line in?



  • [quote author="pohdes" date="1293614378"]stuk: This is an ui file created by qtCreator when I try to create a Qt GUI project. I didn't change anything in it. So, I need to add that line in?[/quote]

    No it should have been there already. Try to create a new project in Qt creator and check what happens to the ui file. Does it crash or not. If crashing check if xml version tag is there or not.



  • This is strange because for me, create a new project create the same ui posted but view in qt creator add the xml version, but only in qt creator! in the source code of the ui there isn't that code!

    [quote author="QtK" date="1293615321"]
    [quote author="pohdes" date="1293614378"]stuk: This is an ui file created by qtCreator when I try to create a Qt GUI project. I didn't change anything in it. So, I need to add that line in?[/quote]

    No it should have been there already. Try to create a new project in Qt creator and check what happens to the ui file. Does it crash or not. If crashing check if xml version tag is there or not.

    [/quote]



  • In my case the source code has it. But when I modified the .ui to the one provided above. The editor in Qt Creator doesn't show this line.

    @<pixmapfunction></pixmapfunction>@

    but if I open it in any other text editor, it is shown there.



  • Qt Creator in Qt SDK 2010.05 is depricated, Do may be not try resolve this problem and download new version? Qt Creator 2.1 for example?



  • [quote author="Vass" date="1293624591"]Qt Creator in Qt SDK 2010.05 is depricated, Do may be not try resolve this problem and download new version? Qt Creator 2.1 for example?[/quote]

    I think that you are wrong here: Qt Creator included in Qt SDK 2010.05 is Qt Creator 2.0.1, which is the latest "stable" version. The version 2.1 of Qt Creator that you mention is a Release Candidate. :)



  • [quote author="Stavros Filippidis" date="1293624815"]
    [quote author="Vass" date="1293624591"]Qt Creator in Qt SDK 2010.05 is depricated, Do may be not try resolve this problem and download new version? Qt Creator 2.1 for example?[/quote]

    I think that you are wrong here: Qt Creator included in Qt SDK 2010.05 is Qt Creator 2.0.1, which is the latest "stable" version. The version 2.1 of Qt Creator that you mention is a Release Candidate. :)[/quote]

    Right Qt Creator included in Qt SDK 2010.05 is Qt Creator 2.0.1.



  • Stavros Filippidis IMHO using unstable Qt Creator is not a problem. It's no high load server with millions users. Release candidate is enough stable for using and includes many new features, such as QML Designer.



  • That's right. But in this case only pohdes is facing this problem. Will have to wait till he replies back.



  • [quote author="Vass" date="1293627745"]Stavros Filippidis IMHO using unstable Qt Creator is not a problem. It's no high load server with millions users. Release candidate is enough stable for using and includes many new features, such as QML Designer.[/quote]

    Generally speaking, I don't disagree with this! My point was that the version included in Qt SDK 2010.05 is NOT deprecated, but instead it is the current official and stable version provided. So, I would make the hypothesis that the initial poster's crashes do NOT have to do with the Qt Creator's version. ;)



  • I agree with Stavros, 2010.05 is not a deprecated, but is the last stable sdk version. And sometimes only for a debug is useful test new 'unstable' version.
    I remember the first 'beta' version of creator where it crash many times :P



  • [quote author="stuk" date="1293635649"]I remember the first 'beta' version of creator where it crash many times :P[/quote]

    stuk It's not true now :)



  • I hope :P

    [quote author="Vass" date="1293638612"][quote author="stuk" date="1293635649"]I remember the first 'beta' version of creator where it crash many times :P[/quote]

    stuk It's not true now :)[/quote]



  • I check the memory usage, it seems like QtCreator use up all my machine's memory (2GB) during opening the ui file and then it crash...could this be a vista problem?


  • Moderators

    pohdes: Did you file a bug report in our "issue tracker":http://bugreports.qt.nokia.com/?



  • Which anti-virus you've installed on your system? lol
    have you tried your QtCreator with "Run as administrator" mode?



  • Tobias: No, I didn't file yet as I want to confirm it is really a bug first.

    mohsen: I try everything, run as admin, start with window XP SP2 compatibility mode, all the same.



  • Create new windows user and try there.



  • I have exactly the same problem when opening .UI file with QT creator. It just crashed. Tried running as administrator and still experience crash. I'm running Windows Vista Home Premium S


  • Moderators

    Running Qt Creator as administrator is not necessary. Please do not do that.

    Did anybody file a "bug report":http://bugreports.qt.nokia.com/ yet?



  • I've submitted a bug report and the recommendation given is to use latest QT Creator version 2.1

    It can open .UI file now


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.