Page 1 of 1

Seg Faults

Posted: Sat Nov 19, 2011 4:14 am
by bowalk6
This is what i get trying to configure jsampler
any ideas?
Thanks
Bob
bob@adk:~$ lijnuxsampler
bash: lijnuxsampler: command not found
bob@adk:~$ linuxsampler
LinuxSampler 1.0.0.svn15
Copyright (C) 2003,2004 by Benno Senoner and Christian Schoenebeck
Copyright (C) 2005-2011 Christian Schoenebeck
Detected features: MMX SSE SSE2
Automatic Stacktrace: Off
Creating Sampler...OK
Registered sampler engines: 'GIG','SF2','SFZ'
Registered MIDI input drivers: ALSA,JACK
Registered audio output drivers: ALSA,ARTS,JACK
Loading instrument editor plugins...OK
Registered instrument editors: 'gigedit'
Registered internal effect systems: LADSPA
Could not scan LADSPA effects: library path '/usr/local/lib/ladspa:/usr/lib/ladspa' doesn't exist
Registered internal effects: 0
Starting LSCP network server (0.0.0.0:8888)...OK
LinuxSampler initialization completed. :-)

LSCPServer: Client connection established on socket:4.
LSCPServer: Client connection established on socket:5.
Thread: WARNING, can't assign realtime scheduling to thread!
ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card
EngineBase: WARNING, CONFIG_EG_MIN_RELEASE_TIME too big for current audio fragment size & sampling rate! May lead to click sounds if voice stealing chimes in!
Starting disk thread...OK
Stopping disk thread...OK
EngineBase: WARNING, CONFIG_EG_MIN_RELEASE_TIME too big for current audio fragment size & sampling rate! May lead to click sounds if voice stealing chimes in!
Segmentation fault
bob@adk:~$

Re: Seg Faults

Posted: Sat Nov 19, 2011 9:50 am
by Andreas
Can you please run "ulimit -c unlimited" before starting linuxsampler (so the segfault creates a core file), start linuxsampler, run gdb linuxsampler <name of th e created core file>, type bt in gdb and post the stack trace?

Re: Seg Faults

Posted: Sat Nov 19, 2011 4:00 pm
by bowalk6
here is what i got
Thanks Bob
gdb) run
Starting program: /usr/bin/linuxsampler
[Thread debugging using libthread_db enabled]
LinuxSampler 1.0.0.svn15
Copyright (C) 2003,2004 by Benno Senoner and Christian Schoenebeck
Copyright (C) 2005-2011 Christian Schoenebeck
Detected features: MMX SSE SSE2
Automatic Stacktrace: Off
Creating Sampler...OK
Registered sampler engines: 'GIG','SF2','SFZ'
Registered MIDI input drivers: ALSA,JACK
Registered audio output drivers: ALSA,ARTS,JACK
Loading instrument editor plugins...OK
Registered instrument editors: 'gigedit'
Registered internal effect systems: LADSPA
Could not scan LADSPA effects: library path '/usr/local/lib/ladspa:/usr/lib/ladspa' doesn't exist
Registered internal effects: 0
Starting LSCP network server (0.0.0.0:8888)...[New Thread 0xb64c9b70 (LWP 4131)]
LSCPServer: Could not bind server socket, retrying for 180 seconds...OK
LinuxSampler initialization completed. :-)

LSCPServer: Client connection established on socket:6.
LSCPServer: Client connection established on socket:7.
ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card
ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card
[New Thread 0xb6448b70 (LWP 4164)]
[New Thread 0xb5c0ab70 (LWP 4166)]
[New Thread 0xb5b69b70 (LWP 4168)]
Thread: WARNING, can't assign realtime scheduling to thread!
EngineBase: WARNING, CONFIG_EG_MIN_RELEASE_TIME too big for current audio fragment size & sampling rate! May lead to click sounds if voice stealing chimes in!
Starting disk thread...[New Thread 0xaffceb70 (LWP 4169)]
OK
[Thread 0xaffceb70 (LWP 4169) exited]
[New Thread 0xaff4db70 (LWP 4170)]
[New Thread 0xaffceb70 (LWP 4171)]
[Thread 0xaff4db70 (LWP 4170) exited]
Stopping disk thread...[Thread 0xaffceb70 (LWP 4171) exited]
OK
EngineBase: WARNING, CONFIG_EG_MIN_RELEASE_TIME too big for current audio fragment size & sampling rate! May lead to click sounds if voice stealing chimes in!

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb64c9b70 (LWP 4131)]
0xb7ece4e4 in LinuxSampler::EG::CalculateFadeOutCoeff (this=0x0,
FadeOutTime=0.00145124714, SampleRate=44100) at EG.cpp:36
36 EG.cpp: No such file or directory.
in EG.cpp
(gdb) bt
#0 0xb7ece4e4 in LinuxSampler::EG::CalculateFadeOutCoeff (this=0x0,
FadeOutTime=0.00145124714, SampleRate=44100) at EG.cpp:36
#1 0xb7eb3616 in LinuxSampler::EngineBase<LinuxSampler::sfz::Voice, sfz::Region, sfz::Region, LinuxSampler::sfz::DiskThread, LinuxSampler::sfz::InstrumentResourceManager, sfz::Instrument>::Connect (this=0x80b6e40, pAudioOut=0x8072850)
at ../EngineBase.h:315
#2 0xb7ed1ff5 in LinuxSampler::AbstractEngine::AcquireEngine (
pChannel=0x8086980, pDevice=0x8072850) at AbstractEngine.cpp:62
#3 0xb7eaf312 in LinuxSampler::EngineChannelBase<LinuxSampler::sfz::Voice, sfz::Region, sfz::Instrument>::Connect (this=0x8086980, pAudioOut=0x8072850)
at ../EngineChannelBase.h:123
#4 0xb7de39e0 in LinuxSampler::SamplerChannel::SetEngineType (
this=0x8050618, EngineType=...) at Sampler.cpp:108
#5 0xb7e24a80 in LinuxSampler::LSCPServer::SetEngineType (this=0x8064310,
EngineName=Cannot access memory at address 0x0
) at lscpserver.cpp:970
#6 0xb7e119e7 in yyparse (yyparse_param=0x80642b4) at lscp.y:476
#7 0xb7e35d8a in LinuxSampler::LSCPServer::Main (this=0x8064310)
at lscpserver.cpp:603
#8 0xb7f439c9 in __pthread_launcher (thread=0x8064310) at Thread.cpp:398
#9 0xb7bf1c39 in start_thread ()
from /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
#10 0xb7b5e96e in clone () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
(gdb)