-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inifinite loop & browser lock up on v5.1.6 #1696
Comments
Perfect! That sounds like the root cause of #1690! Should be easy to fix. Would you like to take on a PR? |
Raised #1697 |
I went ahead and added the short-circuit solution. The error should be gone now. I'll issue a new release shortly. |
Released as part of 5.1.7 – give it a try and if the issue persists, reopen. Also added SoundCloud to the list of companies in the README - pretty psyched that you like it, cause I love SoundCloud 😉 |
I checked that...
Description
The "check for common prefix" method recently added has a bug when both strings are identical - it spins into an infinite loop and locks up.
https://github.com/squidfunk/mkdocs-material/blob/master/src/assets/javascripts/index.ts#L386-L387
In our instance, these two strings are both
None
andNone
. I haven't investigated what this method is actually doing.Browser locks up when visiting the page (if able to break into the code, you can see it gets stuck on this line)
Expected behavior
Should not lock up the browser.
Actual behavior
Locks up.
Steps to reproduce the bug
v2.8.5
, which does not havemkdocs-material
pinned to 5.1.5make mkdocs
site
directory locallyPackage versions
v5.1.6
__main__.py, version 1.1 from /usr/local/lib/python3.7/site-packages/mkdocs (Python 3.7)
Version: 5.1.6
Project configuration
System information
The text was updated successfully, but these errors were encountered: