Csound Csound-dev Csound-tekno Search About

illegal opcode/internal error

Date2016-05-15 09:07
From"Joe ."
Subjectillegal opcode/internal error
Hi. Noob lord here again. I wrote this, simple buzz with an envelope. It plays fine, but prints this in the console:

sread: illegal opcode p

section 1: at position 0

WARNING: Internal error in print_input_backtrace()

remainder of line flushed

sread: illegal opcode I

section 1: at position 0

WARNING: Internal error in print_input_backtrace()

remainder of line flushed


what does this mean? Thanks


here is my score:

<CsoundSynthesizer>

<CsOptions>

</CsOptions>

<CsInstruments>

sr = 44100

ksmps = 10

nchnls = 2

0dbfs =1

giFt ftgen 0, 0, 8192, 10, 1


instr 1

iAmpConverter = ampdb (p4)

if p5 < 20 then

iCPSconverter cps2pch p5, 12

else iCPSconverter = p5

endif


aEnvelope linseg \

0, p7,

0.7*iAmpConverter, p3*p8,

iAmpConverter*p9, p3-p7-(p3*p8)-(p10*p3),

iAmpConverter*p9, p10*p3,

0


aBuzz buzz iAmpConverter, iCPSconverter, p6, giFt, -1

outs aBuzz*aEnvelope, aBuzz*aEnvelope

endin


</CsInstruments>

<CsScore> 

i1 0 2 0 5.10 18 0.03 0.4 0.6 0.01

e

</CsScore>

</CsoundSynthesizer>


/* Joe */
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-05-15 12:51
FromDavid Bowen
SubjectRe: illegal opcode/internal error
My first guess is that you've got a space after the \ which is causing the continuation to be interpreted as a new statement.

Dave Bowen

On Sun, May 15, 2016 at 3:07 AM, Joe . <not007ful@gmail.com> wrote:
Hi. Noob lord here again. I wrote this, simple buzz with an envelope. It plays fine, but prints this in the console:

sread: illegal opcode p

section 1: at position 0

WARNING: Internal error in print_input_backtrace()

remainder of line flushed

sread: illegal opcode I

section 1: at position 0

WARNING: Internal error in print_input_backtrace()

remainder of line flushed


what does this mean? Thanks


here is my score:

<CsoundSynthesizer>

<CsOptions>

</CsOptions>

<CsInstruments>

sr = 44100

ksmps = 10

nchnls = 2

0dbfs =1

giFt ftgen 0, 0, 8192, 10, 1


instr 1

iAmpConverter = ampdb (p4)

if p5 < 20 then

iCPSconverter cps2pch p5, 12

else iCPSconverter = p5

endif


aEnvelope linseg \

0, p7,

0.7*iAmpConverter, p3*p8,

iAmpConverter*p9, p3-p7-(p3*p8)-(p10*p3),

iAmpConverter*p9, p10*p3,

0


aBuzz buzz iAmpConverter, iCPSconverter, p6, giFt, -1

outs aBuzz*aEnvelope, aBuzz*aEnvelope

endin


</CsInstruments>

<CsScore> 

i1 0 2 0 5.10 18 0.03 0.4 0.6 0.01

e

</CsScore>

</CsoundSynthesizer>


/* Joe */
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-05-15 13:04
From"Joe ."
SubjectRe: illegal opcode/internal error
hmm. I'm not quite sure what it is because I just copied what I posted here, and it played fine. Space after \ is ok though, works with or without it. Thanks though. 

/* Joe */

On Sun, May 15, 2016 at 7:51 PM, David Bowen <dmb0317@gmail.com> wrote:
My first guess is that you've got a space after the \ which is causing the continuation to be interpreted as a new statement.

Dave Bowen

On Sun, May 15, 2016 at 3:07 AM, Joe . <not007ful@gmail.com> wrote:
Hi. Noob lord here again. I wrote this, simple buzz with an envelope. It plays fine, but prints this in the console:

sread: illegal opcode p

section 1: at position 0

WARNING: Internal error in print_input_backtrace()

remainder of line flushed

sread: illegal opcode I

section 1: at position 0

WARNING: Internal error in print_input_backtrace()

remainder of line flushed


what does this mean? Thanks


here is my score:

<CsoundSynthesizer>

<CsOptions>

</CsOptions>

<CsInstruments>

sr = 44100

ksmps = 10

nchnls = 2

0dbfs =1

giFt ftgen 0, 0, 8192, 10, 1


instr 1

iAmpConverter = ampdb (p4)

if p5 < 20 then

iCPSconverter cps2pch p5, 12

else iCPSconverter = p5

endif


aEnvelope linseg \

0, p7,

0.7*iAmpConverter, p3*p8,

iAmpConverter*p9, p3-p7-(p3*p8)-(p10*p3),

iAmpConverter*p9, p10*p3,

0


aBuzz buzz iAmpConverter, iCPSconverter, p6, giFt, -1

outs aBuzz*aEnvelope, aBuzz*aEnvelope

endin


</CsInstruments>

<CsScore> 

i1 0 2 0 5.10 18 0.03 0.4 0.6 0.01

e

</CsScore>

</CsoundSynthesizer>


/* Joe */
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-05-15 13:34
Fromjpff
SubjectRe: illegal opcode/internal error
Platform?  I notice tht on my mailer I am seeing a blank line between 
every text line which suggests  line-ending problem.

The error comes from reading the score which happens after reading/parsing 
the ochestra

On Sun, 15 May 2016, Joe . wrote:

