Skip to content
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

"InternalError: too much recursion" in Firefox during print #409

Closed
williammck opened this issue Mar 21, 2018 · 14 comments
Closed

"InternalError: too much recursion" in Firefox during print #409

williammck opened this issue Mar 21, 2018 · 14 comments

Comments

@williammck
Copy link

Hi! I noticed that when printing in Firefox, InternalError: too much recursion is thrown twice, at the beforeprint and afterprint events. Printing still works fine, but only after about a second of delay once the JS engine stops the infinite recursion.

It's happening here: https://github.com/mkoryak/floatThead/blob/master/src/jquery.floatThead.js#L139, as triggerHandler then again calls the handlers set in that if statement.

This isn't personally causing me an issue (other than filling up my Sentry logs), but I'd imagine for sites with some functionality in the before/after print handlers it could create some trouble.

Reproduction URL: https://mkoryak.github.io/floatThead/ (it occurs on any normal install of floatThead from what I can tell)

Browser: Firefox 59
OS: Windows 10, macOS 10.13
jQuery version: 3.3.1 (latest)
floatThead version: 2.1.1 (latest)

@mkoryak
Copy link
Owner

mkoryak commented Mar 21, 2018 via email

@williammck
Copy link
Author

Quick update: am seeing it happening now all the way back to FF47 on macOS 10.11.

I guess one way to fix it is to have a printing variable, check for false and set to true in beforeprint, then check for true and set to false in afterprint

No problem about the logs - wouldn't have known this was happening otherwise! :)

@mkoryak mkoryak changed the title "InternalError: too much recursion" in Firefox 59 "InternalError: too much recursion" in Firefox during print Mar 23, 2018
@mkoryak mkoryak added the bug label Mar 27, 2018
@mkoryak
Copy link
Owner

mkoryak commented Mar 27, 2018

I cannot do what I promised, no time lately. Pull requests are welcome :)
Otherwise, ill get to it as soon as I get to it.

@williammck
Copy link
Author

williammck commented Mar 27, 2018 via email

@mkoryak mkoryak added the help wanted send me a PR please! label Apr 24, 2018
@mkoryak mkoryak closed this as completed in 3a0a60a May 7, 2018
mkoryak added a commit that referenced this issue May 7, 2018
@mkoryak mkoryak added the solved label May 7, 2018
@mkoryak
Copy link
Owner

mkoryak commented May 7, 2018

should be fixed in /src, let me know how bad you want a release :)

@williammck
Copy link
Author

whenever! I don't really care, been super busy moving house.

just put it in with whatever next release, we're in education so our product won't see much usage until fall.

@williammck
Copy link
Author

our product won't see much usage until fall

aaand, right on time, I've started getting reports of the issue again.

any chance you're rolling a new release in the near future? would greatly appreciate it. :)

@mkoryak
Copy link
Owner

mkoryak commented Oct 6, 2018

Sure thing, I'm away until Tuesday. Expect a release around that time.

@mkoryak mkoryak reopened this Oct 6, 2018
@mkoryak mkoryak removed the help wanted send me a PR please! label Oct 6, 2018
@williammck
Copy link
Author

hey! sorry if you're busy, just checking back in about when to expect a release :)

@mkoryak
Copy link
Owner

mkoryak commented Oct 25, 2018

good question. Got busy at work. Next week?

@williammck
Copy link
Author

Sure! It's not happening a ton, just got another bug report of it and it reminded me. Take your time if needed.

@mkoryak
Copy link
Owner

mkoryak commented Jan 15, 2019

Ok, that took forever, but finally I published it as 2.1.3

@mkoryak mkoryak closed this as completed Jan 15, 2019
@williammck
Copy link
Author

Much appreciated! 😄

@lock
Copy link

lock bot commented Dec 10, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Dec 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants