question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Recursion error from .pyhtml when threaded=True

See original GitHub issue

If I start the process with mws.Start(threaded=True), attempting to load any .pyhtml page renders:

PyHTML page execution error
maximum recursion depth exceeded (line 18)

This does not happen at all if I start with threaded=False. Is this to be expected?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jcziccommented, May 16, 2019

Hello @elixx and thanks to interesting:) I know this problem with micropython because there are a large number of function penetrations and this can cause a stack overflow. And with the pyhtml model, it’s even more… A solution is to access the micropython variables to increase the stack maximum value and recompile the firmware 😮 Do you can try that for your needs ?

0reactions
jcziccommented, Oct 20, 2019

Hello,

I released a fully new version (v2.0) of my web server here : github.com/jczic/MicroWebSrv2. Open source MIT, fully asynchronous, more robust, more fast and more efficient! It is delivered with a good documentation.

Thank you for your support and feedback. ☺️

Jean-Christophe Bos

Le jeu. 16 mai 2019 à 11:32, Matt Morey notifications@github.com a écrit :

Closed #54 https://github.com/jczic/MicroWebSrv/issues/54.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jczic/MicroWebSrv/issues/54?email_source=notifications&email_token=AAD2ALBIWHQBCGBERUGAAYDPVUSY7A5CNFSM4HMUASA2YY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGORPJGFKY#event-2345820843, or mute the thread https://github.com/notifications/unsubscribe-auth/AAD2ALHJY6CK3QLOZLLVDFDPVUSY7ANCNFSM4HMUASAQ .

Sincèrement,

Read more comments on GitHub >

github_iconTop Results From Across the Web

java.lang.OutOfMemoryError in recursive threads
The problem is that the application gives me errors saying that has infinite loops and stackoverflows are raised, but the idea is to...
Read more >
thread manual page - Tcl/Tk
When -unwindonerror is provided with a value of true, an error result in a script causes the thread to unwind, making it unavailable...
Read more >
feroxbuster 2.0.0 - Docs.rs
save_state: true (create a state file in cwd when Ctrl+C is received). Threads and Connection Limits At A High-Level. This section explains how...
Read more >
uWSGI Documentation
--enable-threads option (or enable-threads = true in ini style). ... help: add an error page (html) for managed 403 response error-page-404.
Read more >
cp - Copy files and objects | Cloud Storage - Google Cloud
Note: -c only applies to the actual copying operation. If an error, such as invalid Unicode file name , occurs while iterating over...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found