Tab between fields causes Chrome and Firefox lockup and rapid memory leak

Hi,
I have a client who’s PC is dying when tabbing between invoice fields. It happened with the old version and having updated it to 2.7.1 today, it’s still happening. I have cleared cache, history and cookies. It happens on FF and Chrome (although FF doesn’t have the PDF preview for some reason).
Surprisingly doesn’t happen for me…
Yesterday’s logs were showing an error:
production.ERROR: Invalid offset/length when creating typed array
production.ERROR: RangeError: invalid array length: {“functionName”:“St”,“fileName”:“http://aaa.xxx.com/pdf.built.js",“lineNumber”:8026,"columnNumber”:14067} {“context”:“JavaScript”,“user_id”:0,“account_id”:0,“user_name”:"",“method”:“GET”,“url”:“http://aaa.xxx.com/view/5dX2ex3ArPRK5ukdhUV4mC3xWYrpODJt",“user_agent”:"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0”,“ip”:“172.17.0.4”,“count”:2} []

No server side errors today with the new version… but browser still hanging… any clues?

We recently tracked down an issue which could occur when focusing the description field.

Here’s the fix:

https://github.com/invoiceninja/invoiceninja/commit/0d2b1f64f9613af03818ef2b1659e2f2b8dde30b#diff-1a811f6f13cd4dd5481aacaf786c636aR1110

Cheers, thanks Hillel. I replaced those two files. There was an error that it could not find the max invoice items constant but I just hard coded a number in there for now.

And it works now!

Great to hear, thanks for letting us know!

We’ll include this fix with our next release.