[PD] pyext detach method crashes pd with gem/pdp

Yves Degoyon ydegoyon at free.fr
Wed Apr 12 15:22:13 CEST 2006


ola,

mm, looks like it has to do with the threads,
and dod you use pdp in threaded mode
( change the option with pdp_control ) ?
does it make any difference?

saludos,
sevy


vincent rioux wrote:

> hi Thomas,
>
> sorry i should definetely have said "quick and dirty solution".
>
> i send you two files - you need the externals : py, Gem, pdp and pdp2gem.
>
> - open detach_crash.pd
> - press 'bang' for pdp acquisition start
> - press 'on' for gem window creation
>
> when detach is commented out in detach_crash.py, pd crashes on my 
> linux box (pd 39.2, pyext, Gem and pdp compiled from cvs, ubuntu 5.10).
>
> thanks for your fast reply!
> best,
> vincent
>
> Thomas Grill a écrit :
>
>> Hi Vincent,
>> thanks for the report, although commenting out self._detach(1) is no 
>> solution.
>> I could try to find the reason, if you can provide a simple crashing 
>> patch with as few external objects as possible.
>>
>> greetings,
>> Thomas
>>
>> vincent rioux schrieb:
>>
>>> hi all,
>>> i just noticed that the detach method of pyext can cause pd to crash.
>>> i had a patch with gem, pdp and pdp2gem and as soon as i tried to 
>>> display video from pdp into gem display, pd crashed. spent quite a 
>>> hard time (not too long though) to find out why this happened.
>>> the solution is the following : comment out the self._detach(1) in 
>>> pyext files.
>>> best,
>>> vincent
>>>
>>>
>>>
>>>
>>>
>>
>
>
>------------------------------------------------------------------------
>
>#N canvas 393 166 575 346 10;
>#X obj 15 56 pyx detach_crash creation;
>#X obj 16 110 gemwin;
>#X obj 16 86 r gemwin;
>#X msg 15 26 reload;
>#X msg 185 23 on;
>#X obj 390 109 pdp_v4l;
>#X msg 442 18 stop;
>#X msg 390 18 bang;
>#X obj 390 57 metro 40;
>#X obj 292 139 pdp2gem;
>#X obj 290 165 pix_rgba;
>#X obj 290 199 pix_texture;
>#X obj 289 228 rectangle 4 3;
>#X obj 265 100 gemhead;
>#X connect 2 0 1 0;
>#X connect 3 0 0 0;
>#X connect 4 0 0 1;
>#X connect 5 0 9 0;
>#X connect 6 0 8 0;
>#X connect 7 0 8 0;
>#X connect 8 0 5 0;
>#X connect 9 0 10 0;
>#X connect 10 0 11 0;
>#X connect 11 0 12 0;
>#X connect 13 0 9 0;
>  
>
>------------------------------------------------------------------------
>
>import pyext
>import glob, os
>import random
>import time
>
>class creation(pyext._class):
>    _inlets=1
>    _outlets=0
>
>    def __init__(self):
>        #self._detach(1)
>        pass
>    
>    def on_1(self):
>        self._send('gemwin', 'border', (1,))
>        self._send('gemwin', 'offset', (0, 0))
>        self._send('gemwin', 'create', ())
>        self._send('gemwin', (1,))
>
>        
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>PD-list at iem.at mailing list
>UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
>  
>





More information about the Pd-list mailing list