Hello,<div><br></div><div>I've been trying to play around with the PyPy source and work on fixing some bugs. One of the things I wanted to look at was the graph files generated by the shell. I installed PyGame and GraphViz and when I run a "t.view" on a Translation object, I get the following crazy thing.</div>
<div><br></div><div>Has anyone see this? Is this something I should bring up to the PyGame guys? Does anyone have this working on Lion (assuming yes)?</div><div><br></div><div>Best,</div><div>Mitchell</div><div><br></div>
<div><div>Aug 20 00:57:14 picochip.local python[58716] <Error>: kCGErrorInvalidConnection: CGSGetCurrentCursorLocation: Invalid connection</div><div>Aug 20 00:57:14 picochip.local python[58716] <Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.</div>
<div>Aug 20 00:57:14 picochip.local python[58716] <Error>: kCGErrorInvalidConnection: CGSGetCurrentCursorLocation: Invalid connection</div><div>Aug 20 00:57:14 picochip.local python[58716] <Error>: kCGErrorInvalidConnection: CGSNewWindowWithOpaqueShape: Invalid connection</div>
<div>2011-08-20 00:57:14.130 python[58716:707] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Error (1002) creating CGSWindow on line 262'</div><div>*** First throw call stack:</div>
<div>(</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>0 CoreFoundation 0x00007fff81445986 __exceptionPreprocess + 198</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>1 libobjc.A.dylib 0x00007fff88125d5e objc_exception_throw + 43</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>2 CoreFoundation 0x00007fff814457ba +[NSException raise:format:arguments:] + 106</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>3 CoreFoundation 0x00007fff81445744 +[NSException raise:format:] + 116</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>4 AppKit 0x00007fff8a686e78 _NSCreateWindowWithOpaqueShape2 + 788</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>5 AppKit 0x00007fff8a5d4c80 -[NSWindow _commonAwake] + 1875</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>6 AppKit 0x00007fff8a5d3894 -[NSWindow _commonInitFrame:styleMask:backing:defer:] + 1871</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>7 AppKit 0x00007fff8a5d28e0 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1502</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>8 AppKit 0x00007fff8a5d22b1 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 47</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>9 libSDL-1.2.0.dylib 0x00000001081d5cfd -[SDL_QuartzWindow initWithContentRect:styleMask:backing:defer:] + 285</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>10 libSDL-1.2.0.dylib 0x00000001081d30a4 QZ_SetVideoMode + 1076</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>11 libSDL-1.2.0.dylib 0x00000001081c9e8a SDL_SetVideoMode + 602</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>12 display.so 0x000000010824f489 set_mode + 361</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>13 python 0x0000000107d63bab PyEval_EvalFrameEx + 18011</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>14 python 0x0000000107d66f43 fast_function + 179</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>15 python 0x0000000107d63c5d PyEval_EvalFrameEx + 18189</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>16 python 0x0000000107d66e07 PyEval_EvalCodeEx + 2103</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>17 python 0x0000000107d66fb8 fast_function + 296</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>18 python 0x0000000107d63c5d PyEval_EvalFrameEx + 18189</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>19 python 0x0000000107d66e07 PyEval_EvalCodeEx + 2103</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>20 python 0x0000000107cf480b function_call + 347</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>21 python 0x0000000107ccc141 PyObject_Call + 97</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>22 python 0x0000000107cdddf7 instancemethod_call + 503</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>23 python 0x0000000107ccc141 PyObject_Call + 97</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>24 python 0x0000000107d2798a slot_tp_init + 106</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>25 python 0x0000000107d203a5 type_call + 229</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>26 python 0x0000000107ccc141 PyObject_Call + 97</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>27 python 0x0000000107d63e75 PyEval_EvalFrameEx + 18725</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>28 python 0x0000000107d66f43 fast_function + 179</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>29 python 0x0000000107d63c5d PyEval_EvalFrameEx + 18189</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>30 python 0x0000000107d66e07 PyEval_EvalCodeEx + 2103</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>31 python 0x0000000107cf480b function_call + 347</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>32 python 0x0000000107ccc141 PyObject_Call + 97</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>33 python 0x0000000107d6451a PyEval_EvalFrameEx + 20426</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>34 python 0x0000000107d66f43 fast_function + 179</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>35 python 0x0000000107d63c5d PyEval_EvalFrameEx + 18189</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>36 python 0x0000000107d66e07 PyEval_EvalCodeEx + 2103</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>37 python 0x0000000107d66fb8 fast_function + 296</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>38 python 0x0000000107d63c5d PyEval_EvalFrameEx + 18189</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>39 python 0x0000000107d66e07 PyEval_EvalCodeEx + 2103</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>40 python 0x0000000107d66e86 PyEval_EvalCode + 54</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>41 python 0x0000000107d851a4 PyRun_FileExFlags + 164</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>42 python 0x0000000107d86458 PyRun_SimpleFileExFlags + 392</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>43 python 0x0000000107d99729 Py_Main + 2969</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>44 python 0x0000000107cc5f84 start + 52</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>45 ??? 0x0000000000000004 0x0 + 4</div>
<div>)</div><div>terminate called throwing an exceptionTraceback (most recent call last):</div><div> File "<stdin>", line 1, in <module></div><div> File "/Users/mitchellh/code/3rdparty/python/pypy/pypy/translator/interactive.py", line 36, in view</div>
<div> self.context.view()</div><div> File "/Users/mitchellh/code/3rdparty/python/pypy/pypy/translator/translator.py", line 151, in view</div><div> FlowGraphPage(self).display()</div><div> File "/Users/mitchellh/code/3rdparty/python/pypy/dotviewer/graphpage.py", line 32, in display</div>
<div> graphclient.display_page(self, save_tmp_file=self.save_tmp_file)</div><div> File "/Users/mitchellh/code/3rdparty/python/pypy/dotviewer/graphclient.py", line 44, in display_page</div><div> reload(0)</div>
<div> File "/Users/mitchellh/code/3rdparty/python/pypy/dotviewer/graphclient.py", line 40, in reload</div><div> send_graph_messages(io, messages)</div><div> File "/Users/mitchellh/code/3rdparty/python/pypy/dotviewer/graphclient.py", line 98, in send_graph_messages</div>
<div> raise ioerror</div><div>IOError: connection unexpectedly closed (graphserver crash?)</div></div>