Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Problem with QtQuick process in arm with mali.(EGL error)
Forum Updated to NodeBB v4.3 + New Features

Problem with QtQuick process in arm with mali.(EGL error)

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
arm qtquickeglfsmali
9 Posts 2 Posters 1.2k Views 2 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.
  • P Offline
    P Offline
    PeiSy
    wrote on 17 Jun 2021, 03:59 last edited by
    #1

    Hi, all
    I'm getting confused about my QtQuick program.
    I'm using Qt5.12.8 in armhf and LXDE desktop.

    1. if I log in as user, and excute it , the gui displays successfully, but i need to change some system file, so i need to excute it with sudo. then i get some error.
    Unable to set double buffer mode!(Invalid argument)
         …
         …
        EGL Error: Could not create the egl surface : error = 0x3003
    
    1. If i log in desktop as root, everything is ok. But clearly, it is not a suitable solution for me.

    Is everyone konwn this problem?
    Thanks.

    1 Reply Last reply
    0
    • P Offline
      P Offline
      PeiSy
      wrote on 21 Jun 2021, 03:10 last edited by
      #2

      Can someone help me solve this problem?
      I would be very grateful.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 21 Jun 2021, 19:49 last edited by
        #3

        Hi and welcome to devnet,

        What exactly do you need to modify ?
        How are you starting your application ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • P Offline
          P Offline
          PeiSy
          wrote on 22 Jun 2021, 01:43 last edited by
          #4

          hi, SGaist. Thanks for your reply.
          First, login into the Desktop with 'user', then, just start my application normally, it's worked and show me the ui. But when i use sudo to start it, the app can not start successfully. And I got some error like this:

          Unable to set double buffer mode!(Invalid argument)
               …
               …
          EGL Error: Could not create the egl surface : error = 0x3003
          

          If I login into Desktop with 'root', then start it. Everything is ok, but it not a good way for my work.
          May some environment variables are not set when i start it with sudo? I feel too weak for this problem. : (

          1 Reply Last reply
          0
          • P Offline
            P Offline
            PeiSy
            wrote on 22 Jun 2021, 02:09 last edited by
            #5

            Well , I need to start my application with sudo in "user" account.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 22 Jun 2021, 20:00 last edited by
              #6

              By default root does not have access to the X server through sudo. You have to explicitly enable that.

              However this raises the question as to why do you need to run your GUI with root access ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              P 1 Reply Last reply 23 Jun 2021, 02:51
              1
              • S SGaist
                22 Jun 2021, 20:00

                By default root does not have access to the X server through sudo. You have to explicitly enable that.

                However this raises the question as to why do you need to run your GUI with root access ?

                P Offline
                P Offline
                PeiSy
                wrote on 23 Jun 2021, 02:51 last edited by
                #7

                @SGaist I need to modify some system file that own by root. After my test, all qml/quick application could not started with sudo. And get the same error like before.
                btw, the system is debian:buster and linaro

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 24 Jun 2021, 20:19 last edited by
                  #8

                  Which files do you need to modify ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  P 1 Reply Last reply 25 Jun 2021, 09:22
                  0
                  • S SGaist
                    24 Jun 2021, 20:19

                    Which files do you need to modify ?

                    P Offline
                    P Offline
                    PeiSy
                    wrote on 25 Jun 2021, 09:22 last edited by
                    #9

                    @SGaist Thanks for your reply. I have solved it.
                    I found that it was using root env when started my application with sudo.
                    So i changed it in /etc/sudoer
                    65eba830-d825-450d-b235-49ce4cff2b8b-image.png

                    Defaults    env_reset    ---->  Defaults   !env_reset
                    

                    But i don't konw why. T_T

                    1 Reply Last reply
                    0

                    1/9

                    17 Jun 2021, 03:59

                    • Login

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