Csound Csound-dev Csound-tekno Search About

[Cs-dev] Csound5 is segfaulting

Date2012-05-06 18:09
FromFelipe Sateler
Subject[Cs-dev] Csound5 is segfaulting
Current master on csound5 is segfaulting, null pointer reference in
argtyp2. Csound6 is working, though.

What is the status on csound5? Are we supposed to push fixes to csound5 too?



-- 

Saludos,
Felipe Sateler

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-05-06 18:12
FromSteven Yi
SubjectRe: [Cs-dev] Csound5 is segfaulting
This is likely the same bug I saw with the fix John put in for the arg
checking. I had to revert to get a working csound5 here, but I haven't
had a chance to investigate.

On Sun, May 6, 2012 at 6:09 PM, Felipe Sateler  wrote:
> Current master on csound5 is segfaulting, null pointer reference in
> argtyp2. Csound6 is working, though.
>
> What is the status on csound5? Are we supposed to push fixes to csound5 too?
>
>
>
> --
>
> Saludos,
> Felipe Sateler
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-05-06 18:25
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] Csound5 is segfaulting
can you supply an example of it failing?  So far it appears to work for
me, but mainly I am using cs6.

Sorry but I have atually no memor of what (a) i changed or (b) why,
The effect of having a week off in isolated country

==John ff

> This is likely the same bug I saw with the fix John put in for the arg
> checking. I had to revert to get a working csound5 here, but I haven't
> had a chance to investigate.
>
> On Sun, May 6, 2012 at 6:09 PM, Felipe Sateler  wrote:
>> Current master on csound5 is segfaulting, null pointer reference in
>> argtyp2. Csound6 is working, though.
>>
>> What is the status on csound5? Are we supposed to push fixes to csound5
>> too?
>>
>>
>>
>> --
>>
>> Saludos,
>> Felipe Sateler
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond.
>> Discussions
>> will include endpoint security, mobile security and the latest in
>> malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-05-07 01:41
FromSteven Yi
SubjectRe: [Cs-dev] Csound5 is segfaulting
Hi John,

The change was this commit:

http://csound.git.sourceforge.net/git/gitweb.cgi?p=csound/csound5.git;a=commitdiff;h=eca7db266d0df5d9d14a449ac3bbe5dd4c1301ca

I think it has to do with calling set_xincod being moved to before the
outargs code.

I don't have a simplified example here, perhaps Felipe has one he can send.

steven

On Sun, May 6, 2012 at 1:25 PM,   wrote:
> can you supply an example of it failing?  So far it appears to work for
> me, but mainly I am using cs6.
>
> Sorry but I have atually no memor of what (a) i changed or (b) why,
> The effect of having a week off in isolated country
>
> ==John ff
>
>> This is likely the same bug I saw with the fix John put in for the arg
>> checking. I had to revert to get a working csound5 here, but I haven't
>> had a chance to investigate.
>>
>> On Sun, May 6, 2012 at 6:09 PM, Felipe Sateler  wrote:
>>> Current master on csound5 is segfaulting, null pointer reference in
>>> argtyp2. Csound6 is working, though.
>>>
>>> What is the status on csound5? Are we supposed to push fixes to csound5
>>> too?
>>>
>>>
>>>
>>> --
>>>
>>> Saludos,
>>> Felipe Sateler
>>>
>>> ------------------------------------------------------------------------------
>>> Live Security Virtual Conference
>>> Exclusive live event will cover all the ways today's security and
>>> threat landscape has changed and how IT managers can respond.
>>> Discussions
>>> will include endpoint security, mobile security and the latest in
>>> malware
>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-05-07 03:51
FromFelipe Sateler
SubjectRe: [Cs-dev] Csound5 is segfaulting
Nope, I'm testing with trapped.csd or xanadu.csd.

However, it seems a large portion of the tests are failing with error:
error: inconsistent sr, kr, ksmps:

