community icon indicating copy to clipboard operation
community copied to clipboard

Big font_size crashes kivy/python process with exit code -1073741784 (0xC0000028) STATUS_BAD_STACK

Open CoreTaxxe opened this issue 2 years ago • 2 comments

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

  1. Create any text related widget.
  2. 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()

CoreTaxxe avatar Jul 16 '22 11:07 CoreTaxxe

image Works fine ?

T-Dynamos avatar Jul 22 '22 15:07 T-Dynamos

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

imcrazeegamer avatar Aug 12 '22 12:08 imcrazeegamer