los-cocos / cocos

graphic library for games and multimedia, for python language on PC-like hardware
http://los-cocos.github.io/cocos-site/
Other
632 stars 146 forks source link

pyglet 1.4.10 - spureous traceback quiting test scripts #334

Closed ccanepa closed 4 years ago

ccanepa commented 4 years ago
  1. all of test/test_* ends with some trivial exception if quiting with ESC or in the programatic termination done in autotest\recon.py.

The exception does not happen if quiting with the window's close button

problem: this polutes the report generated by recon.py, now all test are marked as having tracebacks.

win7, py3.8, cocos b490c, pyglet 1.4.10

Additionally, between the noise was spotted

proxy run cmdline: ['D:\\dev\\cocos2020\\tools\\autotest\\proxy_snapshots.py', 'test_shader.py', 't 0.1, s, q', 'D:\\dev\\cocos2020\\test\\snp']
err: Exception ignored in: <function ShaderProgram.__del__ at 0x0000000006EB5E50>

Traceback (most recent call last):

  File "d:\dev\cocos2020\cocos\shader.py", line 228, in __del__

  File "d:\dev\cocos2020\cocos\shader.py", line 232, in destroy

  File "d:\dev\pyglet-2019\pyglet\gl\lib_wgl.py", line 93, in __call__

ImportError: sys.meta_path is None, Python is likely shutting down

Exception ignored in: <function Shader.__del__ at 0x0000000006EB5550>

Traceback (most recent call last):

  File "d:\dev\cocos2020\cocos\shader.py", line 79, in __del__

  File "d:\dev\cocos2020\cocos\shader.py", line 141, in destroy

  File "d:\dev\pyglet-2019\pyglet\gl\lib_wgl.py", line 93, in __call__

ImportError: sys.meta_path is None, Python is likely shutting down

Error in sys.excepthook:

Original exception was:

in pure pyglet

ccanepa commented 4 years ago

opened https://github.com/pyglet/pyglet/issues/142

ccanepa commented 4 years ago

The problem does not manifest with py 37

ccanepa commented 4 years ago

testing for cocos 0.6.8 done with py37

ccanepa commented 4 years ago

fixed in commit 25b24a10 by