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

Windows Qt Creator freezing within VirtualBox

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
qtcreatorfreezevirtualbox
17 Posts 4 Posters 4.9k Views
  • 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.
  • A Offline
    A Offline
    aha_1980
    Lifetime Qt Champion
    wrote on 28 Apr 2019, 11:37 last edited by aha_1980
    #1

    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

    Qt has to stay free or it will die.

    J 1 Reply Last reply 29 Apr 2019, 05:18
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 28 Apr 2019, 18:30 last edited by
      #2

      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 )

      A 1 Reply Last reply 28 Apr 2019, 18:41
      0
      • M mrjj
        28 Apr 2019, 18:30

        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 )

        A Offline
        A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on 28 Apr 2019, 18:41 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.

        M 1 Reply Last reply 28 Apr 2019, 19:06
        0
        • A aha_1980
          28 Apr 2019, 18:41

          @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!

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 28 Apr 2019, 19:06 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
          • A aha_1980
            28 Apr 2019, 11:37

            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 Offline
            J Offline
            J.Hilk
            Moderators
            wrote on 29 Apr 2019, 05:18 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.

            A 1 Reply Last reply 29 Apr 2019, 05:55
            1
            • J J.Hilk
              29 Apr 2019, 05:18

              @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.

              A Offline
              A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on 29 Apr 2019, 05:55 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
              • M Offline
                M Offline
                mrjj
                Lifetime Qt Champion
                wrote on 29 Apr 2019, 17:43 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.

                A 1 Reply Last reply 29 Apr 2019, 19:37
                1
                • M mrjj
                  29 Apr 2019, 17:43

                  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.

                  A Offline
                  A Offline
                  aha_1980
                  Lifetime Qt Champion
                  wrote on 29 Apr 2019, 19:37 last edited by
                  #8

                  @mrjj you're the best :)

                  Qt has to stay free or it will die.

                  M 1 Reply Last reply 29 Apr 2019, 20:23
                  1
                  • A aha_1980
                    29 Apr 2019, 19:37

                    @mrjj you're the best :)

                    M Offline
                    M Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on 29 Apr 2019, 20:23 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 ?

                    A 1 Reply Last reply 1 May 2019, 05:15
                    0
                    • M mrjj
                      29 Apr 2019, 20:23

                      @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 ?

                      A Offline
                      A Offline
                      aha_1980
                      Lifetime Qt Champion
                      wrote on 1 May 2019, 05:15 last edited by aha_1980 5 Jan 2019, 05:22
                      #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
                      • M Offline
                        M Offline
                        mrjj
                        Lifetime Qt Champion
                        wrote on 1 May 2019, 06:19 last edited by mrjj 5 Jan 2019, 06:40
                        #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..:)

                        A 1 Reply Last reply 1 May 2019, 06:57
                        0
                        • M mrjj
                          1 May 2019, 06:19

                          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..:)

                          A Offline
                          A Offline
                          aha_1980
                          Lifetime Qt Champion
                          wrote on 1 May 2019, 06:57 last edited by aha_1980 5 Jan 2019, 07:44
                          #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 2 Replies Last reply 1 May 2019, 09:11
                          2
                          • A aha_1980
                            1 May 2019, 06:57

                            @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 1 May 2019, 09:11 last edited by JonB 5 Jan 2019, 09:12
                            #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...?

                            A 1 Reply Last reply 1 May 2019, 10:28
                            2
                            • JonBJ JonB
                              1 May 2019, 09:11

                              @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...?

                              A Offline
                              A Offline
                              aha_1980
                              Lifetime Qt Champion
                              wrote on 1 May 2019, 10:28 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
                              • A aha_1980
                                1 May 2019, 06:57

                                @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 Offline
                                J Offline
                                J.Hilk
                                Moderators
                                wrote on 2 May 2019, 04:46 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
                                • A Offline
                                  A Offline
                                  aha_1980
                                  Lifetime Qt Champion
                                  wrote on 3 May 2019, 06:46 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.

                                  M 1 Reply Last reply 3 May 2019, 06:53
                                  1
                                  • A aha_1980
                                    3 May 2019, 06:46

                                    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

                                    M Offline
                                    M Offline
                                    mrjj
                                    Lifetime Qt Champion
                                    wrote on 3 May 2019, 06:53 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

                                    1/17

                                    28 Apr 2019, 11:37

                                    • Login

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