atom feed61 messages in at.iem.pd-listRe: [PD] fux_kinect
FromSent OnAttachments
sonia yuditskayaOct 25, 2011 6:07 pm 
sonia yuditskayaOct 25, 2011 6:13 pm 
vadeOct 25, 2011 7:00 pm 
Hans-Christoph SteinerOct 25, 2011 8:21 pm 
sonia yuditskayaOct 26, 2011 2:07 pm 
Hans-Christoph SteinerOct 26, 2011 2:54 pm 
sonia yuditskayaOct 26, 2011 3:27 pm 
Budi PrakosaOct 26, 2011 5:25 pm 
Hans-Christoph SteinerOct 26, 2011 6:00 pm 
Hans-Christoph SteinerOct 26, 2011 7:25 pm.patch, .patch
Budi PrakosaOct 26, 2011 7:49 pm 
Hans-Christoph SteinerOct 26, 2011 7:54 pm 
Budi PrakosaOct 26, 2011 10:23 pm 
Jordi SalaOct 27, 2011 4:39 am 
Budi PrakosaOct 27, 2011 4:50 am 
José Luis Santorcuato TapiaNov 11, 2011 4:19 am 
Hans-Christoph SteinerNov 11, 2011 7:30 am 
tim vetsNov 11, 2011 7:57 am 
Hans-Christoph SteinerNov 11, 2011 8:02 am 
tim vetsNov 11, 2011 8:06 am 
Mathieu BouchardNov 11, 2011 8:38 am 
tim vetsNov 11, 2011 8:55 am 
Hans-Christoph SteinerNov 11, 2011 9:10 am 
Mathieu BouchardNov 11, 2011 10:42 am 
tim vetsNov 11, 2011 10:49 am 
tim vetsNov 11, 2011 10:52 am 
tim vetsNov 11, 2011 11:04 am 
tim vetsNov 11, 2011 11:18 am 
tim vetsNov 11, 2011 11:24 am 
Hans-Christoph SteinerNov 11, 2011 12:25 pm 
Mathieu BouchardNov 11, 2011 12:25 pm 
tim vetsNov 11, 2011 12:54 pm.Other
tim vetsNov 11, 2011 12:58 pm 
Mathieu BouchardNov 12, 2011 8:53 am 
Mathieu BouchardNov 12, 2011 8:55 am 
Mathieu BouchardNov 12, 2011 9:01 am 
Mathieu BouchardNov 12, 2011 9:11 am 
Claude Heiland-AllenNov 12, 2011 9:13 am 
Mathieu BouchardNov 12, 2011 9:15 am 
tim vetsNov 12, 2011 9:19 am 
Mathieu BouchardNov 12, 2011 9:30 am 
Mathieu BouchardNov 12, 2011 9:33 am 
tim vetsNov 12, 2011 9:55 am 
tim vetsNov 12, 2011 9:58 am 
Mathieu BouchardNov 12, 2011 10:04 am 
tim vetsNov 12, 2011 10:08 am 
tim vetsNov 12, 2011 10:10 am.Other
tim vetsNov 14, 2011 5:44 am.txt
tim vetsNov 14, 2011 6:41 am 
Mathieu BouchardNov 14, 2011 7:53 am 
Budi PrakosaNov 14, 2011 9:03 am 
tim vetsNov 14, 2011 10:19 am 
Matthias KronlachnerNov 14, 2011 5:07 pm 
tim vetsNov 15, 2011 6:23 am 
tim vetsNov 15, 2011 7:11 am 
Mathieu BouchardNov 15, 2011 7:12 am 
Mathieu BouchardNov 15, 2011 7:14 am 
Matthias KronlachnerNov 15, 2011 11:26 am 
Budi PrakosaNov 21, 2011 9:24 pm 
Mathieu BouchardNov 22, 2011 7:18 am 
Budi PrakosaNov 22, 2011 4:03 pm 
Subject:Re: [PD] fux_kinect
From:tim vets (timv@gmail.com)
Date:Nov 12, 2011 9:58:33 am
List:at.iem.pd-list

2011/11/12 tim vets <timv@gmail.com>

2011/11/12 Mathieu Bouchard <mat@artengine.ca>

Le 2011-11-12 à 18:19:00, tim vets a écrit :

Whenever you have a crash while doing malloc/new, hunt down the Invalid

Writes that you see and it will usually fix the problem. If it doesn't fix the problem, then it's because there are other Invalid Writes that valgrind couldn't detect. indeed, when creating [fux_kinect], valgrind says:

==3908== Invalid write of size 4 ==3908== at 0x417017E: pthread_cond_init@@GLIBC_2.3.2 (pthread_cond_init.c:43)

So, when will you apply the fix I gave in a previous mail ?

it's stretching my knowledge quite far now,

but gave it a shot anyway, and interpreted what you wrote as: find the line " gl_frame_cond = (pthread_cond_t) malloc(sizeof(pthread_mutex_t));"

typo: the original line being " gl_frame_cond = (pthread_cond_t*) malloc(sizeof(pthread_mutex_t));" that is...

(in fux_kinect.cpp)

and remove the "*" from that line. now make gives: "g++ -export_dynamic -shared -I/home/tim/Downloads/pdextendedSVN/0.42/pd/include `pkg-config --cflags libfreenect` -g -O2 -fPIC -freg-struct-return -Os -falign-loops=32 -falign-functions=32 -falign-jumps=32 -funroll-loops -ffast-math -mmmx -DLINUX -o fux_kinect.o -c fux_kinect.cpp fux_kinect.cpp: In constructor ‘fux_kinect::fux_kinect(int, t_atom*)’: fux_kinect.cpp:80:66: error: no matching function for call to ‘pthread_cond_t::pthread_cond_t(void*)’ /usr/include/bits/pthreadtypes.h:130:3: note: candidates are: pthread_cond_t::pthread_cond_t() /usr/include/bits/pthreadtypes.h:130:3: note: pthread_cond_t::pthread_cond_t(const pthread_cond_t&) make: *** [all] Error 1

or am I getting it wrong? gr, Tim

==3908== Address 0x4389460 is not stack'd, malloc'd or (recently) free'd

Did you just remove the malloc line entirely ? Put the correct line I gave you.

To get rid of malloc/free, you need make more changes than just that (removing * in some places and adding & in some other places).

______________________________**______________________________** __________ | Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 ----- Montréal, QC