0

I have a very simple html page that crashes when I CTRL + C. But:

  • select and right click copy works fine.
  • CTRL + V works fine too.

The problem persists on Chrome 49, Firefox 43 & IE 11.

  • IE offers an explanation: "localhost is not responding due to a long running script".
  • Chrome the usual: "Aw Snap! Something went wrong".
  • Firefox simply stops responding.

Because of the above I think it's safe to rule out HTML/CSS problems, as well as browser issues. If it weren't for that IE message, I would also rule out JS problems.

I don't understand how CTRL+C causes a script to run (if I am to trust IE), and I don't know how to find that script. This seems to be a tab-specific issue as all 3 browsers continue to work fine on the other tabs, while the problematic one has stopped responding.

Anyone else had this problem?

I'm running windows 7

Mwiza
  • 7,780
  • 3
  • 46
  • 42
Nonorios
  • 15
  • 6

2 Answers2

0

Probably your page runs some script. Maybe one of them has unending loop started on push CTRL, C or CTRL+C.

Mwiza
  • 7,780
  • 3
  • 46
  • 42
  • it was a typical infinite loop afterall. I don't know yet why it is caused only by `ctrl + c` and not by `ctrl + v` though. – Nonorios Mar 21 '16 at 10:45
0

Just in case someone stumbles upon the same problem >>>

I found the "long running script". (IE saves the day, yay!)

The problem was a typical infinite loop caused by jQuery returning an empty set [] when I was checking for null or 'undefined' to end my loop.

check this stackoverflow Q&A for more.

Community
  • 1
  • 1
Nonorios
  • 15
  • 6