guild icon
Toit
#Hangs in Bucket
Thread channel in help
tplux
tplux 09/10/2025 05:41 AM
Hi guys
I am experiencing an issue with the Bucket class. Usually it works fine, but in one case trying to access the bucket will hang the task accessing it. This happens when our device has lost its WiFi connection. It doesn't matter if I try to access a global Bucket object, a member of a class, or a local object.
My next move is to make a centralized class that handles a Bucket object and thus hopefully minimize the Bucket activity.
Can you see what can make the task hang like that?
floitsch
floitsch 09/10/2025 06:21 AM
@bitphlipphar any idea how the wifi could interfere with buckets?
bitphlipphar
bitphlipphar 09/10/2025 06:23 AM
I guess they are both serviced from the system process, but it's hard to imagine a way for the bucket rpcs to get blocked - unless something else is truly stuck in the system.
tplux
tplux 09/10/2025 07:12 AM
Could it be a service issue? Because after some debugging, it looks like it happens when invoking some service. I tried to avoid using bucket by hard coding some values, and instead it got stuck in a call to wifi.scan.
tplux
tplux 09/10/2025 07:22 AM
Additional info: we are running alpha.117 :😄:
bitphlipphar
bitphlipphar 09/10/2025 07:23 AM
We did have issues with deadlocks in the system process in the past. I can check when we fixed them.
👍1
bitphlipphar
bitphlipphar 09/10/2025 07:24 AM
There was a limit on the number of tasks we could use for processing rpcs and that could lead to deadlocks when the wifi needed flash bucket access.
bitphlipphar
bitphlipphar 09/10/2025 07:25 AM
Smells a bit like what you see :🙈:
tplux
tplux 09/10/2025 07:26 AM
It does. I can try and work around that. Somehow... :🙂:
tpluxOPtplux
It does. I can try and work around that. Somehow... :🙂:
floitsch
floitsch 09/10/2025 09:33 AM
any reason you don't update the system? 117 is ancient.
tplux
tplux 09/10/2025 12:01 PM
I think there is some issue with the i2c driver in espressif that is manageable in 117 and less so in the latest espressif. @Rikke knows about this.
👍1
11 messages in total