Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt Dice Example - 3D texture displays once only on Atom E3940 Linux
Forum Updated to NodeBB v4.3 + New Features

Qt Dice Example - 3D texture displays once only on Atom E3940 Linux

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
9 Posts 2 Posters 725 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.
  • M Offline
    M Offline
    mdear
    wrote on 15 Nov 2023, 07:11 last edited by
    #1

    Hello,

    I'm taking the "Dice" example (very nice) that deploys with Qt 6.6 and I managed to package it into a single-file AppImage deployment that I'm running on a Vartech embedded Linux device running an Intel Atom E3940 and Linux Mint Victoria (based on Ubuntu Jammy Jellyfish).

    The first time, the app runs beautifully as expected. The touch screen responds, 3D zooms/pans/rotations are working.

    Then, when I quit the app and re-run it, the textures don't appear to be wrapping around the 3D objects as I rotate them.

    Any idea how to characterize this further and ultimately keep this from happening?

    Is this a system issue or a coding issue do you think?

    https://www.dropbox.com/scl/fi/74wore8dh86gjoyfiwfnl/2023-11-14-05.50.09.mov?rlkey=h87obsgscr6ayznu932ekyuk3&dl=0

    Thanks !

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 15 Nov 2023, 20:04 last edited by
      #2

      Hi,

      Did you check the kernel messages ?
      There might be some GPU related issues.

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

      M 1 Reply Last reply 17 Nov 2023, 00:55
      0
      • S SGaist
        15 Nov 2023, 20:04

        Hi,

        Did you check the kernel messages ?
        There might be some GPU related issues.

        M Offline
        M Offline
        mdear
        wrote on 17 Nov 2023, 00:55 last edited by
        #3

        @SGaist Well, I did get these in my dmsg log, but I'm unsure what concrete actions I can take to resolve the issue.

        The problem appears to be intermittent, which really means I'm not understanding the problem well enough.

        After a fresh reboot of the device, the problem is seen:

        [  171.632783] i915 0000:00:02.0: [drm] Resetting rcs0 for preemption time out
        [  171.632872] i915 0000:00:02.0: [drm] QSGRenderThread[2286] context reset due to GPU hang
        [  171.651466] i915 0000:00:02.0: [drm] GPU HANG: ecode 9:1:859ffffb, in QSGRenderThread [2286]
        

        All ideas on how to characterize/work around/fix this are welcome ! I pretty much figured the GPU was hanging but the crazy thing is that I can actually run the app partially, it's just that the textures aren't seen. The dice actually roll about when I throw them in all cases.

        Note: I'm also running the NoMachine server so I can interact with the device from another machine entirely (my screen is mirrored on my company laptop and I can see me interacting with the device as I move my mouse around, etc). Perhaps doing both things is too much for the GPU to handle.

        I tried doing a systemctl stop nxserver and then rerunning the app but the GPU hang still happened.

        S 1 Reply Last reply 17 Nov 2023, 20:50
        0
        • M mdear
          17 Nov 2023, 00:55

          @SGaist Well, I did get these in my dmsg log, but I'm unsure what concrete actions I can take to resolve the issue.

          The problem appears to be intermittent, which really means I'm not understanding the problem well enough.

          After a fresh reboot of the device, the problem is seen:

          [  171.632783] i915 0000:00:02.0: [drm] Resetting rcs0 for preemption time out
          [  171.632872] i915 0000:00:02.0: [drm] QSGRenderThread[2286] context reset due to GPU hang
          [  171.651466] i915 0000:00:02.0: [drm] GPU HANG: ecode 9:1:859ffffb, in QSGRenderThread [2286]
          

          All ideas on how to characterize/work around/fix this are welcome ! I pretty much figured the GPU was hanging but the crazy thing is that I can actually run the app partially, it's just that the textures aren't seen. The dice actually roll about when I throw them in all cases.

          Note: I'm also running the NoMachine server so I can interact with the device from another machine entirely (my screen is mirrored on my company laptop and I can see me interacting with the device as I move my mouse around, etc). Perhaps doing both things is too much for the GPU to handle.

          I tried doing a systemctl stop nxserver and then rerunning the app but the GPU hang still happened.

          S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 17 Nov 2023, 20:50 last edited by SGaist
          #4

          @mdear does it happen if you disable it before running the application at all ?

          It might also be related to your GPU driver.

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

          M 1 Reply Last reply 17 Nov 2023, 23:50
          0
          • S SGaist
            17 Nov 2023, 20:50

            @mdear does it happen if you disable it before running the application at all ?

            It might also be related to your GPU driver.

            M Offline
            M Offline
            mdear
            wrote on 17 Nov 2023, 23:50 last edited by
            #5

            @SGaist I executed the command sudo apt-get install xserver-xorg-video-intel and I was informed I already had the latest i915 driver installed.

            S 1 Reply Last reply 20 Nov 2023, 18:11
            0
            • M mdear
              17 Nov 2023, 23:50

              @SGaist I executed the command sudo apt-get install xserver-xorg-video-intel and I was informed I already had the latest i915 driver installed.

              S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 20 Nov 2023, 18:11 last edited by
              #6

              @mdear sometimes the latest driver might be the issue 😅

              You did not answer the question about the order of operations.

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

              M 1 Reply Last reply 2 Jan 2024, 15:18
              0
              • S SGaist
                20 Nov 2023, 18:11

                @mdear sometimes the latest driver might be the issue 😅

                You did not answer the question about the order of operations.

                M Offline
                M Offline
                mdear
                wrote on 2 Jan 2024, 15:18 last edited by
                #7

                @SGaist Apologies for the delay. I disabled the remote access nxserver and was able to easily reproduce the issue using a directly-connected keyboard/mouse.

                I approached Intel support but they dodged the question and asked me to pay for next level support so sadly it appears the Atom E3940 is not very Qt-friendly. We are looking into upgrade options to perhaps an i5-7300U.

                M 1 Reply Last reply 2 Jan 2024, 16:14
                0
                • M mdear
                  2 Jan 2024, 15:18

                  @SGaist Apologies for the delay. I disabled the remote access nxserver and was able to easily reproduce the issue using a directly-connected keyboard/mouse.

                  I approached Intel support but they dodged the question and asked me to pay for next level support so sadly it appears the Atom E3940 is not very Qt-friendly. We are looking into upgrade options to perhaps an i5-7300U.

                  M Offline
                  M Offline
                  mdear
                  wrote on 2 Jan 2024, 16:14 last edited by mdear 1 Feb 2024, 16:15
                  #8

                  @mdear I missed the questions from the Intel support engineer so I created a new issue to track : https://community.intel.com/t5/Graphics/GPU-lockup-still-being-seen-on-Atom-E3940-Linux-Mint-Victoria/m-p/1559135#M126797

                  S 1 Reply Last reply 2 Jan 2024, 19:50
                  0
                  • M mdear
                    2 Jan 2024, 16:14

                    @mdear I missed the questions from the Intel support engineer so I created a new issue to track : https://community.intel.com/t5/Graphics/GPU-lockup-still-being-seen-on-Atom-E3940-Linux-Mint-Victoria/m-p/1559135#M126797

                    S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 2 Jan 2024, 19:50 last edited by
                    #9

                    @mdear Thanks for the feedback !
                    That link seems to not be accessible.

                    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

                    • Login

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