Hi all,
I'm having a problem where UVFIT fails with the error `### Fatal Error: Buffer overflow'.
This occurs when giving it a modest amoutn of visibility data, say 2 hours of 9GHz data (with 1MHz channels). If I restrict the number of channels (using line) to only 500 channels, UVFIT will run, but I really want to fit to the whole set of visibilities at once.
Any ideas how to get round this - is there a way to allocate more memory to the buffer, for example?
Cheers
Barnaby Norris
Buffer overflow in UVFIT
Moderator: Mark.Wieringa
-
- Site Admin
- Posts: 220
- Joined: Thu Feb 04, 2010 3:27 pm
- Location: Paul Wild Observatory Narrabri NSW
Re: Buffer overflow in UVFIT
Hi Barnaby,
You could try compiling your own version of Miriad - that's really the only suggestion I can offer unfortunately. The default memory allocated for the compiled version of Miriad is set by considering an average user's machine, and their requirements, but can be inadequate for many users.
You can download the source from the same place as you get the precompiled binaries, and you should look at the include file inc/maxdim.h in the Miriad tree. You might try increasing MAXBUF before compiling to see if that can fix your error.
Please let us know if you run into further problems!
You could try compiling your own version of Miriad - that's really the only suggestion I can offer unfortunately. The default memory allocated for the compiled version of Miriad is set by considering an average user's machine, and their requirements, but can be inadequate for many users.
You can download the source from the same place as you get the precompiled binaries, and you should look at the include file inc/maxdim.h in the Miriad tree. You might try increasing MAXBUF before compiling to see if that can fix your error.
Please let us know if you run into further problems!
cheers
Jamie Stevens
ATCA Senior System Scientist
Jamie Stevens
ATCA Senior System Scientist
-
- ATCA Expert
- Posts: 297
- Joined: Mon Feb 08, 2010 1:37 pm
Re: Buffer overflow in UVFIT
Alternatively,
I often use uvflux with inputs like these:
This reduces the internal storage requirements by a factor 20, but still uses most of the frequency information.
Cheers,
Mark
I often use uvflux with inputs like these:
Code: Select all
line = chan,20,1,100,100
Cheers,
Mark
Re: Buffer overflow in UVFIT
Thanks for your suggestions guys. I haven't yet been brave enough to try recompiling MIRIAD but'll try it and let you know how I go!
Cheers
Barnaby
Cheers
Barnaby
-
- Posts: 9
- Joined: Sun Dec 18, 2011 2:50 am
Re: Buffer overflow in UVFIT
Hi,...
I also met this problem. And I tried to revise the head file inc/maxdim.h
and confiugre the miriad again following jamie's suggestions. what a pity, it still can not fix
the error.
Hui
I also met this problem. And I tried to revise the head file inc/maxdim.h
and confiugre the miriad again following jamie's suggestions. what a pity, it still can not fix
the error.
Hui