Skip to content

MedianSeparation crashing scsynth #162

Open
@weefuzzy

Description

@weefuzzy

SuperCollider 3.8.0 Built from branch 'HEAD' [0947edd]
Mac OS 10.12.6

Running the minimal example from the MedianSeparation helpfile always crashes the server here

//minimal example
(
{
var harmonic, percussive;     
var source = SoundIn.ar; 
var fft = FFT(LocalBuf(1024),source);

#harmonic,percussive = MedianSeparation(fft,FFTTrigger(LocalBuf(1024)),FFTTrigger(LocalBuf(1024)),1024,17);

[IFFT(harmonic),IFFT(percussive)]    //reconstruct harmonic to left ear, percussive to right

}.play
)

A bit confusingly (for me), the culprit given in the crash report is different in the 3.8.0 release build of the plugins downloaded from github, and in my own build from the 3.8.0 tag in the repo (692f92f).

Release build:

Thread 9 Crashed:: com.apple.audio.IOThread.client
0   NCAnalysisUGens.scx           	0x0000000100f8a818 cmp(void const*, void const*) + 8
1   libsystem_c.dylib             	0x00007fffa395a6e4 _qsort + 244
2   NCAnalysisUGens.scx           	0x0000000100f8ad0b MedianSeparation_next + 843
...

My build:

Thread 7 Crashed:: com.apple.audio.IOThread.client
0   NCAnalysisUGens.scx           	0x0000000103c52ec5 detail::Complex::ToPolarApx() + 341
1   NCAnalysisUGens.scx           	0x0000000103c52d48 detail::Complex::ToPolarApxInPlace() + 24
2   NCAnalysisUGens.scx           	0x0000000103c52ca4 ToPolarApx(SndBuf*) + 100
3   NCAnalysisUGens.scx           	0x0000000103c5240d MedianSeparation_next + 2589
...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions