I've been testing the examples, most work - but for some no window comes up and the app freezes.
Ubuntu 12.10 - laptop with nvidia+intel graphics cards.
These ones work: fire.py fireworks.py - flyby.py generate.py letters.py logo.py smoke.py tunnel.py vortex.py
Don't work (no window comes up): bouncy.py magnet.py splode.py splode2d.py
Not tested - the pygame ones (I don't have it installed).
Comment #1
Posted on Nov 24, 2012 by Swift OxI actually see the same thing on a Macbook pro with MacOS X 10.7.5. I don't see any obvious piece of code that separate these two groups of examples...
Comment #2
Posted on Nov 24, 2012 by Swift OxOh wait, in my case, fireworks won't start either, and tunnel will freeze after a while. I noticed that all the ones that crash for me contain a call to StaticEmitter.emit(). Whatever is wrong is in this very crucial function. What compiler did you use? py-lepton tried to use gcc42, but gcc42 is not supported on this version of MacOSX anymore, so I hacked it to compile with gcc45. I don't know if this is what caused the problem. It's too bad py-lepton hasn't been supported since 2009, it's a really neat piece of code.
Comment #3
Posted on Nov 24, 2012 by Swift OxHere's the thread I got when forcing quit on fireworks.py. It indeed looks like something goes wrong inside emit():
Process: Python [49695] Path: /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python Architecture: x86_64 UID: 501
Thread 0x865e9 DispatchQueue 1 User stack: 10 ??? (in Python) [0x100000f14] 10 Py_Main + 2940 (in Python) [0x1000fe75c] 10 PyRun_SimpleFileExFlags + 489 (in Python) [0x1000e7de9] 10 PyRun_FileExFlags + 174 (in Python) [0x1000e7b2e] 10 PyEval_EvalCode + 54 (in Python) [0x1000c3066] 10 PyEval_EvalCodeEx + 2137 (in Python) [0x1000c2f49] 10 PyEval_EvalFrameEx + 21178 (in Python) [0x1000c0d8a] 10 PyEval_EvalCodeEx + 2137 (in Python) [0x1000c2f49] 10 PyEval_EvalFrameEx + 11587 (in Python) [0x1000be813] 10 PyObject_Call + 98 (in Python) [0x10000c9f2] 10 PyInstance_New + 126 (in Python) [0x10002214e] 10 PyEval_CallObjectWithKeywords + 87 (in Python) [0x1000ba817] 10 PyObject_Call + 98 (in Python) [0x10000c9f2] 10 instancemethod_call + 363 (in Python) [0x10001eebb] 10 PyObject_Call + 98 (in Python) [0x10000c9f2] 10 function_call + 176 (in Python) [0x10003dd80] 10 PyEval_EvalCodeEx + 2137 (in Python) [0x1000c2f49] 10 PyEval_EvalFrameEx + 22397 (in Python) [0x1000c124d] 10 Emitter_emit + 139 (in emitter.so) [0x1028f48cb] 3 Emitter_make_particle + 84 (in emitter.so) [0x1028f55b4] 3 Vec3_fill + 47 (in emitter.so) [0x1028f52bf] 3 PyObject_CallMethod + 240 (in Python) [0x100010f80] 3 PyObject_Call + 98 (in Python) [0x10000c9f2] 2 SphereDomain_generate + 116 (in _domain.so) [0x102ce3254] 1 rand_norm + 226 (in _domain.so) [0x102ce1282] 1 rand_norm + 448 (in _domain.so) [0x102ce1360] 1 SphereDomain_generate + 49 (in _domain.so) [0x102ce3211] 1 rand_norm + 278 (in _domain.so) [0x102ce12b6] 2 Emitter_make_particle + 847 (in emitter.so) [0x1028f58af] 1 rand_norm + 635 (in emitter.so) [0x1028f422b] 1 rand_norm + 388 (in emitter.so) [0x1028f4134] 2 Emitter_make_particle + 917 (in emitter.so) [0x1028f58f5] 1 rand_norm + 396 (in emitter.so) [0x1028f413c] 1 rand_norm + 336 (in emitter.so) [0x1028f4100] 2 Emitter_make_particle + 882 (in emitter.so) [0x1028f58d2] 1 rand_norm + 419 (in emitter.so) [0x1028f4153] 1 rand_norm + 226 (in emitter.so) [0x1028f4092] 1 Emitter_make_particle + 1410 (in emitter.so) [0x1028f5ae2] 1 rand_norm + 428 (in emitter.so) [0x1028f415c] Kernel stack: 10 hndl_allintrs + 290 (in mach_kernel) [0xffffff80002da712] 10 interrupt + 192 (in mach_kernel) [0xffffff80002c48d0] 10 lapic_interrupt + 121 (in mach_kernel) [0xffffff80002c9ab9] 10 cpu_signal_handler + 172 (in mach_kernel) [0xffffff80002cb9ac] 10 sync_iss_to_iks + 118 (in mach_kernel) [0xffffff80002c3c76]
Thread 0x865ee DispatchQueue 2 User stack: 10 _dispatch_mgr_thread + 54 (in libdispatch.dylib) [0x7fff947f2316] 10 kevent + 10 (in libsystem_kernel.dylib) [0x7fff982417e6] Kernel stack: 10 kqueue_scan + 416 (in mach_kernel) [0xffffff800053b4d0]
Thread 0x865ef
User stack:
2 start_wqthread + 13 (in libsystem_c.dylib) [0x7fff9934eb85]
2 __workq_kernreturn + 10 (in libsystem_kernel.dylib) [0x7fff98241192]
Kernel stack:
2 workqueue_mark_exiting + 1408 (in mach_kernel) [0xffffff80005a50b0]
Thread 0x865f0
User stack:
2 start_wqthread + 13 (in libsystem_c.dylib) [0x7fff9934eb85]
2 __workq_kernreturn + 10 (in libsystem_kernel.dylib) [0x7fff98241192]
Kernel stack:
2 workqueue_mark_exiting + 1408 (in mach_kernel) [0xffffff80005a50b0]
Binary Images: 0x100000000 - 0x100000fff org.python.python 2.7.1 (2.7.1) <9FD4D128-BF5C-532C-5D86-D6CFCCBC9B4B> /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python 0x100003000 - 0x10016bfff org.python.python 2.7.1, (c) 2004-2008 Python Software Foundation. (2.7.1) /Library/Frameworks/Python.framework/Versions/2.7/Python 0x1028f0000 - 0x1028f7ff7 emitter.so ??? (???) /Users/USER/Library/Python/2.7/lib/python/site-packages/lepton/emitter.so 0x102cdd000 - 0x102ceafff _domain.so ??? (???) <34723288-6BD3-3588-BE55-29D970E0F259> /Users/USER/Library/Python/2.7/lib/python/site-packages/lepton/_domain.so 0x7fff947f0000 - 0x7fff947fefff libdispatch.dylib ??? (???) <8E03C652-922A-3399-93DE-9EA0CBFA0039> /usr/lib/system/libdispatch.dylib 0x7fff9822a000 - 0x7fff9824afff libsystem_kernel.dylib ??? (???) <66C9F9BD-C7B3-30D4-B1A0-03C8A6392351> /usr/lib/system/libsystem_kernel.dylib 0x7fff992fd000 - 0x7fff993dafef libsystem_c.dylib ??? (???) <41B43515-2806-3FBC-ACF1-A16F35B7E290> /usr/lib/system/libsystem_c.dylib
Comment #4
Posted on Nov 26, 2012 by Swift OxTurns out I could make it work by calling the examples with "python-32" instead. This is indeed an architecture issue.
Status: New
Labels:
Type-Defect
Priority-Medium