> Hi. Noob lord here again. I wrote this, simple buzz with an envelope. It
> plays fine, but prints this in the console:
> 
> sread: illegal opcode p
> 
> section 1: at position 0
> 
> WARNING: Internal error in print_input_backtrace()
> 
> remainder of line flushed
> 
> sread: illegal opcode I
> 
> section 1: at position 0
> 
> WARNING: Internal error in print_input_backtrace()
> 
> remainder of line flushed
> 
> 
> what does this mean? Thanks
> 
> 
> here is my score:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> sr = 44100
> 
> ksmps = 10
> 
> nchnls = 2
> 
> 0dbfs =1
> 
> giFt ftgen 0, 0, 8192, 10, 1
> 
> 
> instr 1
> 
> iAmpConverter = ampdb (p4)
> 
> if p5 < 20 then
> 
> iCPSconverter cps2pch p5, 12
> 
> else iCPSconverter = p5
> 
> endif
> 
> 
> aEnvelope linseg \
> 
> 0, p7,
> 
> 0.7*iAmpConverter, p3*p8,
> 
> iAmpConverter*p9, p3-p7-(p3*p8)-(p10*p3),
> 
> iAmpConverter*p9, p10*p3,
> 
> 0
> 
> 
> aBuzz buzz iAmpConverter, iCPSconverter, p6, giFt, -1
> 
> outs aBuzz*aEnvelope, aBuzz*aEnvelope
> 
> endin
> 
> 
> 
> 
>  
> 
> i1 0 2 0 5.10 18 0.03 0.4 0.6 0.01
> 
> e
> 
> 
> 
> 
> 
> 
> /* Joe */
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here
>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-05-15 13:41
Fromjpff
SubjectRe: illegal opcode/internal error
If I remve the doublt newlines it runs correctly.  How did you create the 
file? Did you by mistke use MSWord or the like?  I suspect t=you are not 
shwng s the real input -- perhps ttach it encded?
==John f

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-05-15 15:17
From"Joe ."
SubjectRe: illegal opcode/internal error
I'm on Qt, and on my mail I don't see a blank line between every text line, its one after another (except for a few cases where I put the blank lines there).

I think I know where the problem is, which I find very strange, but if you copy what I posted here you shouldn't find the warnings in the console. Here is what did it, which I removed from what I posted above because I didn't think it would be pertinent, and which confuses me:


</CsInstruments>
<CsScore> /*
*/

if I put this in, as it was in my original, warning-inducing code, it will read, while if I move the comment to the next line it won't. 
 sread: illegal opcode *

section 1: at position 0

WARNING: Internal error in print_input_backtrace()

remainder of line flushed

... done


It plays fine, but is this supposed to happen? 


Joe


/* Joe */

On Sun, May 15, 2016 at 8:41 PM, jpff <jpff@codemist.co.uk> wrote:
If I remve the doublt newlines it runs correctly.  How did you create the file? Did you by mistke use MSWord or the like?  I suspect t=you are not shwng s the real input -- perhps ttach it encded?
==John f


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-05-15 15:28
Fromjpff
SubjectRe: illegal opcode/internal error

On Sun, 15 May 2016, Joe . wrote:

> I'm on Qt, and on my mail I don't see a blank line between every text line,
> its one after another (except for a few cases where I put the blank lines
> there).

I susoet Windows line enings

> I think I know where the problem is, which I find very strange, but if you
> copy what I posted here you shouldn't find the warnings in the console. Here
> is what did it, which I removed from what I posted above because I didn't
> think it would be pertinent, and which confuses me:
> 
> 
> 
>  /*
> */
> 
> if I put this in, as it was in my original, warning-inducing code, it will
> read, while if I move the comment to the next line it won't. 
>  sread: illegal opcode *
> 
> section 1: at position 0
> 
> WARNING: Internal error in print_input_backtrace()
> 
> remainder of line flushed
> 
> ... done
> 
> 
> It plays fine, but is this supposed to happen? 
>


Yes tat looks corect to me.  The  tag as a line to itself so te 
/* is ignored and your score starts with an illegal * opcode

==John ff

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-05-15 15:35
From"Joe ."
SubjectRe: illegal opcode/internal error
ah. Is there a reason why tags are built this way?


/* Joe */

On Sun, May 15, 2016 at 10:28 PM, jpff <jpff@codemist.co.uk> wrote:


On Sun, 15 May 2016, Joe . wrote:

I'm on Qt, and on my mail I don't see a blank line between every text line,
its one after another (except for a few cases where I put the blank lines
there).

I susoet Windows line enings

I think I know where the problem is, which I find very strange, but if you
copy what I posted here you shouldn't find the warnings in the console. Here
is what did it, which I removed from what I posted above because I didn't
think it would be pertinent, and which confuses me:


</CsInstruments>
<CsScore> /*
*/

if I put this in, as it was in my original, warning-inducing code, it will
read, while if I move the comment to the next line it won't. 
 sread: illegal opcode *

section 1: at position 0

WARNING: Internal error in print_input_backtrace()

remainder of line flushed

... done


It plays fine, but is this supposed to happen? 



Yes tat looks corect to me.  The <CsScire> tag as a line to itself so te /* is ignored and your score starts with an illegal * opcode

==John ff


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2016-05-15 16:00
Fromjpff
SubjectRe: illegal opcode/internal error
On Sun, 15 May 2016, Joe . wrote:

> ah. Is there a reason why tags are built this way?
> 
> /* Joe */
>

Just the way I wrote it for simplicity. You are the first to complain
==John ff

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-05-15 16:05
From"Joe ."
SubjectRe: illegal opcode/internal error
nono, never complaining. Just trying to understand the whole thing better. Thanks. 

Joe

/* Joe */

On Sun, May 15, 2016 at 11:00 PM, jpff <jpff@codemist.co.uk> wrote:
On Sun, 15 May 2016, Joe . wrote:

ah. Is there a reason why tags are built this way?

/* Joe */


Just the way I wrote it for simplicity. You are the first to complain

==John ff

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here