Persistent Cache doesn't work
Re: Persistent Cache doesn't work
We are still unable to reproduce the problem. If you write to MIFF rather than MPC does you command work? Try your command and add 'limit map 0' to the command-line. Does the the command now work?
Re: Persistent Cache doesn't work
MIFF works. It was also the workaround I used.
I posted the comparison with MIFF https://www.imagemagick.org/discourse-s ... 58#p143838
Doubling limits of memory and map has no effect. Doubling area limit makes it work. As previously noted.
I posted the comparison with MIFF https://www.imagemagick.org/discourse-s ... 58#p143838
Doubling limits of memory and map has no effect. Doubling area limit makes it work. As previously noted.
Re: Persistent Cache doesn't work
So the problem is with MPC which points to a problem with memory mapping on your OS. Specifically, we allocate the pixel cache on disk and then memory map it. You can confirm by adding -debug cache to your command-line. When IM tries to map the disk file, it fails and returns an exception. Typically this happens when there is not enough free space on the disk partition. Setting -limit map 0 on your command line should work if the problem is just isolated to memory maps. Do these commands work for you?
Which of these commands succeed? The results will further isolate the memory mapping problem.
Code: Select all
convert -debug cache -limit map 0 -size 4000x4000 xc:white xc:white -adjoin 2pages.mpc; convert -debug cache -limit map 0 2pages.mpc info:
convert -debug cache -size 4000x4000 xc:white xc:white -adjoin 2pages.mpc; convert -debug cache -limit map 0 2pages.mpc info:
convert -debug cache -limit map 0 -size 4000x4000 xc:white xc:white -adjoin 2pages.mpc; convert -debug cache 2pages.mpc info: