<?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>ASSERTION FAIL @ WEST_TOPDIR/zephyr/subsys/bluetooth/mesh/adv.c</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117593/assertion-fail-west_topdir-zephyr-subsys-bluetooth-mesh-adv-c</link><description>Hello. 
 I am developing using nRF5340DK and nRF Connect SDK v2.9.0. A fatal error occurred on the board when sending some Mesh Model Messages to the smartphone app. It doesn&amp;#39;t happen every time. I think it is more likely to occur when sending repeatedly</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Jan 2025 06:45:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117593/assertion-fail-west_topdir-zephyr-subsys-bluetooth-mesh-adv-c" /><item><title>RE: ASSERTION FAIL @ WEST_TOPDIR/zephyr/subsys/bluetooth/mesh/adv.c</title><link>https://devzone.nordicsemi.com/thread/518367?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2025 06:45:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:013c2a69-dff0-4732-a3e0-c76a53cbb65b</guid><dc:creator>a.da</dc:creator><description>&lt;p&gt;This is an update.&lt;/p&gt;
&lt;p&gt;After modifying &amp;quot;&lt;span&gt;proxy_msg.c&lt;/span&gt;&amp;quot; attached to the pull request, the issue with be unable to allocate beacon adv has been resolved.&lt;br /&gt;I merged the changes &lt;a href="https://github.com/zephyrproject-rtos/zephyr/commit/f5409bd3deba779263fb58bb06a0573e034795cf" rel="noopener noreferrer" target="_blank"&gt;committed&lt;/a&gt;&amp;nbsp;to&amp;nbsp;&lt;span&gt;&amp;quot;zephyrproject-rtos:main&amp;quot;&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void proxy_msg_send_pending(struct k_work *work)
{
	struct bt_mesh_proxy_role *role = CONTAINER_OF(work, struct bt_mesh_proxy_role, work);
	struct bt_mesh_adv *adv;

	if (!role-&amp;gt;conn) {
		return;
	}

	adv = proxy_queue_get(role);
	if (!adv) {
		return;
	}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;After using the modified &lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;proxy_msg.c&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt;, the fatal error mentioned in the title has not occurred so far.&lt;br /&gt;I will continue to monitor the situation.&lt;/p&gt;
&lt;p&gt;Thank you for your support.&lt;/p&gt;
&lt;p&gt;a.da&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ASSERTION FAIL @ WEST_TOPDIR/zephyr/subsys/bluetooth/mesh/adv.c</title><link>https://devzone.nordicsemi.com/thread/518349?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2025 01:27:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:172ce089-3f8c-4089-bb8d-64902294fffe</guid><dc:creator>a.da</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Terje,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Unfortunately, the situation has worsened.&lt;br /&gt;I overwrote the file attached to the pull request with the Light fixture SDK sample.&lt;br /&gt;It&amp;rsquo;s just &amp;quot;adv.h&amp;quot; and &amp;quot;proxy_msg.c&amp;quot;.&lt;br /&gt;When I provisioned it using the &amp;quot;nRF Mesh&amp;quot; app, it was unable to allocate beacon adv.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:29.251,403] &amp;lt;dbg&amp;gt; bt_mesh_access: bt_mesh_model_recv: app_idx 0xfffe src 0x0001 dst 0x06b5
[00:00:29.251,464] &amp;lt;dbg&amp;gt; bt_mesh_access: bt_mesh_model_recv: len 3: 800800
[00:00:29.251,464] &amp;lt;dbg&amp;gt; bt_mesh_access: bt_mesh_model_recv: OpCode 0x00008008
[00:00:29.293,182] &amp;lt;dbg&amp;gt; bt_mesh_access: bt_mesh_access_send: net_idx 0x0000 app_idx 0xfffe dst 0x0001
[00:00:29.293,273] &amp;lt;dbg&amp;gt; bt_mesh_access: bt_mesh_access_send: len 52: 0200590000000000ff00070001000d0000000200021000100410061007100013011303120412001101110200030000100f131013
[00:00:31.339,904] &amp;lt;err&amp;gt; bt_mesh_beacon: Unable to allocate beacon adv
[00:00:31.339,904] &amp;lt;err&amp;gt; bt_mesh_beacon: Failed to advertise subnet 0: err -12&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/250115_5F00_adv.log"&gt;devzone.nordicsemi.com/.../250115_5F00_adv.log&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It seems that other files committed to &amp;quot;zephyrproject-rtos:main&amp;quot; are also needed.&lt;br /&gt;However, I have not been able to identify which ones they are.&lt;br /&gt;I will continue the investigation, so could you please provide support?&lt;/p&gt;
&lt;p&gt;Just to keep you informed.&lt;/p&gt;
&lt;p&gt;a.da&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ASSERTION FAIL @ WEST_TOPDIR/zephyr/subsys/bluetooth/mesh/adv.c</title><link>https://devzone.nordicsemi.com/thread/518248?ContentTypeID=1</link><pubDate>Tue, 14 Jan 2025 14:01:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:617cce28-3c60-49fc-8a4b-d26447d8bfbc</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for the additional information. We now have a fix, in the following pull request: &lt;a href="https://github.com/zephyrproject-rtos/zephyr/pull/83934"&gt;https://github.com/zephyrproject-rtos/zephyr/pull/83934&lt;/a&gt;. The changes are listed on the &lt;a href="https://github.com/zephyrproject-rtos/zephyr/pull/83934/files"&gt;files changed page of that pull request&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Please check if applying those changes fixes the issue also for your application.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ASSERTION FAIL @ WEST_TOPDIR/zephyr/subsys/bluetooth/mesh/adv.c</title><link>https://devzone.nordicsemi.com/thread/517854?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2025 07:14:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5edd10b7-8be8-4cd1-b4d4-89ad21094cfb</guid><dc:creator>a.da</dc:creator><description>&lt;p&gt;Hi Terje,&lt;/p&gt;
&lt;p&gt;I stripped it down to a minimal example.&amp;nbsp;Please overwrite the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/mesh/light_ctrl/README.html" rel="noopener noreferrer" target="_blank"&gt;Light fixture&lt;/a&gt; SDK sample.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8117.project.zip"&gt;devzone.nordicsemi.com/.../8117.project.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The issue also occurred when receiving two SIG Model Messages and one Vendor Model Message.&lt;br /&gt;&lt;span&gt;Light Lightness Get,&amp;nbsp;Light CTL Temperature Get, and one more.&lt;br /&gt;&lt;/span&gt;This is a log from the 1st boot to the occurrence of the Fatal Error, using a minimal example.&lt;br /&gt;Some of the data is masked.&lt;br /&gt;The issue occurred on the 6th transmission after binding the Application Key, line 1001.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/250110_5F00_adv.log"&gt;devzone.nordicsemi.com/.../250110_5F00_adv.log&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The issue could not be reproduced in the &amp;quot;nRF Mesh&amp;quot;, as there is no way to send messages simultaneously.&lt;br /&gt;Can the investigation continue with this information?&lt;br /&gt;Please let me know if you need anything else.&lt;/p&gt;
&lt;p&gt;a.da&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ASSERTION FAIL @ WEST_TOPDIR/zephyr/subsys/bluetooth/mesh/adv.c</title><link>https://devzone.nordicsemi.com/thread/517816?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2025 01:16:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1eada1c3-3e72-43f0-b558-8bc5a6110dc5</guid><dc:creator>a.da</dc:creator><description>&lt;p&gt;Hi Terje,&lt;/p&gt;
&lt;p&gt;Project:&lt;br /&gt;Our project is a custom application based on SDK samples(&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/bluetooth/mesh/light_ctrl/README.html" rel="noopener noreferrer" target="_blank"&gt;Light fixture&lt;/a&gt;).&lt;br /&gt;The &amp;quot;prj.conf&amp;quot; has been modified based on the sample.&lt;br /&gt;The smartphone app is not &amp;quot;nRF Mesh,&amp;quot; it is custom-built(iOS).&lt;/p&gt;
&lt;p&gt;Steps to reproduce:&lt;br /&gt;There is one device in the mesh network.&lt;br /&gt;The smartphone app sends four Mesh Messages simultaneously.&lt;br /&gt;0x82 0x4b Light Lightness Get,&lt;br /&gt;0x82 0x61&amp;nbsp;Light CTL Temperature Get,&lt;br /&gt;and two Vendor Model Message&amp;nbsp;that requests a status response like &amp;quot;&lt;span&gt;Light Lightness Get&lt;/span&gt;&amp;quot;.&lt;br /&gt;&lt;span&gt;But it doesn&amp;#39;t happen every time.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;First, I will strip it down to a minimal example that is closer to the sample.&lt;br /&gt;I will also consider applying the pull request.&lt;br /&gt;Please give me a moment.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;a.da&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ASSERTION FAIL @ WEST_TOPDIR/zephyr/subsys/bluetooth/mesh/adv.c</title><link>https://devzone.nordicsemi.com/thread/517635?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2025 10:10:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2b7b5dc-9151-487f-b45f-36900452cf51</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What are the steps to reproduce the issue? If this only happens on a&amp;nbsp; custom project, we would highly appreciate if you strip it down to a minimal example still triggering the issue, and send it to us. Please start a private case here on DevZone and send it there, if you do not want to send it in public.&lt;/p&gt;
&lt;p&gt;We also need the steps to reproduce, regardless of whether it is for SDK samples or a custom application. E.g. which sample, are there prj.conf changes needed, how to interact with the device in order to trigger the issue.&lt;/p&gt;
&lt;p&gt;Alternatively, in the mean time, &lt;a href="https://github.com/zephyrproject-rtos/zephyr/pull/81317/files"&gt;there is an active pull request&lt;/a&gt; for the Bluetooth Mesh stack, which may or may not solve the issue, as it touches on related parts of the stack to the one failing in the issue that you are seeing. Since we have not yet reproduced the issue, we do not know whether this pull request fixes it or not, but I guess you could try applying those changes in your end and see if it resolves the issue. Please note that since this is from the latest branch of Zephyr / nRF Connect SDK, some (maybe undocumented) migration may be needed.&lt;/p&gt;
&lt;p&gt;Please note that we would still like the steps to reproduce, so that we can check this also in our end, as well as investigate further if other changes are needed.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ASSERTION FAIL @ WEST_TOPDIR/zephyr/subsys/bluetooth/mesh/adv.c</title><link>https://devzone.nordicsemi.com/thread/517572?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2025 00:18:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3693f316-6cb8-4fbf-8111-b92ee31f6b2b</guid><dc:creator>a.da</dc:creator><description>&lt;p&gt;Hi &lt;span&gt;Terje&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you for your continued support. I will respond as quickly as possible as well.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;a.da&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ASSERTION FAIL @ WEST_TOPDIR/zephyr/subsys/bluetooth/mesh/adv.c</title><link>https://devzone.nordicsemi.com/thread/517479?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2025 13:25:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5780a9b-a6c4-4da9-bc0d-6bd2c3b596df</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for the report, it is highly appreciated.&lt;/p&gt;
&lt;p&gt;You have done some thorough investigations and provided us with what looks like the relevant information. Hopefully this is enough for us to figure out what leads to the assert. I will ask for more information here in this thread, if we need more.&lt;/p&gt;
&lt;p&gt;From what I can tell, this type of issue is most likely a bug in the stack itself. Configuration changes may or may not change the prevalence of the issue, but we will likely not know until we find the root cause. I am afraid I do not have any time estimate for when we will know more, but rest assured we are looking into the issue and I will provide an update here when more is known at our side.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ASSERTION FAIL @ WEST_TOPDIR/zephyr/subsys/bluetooth/mesh/adv.c</title><link>https://devzone.nordicsemi.com/thread/516548?ContentTypeID=1</link><pubDate>Tue, 31 Dec 2024 03:04:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31ccf52b-8e1c-4bb2-bb2e-a3d827872da4</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am not able to locate the cause for this issue. I will transfer the case to some BLE Mesh expert. However, please note that this is holiday season in Norway and most of engineers are away till 6th of Jan. It might take few days to reach back to you.&lt;/p&gt;
&lt;p&gt;Thank you for your understanding and regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>