Hello everyone, I have a problem now when I use vil in VXL:
My settings: ubuntu 7.10, gcc 4.13 , VXL 1.9.0
My problem:
I have to save the data of a color image of each channel with jpg format, so my code is as follows;

       vil_image_view<vxl_byte> scr_img =vil_load("example.jpg");
    //save each channel as grey image: using image view
    vil_image_view<vxl_byte> scrR, scrG, scrB;
    scrR=vil_plane(scr_img,0);
    scrG=vil_plane(scr_img,1);
    scrB=vil_plane(scr_img,2);
    vil_save(scrR,"scrR.jpg");
    vil_save(scrG,"scrG.jpg");
    vil_save(scrB,"scrB.jpg");
There are no errors when compiling and linking, but when I run the exe file, the outputs are:

vilalgo_example: /home/harrison/code/vxl/src/core/vil/file_formats/vil_jpeg.cxx:204: virtual bool vil_jpeg_image::put_view(const vil_image_view_base&, unsigned int, unsigned int): Assertion `view2.istep() == jc-> jobj.input_components' failed.

Why this happed, how can I fix it ?