<br><br><div class="gmail_quote">2011/11/12 Mathieu Bouchard <span dir="ltr">&lt;<a href="mailto:matju@artengine.ca">matju@artengine.ca</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Le 2011-11-11 à 21:54:00, tim vets a écrit :<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
hey, this is strange, when I run &#39;valgrind pdextended&#39; and then create [fux_kinect] it doesn&#39;t hang, but just says:<br>
[fux_kinect]: kinect initiated<br>
[fux_kinect]: Number of devices found: 0<br>
[fux_kinect]: Could not open device<br>
</blockquote>
<br></div>
The valgrind log (in the terminal) also ought to tell you an «Invalid Write» error with a partial backtrace. This is the error message I told you to give to the author, and even though it might not crash, it&#39;s still usually a sign of major problems.<br>


<br>
Whenever you have a crash while doing malloc/new, hunt down the Invalid Writes that you see and it will usually fix the problem.<br>
<br>
If it doesn&#39;t fix the problem, then it&#39;s because there are other Invalid Writes that valgrind couldn&#39;t detect.<div><div></div><div class="h5"><br></div></div></blockquote><div>indeed, when creating [fux_kinect], valgrind says:</div>

<div><br></div><div>==3908== Invalid write of size 4</div><div>==3908==    at 0x417017E: pthread_cond_init@@GLIBC_2.3.2 (pthread_cond_init.c:43)</div><div>==3908==    by 0xA15E4BC: fux_kinect::fux_kinect(int, _atom*) (fux_kinect.cpp:81)</div>

<div>==3908==    by 0xA15E72A: create_fux_kinect(_symbol*, int, _atom*) (fux_kinect.cpp:24)</div><div>==3908==    by 0x80B40B8: pd_typedmess (m_class.c:715)</div><div>==3908==    by 0x8076264: canvas_objtext (g_text.c:94)</div>

<div>==3908==    by 0x807653F: text_setto (g_text.c:1397)</div><div>==3908==    by 0x8097E08: glist_deselect (g_editor.c:253)</div><div>==3908==    by 0x8096F15: glist_noselect (g_editor.c:268)</div><div>==3908==    by 0x809A21C: canvas_doclick (g_editor.c:1422)</div>

<div>==3908==    by 0x809A5C6: canvas_mousedown (g_editor.c:1434)</div><div>==3908==    by 0x80B3F85: pd_typedmess (m_class.c:792)</div><div>==3908==    by 0x80B3B6B: pd_typedmess (m_class.c:813)</div><div>==3908==  Address 0x4389460 is not stack&#39;d, malloc&#39;d or (recently) free&#39;d</div>

<div>==3908== </div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div class="h5">
<br>
 ______________________________<u></u>______________________________<u></u>__________<br>
| Mathieu BOUCHARD ----- téléphone : <a href="tel:%2B1.514.383.3801" value="+15143833801" target="_blank">+1.514.383.3801</a> ----- Montréal, QC</div></div></blockquote></div><br>