Open gdst4rp opened 1 month ago
More details, and still broken as of ESPHome 2024.5.3. Here's what I get from the local USB connected logs when I scan a tag.
[09:04:56] [09:04:56]User exception (panic/abort/assert) --------------- CUT HERE FOR EXCEPTION DECODER ---------------
[09:04:56]Unhandled C++ exception: OOM
[09:04:56]
[09:04:56]>>>stack>>>
[09:04:56]
[09:04:56]ctx: cont
[09:04:56]sp: 3ffff890 end: 3fffffd0 offset: 0010
[09:04:56]3ffff8a0: 3fffaeb0 4020fc2b 000000ca 40233db4
[09:04:56]3ffff8b0: 00000000 3fffaf2c 3fffb1ec 40245959
[09:04:56]3ffff8c0: 000000c9 3fffaebc 3fffb19c 40210e98
[09:04:56]3ffff8d0: 3fffaebc 3ffff8f0 3fffb19c 402112d9
[09:04:56]3ffff8e0: 3fffaeb4 3fffb174 3fffb0ec 4020fe88
[09:04:56]3ffff8f0: 3fffabc8 40245959 00000020 4010185c
[09:04:56]3ffff900: 00000010 3f800000 3fffae5c 00000096
[09:04:56]3ffff910: 00000000 40223940 00000020 4010185c
[09:04:56]3ffff920: 00000014 3f800000 00000050 00000096
[09:04:56]3ffff930: 3ffff9c4 3fff61dc 3fffb0e4 40223951
[09:04:56]3ffff940: 40220c40 00000000 3fffae5c 3fffae63
[09:04:56]3ffff950: 3fffae63 3fffae6c 00000010 0000001e
[09:04:56]3ffff960: 3fff47d8 0000004e 00000074 3fffae94
[09:04:56]3ffff970: 3fffb0ac 3fffb0c4 00000014 00000014
[09:04:56]3ffff980: 3f800000 00000023 3f800000 3fff61dc
[09:04:56]3ffff990: 40220c40 00000000 3fffa94c 3fffa953
[09:04:56]3ffff9a0: 3fffa953 3fffa95c 00000010 0000001e
[09:04:56]3ffff9b0: 3fff3c90 3fff47ac 3fff3c8c 3fffa984
[09:04:56]3ffff9c0: 3fffab9c 3fffabb4 00000014 00000014
[09:04:56]3ffff9d0: 3fffa738 4020fc2b 00000020 3fff61dc
[09:04:56]3ffff9e0: 3fffabf4 3fffabfb 3fffabfb 3fffac04
[09:04:56]3ffff9f0: 00000010 0000001e 00000020 4010185c
[09:04:56]3ffffa00: 3fffa91c 3fffac2c 3fffae44 3fffabd4
[09:04:56]3ffffa10: 00000014 00000014 3ffffa70 4020fef4
[09:04:56]3ffffa20: 00000000 00000000 3fffa934 00000000
[09:04:56]3ffffa30: 00000010 4020fc2b 3fffa45c 40233d9f
[09:04:56]3ffffa40: 00000000 3fffa43c 3ffffa9c 40245959
[09:04:56]3ffffa50: 00000014 4020fec3 00000020 40220508
[09:04:56]3ffffa60: 3ffffad0 402238a8 3fff61dc 40220c7a
[09:04:56]3ffffa70: 3fffa6e4 3fffa6eb 3fffa6eb 3fffa6f4
[09:04:56]3ffffa80: 00000010 0000001e 3fffa6ac 4010185c
[09:04:56]3ffffa90: 00000010 3fffa71c 3fffa934 3fffa6c4
[09:04:56]3ffffaa0: 00000014 00000014 3ffffb28 40245959
[09:04:56]3ffffab0: 00000014 3fff92cb 3fff92cb 40220508
[09:04:56]3ffffac0: 3ffffc6c 3ffffb70 3fff420c 40220d3e
[09:04:56]3ffffad0: 3fffa45c 3fffa463 3fffa463 3fffa46c
[09:04:56]3ffffae0: 00000010 0000001e 00000010 3fff9d3c
[09:04:56]3ffffaf0: 3fff9d3c 3fffa494 3fffa6ac 3fffa1d4
[09:04:56]3ffffb00: 3fffa1db 3fffa1db 3fffa1e4 00000010
[09:04:56]3ffffb10: 0000001e 3fff9fa4 3ffffb70 4020fef4
[09:04:56]3ffffb20: 3fffa20c 3fffa424 3fffa43c 00000014
[09:04:56]3ffffb30: 00000014 4020fc2b 3fff9ce4 40233d9f
[09:04:56]3ffffb40: 3fff9f4c 00000014 00000014 40245959
[09:04:56]3ffffb50: 00000014 4020fec3 00000020 40220508
[09:04:56]3ffffb60: 3ffffc6c 3ffffbd0 3fff61bc 4022053c
[09:04:56]3ffffb70: 3fff9f6c 3fff9f73 3fff9f73 3fff9f7c
[09:04:56]3ffffb80: 00000010 0000001e 3fff9f34 4010185c
[09:04:56]3ffffb90: 00000010 3fff9fa4 3fffa1bc 3ffffba4
[09:04:56]3ffffba0: 00000000 00000000 3ffffbfc 40245959
[09:04:56]3ffffbb0: 00000014 3fff923c 00000010 40220508
[09:04:56]3ffffbc0: 3ffffc6c 3ffffc40 3fff61bc 40220da1
[09:04:56]3ffffbd0: 3fff9ce4 3fff9ceb 3fff9ceb 3fff9cf4
[09:04:56]3ffffbe0: 00000010 0000001e 3ffffc40 4020fef4
[09:04:56]3ffffbf0: 00000000 3fff9d1c 3fff9f34 3fff9cc4
[09:04:56]3ffffc00: 00000014 00000014 3fff93f4 40233d9f
[09:04:56]3ffffc10: 00000000 3fff901c 3ffffc6c 40245959
[09:04:56]3ffffc20: 00000014 4020fec3 00000020 40223ab4
[09:04:56]3ffffc30: 3ffffca0 40220d68 3fff61bc 40220c7a
[09:04:57]3ffffc40: 3fff9294 3fff929b 3fff929b 3fff9a6c
[09:04:57]3ffffc50: 00000010 0000001e 3fff927c 4010185c
[09:04:57]3ffffc60: 00000010 3fff9a94 3fff9cac 3fff9a4c
[09:04:57]3ffffc70: 00000014 00000014 3ffffccc 40245959
[09:04:57]3ffffc80: 00000014 00000020 3fff901c 40223ab4
[09:04:57]3ffffc90: 3ffffd3c 3ffffd10 3fff6044 40220dc6
[09:04:57]3ffffca0: 3fff93f4 3fff93fb 3fff93fb 3fff903c
[09:04:57]3ffffcb0: 00000010 0000001e 3ffffd10 4020fef4
[09:04:57]3ffffcc0: 00000000 3fff9064 3fff927c 3fff901c
[09:04:57]3ffffcd0: 00000014 00000014 3fff8b2c 40233d9f
[09:04:57]3ffffce0: 00000000 3fff8b0c 3ffffd3c 40245959
[09:04:57]3ffffcf0: 00000014 4020fec3 00000020 00000001
[09:04:57]3ffffd00: 3ffffd70 40220d68 3fff6044 40225458
[09:04:57]3ffffd10: 3fff8db4 3fff8dbb 3fff8dbb 3fff8dc4
[09:04:57]3ffffd20: 00000010 0000001e 3fff8d7c 4010185c
[09:04:57]3ffffd30: 00000010 3fff8dec 3fff9004 3fff8d94
[09:04:57]3ffffd40: 00000014 00000014 3ffffd9c 40245959
[09:04:57]3ffffd50: 00000014 00000020 3fff8b0c 00000001
[09:04:57]3ffffd60: 3ffffea0 3ffffdf0 3fff420c 40225536
[09:04:57]3ffffd70: 3fff8b2c 3fff8b33 3fff8b33 3fff8b3c
[09:04:57]3ffffd80: 00000010 0000001e 00000010 40233d9f
[09:04:57]3ffffd90: 3fff8674 3fff8b64 3fff8d7c 3fff8b0c
[09:04:57]3ffffda0: 00000014 00000014 3fff8af4 4010185c
[09:04:57]3ffffdb0: 00000010 00000bcc 3fff861c 40233d9f
[09:04:57]3ffffdc0: 402394c0 3fff85fc 3ffffea0 40245959
[09:04:57]3ffffdd0: 00000014 00000020 3fff746c 3fff41e8
[09:04:57]3ffffde0: 00000001 40225474 3fff420c 4020ff8b
[09:04:57]3ffffdf0: 3fff88a4 3fff88ab 3fff88ab 3fff88b4
[09:04:57]3ffffe00: 00000010 0000001e 3ffffe10 00000000 <
[09:04:57]3ffffe10: 3ffffe00 3fff88dc 3fff8af4 3fff861c
[09:04:57]3ffffe20: 3fff8623 3fff8623 3fff862c 00000010
[09:04:57]3ffffe30: 0000001e 00676b70 3fff746c 3fff748e
[09:04:57]3ffffe40: 3fff8654 3fff886c 3fff74ac 3fff74b3
[09:04:57]3ffffe50: 3fff74b3 3fff82e4 00000010 0000001e
[09:04:57]3ffffe60: 3fffff28 4021491d 00000020 3fff7a2c
[09:04:57]3ffffe70: 3fff8444 3fff7484 3fff748b 3fff748b
[09:04:57]3ffffe80: 3fff79b4 00000010 0000001e 4021496d
[09:04:57]3ffffe90: 3fff19f4 00000010 3fff802c 3fff79f4
[09:04:57]3ffffea0: 3fff8884 00000014 00000014 3fff7dda
[09:04:57]3ffffeb0: 3fff7de4 00000000 3fff85fc 00000014
[09:04:57]3ffffec0: 00000014 3ffffed0 00000010 40214bbe
[09:04:57]3ffffed0: 3fff7a0c 00000014 00000014 402130c8
[09:04:57]3ffffee0: 00000080 3fffbff3 3fff7994 00000014
[09:04:57]3ffffef0: 00000014 3fffff40 3fffff28 402131a0
[09:04:57]3fffff00: 00000001 3fff41e4 3fff416c 40213386
[09:04:57]3fffff10: 3fffdad0 3fff04a8 3fff04a8 4021dd17
[09:04:57]3fffff20: 4026f026 3fff3944 3fffbfec 3fffbff3
[09:04:57]3fffff30: 3fffbff3 3fffbebc 3fffbec9 3fffbed3
[09:04:57]3fffff40: 3fff7dec 0002b7ee 07ef9db2 0324ab39
[09:04:57]3fffff50: 3fffbec9 3fffbec2 3fff04a8 3fff416c
[09:04:57]3fffff60: 3fff77b0 3fff416c 3fffff80 3fff416c
[09:04:57]3fffff70: 3fff77b0 00000002 3fff04a8 4021adaa
[09:04:57]3fffff80: 0002b7ee 3fff416c 3fff6ba4 3fff0cf0
[09:04:57]3fffff90: 3fff77e0 3fff42dc 3fff04dc 3fff0cf0
[09:04:57]3fffffa0: 3fffdad0 00000000 3fff0cc4 3fff0cf0
[09:04:57]3fffffb0: 3fffdad0 00000000 3fff0cc4 40234368
[09:04:57]3fffffc0: feefeffe feefeffe 3fffdab0 40100561
[09:04:57]<<<stack<<<
[09:04:57]
[09:04:57]last failed alloc call: 40245959(202)
[09:04:57]
--------------- CUT HERE FOR EXCEPTION DECODER ---------------
Even more info, stack trace from the HA server with local ESP8266 tag reader connected via USB.
[09:32:47]--------------- CUT HERE FOR EXCEPTION DECODER ---------------
[09:32:47]
[09:32:47]Unhandled C++ exception: OOM
[09:32:47]
[09:32:47]>>>stack>>>
WARNING Found stack trace! Trying to decode it
[09:32:47]
[09:32:47]ctx: cont
[09:32:47]sp: 3ffff650 end: 3fffffd0 offset: 0010
[09:32:47]3ffff660: 000000c9 00000000 00000050 4022c394
WARNING Decoded 0x4022c394: operator new(unsigned int)
[09:32:47]3ffff670: 3fffb0a4 3fffae34 3ffff6e0 4020f885
WARNING Decoded 0x4020f885: esphome::nfc::NdefRecord::clone() const
[09:32:47]3ffff680: 3fffacd4 3fffaf3c 3ffff6e0 4020f560
WARNING Decoded 0x4020f560: esphome::nfc::NfcTag::NfcTag(esphome::nfc::NfcTag const&)
[09:32:47]3ffff690: 00000000 4023aed1 00000020 4010178c
WARNING Decoded 0x4023aed1: std::cxx11::basic_string<char, std::char_traits
WARNING Decoded 0x4022c37f: operator new(unsigned int)
[09:32:47]3ffff6b0: 00000000 3fffac5c 3ffff70c 4023aed1
WARNING Decoded 0x4023aed1: std::__cxx11::basic_string<char, std::char_traits
WARNING Decoded 0x4020f303: std::
WARNING Decoded 0x40224153: esphome::IfAction<std::
[09:32:47]3ffff6f0: 00000010 0000001e 00000010 4022c37f
WARNING Decoded 0x4022c37f: operator new(unsigned int)
[09:32:47]3ffff700: 3fffaa4c 00000000 00000000 3fffaee4
[09:32:47]3ffff710: 00000014 00000014 3fffaecc 4010178c
WARNING Decoded 0x4010178c: malloc
[09:32:47]3ffff720: 00000010 4020f303 3fffa9f4 4022c37f
WARNING Decoded 0x4020f303: std::shared_ptr<esphome::nfc::NdefRecord, (__gnu_cxx::_Lock_policy)0>::shared_ptr<esphome::nfc::NdefRecord, std::default_delete
WARNING Decoded 0x40230aac: esphome::switch
WARNING Decoded 0x4020f59b: esphome::nfc::NfcTag::NfcTag(esphome::nfc::NfcTag const&)
WARNING Decoded 0x4021f248: esphome::LambdaAction<std::cxx11::basic_string<char, std::char_traits
WARNING Decoded 0x4022411c: esphome::IfAction<std::__cxx11::basic_string<char, std::char_traits
[09:32:47]3ffff770: 00000010 0000001e 3fffac44 4010178c
WARNING Decoded 0x4010178c: malloc
[09:32:47]3ffff780: 00000010 3fffacb4 3fffaecc 3fffac5c
[09:32:47]3ffff790: 00000014 00000014 3ffff818 4023aed1
WARNING Decoded 0x4023aed1: std::
WARNING Decoded 0x4021f248: esphome::LambdaAction<std::
WARNING Decoded 0x4021fa16: std::_Function_handler<void (std::
[09:32:47]3ffff7d0: 00000010 0000001e 00000010 3fffa2d4
[09:32:47]3ffff7e0: 3fffa2d4 3fffaa2c 3fffac44 3fffa76c
[09:32:47]3ffff7f0: 3fffa773 3fffa773 3fffa77c 00000010
[09:32:47]3ffff800: 0000001e 3fffa53c 3ffff860 4020f5b7
WARNING Decoded 0x4020f5b7: esphome::nfc::NfcTag::NfcTag(esphome::nfc::NfcTag const&)
[09:32:47]3ffff810: 3fffa7a4 3fffa9bc 3fffa9d4 00000014
[09:32:47]3ffff820: 00000014 4020f303 3fffa27c 4022c37f
WARNING Decoded 0x4020f303: std::__shared_ptr<esphome::nfc::NdefRecord, (
WARNING Decoded 0x4023aed1: std::
WARNING Decoded 0x4020f59b: esphome::nfc::NfcTag::NfcTag(esphome::nfc::NfcTag const&)
WARNING Decoded 0x4021f248: esphome::LambdaAction<std::cxx11::basic_string<char, std::char_traits
WARNING Decoded 0x4021f27c: esphome::LambdaAction<std::cxx11::basic_string<char, std::char_traits
[09:32:48]3ffff870: 00000010 0000001e 3fffa4cc 4010178c
WARNING Decoded 0x4010178c: malloc
[09:32:48]3ffff880: 00000010 3fffa53c 3fffa754 3ffff894
[09:32:48]3ffff890: 00000000 00000000 3ffff8ec 4023aed1
WARNING Decoded 0x4023aed1: std::cxx11::basic_string<char, std::char_traits
WARNING Decoded 0x4021f248: esphome::LambdaAction<std::cxx11::basic_string<char, std::char_traits
WARNING Decoded 0x4021fae1: esphome::Action<std::__cxx11::basic_string<char, std::char_traits
[09:32:48]3ffff8d0: 00000010 0000001e 3ffff930 4020f5b7
WARNING Decoded 0x4020f5b7: esphome::nfc::NfcTag::NfcTag(esphome::nfc::NfcTag const&)
[09:32:48]3ffff8e0: 00000000 3fffa2b4 3fffa4cc 3fffa25c
[09:32:48]3ffff8f0: 00000014 00000014 3fff9d6c 4022c37f
WARNING Decoded 0x4022c37f: operator new(unsigned int)
[09:32:48]3ffff900: 00000000 3fff9d4c 3ffff95c 4023aed1
WARNING Decoded 0x4023aed1: std::
WARNING Decoded 0x4020f59b: esphome::nfc::NfcTag::NfcTag(esphome::nfc::NfcTag const&)
WARNING Decoded 0x4021f248: esphome::LambdaAction<std::
WARNING Decoded 0x4021faa8: esphome::Action<std::
[09:32:48]3ffff940: 00000010 0000001e 3fff9fbc 4010178c
WARNING Decoded 0x4010178c: malloc
[09:32:48]3ffff950: 00000010 3fffa02c 3fffa244 3fff9fd4
[09:32:48]3ffff960: 00000014 00000014 3ffff9e8 4023aed1
WARNING Decoded 0x4023aed1: std::
WARNING Decoded 0x4021f248: esphome::LambdaAction<std::cxx11::basic_string<char, std::char_traits
WARNING Decoded 0x4021fa7e: std::_Function_handler<void (std::cxx11::basic_string<char, std::char_traits
[09:32:48]3ffff9a0: 00000010 0000001e 00000010 3fff8974
[09:32:48]3ffff9b0: 3fff8974 3fff9da4 3fff9fbc 3fff9ae4
[09:32:48]3ffff9c0: 3fff9aeb 3fff9aeb 3fff9af4 00000010
[09:32:48]3ffff9d0: 0000001e 3fff8bdc 3ffffa30 4020f5b7
WARNING Decoded 0x4020f5b7: esphome::nfc::NfcTag::NfcTag(esphome::nfc::NfcTag const&)
[09:32:48]3ffff9e0: 3fff9b1c 3fff9d34 3fff9d4c 00000014
[09:32:48]3ffff9f0: 00000014 4020f303 3fff891c 4022c37f
WARNING Decoded 0x4020f303: std::shared_ptr<esphome::nfc::NdefRecord, (__gnu_cxx::_Lock_policy)0>::shared_ptr<esphome::nfc::NdefRecord, std::default_delete
WARNING Decoded 0x4023aed1: std::__cxx11::basic_string<char, std::char_traits
WARNING Decoded 0x4020f59b: esphome::nfc::NfcTag::NfcTag(esphome::nfc::NfcTag const&)
WARNING Decoded 0x4021f248: esphome::LambdaAction<std::
WARNING Decoded 0x4021f27c: esphome::LambdaAction<std::
[09:32:48]3ffffa40: 00000010 0000001e 3fff8b6c 4010178c
WARNING Decoded 0x4010178c: malloc
[09:32:48]3ffffa50: 00000010 3fff8bdc 3fff9acc 3ffffa64
[09:32:48]3ffffa60: 00000000 00000000 3ffffabc 4023aed1
WARNING Decoded 0x4023aed1: std::
WARNING Decoded 0x4021f248: esphome::LambdaAction<std::cxx11::basic_string<char, std::char_traits
WARNING Decoded 0x4021fae1: esphome::Action<std::cxx11::basic_string<char, std::char_traits
[09:32:48]3ffffaa0: 00000010 0000001e 3ffffb00 4020f5b7
WARNING Decoded 0x4020f5b7: esphome::nfc::NfcTag::NfcTag(esphome::nfc::NfcTag const&)
[09:32:48]3ffffab0: 00000000 3fff8954 3fff8b6c 3fff88fc
[09:32:48]3ffffac0: 00000014 00000014 3fff82c4 4022c37f
WARNING Decoded 0x4022c37f: operator new(unsigned int)
[09:32:48]3ffffad0: 00000000 3fff82a4 3ffffb2c 4023aed1
WARNING Decoded 0x4023aed1: std::
WARNING Decoded 0x4020f59b: esphome::nfc::NfcTag::NfcTag(esphome::nfc::NfcTag const&)
WARNING Decoded 0x4022221c: esphome::api::HomeAssistantServiceCallAction<std::cxx11::basic_string<char, std::char_traits
WARNING Decoded 0x4021faa8: esphome::Action<std::__cxx11::basic_string<char, std::char_traits
[09:32:49]3ffffb10: 00000010 0000001e 3fff90e4 4010178c
WARNING Decoded 0x4010178c: malloc
[09:32:49]3ffffb20: 00000010 3fff9154 3fff88e4 3fff90fc
[09:32:49]3ffffb30: 00000014 00000014 3ffffb8c 4023aed1
WARNING Decoded 0x4023aed1: std::cxx11::basic_string<char, std::char_traits
WARNING Decoded 0x4022221c: esphome::api::HomeAssistantServiceCallAction<std::cxx11::basic_string<char, std::char_traits
WARNING Decoded 0x4021fb06: esphome::Action<std::__cxx11::basic_string<char, std::char_traits
[09:32:49]3ffffb70: 00000010 0000001e 3ffffbd0 4020f5b7
WARNING Decoded 0x4020f5b7: esphome::nfc::NfcTag::NfcTag(esphome::nfc::NfcTag const&)
[09:32:49]3ffffb80: 00000000 3fff82fc 3fff90e4 3fff82a4
[09:32:49]3ffffb90: 00000014 00000014 3fff835c 4022c37f
WARNING Decoded 0x4022c37f: operator new(unsigned int)
[09:32:49]3ffffba0: 00000000 3fff833c 3ffffbfc 4023aed1
WARNING Decoded 0x4023aed1: std::
WARNING Decoded 0x4020f59b: esphome::nfc::NfcTag::NfcTag(esphome::nfc::NfcTag const&)
[09:32:49]3ffffbc0: 3ffffc30 4021faa8 3fff5b3c 40224100
WARNING Decoded 0x4021faa8: esphome::Action<std::
[09:32:49]3ffffbe0: 00000010 0000001e 3fff85ac 4010178c
WARNING Decoded 0x4010178c: malloc
[09:32:49]3ffffbf0: 00000010 3fff861c 3fff8834 3fff85c4
[09:32:49]3ffffc00: 00000014 00000014 3ffffc5c 4023aed1
WARNING Decoded 0x4023aed1: std::
[09:32:49]3ffffc20: 3ffffcdc 3ffffcb0 3fff5b14 402241de
WARNING Decoded 0x402241de: esphome::IfAction<std::cxx11::basic_string<char, std::char_traits
[09:32:49]3ffffc40: 00000010 0000001e 00000010 4022c37f
WARNING Decoded 0x4022c37f: operator new(unsigned int)
[09:32:49]3ffffc50: 3fffb81c 3fff8394 3fff85ac 3fff833c
[09:32:49]3ffffc60: 00000014 00000014 3fffbc9c 4010178c
WARNING Decoded 0x4010178c: malloc
[09:32:49]3ffffc70: 00000010 4020f303 3fffb7c4 4022c37f
WARNING Decoded 0x4020f303: std::
WARNING Decoded 0x4021f298: esphome::LambdaCondition<std::
WARNING Decoded 0x4020f59b: esphome::nfc::NfcTag::NfcTag(esphome::nfc::NfcTag const&)
[09:32:49]3ffffca0: 3ffffd10 4022411c 3fff5b14 40224100
WARNING Decoded 0x4022411c: esphome::IfAction<std::cxx11::basic_string<char, std::char_traits
[09:32:49]3ffffcc0: 00000010 0000001e 3fffba14 4010178c
WARNING Decoded 0x4010178c: malloc
[09:32:49]3ffffcd0: 00000010 3fffba84 3fffbc9c 3fffba2c
[09:32:49]3ffffce0: 00000014 00000014 3ffffd3c 4023aed1
WARNING Decoded 0x4023aed1: std::
[09:32:49]3ffffd00: 3ffffdbc 3ffffd90 3fff59ec 402241de
WARNING Decoded 0x402241de: esphome::IfAction<std::__cxx11::basic_string<char, std::char_traits
[09:32:49]3ffffd20: 00000010 0000001e 00000010 4022c37f
WARNING Decoded 0x4022c37f: operator new(unsigned int)
[09:32:49]3ffffd30: 3fffbeac 3fffb7fc 3fffba14 3fffb7a4
[09:32:49]3ffffd40: 00000014 00000014 3fffb78c 4010178c
WARNING Decoded 0x4010178c: malloc
[09:32:49]3ffffd50: 00000010 4020f303 3fffbe54 4022c37f
WARNING Decoded 0x4020f303: std::shared_ptr<esphome::nfc::NdefRecord, (__gnu_cxx::_Lock_policy)0>::shared_ptr<esphome::nfc::NdefRecord, std::default_delete
WARNING Decoded 0x4021f298: esphome::LambdaCondition<std::cxx11::basic_string<char, std::char_traits
WARNING Decoded 0x4020f59b: esphome::nfc::NfcTag::NfcTag(esphome::nfc::NfcTag const&)
WARNING Decoded 0x4021f248: esphome::LambdaAction<std::cxx11::basic_string<char, std::char_traits
WARNING Decoded 0x4022411c: esphome::IfAction<std::__cxx11::basic_string<char, std::char_traits
[09:32:50]3ffffda0: 00000010 0000001e 3fffb504 4010178c
WARNING Decoded 0x4010178c: malloc
[09:32:50]3ffffdb0: 00000010 3fffb574 3fffb78c 3fffb51c
[09:32:50]3ffffdc0: 00000014 00000014 3ffffe1c 4023aed1
WARNING Decoded 0x4023aed1: std::
WARNING Decoded 0x4021f248: esphome::LambdaAction<std::
WARNING Decoded 0x4021fb06: esphome::Action<std::
[09:32:50]3ffffe00: 00000010 0000001e 3ffffe60 4020f5b7
WARNING Decoded 0x4020f5b7: esphome::nfc::NfcTag::NfcTag(esphome::nfc::NfcTag const&)
[09:32:50]3ffffe10: 00000000 3fffbe8c 3fffb504 3fffbe34
[09:32:50]3ffffe20: 00000014 00000014 3fff754c 4022c37f
WARNING Decoded 0x4022c37f: operator new(unsigned int)
[09:32:50]3ffffe30: 00000000 3fff801c 3ffffe8c 4023aed1
WARNING Decoded 0x4023aed1: std::
WARNING Decoded 0x4020f59b: esphome::nfc::NfcTag::NfcTag(esphome::nfc::NfcTag const&)
[09:32:50]3ffffe50: 3ffffec0 4021faa8 3fff59b4 4021f9ba
WARNING Decoded 0x4021faa8: esphome::Action<std::cxx11::basic_string<char, std::char_traits
[09:32:50]3ffffe70: 00000010 0000001e 3fff7994 4010178c
WARNING Decoded 0x4010178c: malloc
[09:32:50]3ffffe80: 00000010 3fff79f4 3fffb43c 3fff79ac
[09:32:50]3ffffe90: 00000014 00000014 3ffffeec 4023aed1
WARNING Decoded 0x4023aed1: std::
[09:32:50]3ffffeb0: 3fffb11c 3fff58ec 4021f980 4021f22c
WARNING Decoded 0x4021f980: esphome::Action<std::cxx11::basic_string<char, std::char_traits
[09:32:50]3ffffed0: 00000010 0000001e 3fff92d4 4020acbd
WARNING Decoded 0x4020acbd: esphome::light::LightTransformer::is_finished()
[09:32:50]3ffffee0: 00000010 3fff6c84 3fff7994 3fff801c
[09:32:50]3ffffef0: 00000014 00000014 3fff0530 3fffb3d4
[09:32:50]3fffff00: 00000000 3fff58f8 3fffff30 4021b434
WARNING Decoded 0x4021b434: esphome::WarnIfComponentBlockingGuard::WarnIfComponentBlockingGuard(esphome::Component*)
[09:32:50]3fffff10: 00000000 3ffefd30 3fff8214 4021cac0
WARNING Decoded 0x4021cac0: esphome::Scheduler::call()
[09:32:50]3fffff20: 0457e39d 3fff0530 00000008 00000008
[09:32:50]3fffff30: 0457e3a5 3fff58f8 0457e39d 4022c6e9
WARNING Decoded 0x4022c6e9: esp_try_delay(unsigned int, unsigned int, unsigned int)
[09:32:50]3fffff40: 00000010 003f5028 7c6a7efa 4934aed0
[09:32:50]3fffff50: 0457e3a5 3fff8214 3ffefd30 3fff356c
[09:32:50]3fffff60: 0457e39d 0457e39d 00000008 3fff0558
[09:32:50]3fffff70: 3fffdad0 00000000 3ffefd30 40219ac9
WARNING Decoded 0x40219ac9: esphome::Application::loop()
[09:32:50]3fffff80: 00000000 00000008 3fff62bc 3fff0558
[09:32:50]3fffff90: 3fff7894 3fff3abc 3ffefd64 3fff0558
[09:32:50]3fffffa0: 3fffdad0 00000000 3fff052c 3fff0558
[09:32:50]3fffffb0: 3fffdad0 00000000 3fff052c 4022c794
WARNING Decoded 0x4022c794: loop_wrapper() at core_esp8266_main.cpp
[09:32:50]3fffffc0: feefeffe feefeffe 3fffdab0 401004c9
WARNING Decoded 0x401004c9: cont_wrapper
[09:32:50]<<<stack<<<
[09:32:50]
[09:32:50]last failed alloc call: 4020F885(80)
WARNING Memory allocation of 80 bytes failed at 4020F885
WARNING Decoded 0x4020f885: esphome::nfc::NdefRecord::clone() const
[09:32:50]
[09:32:50]--------------- CUT HERE FOR EXCEPTION DECODER ---------------
Not sure if this codebase is being maintained, but I got it to work by stripping out blocks of code that were not needed.
Comment out the "captive_portal:" line.
Delete the entire section for writing tags
Delete the 3 lines referencing size_t for applemusic, spotify, and sonos:
Delete the elseif sections for applemusic, spotify, and sonos
-``
else if (type == "U" and applemusic != std::string::npos ) {
ESP_LOGD("tagreader", "Found Apple Music tag NDEF");
id(source)="amusic";
id(url)=payload;
}
else if (type == "U" and spotify != std::string::npos ) {
ESP_LOGD("tagreader", "Found Spotify tag NDEF");
id(source)="spotify";
id(url)=payload;
}
else if (type == "U" and sonos != std::string::npos ) {
ESP_LOGD("tagreader", "Found Sonos app tag NDEF");
id(source)="sonos";
id(url)=payload;
}`
(Not sure if this matters) Change the two references from 500ms delay to 200ms
@gdst4rp does your workaround still work? Is it stable? I am tempted to just install an esphome version from last year as this repository does not seem to be maintained.
Still working for me so far. Thankfully it's a relatively easy fix, just save your original yaml file in case you want to restore. I plugged the device directly into the Pi running HA to perform the re-install of the trimmed yaml.
@gdst4rp do you mind sharing your full YAML file here?
Here you go. Change up the substitutions section to update the device name to what you want. I also use the separate !secrets files for SSID and SSID Password values.
captive portal is still required for first time users, so i cannot comment it out
i need to test it further. but i have to admit i am not yet sure bout removing functionalities
I wonder why it suddenly start rebooting
From what I can tell, it's a memory overflow on the 8266 chips. Are the crash logs above helpful at all? I don't know how to parse them so I just tried to trim some functionality, which seemed to work.
If it's helpful, I wonder if this is related to one of the other issues I ran into where tags over a certain byte length would cause the unit to reboot as well. This was something that popped up somewhat recently, but just got worse. Perhaps as the ESPHome codebase grows, it takes more of the available memory on the limited 8266?
Here's the earlier issue I ran into with this tag reader. https://github.com/esphome/issues/issues/5208
I wonder if i should write a light version for people facing issues.. MAybe one without the jukebox component etc. I'va had some more people complaining that indeed teh reader keeps reseting after reading a tag. And they are getting worse.
Maybe people will be willing to have less functionality for a working device.
For me personally, all I use it for is to scan HA tags. I have a whole flow in NodeRed that parses the tags, calls the right speakers to play from and plays from the right Spotify source. I don't use the tagreader to actually write new tags, or call directly to Apple, YouTube, or Spotify, which is why I attempted to cut out all the extra code, but I'm sure I missed some things.
I've already had to shorten the tag payload per that other issue since it was crashing if the payload was too big.
I wonder if i should write a light version for people facing issues.. MAybe one without the jukebox component etc. I'va had some more people complaining that indeed teh reader keeps reseting after reading a tag. And they are getting worse. Maybe people will be willing to have less functionality for a working device.
@adonno Yes, please! I just want to be able to scan tags. Absolutely nothing else. I haven't been able to use the device with the current config.
I wonder if i should write a light version for people facing issues.. MAybe one without the jukebox component etc. I'va had some more people complaining that indeed teh reader keeps reseting after reading a tag. And they are getting worse. Maybe people will be willing to have less functionality for a working device.
@adonno Yes, please! I just want to be able to scan tags. Absolutely nothing else. I haven't been able to use the device with the current config.
Same for me. Same behavior, can't get the tag reader working. Just need it to scan tags.
With the update to 2024.5.0 simply scanning a tag that worked just fine in earlier versions, causes the the NFC tag reader to reboot.
Initial sound is played, LED light turns on, but nothing happens and Home Assistant doesn't register the tag scan event. The device then reboots and plays the bootup sound sequence.
[10:11:34][C][improv_serial:032]: Improv Serial: [10:11:34][C][wifi_info:011]: WifiInfo SSID 'NFC Master Bathroom Connected SSID'
[10:11:34][C][wifi_info:009]: WifiInfo IPAddress 'NFC Master Bathroom IP Address'
[TAG SCANNED HERE] WARNING nfc-master-bathroom @ 192.168.XX.XX: Connection error occurred: [Errno 104] Connection reset by peer INFO Processing unexpected disconnect from ESPHome API for nfc-master-bathroom @ 192.168.XX.XX WARNING Disconnected from API INFO Successfully connected to nfc-master-bathroom @ 192.168.XX.XX in 0.006s INFO Successful handshake with nfc-master-bathroom @ 192.168.XX.XX in 0.027s