Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M MathJax
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 304
    • Issues 304
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MathJax
  • MathJax
  • Issues
  • #1986
Closed
Open
Issue created Apr 24, 2018 by Davide P. Cervone@dpvcContributor

MathJax.Hub.setRenderer() can cause infinite loop

If the renderer doesn't load, the setRenderer() will ask to load it again, and that can lead to an infinite loop. See lines 2045-2048 of MathJax.js for the troublesome lines.

One solution might be to check the MathJax.Ajax file list to see if the file has already failed before trying to load it again. Another would be to set up a default minimal output jax that will be overwritten when the actual one loads. This would prevent the loop if it didn't load, but you would need to have enough of the API implemented to allow MathJax to run (but perhaps introduce [Math Processing Error] messages as the output).

See the original post for more information.

Assignee
Assign to
Time tracking