<div dir="ltr"><div>Iohannes,</div><div><br></div><div>did you have a chance to check where my memory corruption is coming from?</div><div><br></div><div>Popesz<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Sep 1, 2018 at 11:34 AM Csaba Láng <<a href="mailto:langcsaba@gmail.com">langcsaba@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="auto">Iohannes,</div></div><div dir="auto">I am not sure if understood you well, did you mean that even I have a good graphic card with my patch I am unable to exceed 60 fps?</div><div dir="auto">Or you meant a [metro 5] to [gemhead] to achieve 200fps and analyzing the center of gravity with pix_blob could do the job.</div><div><div dir="auto">Popesz</div><br><div class="gmail_quote"><div dir="ltr">On Sat, 1 Sep 2018 at 01:02, IOhannes m zmölnig <<a href="mailto:zmoelnig@iem.at" target="_blank">zmoelnig@iem.at</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 8/31/18 2:42 PM, Csaba Láng wrote:<br>
> Just in case I send you a new Segmentation Fault log.<br>
> Here I have already no method for Gemstate.<br>
> I send you the patches to have a better idea what I am trying to do.<br>
> trackerping.pd is the main patch, containing filecontrol.<br>
> after gemwin is rendered, open languagechoice.pd<br>
> there are 2 cameras placed in the main window sending to the pd ping1 and<br>
> pd ping2 to languagechoice.<br>
> <br>
> Basically the 2 cameras are creating one touch surface by placing them one<br>
> above the wall facing down, the other one facing to the wall. When camera1<br>
> gets the wall hit tells the event to camera 2 which gets the position x y<br>
<br>
to avoid confusion, it's probably better to reserve the term "camera"<br>
for the physical device.<br>
<br>
> from pix_blob. Now when the 2 cameras send to each other info about the<br>
> presence of an object, I get the segmentation fault.<br>
<br>
so the crash appears when you you send something to [r ball] (which in<br>
turn triggers a [s english] resp [s polski]; which in turn triggers the<br>
patch-open and patch-close).<br>
<br>
i'm pretty sure that dynamically opening and closing patches is a bad idea.<br>
what's wrong with just using [spigot] to let the gemlist through or not?<br>
<br>
<br>
apart from that, it's crashing because of an illegal memory access in a<br>
[bng] object (that is: a graphical bang).<br>
this is either an initialization problem or some memory corruption.<br>
<br>
anyhow, parts of the patch are missing, (the dynamically loaded<br>
patches), and i don't know where [once] is coming from.<br>
<br>
i have a slight suspicion that you are running yet another [pix_blob] in<br>
your dynamically loaded patches, which you probably don't need (you<br>
already have a [pix_blob] on all your video sources), no?<br>
<br>
oh, and your cameras might already support setting gain and contrast and<br>
cropping the image. if so, you might want to do these things on the<br>
camera rather than within Gem.<br>
<br>
<br>
as for the framerate: even if you run your cams at 1000fps, Gem will run<br>
at it's own fixed framerate (which is 20fps by default, and i don't see<br>
where you've changed that). Gem's framerate is usually bound by the<br>
gfx-card (so often you cannot really go beyond 60fps).<br>
however, if you don't do any openGL rendering (most Gem-objects will do<br>
openGL, with the big exception of the pix_* family - apart from<br>
pix_texture, which does openGL), then you can have a single [gemhead]<br>
run at a higher rate by simply banging it to a [metro] running at that rate.<br>
<br>
<br>
gmads<br>
IOhannes<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div></div>
</blockquote></div>