You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the server then hitting the page in my browser:
$ flask run
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
'flask run' terminated by signal SIGSEGV (Address boundary error)
Changing the choices to the correct format (list of tuples) fixes the error.
I ran through the code in GDB but it's not clear where exactly the segfault occurs. It seems to appear somewhere amongst Jinja2 and/or WTForms.
Is this directly related to WTForms, or should I open this issue on Flask-WTF/Jinja2 instead?
If the former, is it worth placing a type check on this field to prevent the list getting through to the templating engine?
The text was updated successfully, but these errors were encountered:
I can't seem to reproduce this exact error when using just WTForms, which makes me think that it might be coming from a different dependency. However as you can see from the message generated and from the docs, this is not how this field is meant to be used.
Fair enough. I expect you're right; it's probably some obscure intersection of the dependencies in this project. Thank you for taking the time to investigate this.
Project dependencies:
The SelectField in question:
Running the server then hitting the page in my browser:
Changing the choices to the correct format (list of tuples) fixes the error.
I ran through the code in GDB but it's not clear where exactly the segfault occurs. It seems to appear somewhere amongst Jinja2 and/or WTForms.
Is this directly related to WTForms, or should I open this issue on Flask-WTF/Jinja2 instead?
If the former, is it worth placing a type check on this field to prevent the list getting through to the templating engine?
The text was updated successfully, but these errors were encountered: