Closed Bleach665 closed 1 year ago
I committed a correction: However this is not a recommended use case and it has definitely not been tested! The recommended way is to define global variables and when you are done you can call end() on them.
If you use a solution off the beaten track, you should be able to analyse the stack trace and submit corrections yourself....
@pschatzmann Unfortunately now I receive another error:
Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x400ee73a PS : 0x00060530 A0 : 0x800d4217 A1 : 0x3ffb1d50
A2 : 0x00000000 A3 : 0x3ffc582c A4 : 0x3ffc582c A5 : 0x00000000
A6 : 0x00000000 A7 : 0xff000000 A8 : 0x00000000 A9 : 0x3ffb1d50
A10 : 0x00000005 A11 : 0x00000003 A12 : 0x0000000a A13 : 0x00000000
A14 : 0x00ff0000 A15 : 0xff000000 SAR : 0x00000018 EXCCAUSE: 0x0000001c
EXCVADDR: 0x0000001c LBEG : 0x4008a0b5 LEND : 0x4008a0c5 LCOUNT : 0xfffffffe
Backtrace: 0x400ee737:0x3ffb1d50 0x400d4214:0x3ffb1d90 0x400d429c:0x3ffb1db0 0x400d7673:0x3ffb1dd0 0x400d7689:0x3ffb1df0 0x400d7783:0x3ffb1e10 0x400d9cce:0x3ffb1e30 0x4018432e:0x3ffb1ea0 0x40184a0a:0x3ffb1ec0 0x401849c5:0x3ffb1ef0 0x400e3d00:0x3ffb1f10 0x40184ac5:0x3ffb1f40 0x400e3f2e:0x3ffb1f60 0x400e3fbd:0x3ffb1f90 0x400e421a:0x3ffb1fb0 0x400e427e:0x3ffb1ff0 0x400e3f2e:0x3ffb2010 0x400e3fbd:0x3ffb2040 0x400e4051:0x3ffb2060 0x400e41c5:0x3ffb20a0 0x400e427e:0x3ffb20e0 0x400e3f2e:0x3ffb2100 0x400e3fbd:0x3ffb2130 0x400e4051:0x3ffb2150 0x400e40aa:0x3ffb2190 0x400e4263:0x3ffb21d0 0x400e3781:0x3ffb21f0 0x400e37c6:0x3ffb2230 0x400e37e2:0x3ffb2250 0x400dab27:0x3ffb2270 0x400ec0e9:0x3ffb2290
ELF file SHA256: 4421ac3d7e732ac3
Rebooting...
The recommended way is to define global variables and when you are done you can call end() on them.
I look examples and understand that. The reason why I do this that project beside decode audio stream(and transmit it), will perform other memory-consuming tasks. So some times I free memory by deleting audio-tools objects.
As I have written above: you need to analyze the stack-trace. Feel free to submit your corrections with some pull requests...
First many thanks for amazing library.
Board:Esp32-wroom-32U Other settings from platform.io:
After executing StartStream (code below) radio stream hear perfectly on GPIO 26. Unfortunately on deleting EncodedAudioStream I receive exception (pasted below).
Code to reproduce:
Error message: