[Jack-Devel] superweird jack error

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[Jack-Devel] superweird jack error

axl99

Hi list,

 

I've gotten a little further in my quest to get SuperCollider to run on a Cortex A9 guiless Ubuntu stick. That means I've only had one system freeze today trying ot start jackd2.

 

When I start it like this:

 

$ jackd -S -d alsa -d hw:H2 -r 44100 -n 3 -p 512

 

and with rtprio 70 and memlock unlimited

 

jackd seems to start up correctly:

 

jackdmp 1.9.10
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2013 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK server starting in realtime mode with priority 10
creating alsa driver ... hw:H2|hw:H2|512|3|44100|0|0|nomon|swmeter|-|32bit
configuring for 44100Hz, period = 512 frames (11.6 ms), buffer = 3 periods
ALSA: final selected sample format for capture: 16bit little-endian
ALSA: use 3 periods for capture
ALSA: final selected sample format for playback: 16bit little-endian
ALSA: use 3 periods for playback

 

Now, trying to connect scsynth (from a self compiled SuperCollider 3.6.2) to jackd I get this completely new and weird error:

 

Cannot lock down 68157440 byte memory area (Cannot allocate memory)
Cannot lock down 2048917504 byte memory area (Cannot allocate memory)
Cannot lock down 25165824 byte memory area (Cannot allocate memory)
JackDriver: client name is ''
You cannot set callbacks on an active client
SC_AudioDriver: sample rate = 2890137600.000000, driver's block size = 33554432
SuperCollider 3 server ready.
ERROR: server failed to start

 

I get a very similar error (exact same memory numbers) when I try to connect the jack_simple_client.

 

I've googled the error and the only results that have come up had to do with 32bit vs 64bit and someone trying to run a Windows app via Wine.

 

Anyone have an idea what's going on?

 

Thanks,

Axel

 



---
Alle Postfächer an einem Ort. Jetzt wechseln und E-Mail-Adresse mitnehmen! Rundum glücklich mit freenetMail

_______________________________________________
Jack-Devel mailing list
[hidden email]
http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org
Reply | Threaded
Open this post in threaded view
|

Re: superweird jack error

Florian Paul Schmidt-2
Just a shot in the dark: How much memory do you have in that system? Also try to tell jack not to mlock memory.

Flo

On 03/14/2013 08:21 PM, [hidden email] wrote:

Hi list,

 

I've gotten a little further in my quest to get SuperCollider to run on a Cortex A9 guiless Ubuntu stick. That means I've only had one system freeze today trying ot start jackd2.

 

When I start it like this:

 

$ jackd -S -d alsa -d hw:H2 -r 44100 -n 3 -p 512

 

and with rtprio 70 and memlock unlimited

 

jackd seems to start up correctly:

 

jackdmp 1.9.10
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2013 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK server starting in realtime mode with priority 10
creating alsa driver ... hw:H2|hw:H2|512|3|44100|0|0|nomon|swmeter|-|32bit
configuring for 44100Hz, period = 512 frames (11.6 ms), buffer = 3 periods
ALSA: final selected sample format for capture: 16bit little-endian
ALSA: use 3 periods for capture
ALSA: final selected sample format for playback: 16bit little-endian
ALSA: use 3 periods for playback

 

Now, trying to connect scsynth (from a self compiled SuperCollider 3.6.2) to jackd I get this completely new and weird error:

 

Cannot lock down 68157440 byte memory area (Cannot allocate memory)
Cannot lock down 2048917504 byte memory area (Cannot allocate memory)
Cannot lock down 25165824 byte memory area (Cannot allocate memory)
JackDriver: client name is ''
You cannot set callbacks on an active client
SC_AudioDriver: sample rate = 2890137600.000000, driver's block size = 33554432
SuperCollider 3 server ready.
ERROR: server failed to start

 

I get a very similar error (exact same memory numbers) when I try to connect the jack_simple_client.

 

I've googled the error and the only results that have come up had to do with 32bit vs 64bit and someone trying to run a Windows app via Wine.

 

Anyone have an idea what's going on?

 

Thanks,

Axel

 



---
Alle Postfächer an einem Ort. Jetzt wechseln und E-Mail-Adresse mitnehmen! Rundum glücklich mit freenetMail


_______________________________________________
Jack-Devel mailing list
[hidden email]
http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org


-- 
Florian Paul Schmidt
http://fps.io

_______________________________________________
Jack-Devel mailing list
[hidden email]
http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org
Reply | Threaded
Open this post in threaded view
|

Re: superweird jack error

axl99

The stick has 1 gbyte or ram. Top tells me:

KiB Mem:    863396 total,   208044 used,   655352 free,    15204 buffers
KiB Swap:        0 total,        0 used,        0 free,   121640 cached

 

But why in the world would jackd want to lock down 2048917504 byte (about 2 gbyte) of ram?

 

Btw., the --no-mlock option doesn't seem to exist in jackd2.

 

 

-----Ursprüngliche Nachricht-----
Von: "Florian Paul Schmidt" [[hidden email]]
Gesendet: Do. 14.03.2013 20:46
An: [hidden email]
Betreff: Re: [Jack-Devel] superweird jack error

Just a shot in the dark: How much memory do you have in that system? Also try to tell jack not to mlock memory.

Flo

On 03/14/2013 08:21 PM, <a class="moz-txt-link-abbreviated" onclick="parent.EMO.popup('/Email/View/MsgEdit?account=axl99@freenet.de&amp;to=axl99@freenet.de',675,560,false,false,false);" href="#">axl99@... wrote:

Hi list,

 

I've gotten a little further in my quest to get SuperCollider to run on a Cortex A9 guiless Ubuntu stick. That means I've only had one system freeze today trying ot start jackd2.

 

When I start it like this:

 

$ jackd -S -d alsa -d hw:H2 -r 44100 -n 3 -p 512

 

and with rtprio 70 and memlock unlimited

 

jackd seems to start up correctly:

 

jackdmp 1.9.10
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2013 Grame.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
JACK server starting in realtime mode with priority 10
creating alsa driver ... hw:H2|hw:H2|512|3|44100|0|0|nomon|swmeter|-|32bit
configuring for 44100Hz, period = 512 frames (11.6 ms), buffer = 3 periods
ALSA: final selected sample format for capture: 16bit little-endian
ALSA: use 3 periods for capture
ALSA: final selected sample format for playback: 16bit little-endian
ALSA: use 3 periods for playback

 

Now, trying to connect scsynth (from a self compiled SuperCollider 3.6.2) to jackd I get this completely new and weird error:

 

Cannot lock down 68157440 byte memory area (Cannot allocate memory)
Cannot lock down 2048917504 byte memory area (Cannot allocate memory)
Cannot lock down 25165824 byte memory area (Cannot allocate memory)
JackDriver: client name is ''
You cannot set callbacks on an active client
SC_AudioDriver: sample rate = 2890137600.000000, driver's block size = 33554432
SuperCollider 3 server ready.
ERROR: server failed to start

 

I get a very similar error (exact same memory numbers) when I try to connect the jack_simple_client.

 

I've googled the error and the only results that have come up had to do with 32bit vs 64bit and someone trying to run a Windows app via Wine.

 

Anyone have an idea what's going on?

 

Thanks,

Axel

 



---
Alle Postfächer an einem Ort. Jetzt wechseln und E-Mail-Adresse mitnehmen! Rundum glücklich mit freenetMail


_______________________________________________ Jack-Devel mailing list <a class="moz-txt-link-abbreviated" onclick="parent.EMO.popup('/Email/View/MsgEdit?account=axl99@freenet.de&amp;to=Jack-Devel@lists.jackaudio.org',675,560,false,false,false);" href="#">Jack-Devel@... http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org



-- Florian Paul Schmidt http://fps.io

-----Ursprüngliche Nachricht Ende-----



---
Alle Postfächer an einem Ort. Jetzt wechseln und E-Mail-Adresse mitnehmen! Rundum glücklich mit freenetMail

_______________________________________________
Jack-Devel mailing list
[hidden email]
http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org
Reply | Threaded
Open this post in threaded view
|

Re: superweird jack error

Gabriel M. Beddingfield-2
Hi Axl,

On 03/14/2013 01:48 PM, [hidden email] wrote:
> The stick has 1 gbyte or ram. Top tells me:
>
> KiB Mem:    863396 total,   208044 used,   655352 free,    15204 buffers
> KiB Swap:        0 total,        0 used,        0 free,   121640 cached
>
> But why in the world would jackd want to lock down 2048917504 byte
> (about 2 gbyte) of ram?
>
> Btw., the --no-mlock option doesn't seem to exist in jackd2.

 From your logs it kind of looked like SC was trying to allocate all
that memory... but I may have misunderstood.

Anyway, jack2 has a compile option for run-time performance metrics
(configure with "--profile", I think).  If enabled, it has to lock down
gobs of memory for storing run-time events.  The only way to disable it
is to recompile JACK without it.  Did you happen to enable it?

-gabriel


_______________________________________________
Jack-Devel mailing list
[hidden email]
http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org
Reply | Threaded
Open this post in threaded view
|

Re: superweird jack error

axl99
Hi Gabriel and everybody,

as I wrote in my earlier post the same thing happened when I just tried to connect jack_simple_client so it's definitely jack that's trying to allocate all that memory.

I don't remember turning on a "profile" option but I'll recomompile and turn debug on. Maybe this will give some more info.

Btw., two of the memory numbers in the error

Cannot lock down 68157440 byte memory area (Cannot allocate memory)
Cannot lock down 2048917504 byte memory area (Cannot allocate memory)
Cannot lock down 25165824 byte memory area (Cannot allocate memory)

are the exact same numbers somebody else with the same error got here:


Everybody there seemed to assume it had to do with 32 bit vs 64 bit operation. But there is no 64 bit stuff at all on my computer.

Cheers,
Axel


On Mar 16, 2013, at 6:31 PM, Gabriel M. Beddingfield wrote:

Hi Axl,

On 03/14/2013 01:48 PM, [hidden email] wrote:
The stick has 1 gbyte or ram. Top tells me:

KiB Mem:    863396 total,   208044 used,   655352 free,    15204 buffers
KiB Swap:        0 total,        0 used,        0 free,   121640 cached

But why in the world would jackd want to lock down 2048917504 byte
(about 2 gbyte) of ram?

Btw., the --no-mlock option doesn't seem to exist in jackd2.

From your logs it kind of looked like SC was trying to allocate all that memory... but I may have misunderstood.

Anyway, jack2 has a compile option for run-time performance metrics (configure with "--profile", I think).  If enabled, it has to lock down gobs of memory for storing run-time events.  The only way to disable it is to recompile JACK without it.  Did you happen to enable it?

-gabriel





_______________________________________________
Jack-Devel mailing list
[hidden email]
http://lists.jackaudio.org/listinfo.cgi/jack-devel-jackaudio.org