Re: Callback deadlock

2015-06-30 Thread Stephan Bergmann
On 06/29/2015 03:43 PM, Matthew J. Francis wrote: On 29/06/2015 20:18, Stephan Bergmann wrote: ah, that's a poorly implemented Implementation::inspect (stoc/source/inspect/introspection.cxx), which locks some m_aMutex first thing and for the duration of the whole function call, and both Pyhton-s

Re: Callback deadlock

2015-06-29 Thread Matthew J. Francis
On 29/06/2015 20:18, Stephan Bergmann wrote: ah, that's a poorly implemented Implementation::inspect (stoc/source/inspect/introspection.cxx), which locks some m_aMutex first thing and for the duration of the whole function call, and both Pyhton-side threads 1 and 2 are in this function... When

Re: Callback deadlock

2015-06-29 Thread Stephan Bergmann
On 06/29/2015 10:53 AM, Matthew J. Francis wrote: It's remote - a test running as an external process. The Python side of the deadlock is http://pastebin.com/qPkyVTkk (this is a different run - the corresponding soffice.bin trace is http://pastebin.com/g4F8zcUi ) The two things that seem to be

Re: Callback deadlock

2015-06-29 Thread Matthew J. Francis
On 29/06/2015 15:47, Piet van Oostrum wrote: It is not completely clear if you are calling from a remote Python program, or from inside LO. Assuming that it is remote, yes, there are problems with listeners in this situation. It can easily deadlock. I have posted a similar situation on this li

Re: Callback deadlock

2015-06-29 Thread Piet van Oostrum
Matthew J. Francis wrote: > Hi, > > I'm intermittently experiencing the attached deadlock in some Python code. > > As far as I can tell, the deadlock appears to be between a call to an > XTopWindowListener in thread 1 (the listener, also in Python code, > doesn't yet do anything more th

Re: Callback deadlock

2015-06-29 Thread Stephan Bergmann
On 06/29/2015 09:25 AM, Stephan Bergmann wrote: On 06/29/2015 07:58 AM, Matthew J. Francis wrote: I'm intermittently experiencing the attached deadlock in some Python code. As far as I can tell, the deadlock appears to be between a call to an XTopWindowListener in thread 1 (the listener, also i

Re: Callback deadlock

2015-06-29 Thread Stephan Bergmann
On 06/29/2015 07:58 AM, Matthew J. Francis wrote: I'm intermittently experiencing the attached deadlock in some Python code. As far as I can tell, the deadlock appears to be between a call to an XTopWindowListener in thread 1 (the listener, also in Python code, doesn't yet do anything more than

Re: Callback deadlock

2015-06-29 Thread Matthew J. Francis
On 29/06/2015 15:08, Miklos Vajna wrote: Hi, On Mon, Jun 29, 2015 at 01:58:09PM +0800, "Matthew J. Francis" wrote: I'm intermittently experiencing the attached deadlock in some Python code. You forgot to attach it. :-) I attached it, but compressed for size - if it didn't arrive, some fi

Re: Callback deadlock

2015-06-29 Thread Miklos Vajna
Hi, On Mon, Jun 29, 2015 at 01:58:09PM +0800, "Matthew J. Francis" wrote: > I'm intermittently experiencing the attached deadlock in some Python code. You forgot to attach it. :-) Regards, Miklos signature.asc Description: Digital signature ___ Li