% ./test.py  --csound-executable=../build/csound
--opcodedir64=../build  2>&1| grep -i inconsistent | wc -l
29


On Sun, May 6, 2012 at 8:41 PM, Steven Yi  wrote:
> Hi John,
>
> The change was this commit:
>
> http://csound.git.sourceforge.net/git/gitweb.cgi?p=csound/csound5.git;a=commitdiff;h=eca7db266d0df5d9d14a449ac3bbe5dd4c1301ca
>
> I think it has to do with calling set_xincod being moved to before the
> outargs code.
>
> I don't have a simplified example here, perhaps Felipe has one he can send.
>
> steven
>
> On Sun, May 6, 2012 at 1:25 PM,   wrote:
>> can you supply an example of it failing?  So far it appears to work for
>> me, but mainly I am using cs6.
>>
>> Sorry but I have atually no memor of what (a) i changed or (b) why,
>> The effect of having a week off in isolated country
>>
>> ==John ff
>>
>>> This is likely the same bug I saw with the fix John put in for the arg
>>> checking. I had to revert to get a working csound5 here, but I haven't
>>> had a chance to investigate.
>>>
>>> On Sun, May 6, 2012 at 6:09 PM, Felipe Sateler  wrote:
>>>> Current master on csound5 is segfaulting, null pointer reference in
>>>> argtyp2. Csound6 is working, though.
>>>>
>>>> What is the status on csound5? Are we supposed to push fixes to csound5
>>>> too?
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Saludos,
>>>> Felipe Sateler
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Live Security Virtual Conference
>>>> Exclusive live event will cover all the ways today's security and
>>>> threat landscape has changed and how IT managers can respond.
>>>> Discussions
>>>> will include endpoint security, mobile security and the latest in
>>>> malware
>>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> ------------------------------------------------------------------------------
>>> Live Security Virtual Conference
>>> Exclusive live event will cover all the ways today's security and
>>> threat landscape has changed and how IT managers can respond. Discussions
>>> will include endpoint security, mobile security and the latest in malware
>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel



-- 

Saludos,
Felipe Sateler

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/

Date2012-05-07 08:55
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] Csound5 is segfaulting
I was attempting to help Menno yesterday and he was getting kr set to 1
when it should be 1500.  I cannot reproduce here.  He was using ubuntu I
think with gcc 4.6.3, while I have openSuSE and gcc 4.5.1

I have looked at that code and it has ot changed for ages.  I am
suspecting miscomplation at present as that seems only option.  code is in
Engine/csound_orc_compile.c

I will look again but being unable to repeat it is unlikely that i will
find anything.

regarding the segfault I get it in trapped but not in my simple examples. 
Happens in the complex code to determine types with a null pointer  No
idea (yet) what is happening or supposed to happen

==John ff

> Nope, I'm testing with trapped.csd or xanadu.csd.
>
> However, it seems a large portion of the tests are failing with error:
> error: inconsistent sr, kr, ksmps:
>
> % ./test.py  --csound-executable=../build/csound
> --opcodedir64=../build  2>&1| grep -i inconsistent | wc -l
> 29
>
>
> On Sun, May 6, 2012 at 8:41 PM, Steven Yi  wrote:
>> Hi John,
>>
>> The change was this commit:
>>
>> http://csound.git.sourceforge.net/git/gitweb.cgi?p=csound/csound5.git;a=commitdiff;h=eca7db266d0df5d9d14a449ac3bbe5dd4c1301ca
>>
>> I think it has to do with calling set_xincod being moved to before the
>> outargs code.
>>
>> I don't have a simplified example here, perhaps Felipe has one he can
>> send.
>>
>> steven
>>
>> On Sun, May 6, 2012 at 1:25 PM,   wrote:
>>> can you supply an example of it failing?  So far it appears to work
>>> for
>>> me, but mainly I am using cs6.
>>>
>>> Sorry but I have atually no memor of what (a) i changed or (b) why,
>>> The effect of having a week off in isolated country
>>>
>>> ==John ff
>>>
>>>> This is likely the same bug I saw with the fix John put in for the arg
>>>> checking. I had to revert to get a working csound5 here, but I haven't
>>>> had a chance to investigate.
>>>>
>>>> On Sun, May 6, 2012 at 6:09 PM, Felipe Sateler 
>>>> wrote:
>>>>> Current master on csound5 is segfaulting, null pointer reference in
>>>>> argtyp2. Csound6 is working, though.
>>>>>
>>>>> What is the status on csound5? Are we supposed to push fixes to
>>>>> csound5
>>>>> too?
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> Saludos,
>>>>> Felipe Sateler
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Live Security Virtual Conference
>>>>> Exclusive live event will cover all the ways today's security and
>>>>> threat landscape has changed and how IT managers can respond.
>>>>> Discussions
>>>>> will include endpoint security, mobile security and the latest in
>>>>> malware
>>>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Live Security Virtual Conference
>>>> Exclusive live event will cover all the ways today's security and
>>>> threat landscape has changed and how IT managers can respond.
>>>> Discussions
>>>> will include endpoint security, mobile security and the latest in
>>>> malware
>>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Live Security Virtual Conference
>>> Exclusive live event will cover all the ways today's security and
>>> threat landscape has changed and how IT managers can respond.
>>> Discussions
>>> will include endpoint security, mobile security and the latest in
>>> malware
>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond.
>> Discussions
>> will include endpoint security, mobile security and the latest in
>> malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> --
>
> Saludos,
> Felipe Sateler
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-05-07 08:56
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] Csound5 is segfaulting
PS  It worked in the old parser

> Nope, I'm testing with trapped.csd or xanadu.csd.
>
> However, it seems a large portion of the tests are failing with error:
> error: inconsistent sr, kr, ksmps:
>
> % ./test.py  --csound-executable=../build/csound
> --opcodedir64=../build  2>&1| grep -i inconsistent | wc -l
> 29
>




------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-05-07 10:27
FromTito Latini
SubjectRe: [Cs-dev] Csound5 is segfaulting
AttachmentsNone  

Date2012-05-07 10:51
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] Csound5 is segfaulting
The old code is certainly wrong.  It marks variables on LHS before
checking the RHS for defined.  I would much rather work out what is wrong
with the null pointer.

Also there is the inconsistency on Xubuntu not found on OpenSuse.  May be
in Debin as well


> Unfortunately I cannot be in sync with the changes/bugs/etc.
> Steven is right, before "Fixing error related to undefined values"
> (eca7db266d0df5d9):
>
>   SUCCESS 8723
>   FAIL    0
>   TOTAL   8723
>
> after
>
>   SUCCESS 6532
>   FAIL    2191
>   TOTAL   8723
>
> It is surely to revert. Then I can help to find a possible solution for
> `atobe = atobe' when `atobe' is not to be.
>
> tito
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-05-07 13:02
FromTito Latini
SubjectRe: [Cs-dev] Csound5 is segfaulting
AttachmentsNone  

Date2012-05-07 13:27
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] Csound5 is segfaulting
This is due to the code for resolving sr/kr/ksmps being don twice, once in
new parser and then again in old parser.  I think I have a fix --
committed


> Nope, I'm testing with trapped.csd or xanadu.csd.
>
> However, it seems a large portion of the tests are failing with error:
> error: inconsistent sr, kr, ksmps:
>
> % ./test.py  --csound-executable=../build/csound
> --opcodedir64=../build  2>&1| grep -i inconsistent | wc -l
> 29



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-05-07 13:54
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] Csound5 is segfaulting
I fixed it


>> Also there is the inconsistency on Xubuntu not found on OpenSuse
>
> I see the inconsistency between csound5 and csound6. The message
> "inconsistent sr, kr, ksmps" is from `oload' function (otran.c in
> csound5, csound_orc_compile.c in csound6), so I get the error msg
> only with csound5. It seems simple to fix.
>
> I will continue the debug.
>
> tito
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-05-07 14:01
From"Dr. Richard Boulanger"
Subject[Csnd] CsoundQt - Virtual Keyboard Crashing "always"
AttachmentsNone  None  
Dear Developers,
(and Steven Yi after Friday maybe?)

On Mac.  OSX 10.6 or 10.7 using the latest alpha or the previous "stable" versions of CsoundQt - doubles or floats.

Almost always....  when you use the "virtual" MIDI keyboard 
(with run FLTK in terminal checked or not) 

The controller works and then crashes the program and requires one to "kill" the program and have to re-launch it.

I love having the virtual keyboard as a part of CsoundQt, but I would love it to be made more stable.
Should it be re-written as a "widget"?

-dB
___________________________________

Dr. Richard Boulanger, Ph.D.

Professor of Electronic Production and Design
Professional Writing and Music Technology Division
Berklee College of Music
1140 Boylston Street
Boston, MA 02215-3693

617-747-2485 (office)
774-488-9166 (cell)


____________________________________



____________________________________

____________________________________

Date2012-05-07 15:15
FromTito Latini
SubjectRe: [Cs-dev] Csound5 is segfaulting
AttachmentsNone  

Date2012-05-07 15:49
FromSteven Yi
Subject[Csnd] Re: CsoundQt - Virtual Keyboard Crashing "always"
I can confirm getting the same thing as Dr. B. I did a quick test with
CsoundQT (float version) with the Pipe Demo and virtual keyboard.
What I see is the keyboard comes up, I hit the keyboard keys and see
rtevents in the console, then when I go to CsoundQT's interface to
modify a slider it hangs.

I think the ideal solution would be as Dr. B suggests, which is to
have a virtual keyboard native to CsoundQT (perhaps in a panel).  The
code for the FLTK one is in C++ if I remember correctly; if so, it
could make it a good candidate to use as the basis for a QT version.
(I think Rory has based his VK in Cabbage on that code, and I based my
blue virtual keyboard on it as well, and the iOS example virtual
keyboard mostly on it too).  I don't know if anyone has any time to
implement anything like this though in the short term; perhaps a
feature request item that'd be nice to have.

I don't know what's changed in Csound though to cause a bug like this,
as the version of CsoundQT I'm using hasn't changed in a long time.
On the other hand, I don't have any prior comparison with earlier
csound versions as I don't use the virtual keyboard with CsoundQT all
that much.

Hopefully someone else can lend a hand with diagnosing this!
steven

On Mon, May 7, 2012 at 9:01 AM, Dr. Richard Boulanger
 wrote:
> Dear Developers,
> (and Steven Yi after Friday maybe?)
>
> On Mac.  OSX 10.6 or 10.7 using the latest alpha or the previous "stable"
> versions of CsoundQt - doubles or floats.
>
> Almost always....  when you use the "virtual" MIDI keyboard
> (with run FLTK in terminal checked or not)
>
> The controller works and then crashes the program and requires one to "kill"
> the program and have to re-launch it.
>
> I love having the virtual keyboard as a part of CsoundQt, but I would love
> it to be made more stable.
> Should it be re-written as a "widget"?
>
> -dB
> ___________________________________
>
> Dr. Richard Boulanger, Ph.D.
>
> Professor of Electronic Production and Design
> Professional Writing and Music Technology Division
> Berklee College of Music
> 1140 Boylston Street
> Boston, MA 02215-3693
>
> 617-747-2485 (office)
> 774-488-9166 (cell)
>
> rboulanger@berklee.edu
>
> http://csounds.com/boulanger
> ____________________________________
>
> http://boulangerlabs.com
>
> http://csoundforlive.com
>
> http://csounds.com
> ____________________________________
>
> http://csounds.com/mathews
> ____________________________________

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Date2012-05-07 15:53
FromTito Latini
SubjectRe: [Cs-dev] Csound5 is segfaulting
AttachmentsNone  

Date2012-05-07 15:55
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] Csound5 is segfaulting
Does that acceopt
instr 1
k1 = k1+1
endin
??

>> The old code is certainly wrong.  It marks variables on LHS before
>> checking the RHS for defined.  I would much rather work out what is
>> wrong
>> with the null pointer.
>
> I get a fix (SUCCESS 8723, FAIL 0) with this patch
>
> diff -ur csound5~/Engine/csound_orc_compile.c
> csound5/Engine/csound_orc_compile.c
> --- csound5~/Engine/csound_orc_compile.c	2012-05-07 16:11:59.000000000
> +0200
> +++ csound5/Engine/csound_orc_compile.c	2012-05-07 16:12:34.000000000
> +0200
> @@ -489,9 +489,9 @@
>            }
>            /* VL 14/12/11 : calling lgbuild here seems to be problematic
> for
>               undef arg checks */
> -          /* else { */
> -          /*   lgbuild(csound, arg, 1); */
> -          /* } */
> +          else {
> +            lgbuild(csound, arg, 1);
> +          }
>
>
>          }
> @@ -510,7 +510,6 @@
>          //        csound->Message(csound, "Opcode InTypes: %s\n",
> ep->intypes);
>          //        csound->Message(csound, "Opcode OutTypes: %s\n",
> ep->outypes);
>
> -        set_xincod(csound, tp, ep, root->line);
>          /* OUTARGS */
>          for (outargs = root->left; outargs != NULL; outargs =
> outargs->next) {
>
> @@ -533,6 +532,7 @@
>            }
>
>          }
> +        set_xincod(csound, tp, ep, root->line);
>          set_xoutcod(csound, tp, ep, root->line);
>
>          if (root->right != NULL) {
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-05-07 16:04
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] Csound5 is segfaulting
Yes it looked as if your patch just restored old code


> unfortunately yes. 2 round.
>
> On Mon, May 07, 2012 at 03:55:57PM +0100, jpff@cs.bath.ac.uk wrote:
>> Does that acceopt
>> instr 1
>> k1 = k1+1
>> endin
>> ??
>>
>> >> The old code is certainly wrong.  It marks variables on LHS before
>> >> checking the RHS for defined.  I would much rather work out what is
>> >> wrong
>> >> with the null pointer.
>> >
>> > I get a fix (SUCCESS 8723, FAIL 0) with this patch
>> >
>> > diff -ur csound5~/Engine/csound_orc_compile.c
>> > csound5/Engine/csound_orc_compile.c
>> > --- csound5~/Engine/csound_orc_compile.c	2012-05-07 16:11:59.000000000
>> > +0200
>> > +++ csound5/Engine/csound_orc_compile.c	2012-05-07 16:12:34.000000000
>> > +0200
>> > @@ -489,9 +489,9 @@
>> >            }
>> >            /* VL 14/12/11 : calling lgbuild here seems to be
>> problematic
>> > for
>> >               undef arg checks */
>> > -          /* else { */
>> > -          /*   lgbuild(csound, arg, 1); */
>> > -          /* } */
>> > +          else {
>> > +            lgbuild(csound, arg, 1);
>> > +          }
>> >
>> >
>> >          }
>> > @@ -510,7 +510,6 @@
>> >          //        csound->Message(csound, "Opcode InTypes: %s\n",
>> > ep->intypes);
>> >          //        csound->Message(csound, "Opcode OutTypes: %s\n",
>> > ep->outypes);
>> >
>> > -        set_xincod(csound, tp, ep, root->line);
>> >          /* OUTARGS */
>> >          for (outargs = root->left; outargs != NULL; outargs =
>> > outargs->next) {
>> >
>> > @@ -533,6 +532,7 @@
>> >            }
>> >
>> >          }
>> > +        set_xincod(csound, tp, ep, root->line);
>> >          set_xoutcod(csound, tp, ep, root->line);
>> >
>> >          if (root->right != NULL) {
>> >
>> > ------------------------------------------------------------------------------
>> > Live Security Virtual Conference
>> > Exclusive live event will cover all the ways today's security and
>> > threat landscape has changed and how IT managers can respond.
>> Discussions
>> > will include endpoint security, mobile security and the latest in
>> malware
>> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> > _______________________________________________
>> > Csound-devel mailing list
>> > Csound-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>> >
>> >
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond.
>> Discussions
>> will include endpoint security, mobile security and the latest in
>> malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-05-07 16:21
FromTito Latini
SubjectRe: [Cs-dev] Csound5 is segfaulting
AttachmentsNone  

Date2012-05-07 16:37
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] Csound5 is segfaulting
Two comments:

1:  cannot the second loop happen with the first?  Just wondering

2:  commit it as it seems OK and better than current state

==John


> I have a possible solution (but it adds a for-loop) that avoids
> `lgbuild' of the output arg before `set_xincod'. I get only
> 1 fail because the csd file contains
>
>   gamsigr = aw4 + gamsigr
>
> where gamsigr is undefined. Here is the patch
>
> diff -ur csound5~/Engine/csound_orc_compile.c
> csound5/Engine/csound_orc_compile.c
> --- csound5~/Engine/csound_orc_compile.c	2012-05-07 17:09:51.000000000
> +0200
> +++ csound5/Engine/csound_orc_compile.c	2012-05-07 17:15:43.000000000
> +0200
> @@ -489,9 +489,9 @@
>            }
>            /* VL 14/12/11 : calling lgbuild here seems to be problematic
> for
>               undef arg checks */
> -          /* else { */
> -          /*   lgbuild(csound, arg, 1); */
> -          /* } */
> +          else {
> +            lgbuild(csound, arg, 1);
> +          }
>
>
>          }
> @@ -510,15 +510,16 @@
>          //        csound->Message(csound, "Opcode InTypes: %s\n",
> ep->intypes);
>          //        csound->Message(csound, "Opcode OutTypes: %s\n",
> ep->outypes);
>
> +        for (outargs = root->left; outargs != NULL; outargs =
> outargs->next) {
> +          arg = outargs->value->lexeme;
> +          tp->outlist->arg[argcount++] = strsav_string(csound, arg);
> +        }
>          set_xincod(csound, tp, ep, root->line);
>          /* OUTARGS */
>          for (outargs = root->left; outargs != NULL; outargs =
> outargs->next) {
>
>            arg = outargs->value->lexeme;
>
> -          tp->outlist->arg[argcount++] =
> -            strsav_string(csound, arg);
> -
>            if ((n = pnum(arg)) >= 0) {
>              if (n > ip->pmax)  ip->pmax = n;
>            }
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-05-07 16:44
FromTito Latini
SubjectRe: [Cs-dev] Csound5 is segfaulting
AttachmentsNone  

Date2012-05-07 16:50
FromTito Latini
SubjectRe: [Cs-dev] Csound5 is segfaulting
AttachmentsNone  

Date2012-05-07 17:03
FromAndres Cabrera
Subject[Csnd] Re: CsoundQt - Virtual Keyboard Crashing "always"
Hi,

Yes, I've seen this problem too. I was talking to Iain yesterday about
it, and I will add a virtual keyboard widget. It's a good idea to
start from the FLTK virtual keyboard, it might save some time.

Cheers,
Andrés

On Mon, May 7, 2012 at 2:01 PM, Dr. Richard Boulanger
 wrote:
> Dear Developers,
> (and Steven Yi after Friday maybe?)
>
> On Mac.  OSX 10.6 or 10.7 using the latest alpha or the previous "stable"
> versions of CsoundQt - doubles or floats.
>
> Almost always....  when you use the "virtual" MIDI keyboard
> (with run FLTK in terminal checked or not)
>
> The controller works and then crashes the program and requires one to "kill"
> the program and have to re-launch it.
>
> I love having the virtual keyboard as a part of CsoundQt, but I would love
> it to be made more stable.
> Should it be re-written as a "widget"?
>
> -dB
> ___________________________________
>
> Dr. Richard Boulanger, Ph.D.
>
> Professor of Electronic Production and Design
> Professional Writing and Music Technology Division
> Berklee College of Music
> 1140 Boylston Street
> Boston, MA 02215-3693
>
> 617-747-2485 (office)
> 774-488-9166 (cell)
>
> rboulanger@berklee.edu
>
> http://csounds.com/boulanger
> ____________________________________
>
> http://boulangerlabs.com
>
> http://csoundforlive.com
>
> http://csounds.com
> ____________________________________
>
> http://csounds.com/mathews
> ____________________________________

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Date2012-05-07 17:26
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] Csound5 is segfaulting
They should go now I have it fixed
>

 John, it is only a note; I see `printf' for debug
> in `otran.c' and `csound_orc_compile.c'. I don't know
> if you use it yet.
>
> tito
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-05-07 17:26
FromTito Latini
SubjectRe: [Cs-dev] Csound5 is segfaulting
AttachmentsNone  

Date2012-05-07 17:57
FromTito Latini
SubjectRe: [Cs-dev] Csound5 is segfaulting
AttachmentsNone  None  
Perhaps it is not my error because it works with cs6 and not with cs5.

2012/5/7 Tito Latini <tito.01beta@gmail.com>
My fix is not good with feedback. No errors, but it fails, for example
with reverb.csd. round 3.



Date2012-05-07 18:15
FromTito Latini
SubjectRe: [Cs-dev] Csound5 is segfaulting
AttachmentsNone  

Date2012-05-07 18:31
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] Csound5 is segfaulting
reverb.csd from manual works for me in both 5 and 6


> Perhaps it is not my error because it works with cs6 and not with cs5.
>
> 2012/5/7 Tito Latini 
>
>> My fix is not good with feedback. No errors, but it fails, for example
>> with reverb.csd. round 3.
>>
>>



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-05-07 19:43
FromTito Latini
SubjectRe: [Cs-dev] Csound5 is segfaulting
AttachmentsNone  

Date2014-05-31 22:21
Frombledi238
Subject[Csnd] Re: CsoundQt - Virtual Keyboard Crashing "always"
hello didi this bug of the virtual midi keyboard resolved ? I'm on mac osx
10.8.5 and have csound qt version 0.8.2  and when i open the keyboard my
system freeze 



--
View this message in context: http://csound.1045644.n5.nabble.com/CsoundQt-Virtual-Keyboard-Crashing-always-tp5690991p5735624.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2014-05-31 22:26
FromVictor Lazzarini
SubjectRe: [Csnd] CsoundQt - Virtual Keyboard Crashing "always"
No, you can’t use any FLTK widgets with CsoundQT. The two graphic systems are not compatible.
To use the virtual keyboard, you need to run Csound on the terminal (you can use run in term from
CsoundQT if you wish). There is no solution for this problem and it is not a Csound bug.

========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie




On 31 May 2014, at 22:21, bledi238  wrote:

> hello didi this bug of the virtual midi keyboard resolved ? I'm on mac osx
> 10.8.5 and have csound qt version 0.8.2  and when i open the keyboard my
> system freeze 
> 
> 
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/CsoundQt-Virtual-Keyboard-Crashing-always-tp5690991p5735624.html
> Sent from the Csound - General mailing list archive at Nabble.com.
> 
> 
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 
> 
> 



Date2014-05-31 23:28
Frombledi238
Subject[Csnd] Re: CsoundQt - Virtual Keyboard Crashing "always"
ok through the terminal it works perfectly. thanks



--
View this message in context: http://csound.1045644.n5.nabble.com/CsoundQt-Virtual-Keyboard-Crashing-always-tp5690991p5735626.html
Sent from the Csound - General mailing list archive at Nabble.com.