[Mrtrix-discussion] memory-mapping failed in csdeconv
Donald Tournier
d.tournier at brain.org.au
Sun Jul 1 18:31:23 PDT 2012
Hi Dan,
It's a bit strange to get a 'no error' error message... I'm assuming you're
running on Windows? If so, I think I know why the error message is
essentially empty. But in the short therm, it'll be very difficult for you
or me to fix this so it does produce a sensible error message. Your best
bet is to figure it out by yourself. There aren't many reasons for a memory
mapping to fail, it could be:
- file not found
- file is empty
- permission denied
- file size exceeds addressable space (2GB on a 32-bit system)
- not enough physical RAM
- too many open files
- ...
Hopefully one of these will ring a bell, and you'll be able to figure out
the problem...
For those who are interested: this is probably a consequence of the fact
that this particular operation (memory-mapping) is the only not explicitly
handled by MingW (the compiler we use on Windows, which provides most of
the functions normally available on a Unix (POSIX) system). Because of
that, we call the relevant Windows-specific functions directly, but I
hadn't realised that we also need to retrieve any eventual error messages
using the Windows-specific calls too. It's trivial to modify the code to do
so, but compiling the code on Windows is a black art, and so far Ben
Jeurissen is the only person to have figured it out properly. I don't think
it's worth releasing a new version just for this bug, but the fix is now in
the code for the next release - hopefully you'll get more helpful error
messages in the next version...
Hope that helps.
Cheers,
Donald.
On 2 July 2012 09:17, Dan Wu <dwu18 at jhu.edu> wrote:
> Dear experts,
>
> I got an error message "memory-mapping failed for image ".\CSD6.mif": No
> error " when I tried to do csdeconv. Does anyone know what could be the
> possible reason? I realized that that the SH coefficients of my response
> function is higher than usual. Could that be the reason for the failure?
> Thanks!
>
> Regards,
>
> Dan
>
>
> --
> Dan Wu
>
> PhD Candidate
> Department of Biomedical Engineering
> Johns Hopkins University
> email: dwu18 at jhu.edu
> phone: 443-564-9191
>
>
> _______________________________________________
> Mrtrix-discussion mailing list
> Mrtrix-discussion at www.nitrc.org
> http://www.nitrc.org/mailman/listinfo/mrtrix-discussion
>
>
--
Jacques-Donald Tournier (PhD)
Brain Research Institute, Melbourne, Australia
Tel: +61 (0)3 9035 7033
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.nitrc.org/pipermail/mrtrix-discussion/attachments/20120702/a2dbf488/attachment.html
More information about the Mrtrix-discussion
mailing list