embox / embox

Modular and configurable OS for embedded applications
http://embox.github.io
BSD 2-Clause "Simplified" License
1.14k stars 267 forks source link

"error: low_level_input: skb_alloc failed" happen during project/pjsip/stm32f769i-discovery #2560

Open anton-bondarev opened 2 years ago

anton-bondarev commented 2 years ago

It seems that when a hangup is called from GUI some skbufs locked in PJSIP sockets. PJSIP has own working thread GUI has own. Current implementation is following

void demo_pj_hang(void) {
    pjsua_call_hangup_all();

    current_call = PJSUA_INVALID_ID;

    call_info->state = CALL_INACTIVE;
}

and is been calling from GUI thread. it seems that it is not enough for correct hanging up from the device side

IWaheed commented 2 years ago

I don't know if this piece of information will help or not.

Anyhow, I was running embox/pjsip on stm32f7-disco boards in a closed network without an internet connection. I noticed that this error isn't happening i.e. screen does not blink nor does the message "error: skb_alloc_failed" appear. I was running the disco-boards for hours and this error didn't appear. As soon as I connected them to internet the error begins to appear.