ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    VOXL2 dfs server crashing after update (stack smashing)

    GPS-denied Navigation (VIO)
    7
    12
    1066
    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.
    • C
      camharrisvayu @AndriiHlyvko
      last edited by

      @AndriiHlyvko did the above fix for you? I'm having the same error, and I followed Thomas' suggestion -- unfortunately no change! Any other ideas?

      A 1 Reply Last reply Reply Quote 0
      • A
        AndriiHlyvko @camharrisvayu
        last edited by

        @camharrisvayu, @Thomas-Patton I just ended up downgrading my SDK version back to 0.9.5. I noticed that the camera calibration doesnt work as well in 1.0.0 either. When I was trying to recalibrate my stereo cameras in 1.0.0 it was having a difficult time detecting the chess board. So I reverted back to 0.9.5 and those problems went away.

        ? 1 Reply Last reply Reply Quote 0
        • ?
          A Former User @AndriiHlyvko
          last edited by

          @AndriiHlyvko @camharrisvayu

          For camera calibration I can confirm we changed some of the threshold values between 0.9.5 and 1.0.0 with the goal of making calibration easier. If you're having a tougher time I'd recommend doing the calibration on SDK 0.9.5, pulling the intrinsics/extrinsics files to a local device, updating to 1.0.0, and then bringing the files back in. We have a nice page on how to push and pull files from your VOXL2 here. Camera calibration is a pretty tough task as we have to try and set threshold values that will inevitably not work well for everyone. We are currently working on a more sophisticated thresholding procedure but we're still some time away from it being released.

          As for the DFS Server, it's tough for me to diagnose what the issue is without more info. Could you run cat /etc/modalai/voxl-dfs-server.conf so I can take a look at the output of your DFS configuration? That may help me in reproducing the issue.

          Again, sorry for the issues, best of luck!

          Thomas

          madswampM 1 Reply Last reply Reply Quote 1
          • madswampM
            madswamp @Guest
            last edited by

            @Thomas-Patton Got the same problem. What I noticed is that when I run the dfs server manually I can see some points in the voxl portal, but after half a second I get the stack smashing detected and no more points. My dfs server conf is the following:

            /**
             * This file contains configuration parameters for voxl-dfs-server.
             * You can specify up to 2 pairs to do detection on simultaneously.
             *
             *
             * min_disparity:     minimum disparity that is checked, default 4 since objects
             *                    really far away are hard to detect reliably anyway.
             *
             * max_disparity:     default 64, can decrease to improve latency slightly
             *                    maximum value is 64, 48 is a good option
             *
             * min_threshold:     must be <= cost_threshold, typically the same as cost_threshold,
             *                    must be in the range [0,100], default 10
             *
             * cost_threshold:    must be in the range [0,100], default 10. Lower numbers will
             *                    be more conservative and only detect matches with higher confidence
             *
             * width/ height:     All input images must have this resolution
             *
             * pc_skip_n_lines:   lines/columns to skip when outputting a point cloud. Set to
             *                    0 to output one point for every pixel, althought this is not
             *                    recommended since the resoluting point cloud would be huge.
             *                    default is 4, meaning generate point for every 5th row/column
             *
             * blur_size:         Optional gaussian blur before stereo match for particularly
             *                    noisy images. Off by default. Must be an odd number or set 
             *                    to 0 to disable.
             *
             * skip_n_frames:     Automatically skip this number of input frames. Default 1 meaning
             *                    every other stereo frame is processed. Frames will be Automatically
             *                    skipped if the cpu can't keep up.
             *                    
             * post_median_size:  optional median filter after disparity matching. Can help to
             *                    reduce speckles but that's usually best done in 3D not 2D.
             *                    Off by default. Must be an odd number if you turn it on, a good
             *                    starting point is 15. This requires additional CPU.
             *
             */
            {
            	"min_disparity":	4,
            	"max_disparity":	64,
            	"min_threshold":	10,
            	"cost_threshold":	10,
            	"width":	640,
            	"height":	480,
            	"pc_skip_n_lines":	4,
            	"dfs_pair_0":	{
            		"enable":	true,
            		"input_pipe":	"stereo_front",
            		"skip_n_frames":	1,
            		"blur_size":	0,
            		"post_median_size":	0,
            		"intrinsics_file":	"/data/modalai/opencv_stereo_front_intrinsics.yml",
            		"extrinsics_file":	"/data/modalai/opencv_stereo_front_extrinsics.yml"
            	},
            	"dfs_pair_1":	{
            		"enable":	true,
            		"input_pipe":	"stereo_rear",
            		"skip_n_frames":	1,
            		"blur_size":	0,
            		"post_median_size":	0,
            		"intrinsics_file":	"/data/modalai/opencv_stereo_rear_intrinsics.yml",
            		"extrinsics_file":	"/data/modalai/opencv_stereo_rear_extrinsics.yml"
            	}
            }
            

            I am also using the 1.0.0 SDK with the stock sentinel platform.
            Hope it helps solving the problem.

            1 Reply Last reply Reply Quote 1
            • J
              Jgaucin
              last edited by

              I am running into the same issue when running dfs server. Is there anything that I could do, besides switching to SDK 0.9.5 to fetch the old camera configuration and push it onto the the new flashed SDK?

              VOA_Pc_OutVOXL2.png

              run_voxl-dfs-server_abort.png

              madswampM 1 Reply Last reply Reply Quote 0
              • madswampM
                madswamp @Jgaucin
                last edited by

                @Thomas-Patton any updates on this issue?

                ? 1 Reply Last reply Reply Quote 0
                • ?
                  A Former User @madswamp
                  last edited by

                  @madswamp

                  Sadly no updates. I've tried to reproduce the error using the configuration files you provided but DFS is working fine for me. We are releasing an update to this module in the next SDK release so hopefully that will be able to fix it. If the older SDK versions work for you I would suggest running those.

                  Thanks and sorry again,

                  Thomas

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    afdrus @Guest
                    last edited by

                    @Thomas-Patton Are there any updates? I am facing the exact same issue

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      SMRazaRizvi @afdrus
                      last edited by

                      @afdrus Facing the same issue on Sentinel with VOXL SDK 1.0

                      ? 1 Reply Last reply Reply Quote 0
                      • ?
                        A Former User @SMRazaRizvi
                        last edited by

                        @SMRazaRizvi @madswamp @Jgaucin @AndriiHlyvko @camharrisvayu

                        Hey all, apologies on this. We were finally able to recreate the issue but unable to determine what the root cause was. Regardless, we have a new SDK (1.1.0) released which isn't showing the stack smashing issue.

                        https://developer.modalai.com/asset/2

                        Please let me know if this is still an issue and sorry for the wait on this.

                        Thanks,
                        Thomas Patton

                        1 Reply Last reply Reply Quote 2
                        • First post
                          Last post
                        Powered by NodeBB | Contributors