<div dir="ltr"><div class="gmail_quote">On Wed, Oct 5, 2011 at 6:51 PM, Amaury Forgeot d'Arc <span dir="ltr"><<a href="mailto:amauryfa@gmail.com">amauryfa@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
2011/10/5 Ram Rachum <<a href="mailto:ram@rachum.com">ram@rachum.com</a>>:<br>
<div class="im">> Okay, I've spent a few hours print-debugging, and I think I've almost got<br>
> it.<br>
> The crash happens on a line:<br>
> st = os.stat(s)<br>
> inside `os.path.isdir`, where `s` is a string 'C:\\Documents and<br>
> Settings\\User\\My Documents\\Python Projects\\GarlicSim\\garlicsim\\src'<br>
> This is a directory that happens not to exist, but of course this is not a<br>
> good reason to crash.<br>
> I have tried running `os.stat(s)` in the PyPy shell with that same `s`, but<br>
> didn't get a crash there. I don't know why it's crashing in Nose but not in<br>
> the shell.<br>
><br>
> Does anyone have a clue?<br>
<br>
</div>it's possible that it's a RPython-level exception, or a bad handle because<br>
too many files wait for the garbage collector to close them.<br>
<br>
Can you give more information about the crash itself?<br>
- What are the last lines printed in the console? Try to disable<br>
"stdout capture" in Nose, by passing the -s option.<br></blockquote><div><br></div><div>This is the entire output:</div><div><br></div></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;">
<div class="gmail_quote"><div><div>Preparing to run tests using Python 2.7.1 (080f42d5c4b4, Aug 23 2011, 11:41:11)</div><div>[PyPy 1.6.0 with MSC v.1500 32 bit]</div><div>Running tests directly from GarlicSim repo.</div>
<div>
Pypy doesn't have wxPython, not loading `garlicsim_wx` tests.</div><div>nose.config: INFO: Set working dir to C:\Documents and Settings\User\My Documents\Python Projects\GarlicSim</div><div>nose.config: INFO: Ignoring files matching ['^\\.', '^_', '^setup\\.py$']</div>
<div>nose.plugins.cover: INFO: Coverage report will include only packages: ['garlicsim', 'garlicsim_lib', 'garlicsim_wx', 'test_garlicsim', 'test_garlicsim_lib', 'test_garlicsim_wx', 'garlicsim', 'garlicsim_lib', 'garlicsim_wx', 'test_garlicsim', 'test_garlicsim_lib', 'test_garlicsim_wx', 'garlicsim', 'garlicsim_lib', 'garlicsim_wx', 'test_garlicsim', 'test_garlicsim_lib', 'test_garlicsim_wx']</div>
</div></div></blockquote><div class="gmail_quote"><div> </div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
- after the pypy process has exited, type "echo %ERRORLEVEL%" in the<br>
same console, to print the exit code<br>
of the last process. Which number is it?<br></blockquote><div><br></div><div>-1073741819</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5"><br>
--<br>
Amaury Forgeot d'Arc<br>
</div></div></blockquote></div><br></div>