<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>MATTER exampel - goes into deadlock when starting BLE advertising</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/106431/matter-exampel---goes-into-deadlock-when-starting-ble-advertising</link><description>We have been running the MATTER Lock example without any problems so far. 
 But suddenly the when starting advertising the device enters deadlock. 
 We have debugged the error and found that enters an eternal loop in DNSSD.cpp when running: 
 
 VerifyOrDie</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 Dec 2023 19:04:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/106431/matter-exampel---goes-into-deadlock-when-starting-ble-advertising" /><item><title>RE: MATTER exampel - goes into deadlock when starting BLE advertising</title><link>https://devzone.nordicsemi.com/thread/459771?ContentTypeID=1</link><pubDate>Mon, 11 Dec 2023 19:04:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a943ab2f-27e2-4b19-8d81-0ec87fb76e20</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Good to know you found the issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MATTER exampel - goes into deadlock when starting BLE advertising</title><link>https://devzone.nordicsemi.com/thread/459758?ContentTypeID=1</link><pubDate>Mon, 11 Dec 2023 17:07:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46eb84c0-d429-4638-b0de-a4694935ece5</guid><dc:creator>Jenzo</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;Thank you for your feedback and help.&lt;/p&gt;
&lt;p&gt;It inspired me to look at the AppTask.cpp where I discovered that:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;ReturnErrorOnFailure&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;chip::Server::GetInstance&lt;/span&gt;&lt;span&gt;().&lt;/span&gt;&lt;span&gt;Init&lt;/span&gt;&lt;span&gt;(initParams));&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;was deleted &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;So my bad. Apologize for the inconvenience.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Regards&lt;br /&gt;Jens&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MATTER exampel - goes into deadlock when starting BLE advertising</title><link>https://devzone.nordicsemi.com/thread/459720?ContentTypeID=1</link><pubDate>Mon, 11 Dec 2023 14:07:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51d7a913-bfb8-4fb5-8011-74eafced5dbc</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The team has looked at the code and can see that the only place where the &lt;code&gt;mFabricTable&lt;/code&gt; member of the &amp;nbsp;&lt;code&gt;DnssdServer&lt;/code&gt; is set is here:&lt;/p&gt;
&lt;p&gt;&lt;a title="https://github.com/nrfconnect/sdk-connectedhomeip/blob/3b8ba59f1f43d84754de4facfac23f46f8d7cc71/src/app/server/server.cpp#l231" href="https://github.com/nrfconnect/sdk-connectedhomeip/blob/3b8ba59f1f43d84754de4facfac23f46f8d7cc71/src/app/server/Server.cpp#L231" rel="noopener noreferrer" target="_blank"&gt;https://github.com/nrfconnect/sdk-connectedhomeip/blob/3b8ba59f1f43d84754de4facfac23f46f8d7cc71/src/app/server/Server.cpp#L231&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In turn, the &lt;code&gt;mFabrics&lt;/code&gt; from the &lt;code&gt;Server&lt;/code&gt;class should exist since the creation of the &lt;code&gt;Server&lt;/code&gt; instance itself (it cannot be nullptr, whereas the &lt;code&gt;mFabricTable&lt;/code&gt;can be nullptr when not explicitly set).&lt;/p&gt;
&lt;p&gt;So I&amp;#39;d expect that some of the &lt;code&gt;SuccessOrExit&lt;/code&gt; checks before the &lt;code&gt;app::DnssdServer::Instance().SetFabricTable(&amp;amp;mFabrics);&lt;/code&gt; call was hit. Can you check that?&lt;/p&gt;
&lt;p&gt;Do you use our native NCS code to start advertising? What is the reproduction rate? 100%? You said that the Lock sample was running ok, do you mean before starting the advertising after reboot?&lt;/p&gt;
&lt;p&gt;Regarding the error log, I suggest to debug the ChipDnssdInit() from platform/OpenThread/DnssdImpl.cpp.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MATTER exampel - goes into deadlock when starting BLE advertising</title><link>https://devzone.nordicsemi.com/thread/459573?ContentTypeID=1</link><pubDate>Fri, 08 Dec 2023 22:00:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:751e443d-e033-4c1e-a59c-0e3a19a49e02</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am checking with the team. Please give us time. Appreciate your understanding.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MATTER exampel - goes into deadlock when starting BLE advertising</title><link>https://devzone.nordicsemi.com/thread/459502?ContentTypeID=1</link><pubDate>Fri, 08 Dec 2023 10:40:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6d3357a-7181-4504-aaa4-3b2e48c3df9b</guid><dc:creator>Jenzo</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;did you have time to discuss this issue with your colleagues?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Jens&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MATTER exampel - goes into deadlock when starting BLE advertising</title><link>https://devzone.nordicsemi.com/thread/459465?ContentTypeID=1</link><pubDate>Fri, 08 Dec 2023 06:41:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bad1ed2d-c111-42ec-b06d-8a92705e16e8</guid><dc:creator>Jenzo</dc:creator><description>&lt;p&gt;What does&amp;#39;&lt;span&gt;E: 13918 [DIS]Failed to remove advertised services: 3&amp;#39; mean? I guess this is the reason for it to break.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Why doesn&amp;#39;t it succeed removing advertising services? And why does the compiler read the &amp;#39;mFabricTable&amp;#39; as null when in fact it is not null?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Perhaps the error is caused by a setup of VS code?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MATTER exampel - goes into deadlock when starting BLE advertising</title><link>https://devzone.nordicsemi.com/thread/459392?ContentTypeID=1</link><pubDate>Thu, 07 Dec 2023 14:30:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6801faf-2d8c-4303-8234-c0dbe52b34d6</guid><dc:creator>Jenzo</dc:creator><description>&lt;p&gt;We surely tried a lot of stuff - Recover board, erase board, close VS Code - tried with another board...&lt;/p&gt;
&lt;p&gt;Yes we did modify the example. Lots of smaller details, but nothing in relation to commissioning, advertsing, etc. We did try to trace back our modifications to see if recent amendments was the reason for the failure, but no resolution to the failure.&lt;/p&gt;
&lt;p&gt;Perhaps if you could tell us what could cause the failure? Then we would have a better chance to find the error.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Jenzo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MATTER exampel - goes into deadlock when starting BLE advertising</title><link>https://devzone.nordicsemi.com/thread/459389?ContentTypeID=1</link><pubDate>Thu, 07 Dec 2023 14:26:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f0762e7-be79-48db-bcc4-b2c118d3b8a4</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Did you modify the&amp;nbsp;&lt;span&gt;MATTER Lock example? If so, what is that?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Did you erase the kit before programming?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MATTER exampel - goes into deadlock when starting BLE advertising</title><link>https://devzone.nordicsemi.com/thread/459377?ContentTypeID=1</link><pubDate>Thu, 07 Dec 2023 13:55:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ae39985-be95-4a75-b056-5092551e25b4</guid><dc:creator>Jenzo</dc:creator><description>&lt;p&gt;I am using SDK v2.5.0.&lt;/p&gt;
&lt;p&gt;Here is a bit of output from the device when trying to start advertising:&lt;/p&gt;
&lt;p&gt;I: Init CHIP stack&lt;br /&gt;I: 215 [DL]BLE address: F4:A9:41:B2:A8:2F&lt;br /&gt;I: 224 [DL]OpenThread SED interval is 1000ms&lt;br /&gt;I: 229 [DL]OpenThread started: OK&lt;br /&gt;I: 232 [DL]Setting OpenThread device type to SLEEPY END DEVICE&lt;br /&gt;I: 239 [SVR]Subscription persistence not supported&lt;br /&gt;I: 244 [DL]Device Configuration:&lt;br /&gt;I: 247 [DL] Serial Number: 11223344556677889900&lt;br /&gt;I: 251 [DL] Vendor Id: 65521 (0xFFF1)&lt;br /&gt;I: 255 [DL] Product Id: 32774 (0x8006)&lt;br /&gt;I: 258 [DL] Product Name: not-specified&lt;br /&gt;I: 262 [DL] Hardware Version: 0&lt;br /&gt;I: 265 [DL] Setup Pin Code (0 for UNKNOWN/ERROR): 20202021&lt;br /&gt;I: 271 [DL] Setup Discriminator (0xFFFF for UNKNOWN/ERROR): 3840 (0xF00)&lt;br /&gt;I: 277 [DL] Manufacturing Date: (not set)&lt;br /&gt;I: 281 [DL] Device Type: 65535 (0xFFFF)&lt;br /&gt;I: 285 [SVR]SetupQRCode: [MT:8IXS142C00KA0648G00]&lt;br /&gt;I: 290 [SVR]Copy/paste the below URL in a browser to see the QR Code:&lt;br /&gt;I: 296 [SVR]&lt;a href="https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3A8IXS142C00KA0648G00"&gt;project-chip.github.io/.../qrcode.html&lt;/a&gt;&lt;br /&gt;I: 305 [SVR]Manual pairing code: [34970112332]&lt;br /&gt;Flash read failed&lt;br /&gt;I: 320 [DL]CHIP task running&lt;br /&gt;I: 13903 [DL]OpenThread SED interval is 200ms&lt;br /&gt;I: 13907 [DIS]Updating services using commissioning mode 0&lt;br /&gt;D: 13912 [DL]Using Thread extended MAC for hostname.&lt;br /&gt;E: 13918 [DIS]Failed to remove advertised services: 3&lt;br /&gt;abort()&lt;br /&gt;E: r0/a1: 0x00000004 r1/a2: 0x2000d078 r2/a3: 0x2000d078&lt;br /&gt;E: r3/a4: 0x00000000 r12/ip: 0x00000000 r14/lr: 0x00032f45&lt;br /&gt;E: xpsr: 0x61000000&lt;br /&gt;E: s[ 0]: 0x00000000 s[ 1]: 0x0002d78d s[ 2]: 0x00000000 s[ 3]: 0x00000001&lt;br /&gt;E: s[ 4]: 0x000cf2dc s[ 5]: 0x00000000 s[ 6]: 0x2001ae2c s[ 7]: 0x20015314&lt;br /&gt;E: s[ 8]: 0x000b6e37 s[ 9]: 0x00093bf5 s[10]: 0x000b6e37 s[11]: 0x200247f4&lt;br /&gt;E: s[12]: 0x000e1490 s[13]: 0x00032f45 s[14]: 0x000d80cc s[15]: 0x2000d078&lt;br /&gt;E: fpscr: 0x2000d078&lt;br /&gt;E: Faulting instruction address (r15/pc): 0x00032f50&lt;br /&gt;E: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0&lt;br /&gt;E: Current thread: 0x2000d078 (main)&lt;br /&gt;E: Halting system&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MATTER exampel - goes into deadlock when starting BLE advertising</title><link>https://devzone.nordicsemi.com/thread/459371?ContentTypeID=1</link><pubDate>Thu, 07 Dec 2023 13:37:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe6ab05d-95a7-4f88-967b-52e5d9c13bb5</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which NCS version are you using?&lt;/p&gt;
&lt;p&gt;Do you get any errors from the log? Could you provide the device log?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MATTER exampel - goes into deadlock when starting BLE advertising</title><link>https://devzone.nordicsemi.com/thread/459363?ContentTypeID=1</link><pubDate>Thu, 07 Dec 2023 12:58:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f7af8de-8c51-42e8-a47f-1fcc1d91d3e9</guid><dc:creator>Jenzo</dc:creator><description>&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Sk_E600_rmbillede-2023_2D00_12_2D00_07-kl.-13.57.52.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>