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
  • #2948
Closed
Open
Issue created Oct 10, 2022 by Administrator@rootContributor

memory leak and infinite loop with <tex-html>

Created by: christianp

Issue Summary

I wanted to have a look at the v4 alpha, and set up a minimal page to try out the <tex-html> feature. It worked fine with one <input> tag in a <tex-html> tag inside a LaTeX expression, but having two tags locks up my browser and then makes it quit once the PC runs out of memory. I guess there's an infinite loop somewhere producing tonnes of memory, but it's hard to debug because my browser keeps crashing!

Steps to Reproduce:

I've set up a page on glitch: https://glitch.com/edit/#!/mathjax-v4-testing?path=index.html%3A15%3A8

The only bit of LaTeX in the page is this:

\[ 
      \begin{pmatrix}
        <tex-html><input name="p00"></tex-html> & 0 \\
        <tex-html><input name="p11"></tex-html> & 0 \\
      \end{pmatrix}
      = 5
      \]

Technical details:

  • MathJax Version: 4.0.0-alpha.1
  • Client OS: Ubuntu 22.04
  • Browser: Firefox 105.0.3

I am using the following MathJax configuration:

MathJax = {
  loader: {load: ['[tex]/texhtml']},
  tex: {
      allowTexHTML: true,
      packages: {'[+]': ['texhtml']}
  }
};

and loading MathJax via

    <script src="https://cdn.jsdelivr.net/npm/mathjax@4.0.0-alpha.1/es5/tex-mml-chtml.js"></script>
Assignee
Assign to
Time tracking