<p>Hi Sam and Nathan, </p>
<p>Nathan, thanks for verifying! What a weird backtrack. Speaks to funny business with array memory. </p>
<p>When I say the fields are in a particular order, I mean that the actual fields in the file are likely different. To my understanding ramses doesn't provide a way to say, "this output has density, energy, metallicity, magnetic field" etc right in the output file, but instead requires the person reading the file in know this in advance. We can try applying heuristics, but I am uncertain how well these would work. As it stands, the field list is currently hard coded although intended to be changed. It's in a tuple inside the ramses code.</p>

<p>Additionally, it's also possible that this data file includes precision that I had not expected - modifying the float/int bit width may be necessary for this particular datatype. </p>
<p>My recommendation is to check the fields in the file. They may differ from what yt expects, causing a memory overrun. </p>
<p>What we should do is accept them as a constructor argument. Unfortunately I won't be able to provide feedback on this immediately but it should be straightforward to implement. </p>
<p>Matt</p>
<div class="gmail_quote">On Dec 18, 2012 1:13 PM, "Sam Leitner" <<a href="mailto:sam.leitner@gmail.com">sam.leitner@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">The output is not mine, it's an isolated disk run by Oscar Agertz. I can double check with him, but I very much <span></span>doubt the corruption is on the data side.</div><div class="gmail_extra"><br><br>

<div class="gmail_quote">On Tue, Dec 18, 2012 at 2:03 PM, Nathan Goldbaum <span dir="ltr"><<a>nathan12343@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Sam and Matt,<br>
<br>
I'm able to reproduce Sam's crash on my laptop (OS X 10.7, yt-3.0 6fb278bef80f).<br>
<br>
I was able to run python inside gdb but the backtrace isn't very helpful (at least to my eyes): <a href="http://paste.yt-project.org/show/3002/" target="_blank">http://paste.yt-project.org/<u></u>show/3002/</a><br>
<br>
One possibly useful hint is that it appears to be crashing inside CPython proper rather than _ramses_reader.so.<br>
<br>
I also tried in yt-2.5 dev ( 4174ccdee99d) and don't see crashes, although looking at the plots I get back, I see some corruption: <a href="http://i.imgur.com/PrQyO.png" target="_blank">http://i.imgur.com/PrQyO.png</a><br>



<br>
It's not clear if this is an issue on the yt side or if the data file Sam supplied is somehow corrupted.  I'm guessing that Sam can independently verify that the data is free or errors.<br>
<br>
-Nathan<div><br>
<br>
On 12/18/12 10:13 AM, Sam Leitner wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
Hi Matt,<br>
Hmm, we are indeed both on the same change set (6fb278bef80f). The Ramses files I'm running on are here (if you get a chance to give them a try):<br>
</div><a href="http://kicp.uchicago.edu/~agertz/sam/" target="_blank">http://kicp.uchicago.edu/~<u></u>agertz/sam/</a> <<a href="http://kicp.uchicago.edu/%7Eagertz/sam/" target="_blank">http://kicp.uchicago.edu/%<u></u>7Eagertz/sam/</a>><div>


<br>
Thanks for your help!<br>
Sam<br>
<br></div>
On Tue, Dec 18, 2012 at 12:52 PM, Matthew Turk <<a>matthewturk@gmail.com</a> <mailto:<a>matthewturk@gmail.com</a>><u></u>> wrote:<br>


<br>
    6fb278bef80f<div><br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
yt-users mailing list<br>
<a>yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/<u></u>listinfo.cgi/yt-users-<u></u>spacepope.org</a><br>
</div></blockquote><div><div>
<br>
______________________________<u></u>_________________<br>
yt-users mailing list<br>
<a>yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/<u></u>listinfo.cgi/yt-users-<u></u>spacepope.org</a><br>
</div></div></blockquote></div><br></div>
<br><br>-- <br>Sent from a mobile device.<br>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div>