kmakemultires 1.0.8 bug with High gigapixel panorama

  • Hi,

    I try yesterday to load a 1.5Gb panorama, a psb file to kmakemultires droplet in MAC without problem.

    Today, after 1 day of stitching process in PTGui, i try to load a 215Gb psb flatten file to kmakemultires droplet and i get an error during the loading process:

    Code
    converting image to cube format...
    loading input image...
    kmakemultires(13074) malloc: *** mmap(size=4194304) failed (error code=12)
    *** error: can't allocate region
    *** set a breakpoint in malloc_error_break to debug

    Any idea Klaus?

    Regards

  • Hi,

    this errors comes in Mac OS when the 'malloc' function, which allocates the memory, fails.
    but that error message can be ignored, the tools should continue working by freeing other not used memory...

    please try also the newest tools version (build 2010-02-15, releases some minutes ago),
    there I used a other Mac API functions for detecting the real free memory,
    the function that I used before have returned wrong and unexpected values...
    with that, it should work,

    best regards,
    Klaus

  • Hi Klaus,

    New test yesterday with a 3.7Gb panorama, 150000 * 75000px, black pixel and a little picture on it, flatten, psb file.

    I get this error:

    Code
    converting image to cube format...
    loading input image...
    kvmem - fatalerror - kvmem_sys_saveswapdata() failed

    Any idea?

    Thanks

  • Hi Klaus,

    I miss to precise that the psb file is located on an external huge hard drive, 1.5Tb, just one partition, MacOs formatting.

    The KrpanoTools are also in the same external hard drive.

    How can i change the temp folder for this swapping process?

    Regards

  • Quote

    change the location of your windows temp folder


    As expected in one of my previous post, i am in MAC, but no problem i
    will check to see how i can move swap files from my OS partition to
    another, i just found all the swap files created by kmakemultires on my
    OS partition which was full after that.


    Regards

  • Klaus,

    I was able to move the swap files from my OS partition to my 1.5Tb external hard drive without problem with Xupport software mon Mac. Reboot, check the result with this command line:

    Code
    ps -wax | grep dynamic_pager -m1


    and get

    Code
    258 ??     	0:00.07 /sbin/dynamic_pager -F /Volumes/MyBook/.vm/swapfile

    And restart a kmakemultires convertion. The first four swap files were created on my external hard drive, in the .vm folder, but after the others swapfile of kvmem were written on my OS partition, kvmem_0423_0000000001.swap etc

    Did i miss something?

    Regards

  • Hi,

    on mac the krpano swap files (kvmem_*.swap) were stored by default in the folder of the source images,

    in the kmakemultires tools it's currently not possible to set a other folder for these files,
    but with the ktransform tool that would be possible,
    btw - the ktransform tool will be called internally to convert the spherical image to the cubical images,

    so you could call first the ktransform tool manually from command line and set a other folder for the
    temporary swap files (via -tempdir=###) and then move the 6 generated cube images on the MAKE PANO (MULTIRES) droplet
    or call kmakemultires tool also directly from command line,

    e.g. (in Mac terminal, adjust the paths)

    Code
    export PATH=$PATH:/###/krpanotools/
    cd /###/folder-of-the-pano/
    ktransform cube inputimage.psb cube.tif -tempdir=/tempdir/ -fast
    kmakemultires cube_*.tif

    EDIT - "export" instead of "set"

    best regards,
    Klaus

  • Hi,

    either extend the PATH variable with the path to the folder of the krpano tools,
    like here, then you can call ktransform direct:
    (btw - sorry, in my previous post, I had written "set" instead of "export")
    export PATH=$PATH:/###/krpanotools/
    ktransform parameters

    or use the absolute path to the tool:
    /###/krpanotools/ktransform parameters

    or when you are in the folder of the tools:
    ./ktransform parameters

    best regards,
    Klaus


  • Klaus,

    this is my folder structure on my external hard drive called: MyBook

    ./dev/folder/pano.psb
    ./dev/folder/ktransform

    ./dev/folder/kmakemultires


    ./dev/krpanotools


    i have done that in my terminal

    Code
    export PATH=$PATH:/Volumes/MyBook/dev/krpanotools/cd /Volumes/MyBook/dev/folder./ktransform cube pano.psb cube.tif -tempdir=/Volumes/MyBook/dev/krpanotools/ -fast




    and i have the loading process working fine. I will try tonight with a huge psb file.


    Thanks

  • Klaus,

    for information, the process works fine but sometimes i have this error:

    Code
    ktransform(9636) malloc: *** mmap(size=4194304) failed (error code=12)*** error: can't allocate region*** set a breakpoint in malloc_error_break to debug


    i will try today with my huge psb file, 60Gb. I have a question, for the cube face in tiff, did i will comme to the file limitation of tiff format?

    Regards

  • Hi Klaus,

    again me.

    I think i am again faced to tiff limitation.

    With a simple 5.7Gb psb file, 200000*100000px panorama, i have cube face outputted from ktransform in tiff which are around 4.4Gb, around tiff limitation.

    And so as you can see in the screenshot, the front face is not quite completed.

    I have purchase by advance a license for your great tool, but now i am dealing with questions?

    Is it possible to do my conversion stuff, equirectangular to cube face in psb, and after make multires in jpeg as usual?

    thanks regards

  • Hi,

    yes, you hit the next limitation

    .psb writing support is already in work,
    it should be ready in one of the next releases,

    if you want to view the pano already, you could disable the
    sphere-to-cube conversion and just use the sphere pano direct,
    (e.g. in kmakemultires.config file - converttocube=false)

    best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!