jetma / jav8

Automatically exported from code.google.com/p/jav8
0 stars 0 forks source link

EXCEPTION_ACCESS_VIOLATION with pre-built JAR on Windows XP #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create instance of JS engine using prebuilt JAR for windows XP
2.
3.

What is the expected output? What do you see instead?
Expected output is a simple script execution, instead I get an 
EXCEPTION_ACCESS_VIOLATION

What version of the product are you using? On what operating system?
0.3 on Win x86

Please provide any additional information below.
frame: C [jav8.dll+0x5ed8]

Original issue reported on code.google.com by davidk.b...@gmail.com on 8 Dec 2011 at 3:21

GoogleCodeExporter commented 9 years ago
I'm seeing the same problem. Works for me under Linux, but not Windows. I've 
attached a full hs_err log file.

Original comment by evan.mcl...@gmail.com on 9 Jan 2012 at 12:10

Attachments:

GoogleCodeExporter commented 9 years ago
Just to add some additional info, I've traced where the violation occurs.

When you call ScriptEngineManager.getEngineByName('jav8'), it goes down to line 
17 of V8Context, where it tries to call the native function 
V8Context.internalCreate() and that's where it crashes. Here's a stack dump:

    V8Context.<init>() line: 17 
    V8ScriptEngine.<init>(V8ScriptEngineFactory) line: 28   
    V8ScriptEngineFactory.getScriptEngine() line: 213   
    ScriptEngineManager.getEngineByName(String) line: not available

Hope that helps.

Q. Is there any other DLLs we need available (such as special V8 DLLs) apart 
from the one supplied by the jav8 jar itself?

Original comment by evan.mcl...@gmail.com on 9 Jan 2012 at 12:28

GoogleCodeExporter commented 9 years ago
I have the same problem on Windows 7 Build 7601 Service Pack 1.

Original comment by Rojazz1...@gmail.com on 6 Feb 2012 at 4:04

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Please try the latest SVN trunk code

Original comment by flier...@gmail.com on 14 Jun 2013 at 7:40

GoogleCodeExporter commented 9 years ago
I just pulled the latest pre-compiled jar: jav8-jsr223-win-amd64-0.6 and I'm 
still getting the access violation exception. Is the file updated?

Original comment by shadow.w...@gmail.com on 25 Sep 2013 at 4:38

GoogleCodeExporter commented 9 years ago
Has there been any update on this? I'm actually getting the same error for both 
Mac and Linux (using the provided downloads)

Original comment by sebw...@gmail.com on 11 Mar 2014 at 10:15

GoogleCodeExporter commented 9 years ago
Scratch that - was only occurring on Windows.

I have however found a workaround - by keeping all use of jav8 on ONE thread.

See attached example.

Original comment by sebw...@gmail.com on 11 Mar 2014 at 11:57

Attachments: