Csound Csound-dev Csound-tekno Search About

[Csnd] Csound tidy up: Segmentation violation on Windows 7

Date2012-07-12 00:35
From"Prent Rodgers"
Subject[Csnd] Csound tidy up: Segmentation violation on Windows 7
I've been using Csound_AV since 2005, but now that I've moved off Windows XP
to Windows 7, I'd like to move to a more current release of Csound. I just
downloaded Csound5.17-gnu-win32-d.exe from SoundForge this morning, and I'm
getting the Segmentation violation on all input files. Here's the simplest I
could make, and it fails too:




-o sflib\test.wav




sr = 44100
ksmps=10
nchnls=2
; Toot #1
     instr 1
        a1     oscil     10000, 440, 1
                    out  a1
     endin




; Run this with its corresponding score file, toot1.sco :

        f1     0    4096 10   1    ; use "gen1" to compute a sine wave
        i1     0    4              ; run "instr 1" from time 0 for 4 seconds
        e                          ; indicate the "end" of the score





End result:

C:\Users\prentr\Documents\Csound\csound>csound test.csd
PortMIDI real time MIDI plugin for Csound
PortAudio real-time audio module for Csound
Csound tidy up: Segmentation violation

I see some discussion in the mailing list, but no answers. 

Prent Rodgers
http://bumpermusic.blogspot.com



Date2012-07-12 01:20
FromJim Aikin
Subject[Csnd] Re: Csound tidy up: Segmentation violation on Windows 7
It's working fine for me on Win7 64-bit Home Premium, using Csound 5.17.11-d.
No segmentation fault.

I'm running in QuteCsound 0.6.

--JA

--
View this message in context: http://csound.1045644.n5.nabble.com/Csound-tidy-up-Segmentation-violation-on-Windows-7-tp5714160p5714161.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-07-12 09:22
FromRory Walsh
SubjectRe: [Csnd] Re: Csound tidy up: Segmentation violation on Windows 7
No problems here either with Csound version 5.17.11 (double samples)
May 30 2012. Do you have an old version lying around some place?


On 12 July 2012 02:20, Jim Aikin  wrote:
> It's working fine for me on Win7 64-bit Home Premium, using Csound 5.17.11-d.
> No segmentation fault.
>
> I'm running in QuteCsound 0.6.
>
> --JA
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Csound-tidy-up-Segmentation-violation-on-Windows-7-tp5714160p5714161.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>

Date2012-07-12 10:28
Fromjpff@cs.bath.ac.uk
SubjectRe: [Csnd] Csound tidy up: Segmentation violation on Windows 7
Not beiung a windoze user I am not sure I can help, but first check that
OPCODEDIR points correctly and there are no old versions around.  Secondly
you could try the -v option to see if it gives more information, but I
suspect it will not (note to self; should -v be additive?)
==John ff

> I've been using Csound_AV since 2005, but now that I've moved off Windows
> XP
> to Windows 7, I'd like to move to a more current release of Csound. I just
> downloaded Csound5.17-gnu-win32-d.exe from SoundForge this morning, and
> I'm
> getting the Segmentation violation on all input files. Here's the simplest
> I
> could make, and it fails too:
>
> 
> 
>
> -o sflib\test.wav
>
> 
> 
>
> sr = 44100
> ksmps=10
> nchnls=2
> ; Toot #1
>      instr 1
>         a1     oscil     10000, 440, 1
>                     out  a1
>      endin
>
> 
>
> 
> ; Run this with its corresponding score file, toot1.sco :
>
>         f1     0    4096 10   1    ; use "gen1" to compute a sine wave
>         i1     0    4              ; run "instr 1" from time 0 for 4
> seconds
>         e                          ; indicate the "end" of the score
>
> 
>
> 
>
> End result:
>
> C:\Users\prentr\Documents\Csound\csound>csound test.csd
> PortMIDI real time MIDI plugin for Csound
> PortAudio real-time audio module for Csound
> Csound tidy up: Segmentation violation
>
> I see some discussion in the mailing list, but no answers.
>
> Prent Rodgers
> http://bumpermusic.blogspot.com
>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>
>
>



Date2012-07-12 11:54
Fromxrfrx@free.fr
Subject[Csnd] opcode dll MS Visual Express float ?
Hello,

It's an Faust .cpp generated file that I am compiling in an
opcode as .dll with MS Visual C++ 2010 Express (XP, sp3)

Csound5.17.11 double sample return :

   WARNING: not loading 'monOpcode.dll' (uses incompatible floating point type)

Should I need a special option for dll "double" Csound with MS Visual ?


// I thinck it's not an Faust mistake, Faust using MYFLT as csound ask,
// for example in :

#include "csdl.h"
#define FAUSTFLOAT MYFLT

...

virtual void compute (int count, FAUSTFLOAT** input, FAUSTFLOAT** output) {
	FAUSTFLOAT* input0 = input[0];
	FAUSTFLOAT* input1 = input[1];
	FAUSTFLOAT* output0 = output[0];
	for (int i=0; i

On Windows

   gcc -O3 -shared -o plugin.dll  plugin.c   -I

[you'll also need sndfile.h, the libsndfile header in a standard location]

Francois Roux

Date2012-07-12 12:01
FromRory Walsh
SubjectRe: [Csnd] opcode dll MS Visual Express float ?
Hi Francois. Have you defined USE_DOUBLE in your project properties?

On 12 July 2012 12:54,   wrote:
> Hello,
>
> It's an Faust .cpp generated file that I am compiling in an
> opcode as .dll with MS Visual C++ 2010 Express (XP, sp3)
>
> Csound5.17.11 double sample return :
>
>    WARNING: not loading 'monOpcode.dll' (uses incompatible floating point type)
>
> Should I need a special option for dll "double" Csound with MS Visual ?
>
>
> // I thinck it's not an Faust mistake, Faust using MYFLT as csound ask,
> // for example in :
>
> #include "csdl.h"
> #define FAUSTFLOAT MYFLT
>
> ...
>
> virtual void compute (int count, FAUSTFLOAT** input, FAUSTFLOAT** output) {
>         FAUSTFLOAT* input0 = input[0];
>         FAUSTFLOAT* input1 = input[1];
>         FAUSTFLOAT* output0 = output[0];
>         for (int i=0; i                 output0[i] = (FAUSTFLOAT)((double)input0[i] + (double)input1[i]);
>         }
> ...
>
> Thank !
>
> PS : perhaps it will be fine to have in csound manual about dll opcode
>      a mail of Victor Lazzarini :
>
> On OSX (floats):
>
>    gcc -O3 -dynamiclib -o plugin.dylib  plugin.c
>        -I/Library/Frameworks/CsoundLib.framework/Headers
>
> On OSX (doubles):
>
>    gcc -O3 -dynamiclib -o plugin.dylib  plugin.c  -DUSE_DOUBLE
>        -I/Library/Frameworks/CsoundLib64.framework/Headers
>
> On Linux
>
>    gcc -O3 -shared -o plugin.so  plugin.c   -I
>
> On Windows
>
>    gcc -O3 -shared -o plugin.dll  plugin.c   -I
>
> [you'll also need sndfile.h, the libsndfile header in a standard location]
>
> Francois Roux
>
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>

Date2012-07-12 13:06
Fromxrfrx@free.fr
SubjectRe: [Csnd] opcode dll MS Visual Express float ?
Thank Rory,

it is working !

(I can't fine an special place in Visual IDE
for this specification so I put it as /D "USE_DOUBLE")

----- Mail original -----
De: "Rory Walsh" 
À: csound@lists.bath.ac.uk
Envoyé: Jeudi 12 Juillet 2012 12:01:25
Objet: Re: [Csnd] opcode dll MS Visual Express float ?

Hi Francois. Have you defined USE_DOUBLE in your project properties?

On 12 July 2012 12:54,   wrote:
> Hello,
>
> It's an Faust .cpp generated file that I am compiling in an
> opcode as .dll with MS Visual C++ 2010 Express (XP, sp3)
>
> Csound5.17.11 double sample return :
>
>    WARNING: not loading 'monOpcode.dll' (uses incompatible floating point type)
>
> Should I need a special option for dll "double" Csound with MS Visual ?
>
>
> // I thinck it's not an Faust mistake, Faust using MYFLT as csound ask,
> // for example in :
>
> #include "csdl.h"
> #define FAUSTFLOAT MYFLT
>
> ...
>
> virtual void compute (int count, FAUSTFLOAT** input, FAUSTFLOAT** output) {
>         FAUSTFLOAT* input0 = input[0];
>         FAUSTFLOAT* input1 = input[1];
>         FAUSTFLOAT* output0 = output[0];
>         for (int i=0; i                 output0[i] = (FAUSTFLOAT)((double)input0[i] + (double)input1[i]);
>         }
> ...
>
> Thank !
>
> PS : perhaps it will be fine to have in csound manual about dll opcode
>      a mail of Victor Lazzarini :
>
> On OSX (floats):
>
>    gcc -O3 -dynamiclib -o plugin.dylib  plugin.c
>        -I/Library/Frameworks/CsoundLib.framework/Headers
>
> On OSX (doubles):
>
>    gcc -O3 -dynamiclib -o plugin.dylib  plugin.c  -DUSE_DOUBLE
>        -I/Library/Frameworks/CsoundLib64.framework/Headers
>
> On Linux
>
>    gcc -O3 -shared -o plugin.so  plugin.c   -I
>
> On Windows
>
>    gcc -O3 -shared -o plugin.dll  plugin.c   -I
>
> [you'll also need sndfile.h, the libsndfile header in a standard location]
>
> Francois Roux
>
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2012-07-12 13:10
FromRory Walsh
SubjectRe: [Csnd] opcode dll MS Visual Express float ?
That'll work too! The way I usually do this is to go to
Project->Properties from the main menu. Then go to the C++ link and
choose Preprocessor. You can add any number of preprocessor
definitions there. Good luck with your work.

Rory.


On 12 July 2012 14:06,   wrote:
> Thank Rory,
>
> it is working !
>
> (I can't fine an special place in Visual IDE
> for this specification so I put it as /D "USE_DOUBLE")
>
> ----- Mail original -----
> De: "Rory Walsh" 
> À: csound@lists.bath.ac.uk
> Envoyé: Jeudi 12 Juillet 2012 12:01:25
> Objet: Re: [Csnd] opcode dll MS Visual Express float ?
>
> Hi Francois. Have you defined USE_DOUBLE in your project properties?
>
> On 12 July 2012 12:54,   wrote:
>> Hello,
>>
>> It's an Faust .cpp generated file that I am compiling in an
>> opcode as .dll with MS Visual C++ 2010 Express (XP, sp3)
>>
>> Csound5.17.11 double sample return :
>>
>>    WARNING: not loading 'monOpcode.dll' (uses incompatible floating point type)
>>
>> Should I need a special option for dll "double" Csound with MS Visual ?
>>
>>
>> // I thinck it's not an Faust mistake, Faust using MYFLT as csound ask,
>> // for example in :
>>
>> #include "csdl.h"
>> #define FAUSTFLOAT MYFLT
>>
>> ...
>>
>> virtual void compute (int count, FAUSTFLOAT** input, FAUSTFLOAT** output) {
>>         FAUSTFLOAT* input0 = input[0];
>>         FAUSTFLOAT* input1 = input[1];
>>         FAUSTFLOAT* output0 = output[0];
>>         for (int i=0; i>                 output0[i] = (FAUSTFLOAT)((double)input0[i] + (double)input1[i]);
>>         }
>> ...
>>
>> Thank !
>>
>> PS : perhaps it will be fine to have in csound manual about dll opcode
>>      a mail of Victor Lazzarini :
>>
>> On OSX (floats):
>>
>>    gcc -O3 -dynamiclib -o plugin.dylib  plugin.c
>>        -I/Library/Frameworks/CsoundLib.framework/Headers
>>
>> On OSX (doubles):
>>
>>    gcc -O3 -dynamiclib -o plugin.dylib  plugin.c  -DUSE_DOUBLE
>>        -I/Library/Frameworks/CsoundLib64.framework/Headers
>>
>> On Linux
>>
>>    gcc -O3 -shared -o plugin.so  plugin.c   -I
>>
>> On Windows
>>
>>    gcc -O3 -shared -o plugin.dll  plugin.c   -I
>>
>> [you'll also need sndfile.h, the libsndfile header in a standard location]
>>
>> Francois Roux
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>
>
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>