Trying to load a sf2 file with asfxload returns "sfxload: no memory left"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
awesfx (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: awesfx
Trying to load a SoundFont2 file with asfxload returns "no memory left", even if the computer is plenty of RAM and the module is configured to majke 1GB available. Tested both with the package from the repository and a version compiled from unpatched sources, same behavior.
root@ptah:~# asfxload -V 100 "/storage/
sfxload: no memory left
root@ptah:~# asfxload -M
DRAM memory left = 1037524 kB
root@ptah:~# lspci | grep Creative
00:0c.0 Multimedia audio controller: Creative Labs SB Audigy (rev 03)
00:0c.2 FireWire (IEEE 1394): Creative Labs SB Audigy FireWire Port
root@ptah:~# cat /etc/modprobe.
alias snd-card-0 snd-emu10k1
alias snd-card-1 snd-via82xx
alias snd-card-2 snd-bt87x
alias snd-card-3 snd-usb-audio
# autoloader aliases
install sound-slot-0 /sbin/modprobe snd-card-0
install sound-slot-1 /sbin/modprobe snd-card-1
install sound-slot-2 /sbin/modprobe snd-card-2
install sound-slot-3 /sbin/modprobe snd-card-3
install sound-slot-4 /sbin/modprobe snd-card-4
install sound-slot-5 /sbin/modprobe snd-card-5
install sound-slot-6 /sbin/modprobe snd-card-6
install sound-slot-7 /sbin/modprobe snd-card-7
# Cause optional modules to be loaded above generic modules
install snd /sbin/modprobe --ignore-install snd && { /sbin/modprobe --quiet snd-ioctl32 ; : ; }
install snd-pcm /sbin/modprobe --ignore-install snd-pcm && { /sbin/modprobe --quiet snd-pcm-oss ; : ; }
install snd-mixer /sbin/modprobe --ignore-install snd-mixer && { /sbin/modprobe --quiet snd-mixer-oss ; : ; }
install snd-seq /sbin/modprobe --ignore-install snd-seq && { /sbin/modprobe --quiet snd-seq-midi ; /sbin/modprobe --quiet snd-seq-oss ; : ; }
install snd-rawmidi /sbin/modprobe --ignore-install snd-rawmidi && { /sbin/modprobe --quiet snd-seq-midi ; : ; }
# Cause optional modules to be loaded above sound card driver modules
install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 max_buffer_
install snd-via82xx /sbin/modprobe --ignore-install snd-via82xx $CMDLINE_OPTS && { /sbin/modprobe -Qb snd-seq ; }
# Load saa7134-alsa instead of saa7134 (which gets dragged in by it anyway)
install saa7134 /sbin/modprobe --ignore-install saa7134 $CMDLINE_OPTS && { /sbin/modprobe -Qb saa7134-alsa ; : ; }
# Load snd-seq for devices that don't have hardware midi;
# Ubuntu #26283, #43682, #56005; works around Ubuntu #34831 for
# non-Creative Labs PCI hardware
install snd /sbin/modprobe --ignore-install snd && { /sbin/modprobe -Qb snd-seq ; }
# Prevent abnormal drivers from grabbing index 0
options snd-emu10k1 index=0
options snd-via82xx index=1
options snd-bt87x index=2
options snd-usb-audio index=3
# options snd-bt87x index=-2
options cx88-alsa index=-2
options saa7134-alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
# options snd-via82xx-modem index=-2
# options snd-usb-audio index=-2
options snd-usb-usx2y index=-2
options snd-usb-caiaq index=-2
# Ubuntu #62691, enable MPU for snd-cmipci
options snd-cmipci mpu_port=0x330 fm_port=0x388
I'm running Kubuntu 7.10 on an AMD Athlon 64 3500+ (socket 939) processor.
root@ptah:~# uname -a ; free -m
Linux ptah 2.6.22-14-rt #1 SMP PREEMPT RT Tue Dec 18 06:37:06 UTC 2007 x86_64 GNU/Linux
total used free shared buffers cached
Mem: 3906 3228 677 0 69 956
-/+ buffers/cache: 2202 1703
Swap: 1027 13 1013
root@ptah:~# cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 47
model name : AMD Athlon(tm) 64 Processor 3500+
stepping : 2
cpu MHz : 2202.809
cache size : 512 KB
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt lm 3dnowext 3dnow up pni lahf_lm
bogomips : 4409.40
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc
tags: | added: patch |
Changed in awesfx (Ubuntu): | |
status: | New → Confirmed |
Just to add a bit of infrormation, I changed snd-emu10k1 module parameter to include max_buffer_ size=1024 (supposedly allowing 1GB of ram for samples) _after_ I got the error. I increased it in steps (and rebooted after changing it to be sure the changes were applied) and tested again, same error. quality- wise. Upgrading machine atm is out of question. ;)
I didn't test the -generic kernel as it is supposedly to work with -rt, as it's an internal wavetable hardware synthesizer and meant to be used to generate sound from MIDI events (that can be sent by an external MIDI master controller keyboard, as the CME-UF8 I own), routed by Rosegarden.
Qsynth/FluidSynth is a suboptimal workaround, as it's very processor-intensive and if you configure it to have a low latency you'll get a lot of "pops" and other sound artifacts, hardly performance-