<?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>Event Manager crashes in Submit Event</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86984/event-manager-crashes-in-submit-event</link><description>Hello, I&amp;#39;m working with the event manager doing a customized Asset Tracking version firmware. The problem is that when I attempt to submit an event with an array with fixed size, the app crashes, I can&amp;#39;t figure it out where the problem is. This is the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 Apr 2022 17:25:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86984/event-manager-crashes-in-submit-event" /><item><title>RE: Event Manager crashes in Submit Event</title><link>https://devzone.nordicsemi.com/thread/363696?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 17:25:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07103268-8d32-4220-a43f-089332d70b00</guid><dc:creator>Mariano Goluboff</dc:creator><description>&lt;p&gt;That&amp;#39;s good to hear. Increasing the size of the buffer will fix it for now, but if you increase the amount of data over 100, it will happen again. A more permanent fix is to check the amount of data going into the buffer. Here are the changes necessary to &lt;code&gt;app_module_event.c&lt;/code&gt; to do that:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/7306/commits/aafbb215174b2b684985b413d1f49304a23d9c26"&gt;github.com/.../aafbb215174b2b684985b413d1f49304a23d9c26&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Event Manager crashes in Submit Event</title><link>https://devzone.nordicsemi.com/thread/363695?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2022 17:08:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8054feb5-101a-403e-b475-f3494d7c6a6e</guid><dc:creator>RUBEN D</dc:creator><description>&lt;p&gt;Hi Mariano,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I solved this problem; I modified the array size as you recommended and it works, thanks!&lt;br /&gt;I&amp;#39;m using the 1.9.1 SDK version.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Event Manager crashes in Submit Event</title><link>https://devzone.nordicsemi.com/thread/363391?ContentTypeID=1</link><pubDate>Mon, 18 Apr 2022 20:03:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2616db23-fd8c-45aa-b1c0-c01ad76ef201</guid><dc:creator>Mariano Goluboff</dc:creator><description>&lt;p&gt;Hi Ruben,&lt;/p&gt;
&lt;p&gt;The code looks very similar to the way that Asset Tracker v2 is done. A few questions:&lt;/p&gt;
&lt;p&gt;1) What is the array that you are trying to assign values to?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2) What version of the SDK are you using?&lt;/p&gt;
&lt;p&gt;3) In &lt;code&gt;src/events/app_module_event.c&lt;/code&gt;, in function&amp;nbsp;&lt;code&gt;log_event&lt;/code&gt;, can you try changing the size of the &lt;code&gt;data_types&lt;/code&gt; buffer from the current 50 to something larger, like 100? This is not a recommended possible solution, but just to test if the buffer overflow is happening in this function.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Mariano&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>