mcfletch / pyopengl

Repository for the PyOpenGL Project
Other
314 stars 97 forks source link

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

Open MajFontana opened 6 months ago

MajFontana commented 6 months ago

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 commented 6 months ago

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.