Quantcast
Channel: ClearScript
Browsing all 2297 articles
Browse latest View live

Commented Issue: [BUG] Script execution blocks V8 script item finalization [86]

The V8 script item finalizer currently requires a V8 runtime lock. If the runtime is executing a long-running script, it can block the finalization thread and cause out-of-control memory consumption...

View Article



Commented Unassigned: Exception when calling ToString() on Primitive Object [87]

I am trying to call ToString() on an int object and I am getting the following exceptionAn unhandled exception of type 'Microsoft.ClearScript.ScriptEngineException' occurred in...

View Article

Closed Unassigned: Exception when calling ToString() on Primitive Object [87]

I am trying to call ToString() on an int object and I am getting the following exceptionAn unhandled exception of type 'Microsoft.ClearScript.ScriptEngineException' occurred in...

View Article

Edited Issue: Exception when calling ToString() on Primitive Object [87]

I am trying to call ToString() on an int object and I am getting the following exceptionAn unhandled exception of type 'Microsoft.ClearScript.ScriptEngineException' occurred in...

View Article

Created Issue: [BUG] Weak handle contexts are leaked during explicit disposal...

When cached V8 objects are explicitly disposed during V8 context destruction, the weak states of their handles must be cleared and the associated weak callback contexts deleted.

View Article


New Post: MemoryLeak despite disposing of V8 Script Engines

Hello infinitiesloop! You've discovered a very subtle bug that's unrelated to Issue #86. We're already testing fixes for both. Thank you! The excessive thread usage you're seeing is also unrelated, and...

View Article

New Post: MemoryLeak despite disposing of V8 Script Engines

I'm very interested in those fixes! I appreciate how active you guys are on this project still. We're using it for some compelling things :) It may be that my next move is to wait for your fixes and...

View Article

New Post: MemoryLeak despite disposing of V8 Script Engines

Here's the callstack with arguments. It's strange to me that NtWaitForSingleObject is called with all 0s. It's also strange to me that code_range_size is waiting on anything, because in the V8 code,...

View Article


New Post: MemoryLeak despite disposing of V8 Script Engines

Hi again, Hmm, that stack doesn't look correct at all. As you mentioned, v8::ResourceConstraints::code_range_size() doesn't call anything, and neither does the v8::ArrayBuffer::Contents constructor....

View Article


New Post: MemoryLeak despite disposing of V8 Script Engines

I don't think it is right, but I'm not sure how to get the correct symbols. Here's the 'noisy' output from windbg. I added a MS and Chrome symbol path:000007fe`fda210dc : 00000000`00000000...

View Article

New Post: MemoryLeak despite disposing of V8 Script Engines

V8 symbols are generated when you build ClearScript. If you obtained ClearScript via NuGet or another binary package, you could try searching for symbols somewhere within the package directory. By the...

View Article

New Post: MemoryLeak despite disposing of V8 Script Engines

I am using 5.4.2.1, from Nuget. It does not ship with the symbols. I've tried to build from source, but upon opening the solution, VS complains that it is using an older version of the VC++...

View Article

New Post: MemoryLeak despite disposing of V8 Script Engines

ClearScript's build procedure is outlined in the ReadMe. It currently requires Visual Studio 2013 (which includes the "v120" toolset), but the next point release, with the fixes mentioned above, will...

View Article


New Post: MemoryLeak despite disposing of V8 Script Engines

Got it! Here's a much better call stack. After a few thousand iterations in my system (which equates to a few thousand events being raised -- e.g. js callbacks being called), I end up with almost 200...

View Article

New Post: MemoryLeak despite disposing of V8 Script Engines

It appears that V8 maintains one "optimizing compiler thread" per isolate - an implementation detail beyond ClearScript's control. If your application uses the V8ScriptEngine constructor, it creates...

View Article


New Post: MemoryLeak despite disposing of V8 Script Engines

I have at most 10-15 scripts active at a time. For each script, I create a separate V8Runtime and create an engine off of that. I compile the script, too. So for each script I have a...

View Article

New Post: MemoryLeak despite disposing of V8 Script Engines

TL;DR: I may have identified my problem, which was my fault, but I'm not sure if it is expected behavior from ClearScript. Alright I figured out why my thread count was continuously rising. You saying...

View Article


New Post: MemoryLeak despite disposing of V8 Script Engines

Hi infinitiesloop,​ The Evaluate("[]") was being done on a NEW ScriptEngine rather than the Engine from the calling code. So the result was I was returning a js array created from one ScriptEngine back...

View Article

New Post: Debug script

Hi, Script loaded dynamically does not hit break point. I have script ex:var a=10; var b=20 var c=a+b; ScriptLib.LoadScript("sample.js"); var d=a+b+c; and in LoadScript() function I am reading this...

View Article

New Post: Debug script

Hello! A couple of questions: Which script engine are you using? How are you setting a breakpoint in the dynamically loaded script code? Thanks!

View Article
Browsing all 2297 articles
Browse latest View live




Latest Images