community
community copied to clipboard
Big font_size crashes kivy/python process with exit code -1073741784 (0xC0000028) STATUS_BAD_STACK
Software Versions
- Python: 3.9.5
- OS: Windows 11 (10.0.22000)
- Kivy: 2.1.0
- Kivy installation method: pip
Describe the bug
It might be related to https://github.com/kivy/kivy/issues/7899.
Setting a big font size for widgets causes the Kivy/Python process to crash without any python error. The process finishes with exit code -1073741784 (0xC0000028) which is STATUS_BAD_STACK. The max value for font sizes varies from font to font but is around 877 for most common ones. I think a memory error is not the issue since the ram never exceeds 50 MB in the MRE.
Expected behavior Setting big fonts should display the fonts correctly or throw a fitting error.
To Reproduce
- Create any text related widget.
- Set a big font size (~>870)
Code and Logs and screenshots
from kivy.app import App
from kivy.uix.label import Label
class TestApp(App):
def build(self):
return Label(text="text", font_size=1000)
TestApp().run()
Works fine ?
I have the same issue on windows 10 and i had a friend run the same code on Linux and it worked for him so its probably a windows exclusive problem same error code same python version and same Kivy version