Buffer overflow in UVFIT

Is MIRIAD being a pain? Let us know your experience.

Moderator: Mark.Wieringa

Buffer overflow in UVFIT

Postby bnorris » Mon May 02, 2011 1:29 pm

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
bnorris
 
Posts: 4
Joined: Mon May 02, 2011 1:22 pm

Re: Buffer overflow in UVFIT

Postby ste616 » Mon May 02, 2011 1:51 pm

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!
cheers
Jamie Stevens
ATCA Senior System Scientist
ste616
Site Admin
 
Posts: 219
Joined: Thu Feb 04, 2010 3:27 pm
Location: Paul Wild Observatory Narrabri NSW

Re: Buffer overflow in UVFIT

Postby Mark.Wieringa » Mon May 02, 2011 4:52 pm

Alternatively,

I often use uvflux with inputs like these:
Code: Select all
  line     = chan,20,1,100,100


This reduces the internal storage requirements by a factor 20, but still uses most of the frequency information.

Cheers,

Mark
Mark.Wieringa
ATCA Expert
 
Posts: 289
Joined: Mon Feb 08, 2010 1:37 pm

Re: Buffer overflow in UVFIT

Postby bnorris » Wed May 04, 2011 5:36 pm

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
bnorris
 
Posts: 4
Joined: Mon May 02, 2011 1:22 pm

Re: Buffer overflow in UVFIT

Postby hzhangshao2011 » Wed Feb 29, 2012 6:04 pm

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
hzhangshao2011
 
Posts: 9
Joined: Sun Dec 18, 2011 2:50 am


Return to MIRIAD

Who is online

Users browsing this forum: No registered users and 1 guest

cron