Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reboot after "Freeing memory in PSRAM used for 'STBI'" #3281

Closed
friedpa opened this issue Oct 1, 2024 · 14 comments
Closed

Reboot after "Freeing memory in PSRAM used for 'STBI'" #3281

friedpa opened this issue Oct 1, 2024 · 14 comments

Comments

@friedpa
Copy link

friedpa commented Oct 1, 2024

The Problem

I have now installed the RC1 in two systems. Both ESPs are from the same manufacturer, also bought together.
One ESP is running fine the other one is often rebooting after the last message in the log:

Freeing memory in PSRAM used for 'STBI'

As I don´t know what is done herre I just want to mention it. It could also be that the ESP is slowly dying a slow death.....

Version

16.0.0-RC1

Logfile

[0d00h11m42s] 2024-10-01T08:55:20	<DBG>	[PSRAM] Freeing memory in PSRAM used for 'STBI'...
[0d00h11m42s] 2024-10-01T08:55:20	<DBG>	[PSRAM] Allocated 18456 bytes in PSRAM for 'STBI'
[0d00h11m42s] 2024-10-01T08:55:20	<DBG>	[PSRAM] Allocated 3855 bytes in PSRAM for 'STBI'
[0d00h11m42s] 2024-10-01T08:55:20	<DBG>	[PSRAM] Allocated 975 bytes in PSRAM for 'STBI'
[0d00h11m42s] 2024-10-01T08:55:20	<DBG>	[PSRAM] Allocated 975 bytes in PSRAM for 'STBI'
[0d00h11m42s] 2024-10-01T08:55:20	<DBG>	[PSRAM] Allocated 76 bytes in PSRAM for 'STBI'
[0d00h11m42s] 2024-10-01T08:55:20	<DBG>	[PSRAM] Allocated 76 bytes in PSRAM for 'STBI'
[0d00h11m42s] 2024-10-01T08:55:20	<DBG>	[PSRAM] Allocated 76 bytes in PSRAM for 'STBI'
[0d00h11m42s] 2024-10-01T08:55:20	<DBG>	[PSRAM] Allocated 9637 bytes in PSRAM for 'STBI'
[0d00h11m42s] 2024-10-01T08:55:20	<DBG>	[PSRAM] Freeing memory in PSRAM used for 'STBI'...
[0d00h11m42s] 2024-10-01T08:55:20	<DBG>	[PSRAM] Freeing memory in PSRAM used for 'STBI'...
[0d00h11m42s] 2024-10-01T08:55:20	<DBG>	[PSRAM] Freeing memory in PSRAM used for 'STBI'...
[0d00h11m42s] 2024-10-01T08:55:20	<DBG>	[PSRAM] Freeing memory in PSRAM used for 'STBI'...
[0d00h11m42s] 2024-10-01T08:55:20	<DBG>	[PSRAM] Freeing memory in PSRAM used for 'STBI'...
[0d00h11m42s] 2024-10-01T08:55:20	<DBG>	[PSRAM] Freeing memory in PSRAM used for 'STBI'...
[0d00h11m42s] 2024-10-01T08:55:20	<DBG>	[PSRAM] Freeing memory in PSRAM used for 'STBI'...
[0d00h11m51s] 2024-10-01T08:55:29	<DBG>	[PSRAM] Freeing memory in PSRAM used for 'STBI'...
[0d00h11m51s] 2024-10-01T08:55:29	<DBG>	[PSRAM] Allocated 18456 bytes in PSRAM for 'STBI'
[0d00h11m51s] 2024-10-01T08:55:29	<DBG>	[PSRAM] Freeing memory in PSRAM used for 'STBI'...
[0d00h11m51s] 2024-10-01T08:55:29	<DBG>	[PSRAM] Allocated 18456 bytes in PSRAM for 'STBI'
[0d00h11m51s] 2024-10-01T08:55:29	<DBG>	[PSRAM] Allocated 8463 bytes in PSRAM for 'STBI'
[0d00h11m51s] 2024-10-01T08:55:29	<DBG>	[PSRAM] Allocated 2127 bytes in PSRAM for 'STBI'
[0d00h11m51s] 2024-10-01T08:55:29	<DBG>	[PSRAM] Allocated 2127 bytes in PSRAM for 'STBI'
[0d00h11m51s] 2024-10-01T08:55:29	<DBG>	[PSRAM] Allocated 172 bytes in PSRAM for 'STBI'
[0d00h11m51s] 2024-10-01T08:55:29	<DBG>	[PSRAM] Allocated 172 bytes in PSRAM for 'STBI'
[0d00h11m51s] 2024-10-01T08:55:29	<DBG>	[PSRAM] Allocated 172 bytes in PSRAM for 'STBI'
[0d00h11m51s] 2024-10-01T08:55:29	<DBG>	[PSRAM] Allocated 22309 bytes in PSRAM for 'STBI'
[0d00h11m51s] 2024-10-01T08:55:29	<DBG>	[PSRAM] Freeing memory in PSRAM used for 'STBI'...
[0d00h11m51s] 2024-10-01T08:55:29	<DBG>	[PSRAM] Freeing memory in PSRAM used for 'STBI'...
[0d00h11m51s] 2024-10-01T08:55:29	<DBG>	[PSRAM] Freeing memory in PSRAM used for 'STBI'...
[0d00h11m51s] 2024-10-01T08:55:29	<DBG>	[PSRAM] Freeing memory in PSRAM used for 'STBI'...
[0d00h11m51s] 2024-10-01T08:55:29	<DBG>	[PSRAM] Freeing memory in PSRAM used for 'STBI'...
[0d00h11m51s] 2024-10-01T08:55:29	<DBG>	[PSRAM] Freeing memory in PSRAM used for 'STBI'...
[0d00h11m51s] 2024-10-01T08:55:29	<DBG>	[PSRAM] Freeing memory in PSRAM used for 'STBI'...
[0d00h00m00s] 2024-10-01T06:55:46	<INF>	[MAIN] =================================================
[0d00h00m00s] 2024-10-01T06:55:46	<INF>	[MAIN] ==================== Start ======================
[0d00h00m00s] 2024-10-01T06:55:46	<INF>	[MAIN] =================================================
[0d00h00m00s] 2024-10-01T06:55:46	<INF>	[MAIN] PSRAM size: 8388608 byte (8MB / 64MBit)

Expected Behavior

No response

Screenshots

No response

Additional Context

No response

@friedpa friedpa added the bug Something isn't working label Oct 1, 2024
@friedpa
Copy link
Author

friedpa commented Oct 1, 2024

Additional Info: going back to: AI-on-the-edge-device__update__rolling_(d1c815c) and the reboots are gone....

@caco3
Copy link
Collaborator

caco3 commented Oct 1, 2024

and if you install the RC1 again, the issue is there again?
That is really odd.

@friedpa
Copy link
Author

friedpa commented Oct 4, 2024

@caco3 When I re-install I get the same behaviour, but meanwhile I think the HW is slowly dying....

@caco3
Copy link
Collaborator

caco3 commented Oct 4, 2024

Yes, if one is good and the other (with the same settings and SD card) is fine then it must be a hardware issue.
Are you using them at 160 or 240 MHz? The later might be an issue on some hardware.

@friedpa
Copy link
Author

friedpa commented Oct 4, 2024

Using the 160MHz setting, fast enough....

@caco3
Copy link
Collaborator

caco3 commented Oct 4, 2024

@friedpa If we want to nail this issue down, we need your help.
You say that d1c815c is still ok, but the RC1 (resp. the recent rollings) let it crash.

What you now need to do its to find the first commit where it crashs. Then we can look into it and try to understand the issue. Luckily, d1c815c is from 3. Sept. 2024, so not to far in the past.

Go to https://github.com/jomjol/AI-on-the-edge-device/commits/rolling/ and try to find the bad commit.
I usually pick the middle between the known good/bad to start. then from there again the middle and so on.

@friedpa
Copy link
Author

friedpa commented Oct 6, 2024

@caco3 ok, will ich einmal versuche, Ich glaube aber, dass es sich um einen HW Defekt handelt (der ESP ist seit dem ersten SW Release von @jomjol in Betrieb)
Kannst Du mir noch einen Tipp geben, was genau zwischen der letzten Zeile im LOG unten und dem "Start" SW-mäßig gemacht wird, dass einen Reset auslösen kann?

[0d00h11m51s] 2024-10-01T08:55:29 [PSRAM] Freeing memory in PSRAM used for 'STBI'...
[0d00h00m00s] 2024-10-01T06:55:46 [MAIN] =================================================
[0d00h00m00s] 2024-10-01T06:55:46 [MAIN] ==================== Start ======================
[0d00h00m00s] 2024-10-01T06:55:46 [MAIN] =================================================

@caco3
Copy link
Collaborator

caco3 commented Oct 6, 2024

Das ist etwas schwierig zu sagen, da das Freeing memory in PSRAM used for 'STBI'... tief in der stb-Komponente geloggt wird.
Da das die letzte Log-Zeile ist, welche in die Log-Datei geschrieben wird, muss der Fehler kurz danach auftreten.
Via UART würdest Du allenfalls noch weitere Informationen kriegen, die uns helfen können.

Am einfachen zu verstehen ist es wirklich, wenn wir wissen, ab welchem commit das auftritt.

@SybexX
Copy link
Collaborator

SybexX commented Oct 6, 2024

Unbenannt

test_firmware.zip

@friedpa
Copy link
Author

friedpa commented Oct 7, 2024

@SybexX Über die Initialisierung kommt der ESP nicht drüber:

grafik

Going back to Development-Branch: rolling (Commit: d1c815c)

grafik

@SybexX
Copy link
Collaborator

SybexX commented Oct 7, 2024

@friedpa In der Version habe ich nur weitere Debug-Ausgaben hinzugefügt, um zu sehen, wo der ESP32 hängen bleibt.
Vielleicht hätte ich es dazu schreiben sollen, aber ich dachte, das Bild sagt es schon aus^^

373966908-272a6776-2db5-44db-8b87-1bad9abbd04a

@friedpa
Copy link
Author

friedpa commented Oct 7, 2024

@SybexX: Zu welcher Version passt Deine test_firmware.zip (firmware.bin)? Ich bekomme immer die Meldung, dass die Firmware nicht zur WebUI passt....

@SybexX
Copy link
Collaborator

SybexX commented Oct 7, 2024

Das ist normal, da ich es selber Kompeliert habe, die Version ist dann "na" oder so (AI-on-the-edge-device-main_06_10_2024), dies sollte jedoch kein Problem darstellen. Interessanter ist ja was die Konsole ausgibt^^

@friedpa
Copy link
Author

friedpa commented Oct 9, 2024

Wie angekündigt, ein HW-Fehler. ESP getauscht und entsorgt. Vielen Dank für Euren Support!

@friedpa friedpa closed this as completed Oct 9, 2024
@caco3 caco3 changed the title 16.0.0-RC1: Reboot after "Freeing memory in PSRAM used for 'STBI'" Reboot after "Freeing memory in PSRAM used for 'STBI'" Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants