[of-dev] 0071 for osx

Damian Stewart damian at frey.co.nz
Sat May 5 05:59:48 PDT 2012


derp, hit send too early.

Christoph, can you try adding printfs to OWW MY EYES!

52 ofOpenALSoundPlayer::~ofOpenALSoundPlayer(){
53         unloadSound();
54         kiss_fftr_free(fftCfg);
55         players.erase(this); <--- is this safe? ofPtr<std::tr_magic::confusion> safe really?
56 }

this is SUPER suspicious:

> 	ofOpenALSoundPlayer::~ofOpenALSoundPlayer() at ofOpenALSoundPlayer.cpp:52 0x80abd01	
> 	ofOpenALSoundPlayer::~ofOpenALSoundPlayer() at ofOpenALSoundPlayer.cpp:56 0x80abe8d	
stack trace says the destructor is calling itself. wtf?

Christoph, could you please try adding a printf("ofSoundPlayer destructor\n") style line to each the destructors for ofOpenALSoundPlayer, ofBaseSoundPlayer and also add a (virtual) destructor for ofSoundPlayer that also does this, run, and then email out the results?

cheers
damian

--
damian stewart . creative code
http://damianstewart.com . twitter @damian0815




On 04.05.2012, at 13:02, Christoph Buchner wrote:

>>> audioInput/outputExamples: portAudio errors. and segmentation faults on pressing s,e
>> 
>> mmh, i'm not getting any crashes can you debug it and tell me where is 
>> segfaulting?
> 
> OK it seems to be spurious - can't reproduce properly. :-(
> both soundPlayer* examples segfault on quit though. 
> only tried sith soundPlayerExample, apparently segfaults upon entering ~ofOpenALSoundPlayer()
> 
> can you make sense of this:
> Thread [1] 23317 [core: 1] (Suspended : Signal : SIGSEGV:Segmentation fault)	
> 	0xb769f268	
> 	0xb769fa97	
> 	free() at 0xb76a2cad	
> 	operator delete() at 0xb78a380f	
> 	__gnu_cxx::new_allocator<float>::deallocate() at new_allocator.h:98 0x80b4421	
> 	std::_Vector_base<float, std::allocator<float> >::_M_deallocate() at stl_vector.h:156 0x80b2261	
> 	std::_Vector_base<float, std::allocator<float> >::~_Vector_base() at stl_vector.h:142 0x80b1485	
> 	std::vector<float, std::allocator<float> >::~vector() at stl_vector.h:351 0x80b0c92	
> 	ofOpenALSoundPlayer::~ofOpenALSoundPlayer() at ofOpenALSoundPlayer.cpp:52 0x80abd01	
> 	ofOpenALSoundPlayer::~ofOpenALSoundPlayer() at ofOpenALSoundPlayer.cpp:56 0x80abe8d	
> 	std::tr1::_Sp_deleter<ofOpenALSoundPlayer>::operator() at shared_ptr.h:292 0x80593cc	
> 	std::tr1::_Sp_counted_base_impl<ofOpenALSoundPlayer*, std::tr1::_Sp_deleter<ofOpenALSoundPlayer>, () at shared_ptr.h:264 0x8059380	
> 	std::tr1::_Sp_counted_base<() at shared_ptr.h:147 0x80573f6	
> 	std::tr1::__shared_count<() at shared_ptr.h:348 0x80573bc	
> 	std::tr1::__shared_ptr<ofBaseSoundPlayer, () at shared_ptr.h:548 0x8057246	
> 	std::tr1::shared_ptr<ofBaseSoundPlayer>::~shared_ptr() at shared_ptr.h:992 0x8057259	
> 	ofPtr<ofBaseSoundPlayer>::~ofPtr() at ofTypes.h:102 0x805726d	
> 	ofSoundPlayer::~ofSoundPlayer() at ofSoundPlayer.h:48 0x805728e	
> 	testApp::~testApp() at testApp.h:5 0x80585d8	
> 	testApp::~testApp() at testApp.h:5 0x8058685	
> 	<...more frames...>	
> 
> greets
> c
> 
> 
> ----- Original Message -----
> From: arturo at openframeworks.cc
> To: of-dev at dev.openframeworks.cc
> Date: 04.05.2012 13:14:19
> Subject: Re: [of-dev] 0071 for osx
> 
> 
>> 
>>> 
>>> x) Is is by design that we don't have a pre-made /apps folder (and maybe /apps/myApps) in the repo? How do people know where to put their stuff?
>> 
>> yes, haven't added yet to the script
>> 
>>> 
>>> meshfromCamera: only got a "not loaded" warning, and just a grey background
>>> multiTextureShaderExample: spamming "getTextureData() - texture has not been allocated", but looks alright?
>>> lutFilterExample: "not loaded" errors
>>> polylineBlobsExample: same
>>> videoGrabber:  not loaded errors (but no camera on this PC)
>> 
>> all the above use the camera so the errors are normal if you don't have one
>> 
>> 
>>> periodicSignals: Something is bugged, it only moves when xspeed slider is all the way to the right
>> 
>> there was an int that should be float, weird that it worked in other 
>> computers
>> 
>>> audioInput/outputExamples: portAudio errors. and segmentation faults on pressing s,e
>> 
>> mmh, i'm not getting any crashes can you debug it and tell me where is 
>> segfaulting?
>> 
>> _______________________________________________
>> of-dev mailing list
>> of-dev at dev.openframeworks.cc
>> http://dev.openframeworks.cc/listinfo.cgi/of-dev-openframeworks.cc
> 
> _______________________________________________
> of-dev mailing list
> of-dev at dev.openframeworks.cc
> http://dev.openframeworks.cc/listinfo.cgi/of-dev-openframeworks.cc




More information about the of-dev mailing list