pyopengl icon indicating copy to clipboard operation
pyopengl copied to clipboard

Passing a large bytes object to a function freezes Python if ValueError exception is thrown

Open MajFontana opened this issue 1 year ago • 1 comments

In my specific case I was passing a large bytes object to glBufferStorage, but used a incorrect number of arguments. It appears that the bytes objects attempts to be displayed in the error message, which freezes Python.

MajFontana avatar Feb 13 '24 02:02 MajFontana

Only seems to cause a freeze if running in an IDLE shell. It doesn't freeze when running in a terminal, but the error message is unusable because the buffer fills up.

MajFontana avatar Feb 13 '24 02:02 MajFontana