Re: [PD-dev] deadly leak

2011-12-15 Thread Hans-Christoph Steiner
Sounds like a good plan. I think a number of us support that goal. Any specific way we can help in the near future to get the ball rolling on that? .hc On Dec 14, 2011, at 8:02 PM, Miller Puckette wrote: Personally, I'm hoping to put band-aids on as many manaifestations of the problem as

Re: [PD-dev] deadly leak

2011-12-15 Thread Hans-Christoph Steiner
There are a couple of minor details in that patch that I fixed in the attached patch: - remove debugging post() messages from editor_new() and editor_free() - remove glist_free() and glist_cleanup() from g_canvas.h since they no longer exist .hc

Re: [PD-dev] deadly leak

2011-12-14 Thread Ivica Ico Bukvic
OK, So, I reenabled the workaround I had used before in pd-l2ork and all is well again. But it still does use a workaround and an ugly one at that. Yet, that is the *only* way I can see fixing this. The problem is essentially what I had mentioned already cutting and undoing cutting a canvas

Re: [PD-dev] deadly leak

2011-12-14 Thread Mathieu Bouchard
Le 2011-12-14 à 10:15:00, Ivica Ico Bukvic a écrit : So, the only way I can ensure in pd-l2ork that this never happens is that I enable global variable in canvas_new making sure that pd_new function is aware its next allocation is for a canvas. I also maintain a global single-linked list of

Re: [PD-dev] deadly leak

2011-12-14 Thread Ivica Ico Bukvic
Mathieu Bouchard ma...@artengine.ca wrote: Le 2011-12-14 à 10:15:00, Ivica Ico Bukvic a écrit : So, the only way I can ensure in pd-l2ork that this never happens is that I enable global variable in canvas_new making sure that pd_new function is aware its next allocation is for a canvas. I

Re: [PD-dev] deadly leak

2011-12-14 Thread Mathieu Bouchard
Le 2011-12-14 à 12:49:00, Ivica Ico Bukvic a écrit : So what part of the code specifically binds keyboard and mouse actions to a canvas? Look for the name as it appears in Tcl commands going to Pd. From what it looks like in commands to/from Tcl, you can see that it is a .x%lx

Re: [PD-dev] deadly leak

2011-12-14 Thread Krzysztof Czaja
On 12/15/2011 12:10 AM, Ivica Ico Bukvic wrote: ... Wow! You just helped me finally solve this riddle! Could it be really this simple? In canvas_free() call inside g_canvas.c simply add the following 2 lines: if (x-gl_editor) canvas_destroy_editor(x); I added them right

Re: [PD-dev] deadly leak

2011-12-14 Thread Miller Puckette
Personally, I'm hoping to put band-aids on as many manaifestations of the problem as I can track down (so thanks for this one :) and then re-design the whole editor creation and destruction strategy for 0.44 - it looks like it can never be fully debugged the way it's stet up now! Miller On Thu,

Re: [PD-dev] deadly leak

2011-12-13 Thread Ivica Ico Bukvic
Subject: [PD-dev] deadly leak Hi Pd gurus, ever found a single keystroke or a mouse click was duplicated on a patch? A strange bug which always turns out to be fatal at the point of closing the patch? Hit by several such crashes one after another I went hunting. What I found

Re: [PD-dev] deadly leak

2011-12-13 Thread Ivica Ico Bukvic
_ From: Ivica Ico Bukvic [mailto:i...@vt.edu] Sent: Tuesday, December 13, 2011 4:18 AM To: Hans-Christoph Steiner; Jonathan Wilkes; Krzysztof Czaja; pd-dev Subject: Re: [PD-dev] deadly leak This problem has a series of fixes spread all across the code. It is not one instance

[PD-dev] deadly leak

2011-12-12 Thread Krzysztof Czaja
Hi Pd gurus, ever found a single keystroke or a mouse click was duplicated on a patch? A strange bug which always turns out to be fatal at the point of closing the patch? Hit by several such crashes one after another I went hunting. What I found was that there is always a t_editor created for

Re: [PD-dev] deadly leak

2011-12-12 Thread Jonathan Wilkes
since then, but I can confirm it's still a problem in 0.43. -Jonathan - Original Message - From: Krzysztof Czaja cz...@chopin.edu.pl To: pd-dev pd-dev@iem.at Cc: Sent: Monday, December 12, 2011 8:15 PM Subject: [PD-dev] deadly leak Hi Pd gurus, ever found a single keystroke

Re: [PD-dev] deadly leak

2011-12-12 Thread Jonathan Wilkes
- From: Jonathan Wilkes jancs...@yahoo.com To: Krzysztof Czaja cz...@chopin.edu.pl; pd-dev pd-dev@iem.at Cc: Ivica Ico Bukvic i...@vt.edu Sent: Monday, December 12, 2011 8:40 PM Subject: Re: [PD-dev] deadly leak HiKrzysztof, I believe Ivica fixed this bug in Pd-l2ork back in March.  From

Re: [PD-dev] deadly leak

2011-12-12 Thread Hans-Christoph Steiner
, December 12, 2011 8:15 PM Subject: [PD-dev] deadly leak Hi Pd gurus, ever found a single keystroke or a mouse click was duplicated on a patch?  A strange bug which always turns out to be fatal at the point of closing the patch? Hit by several such crashes one after another I went

Re: [PD-dev] deadly leak

2011-12-12 Thread Jonathan Wilkes
- Original Message - From: Hans-Christoph Steiner h...@at.or.at To: Jonathan Wilkes jancs...@yahoo.com; Krzysztof Czaja cz...@chopin.edu.pl; pd-dev pd-dev@iem.at Cc: Ivica Ico Bukvic i...@vt.edu Sent: Monday, December 12, 2011 9:40 PM Subject: Re: [PD-dev] deadly leak Hey