Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. General Questions
  3. Fatal: ThreadLocker acquire: QSystemSemaphore::handle: unknown error 38

Fatal: ThreadLocker acquire: QSystemSemaphore::handle: unknown error 38

Scheduled Pinned Locked Moved Unsolved General Questions
8 Posts 2 Posters 780 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.
  • V Offline
    V Offline
    voxl2_user
    wrote on last edited by
    #1

    Hello. We are attempting to run our application on VOXL2. This application is linked against some pre-compiled libraries that we received from a third-party as their SDK. We have successfully run this application on x86_64 and on another arm64 platform, but on VOXL2 we receive the error message in the title "Fatal: ThreadLocker acquire: QSystemSemaphore::handle: unknown error 38"

    In troubleshooting, I see that on VOXL2 the file /proc/sys/kernel/sem is not present. Could this be indicative that the kernel must be reconfigured for certain types of semaphore usage? I am able to download the MODAL.AI kernel build docker and build the default v1.8.02 kernel. But any time I try to make a change to the kernel config using menuconfig in one of the build_mount/lu.um.121/apps_proc/src/kernel/* directories, the rebuild fails (even if I clean first). So perhaps this is not the right way to reconfigure the build? I went down this road because it seemed that adding Qualcomm IPCC support (menuconfig, device drivers, SOC drivers, qualcomm IPCC) could potentially resolve the issue.

    Any and all advice is welcome, including the proper way to reconfigure the kernel (via menuconfig or otherwise) or in troubleshooting this semaphore issue itself.

    Alex KushleyevA 1 Reply Last reply
    0
    • V voxl2_user

      Hello. We are attempting to run our application on VOXL2. This application is linked against some pre-compiled libraries that we received from a third-party as their SDK. We have successfully run this application on x86_64 and on another arm64 platform, but on VOXL2 we receive the error message in the title "Fatal: ThreadLocker acquire: QSystemSemaphore::handle: unknown error 38"

      In troubleshooting, I see that on VOXL2 the file /proc/sys/kernel/sem is not present. Could this be indicative that the kernel must be reconfigured for certain types of semaphore usage? I am able to download the MODAL.AI kernel build docker and build the default v1.8.02 kernel. But any time I try to make a change to the kernel config using menuconfig in one of the build_mount/lu.um.121/apps_proc/src/kernel/* directories, the rebuild fails (even if I clean first). So perhaps this is not the right way to reconfigure the build? I went down this road because it seemed that adding Qualcomm IPCC support (menuconfig, device drivers, SOC drivers, qualcomm IPCC) could potentially resolve the issue.

      Any and all advice is welcome, including the proper way to reconfigure the kernel (via menuconfig or otherwise) or in troubleshooting this semaphore issue itself.

      Alex KushleyevA Offline
      Alex KushleyevA Offline
      Alex Kushleyev
      ModalAI Team
      wrote on last edited by
      #2

      @voxl2_user after doing quick search, it seems CONFIG_SYSVIPC=y needs to be enabled in kona-perf_defconfig .

      workspace/lu.um.1.2.1/apps_proc/poky/meta-voxl2-bsp/recipes-kernel/linux-msm/files/configs/m0054/kona-perf_defconfig
      

      Make sure you are building a perf build..

      We have not tried enabling it, but it could be all that's necessary. Give it a try!

      I can try it as well and see if it builds and see if /proc/sys/kernel/sem shows up..

      Alex

      Alex KushleyevA 1 Reply Last reply
      0
      • Alex KushleyevA Alex Kushleyev

        @voxl2_user after doing quick search, it seems CONFIG_SYSVIPC=y needs to be enabled in kona-perf_defconfig .

        workspace/lu.um.1.2.1/apps_proc/poky/meta-voxl2-bsp/recipes-kernel/linux-msm/files/configs/m0054/kona-perf_defconfig
        

        Make sure you are building a perf build..

        We have not tried enabling it, but it could be all that's necessary. Give it a try!

        I can try it as well and see if it builds and see if /proc/sys/kernel/sem shows up..

        Alex

        Alex KushleyevA Offline
        Alex KushleyevA Offline
        Alex Kushleyev
        ModalAI Team
        wrote on last edited by
        #3

        I just tried it and it seems to be working

        voxl2:/$ ls /proc/sys/kernel/sem*
        /proc/sys/kernel/sem
        
        voxl2:/$ ipcs -l                             
        
        ------ Messages Limits --------
        max queues system wide = 32000
        max size of message (bytes) = 8192
        default max size of queue (bytes) = 16384
        
        ------ Shared Memory Limits --------
        max number of segments = 4096
        max seg size (kbytes) = 18014398509465599
        max total shared memory (kbytes) = 18014398509481980
        min seg size (bytes) = 1
        
        ------ Semaphore Limits --------
        max number of arrays = 32000
        max semaphores per array = 32000
        max semaphores system wide = 1024000000
        max ops per semop call = 500
        semaphore max value = 32767
        
        V 1 Reply Last reply
        0
        • Alex KushleyevA Alex Kushleyev

          I just tried it and it seems to be working

          voxl2:/$ ls /proc/sys/kernel/sem*
          /proc/sys/kernel/sem
          
          voxl2:/$ ipcs -l                             
          
          ------ Messages Limits --------
          max queues system wide = 32000
          max size of message (bytes) = 8192
          default max size of queue (bytes) = 16384
          
          ------ Shared Memory Limits --------
          max number of segments = 4096
          max seg size (kbytes) = 18014398509465599
          max total shared memory (kbytes) = 18014398509481980
          min seg size (bytes) = 1
          
          ------ Semaphore Limits --------
          max number of arrays = 32000
          max semaphores per array = 32000
          max semaphores system wide = 1024000000
          max ops per semop call = 500
          semaphore max value = 32767
          
          V Offline
          V Offline
          voxl2_user
          wrote on last edited by
          #4

          @Alex-Kushleyev Thank you for the quick reply. Your advice successfully enabled SYSVIPC in my kernel. Sadly, SYSVIPC also broke eth0 on my system and I'm still attempting to troubleshoot that...

          Alex KushleyevA 1 Reply Last reply
          0
          • V voxl2_user

            @Alex-Kushleyev Thank you for the quick reply. Your advice successfully enabled SYSVIPC in my kernel. Sadly, SYSVIPC also broke eth0 on my system and I'm still attempting to troubleshoot that...

            Alex KushleyevA Offline
            Alex KushleyevA Offline
            Alex Kushleyev
            ModalAI Team
            wrote on last edited by
            #5

            @voxl2_user , yes, I can also confirm that my usb to ethernet adapter (eth0) is no longer working on my voxl2 after enabling this..

            It is possible that enabling SYSVIPC disables some other IPC mechanism used by the usb ethernet driver.. or something else is going on.. not sure..

            Alex

            V 2 Replies Last reply
            0
            • Alex KushleyevA Alex Kushleyev

              @voxl2_user , yes, I can also confirm that my usb to ethernet adapter (eth0) is no longer working on my voxl2 after enabling this..

              It is possible that enabling SYSVIPC disables some other IPC mechanism used by the usb ethernet driver.. or something else is going on.. not sure..

              Alex

              V Offline
              V Offline
              voxl2_user
              wrote on last edited by
              #6

              @Alex-Kushleyev in my case, 'lsmod' is empty after booting the kernel with SYSVIPC enabled...its as though none of the kernel modules are loading anymore.

              1 Reply Last reply
              0
              • Alex KushleyevA Alex Kushleyev

                @voxl2_user , yes, I can also confirm that my usb to ethernet adapter (eth0) is no longer working on my voxl2 after enabling this..

                It is possible that enabling SYSVIPC disables some other IPC mechanism used by the usb ethernet driver.. or something else is going on.. not sure..

                Alex

                V Offline
                V Offline
                voxl2_user
                wrote on last edited by
                #7

                @Alex-Kushleyev Is there a way to run menuconfig and build the kernel successfully? I wonder if menuconfig might "deconflict" certain feature dependencies, if there are any? When I tried running menuconfig from apps_proc/src/kernel/*, the resulting build failed with errors about the source tree not being clean.

                Alex KushleyevA 1 Reply Last reply
                0
                • V voxl2_user

                  @Alex-Kushleyev Is there a way to run menuconfig and build the kernel successfully? I wonder if menuconfig might "deconflict" certain feature dependencies, if there are any? When I tried running menuconfig from apps_proc/src/kernel/*, the resulting build failed with errors about the source tree not being clean.

                  Alex KushleyevA Offline
                  Alex KushleyevA Offline
                  Alex Kushleyev
                  ModalAI Team
                  wrote on last edited by
                  #8

                  @voxl2_user , i will ask around..

                  Also, there may be some sysv compatibility mode, instead of fully utilizing sysv for all IPC. I think i saw something like that when grepping the kernel build source for sysv supprt. I will check a bit later.

                  Alex

                  1 Reply Last reply
                  0

                  Reading along? Create a free ModalAI Forum account to join in.

                  With an account you can reply, ask your own question, get an email when a ModalAI engineer answers, and mark the reply that solved it. Your place in each thread is saved between visits.

                  Questions about VOXL, Flight Core, ESCs and ModalAI drones are answered here by the engineers who build them.

                  Register Login
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  ModalAI
                  Categories Recent Tags ModalAI.com Docs
                  © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups