mehdigriche / pyv8

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

gnumeric freezes when trying to get a handle to js funciton #196

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install gnumeric and gnumeric-plugins-extra on your system
2. activate the python plugin loader in the gnumeric plugin manager
3. put the two attached files my-func.py and plugin.xml into your gnumeric 
plugin directory (on my machine this is ~/.gnumeric/1.12.1/plugins/myfuncs)
4. start gnumeric
5. after typing "=p" gnumeric freezes.

What is the expected output? What do you see instead?

gnumeric should not freeze

What version of the product are you using? On what operating system?

Current pyv8 installed via pip
ubuntu 13.04
gnumeric 1.12.1

Please provide any additional information below.

if the line 17 in my-func.py (js_add=ctxt.locals.js_add) is commented out, 
gnumeric doesnt freeze and works as expected

i attached gdb to the "freezed" gnumeric: I'm new to python and pyv8 but it 
seems to me that the code waits indefinitly to get the gil of cpython. The 
backtrace is attached, too.

Thanks in advance for your help!

Original issue reported on code.google.com by christop...@googlemail.com on 11 Aug 2013 at 9:38

Attachments:

GoogleCodeExporter commented 8 years ago
it seems this problem is caused by the python plugin in gnumeric. the plugin 
creates a separate interpreter for each python plugin script. But Gil locking 
is not supported with multiple interpreters.
So this issue can be closed. Sorry for the inconvenience.

Original comment by christop...@googlemail.com on 23 Aug 2013 at 9:56

GoogleCodeExporter commented 8 years ago
Thanks for your updates

Original comment by flier...@gmail.com on 24 Dec 2013 at 5:38