Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: Potential Stackoverflow on Azure Web Apps

0
0
Hello,

The error message you're seeing indicates the following:
  1. Script execution ended prematurely due to an uncaught script exception.
  2. Converting the thrown object to a string yielded an empty string.
Because of (2), no error message is available; hence "Unknown error". Additionally, in our own testing, we've observed V8 throwing such an object only during stack overflow recovery; hence "potential stack overflow detected".

However, more recently we found that simply throwing an empty string (or any object whose toString method returns an empty string) produces the same result. That's a ClearScript bug we need to fix, at least to enable stack traces in such situations.

In the meantime, is it possible that your script throws such an object? Consider adding a try..catch block to detect that. If not, you may actually be hitting a stack overflow. Are you specifying stack usage limits for your V8 runtimes?

Good luck!

Viewing all articles
Browse latest Browse all 2297