RoamUniverse / pyv8

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

Rare PyV8 crashes on OSX #138

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I’m using PyV8 to run JS code on Sublime Text 2 editor. I have 2 reports from 
users on OSX that PyV8 fails to start and crashes editor. Here’s a crash log: 
https://github.com/sergeche/emmet-sublime/issues/76

Is there any way to figure out where the problem is?

Original issue reported on code.google.com by serge....@gmail.com on 22 Oct 2012 at 5:15

GoogleCodeExporter commented 9 years ago
Could you provide the JS code which cause the crash? because it seems crashed 
in the Python import statement which loading a external dynamic library

Original comment by flier...@gmail.com on 23 Oct 2012 at 5:06

GoogleCodeExporter commented 9 years ago
The full project is available here: https://github.com/sergeche/emmet-sublime

PyV8 loader: 
https://github.com/sergeche/emmet-sublime/blob/master/emmet/context.py

Loaded JS files:
https://github.com/sergeche/emmet-sublime/blob/master/emmet/emmet-app.js
https://github.com/sergeche/emmet-sublime/blob/master/emmet/python-wrapper.js
https://github.com/sergeche/emmet-sublime/blob/master/editor.js

Original comment by serge....@gmail.com on 23 Oct 2012 at 8:39

GoogleCodeExporter commented 9 years ago
Seems like this issue was solved, again :)
I‘ve re-compiled most recent version of PyV8 and V8 (r12786, newer versions 
are not builded with Scons anymore) with boost::python linked statically and it 
worked in fine.

Please don’t close this ticket right away, I’ll do some tests on other 
users and older OSX versions and let you know if it works.

Original comment by serge....@gmail.com on 23 Oct 2012 at 10:04

GoogleCodeExporter commented 9 years ago
ok, let's keep watching on it :)

Original comment by flier...@gmail.com on 24 Oct 2012 at 7:10

GoogleCodeExporter commented 9 years ago
I’ve just received confirmation from both users that everything works fine. 
Also tested on OSX 10.7 — no problems. Thank you for your time, your project 
really helps a lot of people :)

Original comment by serge....@gmail.com on 24 Oct 2012 at 6:58

GoogleCodeExporter commented 9 years ago
Thanks, just have fun :)

Original comment by flier...@gmail.com on 25 Oct 2012 at 3:45