Created attachment 70610 [details]
patch to LibreOffice 126.96.36.199 which fixed the deadlock in PyUNO
Setting any writable attributes of a PyUNO component (in my case a custom PyUNO component implementing the service 'com.sun.star.sheet.Solver') results in a dead-lock on Linux when the built-in GUI tries to set any attribute on the implemented PyUNO component.
A detailed Apache OpenOffice bug report which points to a working fix to the problem:
Using the above, I have applied a patch on LibreOffice 188.8.131.52 and it has solved the problem.
I believe this patch should be applied in all released versions of LibreOffice.
LibreOffice hangs completely.
Writing Python attributes from other languages (like C++) should not freeze the whole office package and it ought to work.
Operating System: Ubuntu
i take it the CPython GIL is not recursive?
that code is obviously broken in that case.
that patch you attached is identical to the ApacheOO SVN commit
cited in the AOO bug. my understanding is that due to the messy
licensing situation we can only apply that on master and the 4.0 branch,
but not the 3.6 branch.
thanks for pointing out this problem and its solution.
"i take it the CPython GIL is not recursive?"
I suppose so... The patch has fixed my problem and it doesn't seem to cause problems.
"my understanding is that due to the messy licensing situation we can only apply that on master and the 4.0 branch, but not the 3.6 branch"
Well, given the very trivial nature of the fix (it's merely swapping code lines), I find this rather weird.
Please try to doublecheck you cannot apply this fix on earlier versions indeed.
Thanks for your consideration.