Why Core module blinking SOS after approx 5 minutes of using? Probably it is some internal function (because I am not using morse code in my code, yet ), but I am not sure what does it mean. After that the application freezes.
I found that it is related to one function which I am calling every 20 seconds. But it is just about writing something to log (after I have commented 99% of function to find where is the problem), nothing complex… When I disable this function, it works normally…
Hello,
when it was blinking I found that it is not random, that something is repeating. Then I read the pattern and I started to laugh. Because I know that my work is not so clean in the application, I understand, that Core module shouts for help
But… I have call bc_log_init in the application_init(). I am using logs for a long time and it works. Yesterday, when I seen the SOS signals, it writed logs too.
Or need I to init every type of log which I want to use? (debug, error, info)
The other error which starts SOS is that you are registering too much tasks. If the blinking is not random, then most probably there is some bug in your code which is creating tasks on runtime but not terminaning it.
I am not using “bc_scheduler_unregister(bc_scheduler_get_current_task_id());” and calling other and other “instances” of the same function if I want to create “infinite loop” started every x seconds… I wrongly understand this sentence: “Every task has to call “plan” function, otherwise it is planned in the time “INFINITY” which means the task is never run again, unless is replanned by bc_scheduler functions.” --> I thought that when I call some function, it runs only once and I need to replan it to next run. (not to unregister the task, because it will be cleared after it finish) I need to study it more…
Thank you, but as Martin metnioned, there was no problem with log (I am using bcf log for debugging), but there was problem with calling tasks. When I registered the task just only once and then reschedule It to some time, it works.