Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Tests crash because of lack of administrator rights on MinGW.
Qt 6.11 is out! See what's new in the release blog

Tests crash because of lack of administrator rights on MinGW.

Scheduled Pinned Locked Moved Unsolved General and Desktop
11 Posts 3 Posters 936 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.
  • H Offline
    H Offline
    HostGhost
    wrote on last edited by
    #1

    Hello.
    Scince recently some my tests begin to crash when I use MinGW. In the same time there is no problem when I use MSVC. Also I can run tests with MinGW if Qt Creator was started with administrator rights.
    What's the problem? How can I avoid that?
    Thanks.

    jsulmJ 1 Reply Last reply
    0
    • H HostGhost

      Hello.
      Scince recently some my tests begin to crash when I use MinGW. In the same time there is no problem when I use MSVC. Also I can run tests with MinGW if Qt Creator was started with administrator rights.
      What's the problem? How can I avoid that?
      Thanks.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @HostGhost said in Tests crash because of lack of administrator rights on MinGW.:

      What's the problem?

      What are these failing tests doing? You need to provide more information, else only guessing is possible.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      H 1 Reply Last reply
      1
      • jsulmJ jsulm

        @HostGhost said in Tests crash because of lack of administrator rights on MinGW.:

        What's the problem?

        What are these failing tests doing? You need to provide more information, else only guessing is possible.

        H Offline
        H Offline
        HostGhost
        wrote on last edited by
        #3

        @jsulm,
        This tests do absolutely different things. As I understand, they try to write something to internal memory of pc and so they need this rights, but they're not supposed to do that. It can be usual unit or integration test.

        jsulmJ 1 Reply Last reply
        0
        • H HostGhost

          @jsulm,
          This tests do absolutely different things. As I understand, they try to write something to internal memory of pc and so they need this rights, but they're not supposed to do that. It can be usual unit or integration test.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @HostGhost said in Tests crash because of lack of administrator rights on MinGW.:

          internal memory

          What internal memory?
          Is there any error message if they crash? It is really unclear what is happening.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          H 1 Reply Last reply
          1
          • jsulmJ jsulm

            @HostGhost said in Tests crash because of lack of administrator rights on MinGW.:

            internal memory

            What internal memory?
            Is there any error message if they crash? It is really unclear what is happening.

            H Offline
            H Offline
            HostGhost
            wrote on last edited by
            #5

            @jsulm,
            I mean... disk "C:\", for example. :)
            No, there is no error message - only "failed to start project test", "FATAL" result and command line information. And after that I have to restart creator because of tests stop responding so I can't stop them. Also, if I try to debug that tests, windows asks for administrator rights, but it's not help if I give them: result the same. Only when I run creator with administartor rights I can run this tests. Or if I use MSVC instead of MinGW.

            jsulmJ 1 Reply Last reply
            0
            • H HostGhost

              @jsulm,
              I mean... disk "C:\", for example. :)
              No, there is no error message - only "failed to start project test", "FATAL" result and command line information. And after that I have to restart creator because of tests stop responding so I can't stop them. Also, if I try to debug that tests, windows asks for administrator rights, but it's not help if I give them: result the same. Only when I run creator with administartor rights I can run this tests. Or if I use MSVC instead of MinGW.

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @HostGhost Where on the hard disk is your project located? And where is the build directory?
              Do you have active anti-virus software running?

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              H 1 Reply Last reply
              0
              • jsulmJ jsulm

                @HostGhost Where on the hard disk is your project located? And where is the build directory?
                Do you have active anti-virus software running?

                H Offline
                H Offline
                HostGhost
                wrote on last edited by HostGhost
                #7

                @jsulm,
                project location: "C:\my_folder_1\my_folder_2\project_name\built-..."
                Yes I do, I have anti-virus, but it didn't help me to stop it.

                jsulmJ 1 Reply Last reply
                0
                • H HostGhost

                  @jsulm,
                  project location: "C:\my_folder_1\my_folder_2\project_name\built-..."
                  Yes I do, I have anti-virus, but it didn't help me to stop it.

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @HostGhost And your user has full (read/write/execute) access rights in that path?

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  H 1 Reply Last reply
                  0
                  • Christian EhrlicherC Offline
                    Christian EhrlicherC Offline
                    Christian Ehrlicher
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Use a debugger, add some output to see what's going wrong.

                    Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                    Visit the Qt Academy at https://academy.qt.io/catalog

                    H 1 Reply Last reply
                    1
                    • jsulmJ jsulm

                      @HostGhost And your user has full (read/write/execute) access rights in that path?

                      H Offline
                      H Offline
                      HostGhost
                      wrote on last edited by
                      #10

                      @jsulm,
                      I gave full access rights, that didn't help.

                      1 Reply Last reply
                      0
                      • Christian EhrlicherC Christian Ehrlicher

                        Use a debugger, add some output to see what's going wrong.

                        H Offline
                        H Offline
                        HostGhost
                        wrote on last edited by
                        #11

                        @Christian-Ehrlicher,
                        When I use debugger for that tests, windows asks for administrator rights, and then gdb stops responding.

                        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