It is certainly possible that there is a hardware or power issue. Is the freeze temporary or does it require a reboot to resolve?
Considering software options, here are a few ideas:
You mentioned there are some background processes and communications? Is this part of the kivy application? If so I would start by looking for possible race or lock up conditions. Are you using threading or multiprocessing? If so, pay close attention the communication between threads or processes. If you don’t start the background process, do you get a lock up?
Try using a software profiler and see if you get any clue to what is going on. See: https://kivy.org/doc/stable/api-kivy.app.html#profiling-with-on-start-and-on-stop
Use the logger, https://kivy.org/doc/stable/api-kivy.logger.html?highlight=logger#module-kivy.logger
Add logging statements to track to progress of the app. Start with on_enter/on_leave events for the screens.
Are you creating the same widgets more than once without removing them?
Any information in the log?
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/41f353c5-9514-4478-bee1-9a8c0f782cefn%40googlegroups.com.
But the things became worse when I add additional libraries and functions for WiFi support. Can be any connection here?
Are you using a Clock.schedule_interval() to pull data and display it? If so try using a longer interval.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/c66e9a04-68e9-4913-92c4-64b1dc41158cn%40googlegroups.com.
I’m not a raspberry Pi user. The alloc_fails suggests you are running out of memory. Have you tried increasing the amount of memory allocated to the graphics (vs the CPU)?
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/85118bc1-8626-49e8-94ca-97847d7d36d2n%40googlegroups.com.