Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Windows Qt Creator freezing within VirtualBox
Forum Updated to NodeBB v4.3 + New Features

Windows Qt Creator freezing within VirtualBox

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
qtcreatorfreezevirtualbox
17 Posts 4 Posters 5.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mrjjM mrjj

    Hi
    Well, we only used Creator < 4.8 in VBox so far.
    (using VMware for the dev box at work with 4.8 Creator)

    Since simply downgrading to 4.7.2 and all works good again, it rules out
    any issues with the VM os itself or VBox.

    What Windows are you using as guest ?
    Are you using an SSD to host the virtual disk ?

    I can try tomorrow installing same windows in Vbox and newest creator to see if
    I can reproduce it.

    I assume you are on linux ? ( the host )

    aha_1980A Offline
    aha_1980A Offline
    aha_1980
    Lifetime Qt Champion
    wrote on last edited by
    #3

    @mrjj

    What Windows are you using as guest ?
    Are you using an SSD to host the virtual disk ?

    Windows 7 x64 (I edited my post), and yes on SSD.

    I can try tomorrow installing same windows in Vbox and newest creator to see if I can reproduce it.

    Thanks, that's awesome!

    I assume you are on linux ? ( the host )

    Yes. I have two machines with this problem, and one native Win7 running rock-stable.

    Thanks again!

    Qt has to stay free or it will die.

    mrjjM 1 Reply Last reply
    0
    • aha_1980A aha_1980

      @mrjj

      What Windows are you using as guest ?
      Are you using an SSD to host the virtual disk ?

      Windows 7 x64 (I edited my post), and yes on SSD.

      I can try tomorrow installing same windows in Vbox and newest creator to see if I can reproduce it.

      Thanks, that's awesome!

      I assume you are on linux ? ( the host )

      Yes. I have two machines with this problem, and one native Win7 running rock-stable.

      Thanks again!

      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #4

      @aha_1980
      well even it would be windows on windows for me i think its still a solid test and
      been wanting to try virtual box at a newer version for some time :)

      1 Reply Last reply
      1
      • aha_1980A aha_1980

        Hi, I have a strange problem with newer Qt Creator versions (starting with 4.8): When I run Windows 7 x64 in VirtualBox 5.2.28, Qt Creator randomly freezes during compiling or debugging, sometimes even editing.

        Disabling the Clang Code Model improves things, but does not completely fix the issue. I already disabled the QML related plugins...

        I'm now back to 4.7.2 which does not seem to have such problems.

        Has anyone else encountered such problems?

        Regards

        J.HilkJ Online
        J.HilkJ Online
        J.Hilk
        Moderators
        wrote on last edited by J.Hilk
        #5

        @aha_1980
        I think I had this once on my main windows pc, where it every now and than froce during compilation.

        IIRC that "fixed itself". During the next update my installation was totally broken and I ended up completely reinstalling QtC and Qt and I don't think it happened since then.


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        aha_1980A 1 Reply Last reply
        1
        • J.HilkJ J.Hilk

          @aha_1980
          I think I had this once on my main windows pc, where it every now and than froce during compilation.

          IIRC that "fixed itself". During the next update my installation was totally broken and I ended up completely reinstalling QtC and Qt and I don't think it happened since then.

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #6

          @J.Hilk said in Windows Qt Creator freezing within VirtualBox:

          IIRC that "fixed itself". During the next update my installation was totally broken and I ended up completely reinstalling QtC and Qt

          Yeah sometimes that helps.

          Thanks - your description sounds exactly like my issue. I still hope to solve it without complete reinstallation, though.

          Regards

          Qt has to stay free or it will die.

          1 Reply Last reply
          0
          • mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #7

            Hi
            Used VBox 5.2.28 and win 7 64bit and so far i have not seen
            any freezes.
            I noticed that a newer version has come out. it could be worth trying.

            I will use it some more tomorrow to see if i can get it to be funky.

            aha_1980A 1 Reply Last reply
            1
            • mrjjM mrjj

              Hi
              Used VBox 5.2.28 and win 7 64bit and so far i have not seen
              any freezes.
              I noticed that a newer version has come out. it could be worth trying.

              I will use it some more tomorrow to see if i can get it to be funky.

              aha_1980A Offline
              aha_1980A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on last edited by
              #8

              @mrjj you're the best :)

              Qt has to stay free or it will die.

              mrjjM 1 Reply Last reply
              1
              • aha_1980A aha_1980

                @mrjj you're the best :)

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #9

                @aha_1980
                :)) \o/
                Actually, i must say VBox actually feels
                faster with a Windows 7 than it does in vmware.
                I notice that QML was a bit unhappy about the openGl.
                I did install the addons but didnt enable openGL in settings (somewhere)

                Do you have openGL on ?

                aha_1980A 1 Reply Last reply
                0
                • mrjjM mrjj

                  @aha_1980
                  :)) \o/
                  Actually, i must say VBox actually feels
                  faster with a Windows 7 than it does in vmware.
                  I notice that QML was a bit unhappy about the openGl.
                  I did install the addons but didnt enable openGL in settings (somewhere)

                  Do you have openGL on ?

                  aha_1980A Offline
                  aha_1980A Offline
                  aha_1980
                  Lifetime Qt Champion
                  wrote on last edited by aha_1980
                  #10

                  @mrjj said in Windows Qt Creator freezing within VirtualBox:

                  I did install the addons but didnt enable openGL in settings (somewhere)
                  Do you have openGL on ?

                  I don't even know how to do that.

                  These are my machine graphics settings:
                  0_1556687632317_0c42fa3c-9952-470a-b424-21b40036538e-image.png

                  When installing the Guest Additions, I did not choose the experimental Direct3D support.

                  I'm currently indeed reinstalling Qt on one system. Let's see how it goes.

                  Edit: on first start, following dialog appears:

                  0_1556687863200_0d2d81cb-a44d-4769-a581-bf9a3171bcbe-image.png

                  So indeed no OpenGL

                  And after running one of the examples, I have these in my Application Output:

                  07:20:28: Starting C:\Qt\Examples\Qt-5.12.3\widgets\itemviews\build-editabletreemodel-Desktop_Qt_5_12_3_MSVC2017_32bit-Debug\debug\editabletreemodel.exe ...
                  OpenGL Warning: State tracker is being re-initialized..
                  
                  OpenGL Warning: Assertion failed: g_pAvailableContexts[ctx->id] == ctx=0, file D:\tinderbox\add-5.2\src\VBox\GuestHost\OpenGL\state_tracker\state_init.c, line 443
                  OpenGL Warning: freeing context 01ff0020, id(0) not being in the context list
                  OpenGL Warning: State tracker is being re-initialized..
                  
                  OpenGL Warning: Assertion failed: g_pAvailableContexts[ctx->id] == ctx=0, file D:\tinderbox\add-5.2\src\VBox\GuestHost\OpenGL\state_tracker\state_init.c, line 443
                  OpenGL Warning: freeing context 04600020, id(0) not being in the context list
                  07:20:35: C:/Qt/Examples/Qt-5.12.3/widgets/itemviews/build-editabletreemodel-Desktop_Qt_5_12_3_MSVC2017_32bit-Debug/debug/editabletreemodel.exe exited with code 0
                  

                  So OpenGL could really be a problem.

                  Qt has to stay free or it will die.

                  1 Reply Last reply
                  0
                  • mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by mrjj
                    #11

                    Hi
                    Ok, it is on. (3d -Beschleunigung )
                    But i guess its not good enough for QML. hence the warning

                    I have 4 cores assigned. Are you using it on ryzen and have like 8 ?

                    So far no freezes.

                    Im going to mega update win 7 and see if that makes a difference.
                    alt text
                    1 GB updates..:)

                    aha_1980A 1 Reply Last reply
                    0
                    • mrjjM mrjj

                      Hi
                      Ok, it is on. (3d -Beschleunigung )
                      But i guess its not good enough for QML. hence the warning

                      I have 4 cores assigned. Are you using it on ryzen and have like 8 ?

                      So far no freezes.

                      Im going to mega update win 7 and see if that makes a difference.
                      alt text
                      1 GB updates..:)

                      aha_1980A Offline
                      aha_1980A Offline
                      aha_1980
                      Lifetime Qt Champion
                      wrote on last edited by aha_1980
                      #12

                      @mrjj

                      But i guess its not good enough for QML. hence the warning

                      Probably. I disabled the two plugins, as I don't need them.

                      I have 4 cores assigned. Are you using it on ryzen and have like 8 ?

                      No, only six cores. I'm running it on a Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz notebook.

                      After the re-installation (Qt 5.12.3 MSVC2017, Visual Studio Build tools) it works quite well. I've compiled QtCreator from source (takes 17 minutes and is therefore faster than on the Linux host - interesting btw.) and debugged a smaller program. So far without crashes or freezes.

                      I will try next time on my development machine (the Ryzen), but I really think it's just some installation hickup.

                      @J-Hilk: I guess I owe you a beer @ Qt World Summit ( @mrjj: I hope we can have one too :))

                      Regards

                      Qt has to stay free or it will die.

                      JonBJ J.HilkJ 2 Replies Last reply
                      2
                      • aha_1980A aha_1980

                        @mrjj

                        But i guess its not good enough for QML. hence the warning

                        Probably. I disabled the two plugins, as I don't need them.

                        I have 4 cores assigned. Are you using it on ryzen and have like 8 ?

                        No, only six cores. I'm running it on a Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz notebook.

                        After the re-installation (Qt 5.12.3 MSVC2017, Visual Studio Build tools) it works quite well. I've compiled QtCreator from source (takes 17 minutes and is therefore faster than on the Linux host - interesting btw.) and debugged a smaller program. So far without crashes or freezes.

                        I will try next time on my development machine (the Ryzen), but I really think it's just some installation hickup.

                        @J-Hilk: I guess I owe you a beer @ Qt World Summit ( @mrjj: I hope we can have one too :))

                        Regards

                        JonBJ Offline
                        JonBJ Offline
                        JonB
                        wrote on last edited by JonB
                        #13

                        @aha_1980
                        Throw away comment: I use VirtualBox, but on Windows host for Linux guest. In this VB (at least), on Settings, Display tab, there are options for both 3D and 2D acceleration. I found I had to switch both off (i.e. including the 2D) to get reliable Qt application/Creator behaviour. Just a thought if further odd behaviour...?

                        aha_1980A 1 Reply Last reply
                        2
                        • JonBJ JonB

                          @aha_1980
                          Throw away comment: I use VirtualBox, but on Windows host for Linux guest. In this VB (at least), on Settings, Display tab, there are options for both 3D and 2D acceleration. I found I had to switch both off (i.e. including the 2D) to get reliable Qt application/Creator behaviour. Just a thought if further odd behaviour...?

                          aha_1980A Offline
                          aha_1980A Offline
                          aha_1980
                          Lifetime Qt Champion
                          wrote on last edited by
                          #14

                          @JonB Thanks for the hint, I will take it into account if the reinstallation does not help.

                          Qt has to stay free or it will die.

                          1 Reply Last reply
                          0
                          • aha_1980A aha_1980

                            @mrjj

                            But i guess its not good enough for QML. hence the warning

                            Probably. I disabled the two plugins, as I don't need them.

                            I have 4 cores assigned. Are you using it on ryzen and have like 8 ?

                            No, only six cores. I'm running it on a Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz notebook.

                            After the re-installation (Qt 5.12.3 MSVC2017, Visual Studio Build tools) it works quite well. I've compiled QtCreator from source (takes 17 minutes and is therefore faster than on the Linux host - interesting btw.) and debugged a smaller program. So far without crashes or freezes.

                            I will try next time on my development machine (the Ryzen), but I really think it's just some installation hickup.

                            @J-Hilk: I guess I owe you a beer @ Qt World Summit ( @mrjj: I hope we can have one too :))

                            Regards

                            J.HilkJ Online
                            J.HilkJ Online
                            J.Hilk
                            Moderators
                            wrote on last edited by
                            #15

                            @aha_1980 ;-) I'm all for it, of course.


                            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                            Q: What's that?
                            A: It's blue light.
                            Q: What does it do?
                            A: It turns blue.

                            1 Reply Last reply
                            1
                            • aha_1980A Offline
                              aha_1980A Offline
                              aha_1980
                              Lifetime Qt Champion
                              wrote on last edited by
                              #16

                              I now reinstalled Qt and Creator on my workstation too.

                              So far, no freezes - let's cross fingers.

                              Thank you all for your help :)

                              Regards

                              Qt has to stay free or it will die.

                              mrjjM 1 Reply Last reply
                              1
                              • aha_1980A aha_1980

                                I now reinstalled Qt and Creator on my workstation too.

                                So far, no freezes - let's cross fingers.

                                Thank you all for your help :)

                                Regards

                                mrjjM Offline
                                mrjjM Offline
                                mrjj
                                Lifetime Qt Champion
                                wrote on last edited by
                                #17

                                @aha_1980
                                That is good news.
                                Besides getting slower after being patched to death,
                                i did not experience any freezing.

                                1 Reply Last reply
                                0

                                • Login

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • Users
                                • Groups
                                • Search
                                • Get Qt Extensions
                                • Unsolved