Bugs item #3542093, was opened at 2012-07-10 10:41
Message generated for change (Comment added) made by jpff
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=564599&aid=3542093&group_id=81968
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Menno (menno0)
Assigned to: Victor Lazzarini (veplaini)
Summary: outrg issue
Initial Comment:
outrg does give the right results, but closes more than once with a memory invalid pointer error
example:
; Select audio/midi flags here according to platform
-odac ;;;realtime audio out
;-iadc ;;;uncomment -iadc if realtime audio input is needed too
; For Non-realtime ouput leave only the line below:
; -o outrg.wav -W ;;; for file output any platform
sr = 44100
ksmps = 32
nchnls = 4 ;quad
0dbfs = 1
instr 1
kcps = p4
asig1 vco2 .5, 55 ;sawtooth1
asig2 vco2 .5, 110 ;sawtooth2
asig3 vco2 .5, 220 ;sawtooth3
asig4 vco2 .5, 440 ;sawtooth4
kstart randomh 1,4.99, kcps ;choose between 1 and 4
kstart = int(kstart)
printks "number of the first channel = %d\n",1/ p4+0.1, kstart ;decide what will be the start channel for asig1
outrg kstart, asig1, asig2, asig3, asig4 ;start with 55 Hz in channel1, 110 Hz in ch.2,
;220 Hz in ch.3, 440 Hz in ch.4
endin
i 1 0 10 1
i 1 11 5 30
e
----------------------------------------------------------------------
>Comment By: John ffitch (jpff)
Date: 2012-10-18 07:38
Message:
Crashes for me (OpenSuSE 12.2; command-line only)
......
0 errors in performance
Elapsed time at end of performance: real: 0.155s, CPU: 0.060s
1024 2048 sample blks of shorts written to test.wav (WAV)
*** glibc detected *** ./csound: munmap_chunk(): invalid pointer:
0x0000000001501a20 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x78b56)[0x7f19ff5d5b56]
./csound[0x4095ff]
./csound[0x40d96f]
./csound[0x40dbf5]
./csound[0x405c27]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x7f19ff57e455]
./csound[0x405d7d]
======= Memory map: ========
00400000-00609000 r-xp 00000000 00:22 105831
etc
----------------------------------------------------------------------
Comment By: Victor Lazzarini (veplaini)
Date: 2012-10-18 07:24
Message:
I can't reproduce it with 2 channels on dac or with 4 channels to a
soundfile (OSX). Can you:
1) try this with a soundfile output instead
2) try this with 2 channels instead of 4
If these are still crashing, then it's OS-dependent as I can't reproduce
this on my OSX system.
----------------------------------------------------------------------
Comment By: Menno (menno0)
Date: 2012-10-18 07:17
Message:
I installed the latest Winxound and was able to save the error output.
CsoundQt crashes immediately so i was unable to get the output.
The output is attached.
I'm on Xubuntu 12.04 64 bit
----------------------------------------------------------------------
Comment By: Victor Lazzarini (veplaini)
Date: 2012-10-17 08:16
Message:
can't reproduce the crash in your second example either (setting nchnls=2)
----------------------------------------------------------------------
Comment By: Victor Lazzarini (veplaini)
Date: 2012-10-17 08:13
Message:
Sorry I can't reproduce the crash here. I don't have four channels, but I
am using file output. Can you check if this crashes with file output too?
----------------------------------------------------------------------
Comment By: Menno (menno0)
Date: 2012-10-07 04:13
Message:
The opcode seemed to ber repaired but it is not.
Here is an example from John Ffitch:
; Select audio/midi flags here according to platform
-odac ;;;realtime audio out
;-iadc ;;;uncomment -iadc if realtime audio input is needed too
; For Non-realtime ouput leave only the line below:
; -o outrg.wav -W ;;; for file output any platform
sr = 48000
ksmps = 32
nchnls = 4 ;quad
0dbfs = 1
instr 1
kleft init 1
asig vco2 .5, 220 ;sawtooth
idur = p3/(nchnls-1)
knext init idur
kpos init 0
krate init 1/idur
kbase init 0
ktime timeinsts
if ktime>=knext then
kleft = kleft + 1
knext = knext + idur
kpos = 0
kbase = ktime
else
kpos = (ktime-kbase)/idur
endif
;printks "speaker %d position %f\n", 0, kleft, kpos
a1,a2 pan2 asig, kpos
outrg kleft, a1, a2
kpos = kbase/idur
endin
i 1 0 10
e3
a screenshot of the crash is attached
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=564599&aid=3542093&group_id=81968
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net