-
Notifications
You must be signed in to change notification settings - Fork 58
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
Somewhat random crashing #6
Comments
Good point `(2389730) SNAPCAST: c2s: -1592431106 252791 I (2390600) I2S: Chunk :960 185664 192384 Core 0 register dump: A2 : 0x00000000 A3 : 0x0004b3e3 A4 : 0x00000090 A5 : 0x00000000 Same place your setup crash Try to change the wait time (20) in |
Hello Jørgen First problem seems to be solved by checking if
returns NULL. By changing following check
to
esp32 reboots by killing input streams to snapfifo seem to go away afterwards. Second issue is a task for another evening I guess :) Regards Karl |
so I found the reason for crashing was returning from FreeRTOS Http Task. I uploaded my changes to my fork: https://github.com/carlosderseher/snapclient Have a look if you like. Still needs some more testing, but seems to work stable now, although I might try to rewrite stuff to use some kind of state machine in there, not exactly sure what's the way to go yet. Regards |
Hi Karl |
I didn't do much changes really, spare time is a precious good for me nowadays :) I hope to contribute, so we can get multiroom working some time though |
Hi Jørgen,
As previously mentioned, it seems some of us are experiencing random crashing. Thus i figured it'd create a new issue, documenting my experience.
As you suggested i've disabled A-MPDU in my router. The other settings you mentioned (in the menuconfig and router) was already disabled in my case.
Whenever i experience a crash (luckily nowhere near as often as karimsad, more like every
10th minute - ignoring plain stuttering) i receive these logs over serial:
I (234974) SNAPCAST: Received wire message
I (234974) SNAPCAST: size : 3
I (234994) SNAPCAST: Received wire message
I (234994) SNAPCAST: size : 3
I (235014) SNAPCAST: Received wire message
I (235014) SNAPCAST: size : 3
Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.
Core 0 register dump:
PC : 0x401091a7 PS : 0x00060330 A0 : 0x800981c8 A1 : 0x3ffef080
0x401091a7: dsp_i2s_task_handler at /Users/blab/esp/snapclient/components/dsp_processor/dsp_processor.c:170 (discriminator 1)
A2 : 0x00000000 A3 : 0x000084cb A4 : 0x000000b0 A5 : 0x00000000
A6 : 0x00000000 A7 : 0x00039368 A8 : 0x00000000 A9 : 0x3ffef060
A10 : 0x00005bca A11 : 0x3ffb007c A12 : 0x3ffe436c A13 : 0x3fff80a0
A14 : 0x00000000 A15 : 0x3ffddbcc SAR : 0x00000003 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000000 LBEG : 0x4000c28c LEND : 0x4000c296 LCOUNT : 0x00000000
ELF file SHA256: 8191af69b511a1a305a7f139fe86e8e6c434725945805dd06026c7255405424c
Backtrace: 0x401091a4:0x3ffef080 0x400981c5:0x3fff82e0
0x401091a4: dsp_i2s_task_handler at /Users/blab/esp/snapclient/components/dsp_processor/dsp_processor.c:170 (discriminator 1)
0x400981c5: vPortTaskWrapper at /Users/blab/esp/esp-idf/components/freertos/xtensa/port.c:143
Rebooting...
'dsp_processor.c:170' seems to be your 16 -> 32 bit conversion?
Is it possible that the client, or maybe just the 16->32 bit, doesn't deal well with empty packages?
The thing is, my crashes usually happens, whenever the server stops outputting - mainly whenever a song is change, or just plain play/pause. Quite odd.
And also, as i mentioned, if of client is turned off, it tends to crash the other client instantly. - However, this only effects the esp-clients! My phone continues to play just fine.
Håber alt er vel.
/ Nicolai
The text was updated successfully, but these errors were encountered: