New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SystemError from class 'int' #87045
Comments
This is my first bug report so I hope that this is correctly formatted. I am learning how to use pygame and encountered the following error: I googled the error message and came across the following answer on stackoverflow: This stated that the problem could exist within the implementation of python and that I should file a bug report here. I am using the following software installed through pip/pip3: The bug can be reproduced deterministically. |
This is more likely to be a bug in Pygame than in Python itself. What's likely happening here is that some part of the Pygame machinery is setting an exception state but then returning a value as normal. (Generally, if some function in a C extension sets an exception, that function should return NULL or -1.) That then leaves things in an inconsistent state, and Python doesn't notice that inconsistent state until the "int" call happens. Please could you report to the Pygame folks, if you haven't done so already? It certainly is *possible* that it's actually a core Python bug, but even then the first step would be to eliminate the Pygame component from the code-to-reproduce. |
I will submit the bug report to the pygame bug tracker. |
With debug build of Python I get a crash in other place: $ ./python -Xdev Movement.py
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
python: Objects/abstract.c:155: PyObject_GetItem: Assertion `(item != NULL) ^ (PyErr_Occurred() != NULL)' failed.
Fatal Python error: Aborted Current thread 0x00007fc3d0b6e280 (most recent call first): It is very likely a bug in Pygame. Perhaps it was always here, just Python 3.8 is more strict to programming errors in extensions. |
Downstream issue is here: pygame/pygame#2442 I'll close this here, since that report indicates a bug in Pygame. |
FYI I created bpo-42923 "Py_FatalError(): dump the list of extension modules" to help users to understand that the error can come from third party C extensions rather than Python itself. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: