You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncommenting del render results in the program exiting cleanly.
Stack trace/error output/other error logs
pygame 2.5.2 (SDL 2.28.2, Python 3.11.8)
Hello from the pygame community. https://www.pygame.org/contribute.html
a
aa
fish: Job 1, '[...]' terminated by signal SIGSEGV (Address boundary error)
Another user tested on Ubuntu 22.04.4 LTS ("jammy") with the system python install and the latest pygame installed from pip in a venv. They did not experience a segfault but got the following output from valgrind. It appears Renderer was still trying to access the Window after it was destroyed even though they did not experience a segfault.
==24681== Invalid read of size 8
==24681== at 0x58AE311: ??? (in /…/py/lib/python3.10/site-packages/pygame.libs/libSDL2-2-a598e802.0.so.0.2800.2)
==24681== by 0x582D4DB: ??? (in /…/py/lib/python3.10/site-packages/pygame.libs/libSDL2-2-a598e802.0.so.0.2800.2)
==24681== by 0x75AB666: __pyx_tp_dealloc_6pygame_5_sdl2_5video_Renderer (in /…/py/lib/python3.10/site-packages/pygame/_sdl2/video.cpython-310-x86_64-linux-gnu.so)
==24681== by 0x254FF0: _PyEval_EvalFrameDefault (in /usr/bin/python3.10)
==24681== by 0x2629FB: _PyFunction_Vectorcall (in /usr/bin/python3.10)
==24681== by 0x24B26C: _PyEval_EvalFrameDefault (in /usr/bin/python3.10)
==24681== by 0x2479C5: ??? (in /usr/bin/python3.10)
==24681== by 0x33D255: PyEval_EvalCode (in /usr/bin/python3.10)
==24681== by 0x368107: ??? (in /usr/bin/python3.10)
==24681== by 0x3619CA: ??? (in /usr/bin/python3.10)
==24681== by 0x367E54: ??? (in /usr/bin/python3.10)
==24681== by 0x367337: _PyRun_SimpleFileObject (in /usr/bin/python3.10)
==24681== Address 0xb20e500 is 0 bytes inside a block of size 240 free'd
==24681== at 0x484B27F: free (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==24681== by 0x586008E: ??? (in /…/py/lib/python3.10/site-packages/pygame.libs/libSDL2-2-a598e802.0.so.0.2800.2)
==24681== by 0x75AC6CB: __pyx_pw_6pygame_5_sdl2_5video_6Window_11destroy (in /…/py/lib/python3.10/site-packages/pygame/_sdl2/video.cpython-310-x86_64-linux-gnu.so)
==24681== by 0x24B45B: _PyEval_EvalFrameDefault (in /usr/bin/python3.10)
==24681== by 0x2629FB: _PyFunction_Vectorcall (in /usr/bin/python3.10)
==24681== by 0x24B26C: _PyEval_EvalFrameDefault (in /usr/bin/python3.10)
==24681== by 0x2629FB: _PyFunction_Vectorcall (in /usr/bin/python3.10)
==24681== by 0x24B26C: _PyEval_EvalFrameDefault (in /usr/bin/python3.10)
==24681== by 0x2479C5: ??? (in /usr/bin/python3.10)
==24681== by 0x33D255: PyEval_EvalCode (in /usr/bin/python3.10)
==24681== by 0x368107: ??? (in /usr/bin/python3.10)
==24681== by 0x3619CA: ??? (in /usr/bin/python3.10)
The text was updated successfully, but these errors were encountered:
Environment:
You can get some of this info from the text that pops up in the console when you run a pygame program.
Current behavior:
Program segfaults.
Expected behavior:
Program exits without segfaulting.
Steps to reproduce:
Run test code. Does not segfault on all systems.
Test code
Uncommenting
del render
results in the program exiting cleanly.Stack trace/error output/other error logs
Another user tested on Ubuntu 22.04.4 LTS ("jammy") with the system python install and the latest pygame installed from pip in a venv. They did not experience a segfault but got the following output from valgrind. It appears Renderer was still trying to access the Window after it was destroyed even though they did not experience a segfault.
The text was updated successfully, but these errors were encountered: