VEYE IMAGING Forum
    • Categories
    • Tags
    • Recent
    • Popular
    • Users
    • WIKI
    • veye.cc
    • Register
    • Login

    IMX 385在 MYD-JX8MX开发板长时间运行导致系统卡慢的问题

    Scheduled Pinned Locked Moved VEYE MIPI camera
    10 Posts 2 Posters 2.1k Views 1 Watching
    Loading More Posts
    • 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
      hezudao
      last edited by

      VEYE的老师,您好
      在使用MYD-JX8MX开发板测试摄像头时遇到系统卡死的问题,详细描述如下:

      1,使用gst-launch-1.0进行视频预览测试;

      gst-launch-1.0 v4l2src device=/dev/video0 ! 'video/x-raw,width=1920,height=1080,framerate=(fraction)30/1' ! waylandsink

      运行大概12个小时后,系统运行缓慢,反应非常迟钝,有如下log:

      WARNING: from element /GstPipeline:pipeline0/GstWaylandSink:waylandsink0: A lot of buffers are being dropped.
      
      Additional debug info:
      
      ../../../../git/libs/gst/base/gstbasesink.c(3005): gst_base_sink_is_too_late (): /GstPipeline:pipeline0/GstWaylandSink:waylandsink0:
      
      There may be a timestamping problem, or this computer is too slow
      

      搜索一些解决方法,如下,长时间测试依然无法解决该问题。
      9b412143-3d4a-4bae-b1d0-77d9f49508f6-image.png
      b4c55dd0-232c-47b4-afdf-a838b07c9cdb-image.png

      2,使用QT编辑基于V4L2的demo测试程序:每间隔两秒交替执行STREAM ON/STREAM OFF,开始与停止获取图像数据,进行压力测试;运行12个小时后出现系统卡顿的问题;bioc_dev是测试程序(单独运行bioc_dev程序,不进行图像操作,不会导致系统卡顿问题)。串口log如下:

      2021年9月21日 14:20:
      c89c337a-5944-4df9-9b14-5bc5b5695f18-image.png

      2021年9月21日 16:25:33
      adaf2311-2d9e-4b72-b0d6-8fc631bfa1ed-image.png

      2021年9月21日 22:14:20
      d6bcd8ab-0e24-4c08-ab92-0bec79026f78-image.png

      2021年9月22日 8:04:06

      6c8b7448-c546-4ef8-9049-5d6af05db5b5-image.png

      猜测是内核中V4l2处理video数据异常导致系统变慢。由于知识技能欠缺,没能找到问题所在,希望贵司技术人员能协助一下,感谢。

      veye_xummV 2 Replies Last reply Reply Quote 0
      • veye_xummV Offline
        veye_xumm @hezudao
        last edited by

        @hezudao
        你好,这个问题看起来比较复杂。我这边可能也要安排一下老化。
        简单看起来,没有发现内存泄漏,或者异常的cpu占用。

        几个问题,

        1. 你的设备,出现卡顿的时候,只有视频卡顿呢,还是整个系统的反应都慢了?
          如果是系统反应变慢,有没有观察一下原因?
        2. 你自己的程序,bioc_dev获取了数据之后,有没有做什么操作?
        3. 有没有什么办法能提高出现问题的速度?

        Questions will be answered as soon as possible, please be patient.
        如果你使用中文,请直接用中文提问。
        May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

        1 Reply Last reply Reply Quote 0
        • H Offline
          hezudao
          last edited by

          @veye_xumm 您好,回复您的问题:
          1,使用gst-launch-1.0或者自己编写的bioc_dev压力测试,是整个系统卡顿;有发现米尔默认系统没有开启swap,然后分配了512M的swap内存开启后,依然无法解决该问题;运行观察编写的bioc_dev程序没有内存泄漏,怀疑是v4l2模块问题?

          2,bioc_dev程序打开vedio,调用v4l2相关函数配置参数后,使用poll的方式获取数据,仅仅把yuv格式的数据打印到屏幕上了,没有做其他操作。
          可执行文件见:
          链接:https://pan.baidu.com/s/1ft7G6_7LMGXmjTC0RX4UNg
          提取码:ao4i
          把 bioc_dev 文件拷贝到开发板;执行 ./bioc_dev 命令即可运行。

          3,测试了近两个周的时间,只有在长时间运行时会出现该问题且必现,暂时未发现短时间复现的方法。

          veye_xummV 3 Replies Last reply Reply Quote 0
          • veye_xummV Offline
            veye_xumm @hezudao
            last edited by

            @hezudao
            你好,这个问题我这用gstreamer重现了。系统卡顿到无法观察状态。悲剧啊~ 会继续研究一下

            Questions will be answered as soon as possible, please be patient.
            如果你使用中文,请直接用中文提问。
            May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

            1 Reply Last reply Reply Quote 0
            • veye_xummV Offline
              veye_xumm @hezudao
              last edited by

              @hezudao
              你的程序在我这没有正常图形显示。
              现在的状态gstreamer是有图像显示的。你的程序比gstreamer多了一个star/stop stream的过程。
              可否把你的程序改一下,去掉start stop,去掉图像显示。只是执行数据获取,然后就把buffer发回去给驱动,这样老化一下试试?

              Questions will be answered as soon as possible, please be patient.
              如果你使用中文,请直接用中文提问。
              May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

              1 Reply Last reply Reply Quote 0
              • veye_xummV Offline
                veye_xumm @hezudao
                last edited by

                @hezudao
                我现在用maaxboard测试一下试试。

                Questions will be answered as soon as possible, please be patient.
                如果你使用中文,请直接用中文提问。
                May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                1 Reply Last reply Reply Quote 0
                • veye_xummV Offline
                  veye_xumm @hezudao
                  last edited by

                  @hezudao 我这边用maaxboard老化了22小时,还没有出现问题。
                  5a4ae86e-7f12-43cf-9b88-f3d68f8b6488-image.png

                  Questions will be answered as soon as possible, please be patient.
                  如果你使用中文,请直接用中文提问。
                  May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                  1 Reply Last reply Reply Quote 0
                  • H Offline
                    hezudao
                    last edited by

                    xumm老师,您好,

                    我测试的结果:

                    1. 使用 MYD-C8MMX 开发板L4.14.98 + veye462 运行挂了2天,没有出现问题;
                    2. 使用MYD-JX8MX开发版L4.19.35的镜像+ veye 385 挂机,大概24小时后出现了问题;出现问题后系统卡死,依然无法查到原因。

                    也已经和米尔技术沟通过,他们协助测试,使用ov5640测试没有复现;

                    7d095b4b-befc-4449-9fc5-b2cdb695a139-image.png

                    综上,问题还不明朗,也可能是我手中开发板硬件有问题?
                    下一步计划测试两块开发板的L5.4.3的系统版本;

                    如有进展再来更新...

                    veye_xummV 2 Replies Last reply Reply Quote 0
                    • veye_xummV Offline
                      veye_xumm @hezudao
                      last edited by

                      @hezudao
                      感谢反馈,我用的板子是MYD-JX8MQ6-8E1D+VEYE327。看来有可能跟板子或者板子配套的OS有关。

                      Questions will be answered as soon as possible, please be patient.
                      如果你使用中文,请直接用中文提问。
                      May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                      1 Reply Last reply Reply Quote 0
                      • veye_xummV Offline
                        veye_xumm @hezudao
                        last edited by

                        @hezudao
                        我这里maaxboard老化了两天,没啥问题。
                        d865445b-111b-4fed-ba7e-db421a9d2e5a-image.png
                        现在停止这个老化实验,期待你的新结果。

                        Questions will be answered as soon as possible, please be patient.
                        如果你使用中文,请直接用中文提问。
                        May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                        1 Reply Last reply Reply Quote 0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • First post
                          Last post