<div dir="auto">Hi Vadim,<div dir="auto">A ram issue seems strange to me... The board has 2 gb of ram and I also successfully run the same config on a 1 gb virtual machine.</div><div dir="auto"><br></div><div dir="auto">Maybe a kernel limitation? </div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">Thank you and best regards</div><div dir="auto">Alex</div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, 13 Jan 2019, 23:35 Vadim Yanitskiy <<a href="mailto:axilirator@gmail.com" target="_blank" rel="noreferrer">axilirator@gmail.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
> osmo-trx-lms: Threads.cpp:133:<br>
> void Thread::start(void* (*)(void*), void*): Assertion `!res' failed.<br>
> [...]<br>
> Can someone provide me a little light on this?<br>
<br>
As far as I can see, pthread_attr_setstacksize() fails to set<br>
required stack size for a thread. Probably, the amount of RAM<br>
is not enough. But in general, this part of code looks dirty:<br>
<br>
> /** A C++ wrapper for pthread threads.  */<br>
> class Thread {<br>
>   /* ... */<br>
>   // FIXME -- Can this be reduced now?<br>
>   size_t mStackSize;<br>
><br>
>   /* ... */<br>
>   /** Create a thread in a non-running state. */<br>
>   Thread(size_t wStackSize = (65536*4)):mThread((pthread_t)0) {<br>
>     pthread_attr_init(&mAttrib);    // (pat) moved this here.<br>
>     mStackSize=wStackSize;<br>
>   }<br>
>   /* ... */<br>
<br>
I am now wondering, where does this magic 65536*4 comes from,<br>
and how can we estimate and adjust this properly?<br>
<br>
With best regards,<br>
Vadim Yanitskiy.<br>
</blockquote></div>