<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Rpi Runtime stops after about 16 hours with an Exception with CommCycleHook</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/1dc55b5b1e/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/1dc55b5b1e/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/1dc55b5b1e/</id><updated>2023-04-24T12:49:00.898000Z</updated><subtitle>Recent posts to Rpi Runtime stops after about 16 hours with an Exception with CommCycleHook</subtitle><entry><title>Rpi Runtime stops after about 16 hours with an Exception with CommCycleHook</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/1dc55b5b1e/?limit=25#10e6" rel="alternate"/><published>2023-04-24T12:49:00.898000Z</published><updated>2023-04-24T12:49:00.898000Z</updated><author><name>Nefus</name><uri>https://forge.codesys.com/u/nefus/</uri></author><id>https://forge.codesys.com3e4585384b21bfe9dad65888253c2b9cdb264751</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello, so after 10 days my application didn't crashed, and the codesys runtime is still alive.&lt;br/&gt;
So I confirm that the problem was really caused by the openned files limit, due to the missing close I had in my code.&lt;/p&gt;
&lt;p&gt;Problem solved ! 😄&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Rpi Runtime stops after about 16 hours with an Exception with CommCycleHook</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/1dc55b5b1e/?limit=25#cbec" rel="alternate"/><published>2023-04-14T12:07:26.573000Z</published><updated>2023-04-14T12:07:26.573000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com82700cbe307194cdd1dfcde772e84a79d53363c9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;yes, this could really cause such problems -  thanks for the feedback - should help other users too&lt;br/&gt;
in such situations!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Rpi Runtime stops after about 16 hours with an Exception with CommCycleHook</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/1dc55b5b1e/?limit=25#1d32" rel="alternate"/><published>2023-04-14T09:35:36.807000Z</published><updated>2023-04-14T09:35:36.807000Z</updated><author><name>Nefus</name><uri>https://forge.codesys.com/u/nefus/</uri></author><id>https://forge.codesys.com26542383c98f22eb4f2c6f08626fcbff3fe4e0b0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I suppose I've found what's wrong, and it was in my codesys application...&lt;br/&gt;
I really have a SysFileOpen with no SysFileClose that was called each minutes 😓...&lt;br/&gt;
So it takes about 16 hours to reach the limit file count by process which is 1024 (command line ulimit -n to see the limit).&lt;/p&gt;
&lt;p&gt;I will run some tests, but I suppose it will be ok now...&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Rpi Runtime stops after about 16 hours with an Exception with CommCycleHook</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/1dc55b5b1e/?limit=25#b93a" rel="alternate"/><published>2023-04-14T06:50:33.814000Z</published><updated>2023-04-14T06:50:33.814000Z</updated><author><name>Nefus</name><uri>https://forge.codesys.com/u/nefus/</uri></author><id>https://forge.codesys.com82ad59dd39332715c8937f850aa31ca241d5c639</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Dear Edwin,&lt;/p&gt;
&lt;p&gt;Thanks for your answer.&lt;br/&gt;
I used Codesys for Raspberry SL.&lt;/p&gt;
&lt;p&gt;You're right, the runtime didn't stopped after 2 hours like I supposed and like indacated in the logs:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;Linux&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;version&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;4.4.45&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;v7&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;root&lt;/span&gt;&lt;span class="nv"&gt;@bartosz&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;VirtualBox&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;gcc&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;version&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;4.8.3&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;20140106&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;prerelease&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;crosstool&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;NG&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;linaro&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;1.13.1&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;4.8&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mf"&gt;2014.01&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Linaro&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;GCC&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;2013.11&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;#19&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;SMP&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Fri&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Feb&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="err"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;54&lt;/span&gt;&lt;span class="err"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;17&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;CET&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2017&lt;/span&gt;&lt;span class="w"&gt;&lt;/span&gt;
&lt;span class="n"&gt;PlcStartSL&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="n"&gt;752&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="err"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;fork&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;child&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;ppid&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;17444&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;7824&lt;/span&gt;&lt;span class="w"&gt;&lt;/span&gt;

&lt;span class="o"&gt;*********&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;CoDeSysControl&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;DEMO&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;VERSION&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;runs&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;hours&lt;/span&gt;&lt;span class="o"&gt;*********&lt;/span&gt;&lt;span class="w"&gt;&lt;/span&gt;

&lt;span class="n"&gt;PlcStart&lt;/span&gt;&lt;span class="o"&gt;[&lt;/span&gt;&lt;span class="n"&gt;205&lt;/span&gt;&lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="err"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;using&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;etc&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;CODESYSControl&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cfg&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;as&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;config&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;file&lt;/span&gt;&lt;span class="w"&gt;&lt;/span&gt;

&lt;span class="nl"&gt;machine&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;armv7l&lt;/span&gt;&lt;span class="w"&gt;&lt;/span&gt;
&lt;span class="n"&gt;timer&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;resolution&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="n"&gt;nsec&lt;/span&gt;&lt;span class="w"&gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="c"&gt;2023-04-13T13:08:31Z, 0x0000100d, 4, 0, 0, **** ERROR: License file missing.&lt;/span&gt;
&lt;span class="c"&gt;2023-04-13T13:08:31Z, 0x00000126, 2, 0, 0, !!!! Warning: No valid license found for OPC UA IecVarAccess provider. Running in demo mode (2h).&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="c"&gt;2023-04-13T13:08:46Z, 0x00000072, 4, 0, 2, **** ERROR: No valid license found for the webvisualization&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="c"&gt;2023-04-13T13:09:01Z, 0x0000100d, 4, 0, 0, **** ERROR: Demo mode for Modbus/TCP Slave started. Will expire and stop!&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;So effectively, Modbus, OPCUA and Webvisu stopped after 2 hours, but my application continued.😉&lt;/p&gt;
&lt;p&gt;Finally, with this "debug" mode I had much information about my problem: it tells that I have too many files openned.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;executecommand[82]: popen(vcgencmd measure_clock arm):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;executecommand[82]: popen(vcgencmd measure_temp):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;executecommand[82]: popen(df / -BK | tail -n1 | awk '{print $2+0}'):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;executecommand[82]: popen(df / -BK | tail -n1 | awk '{print $4+0}'):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;executecommand[82]: popen(vcgencmd measure_clock arm):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;executecommand[82]: popen(vcgencmd measure_temp):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;executecommand[82]: popen(df / -BK | tail -n1 | awk '{print $2+0}'):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;executecommand[82]: popen(df / -BK | tail -n1 | awk '{print $4+0}'):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;executecommand[82]: popen(vcgencmd measure_clock arm):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;executecommand[82]: popen(vcgencmd measure_temp):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;executecommand[82]: popen(df / -BK | tail -n1 | awk '{print $2+0}'):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;executecommand[82]: popen(df / -BK | tail -n1 | awk '{print $4+0}'):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;executecommand[82]: popen(vcgencmd measure_clock arm):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;executecommand[82]: popen(vcgencmd measure_temp):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;executecommand[82]: popen(df / -BK | tail -n1 | awk '{print $2+0}'):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;executecommand[82]: popen(df / -BK | tail -n1 | awk '{print $4+0}'):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;executecommand[82]: popen(vcgencmd measure_clock arm):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;executecommand[82]: popen(vcgencmd measure_temp):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;executecommand[82]: popen(df / -BK | tail -n1 | awk '{print $2+0}'):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;executecommand[82]: popen(df / -BK | tail -n1 | awk '{print $4+0}'):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;executecommand[82]: popen(vcgencmd measure_clock arm):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;executecommand[82]: popen(vcgencmd measure_temp):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;executecommand[82]: popen(df / -BK | tail -n1 | awk '{print $2+0}'):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;executecommand[82]: popen(df / -BK | tail -n1 | awk '{print $4+0}'):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;SysFileOpen_[171]: fopen(PlcLogic/trend/CEMS_Manager_V7.HeatedLine_Unit2_2s.1.sqlite-journal):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;SysFileOpen_[171]: fopen(PlcLogic/trend/CEMS_Manager_V7.HeatedLine_Unit4_2s.1.sqlite-journal):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;SysFileOpen_[171]: fopen(PlcLogic/CEMS_Manager_V7.ret):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;SysFileOpen_[171]: fopen(PlcLogic/trend/CEMS_Manager_V7.HeatedLine_Unit1_2s.1.sqlite-journal):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;SysFileOpen_[171]: fopen(PlcLogic/trend/CEMS_Manager_V7.HeatedLine_Unit3_2s.1.sqlite-journal):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;SysFileOpen_[171]: fopen(PlcLogic/trend/CEMS_Manager_V7.HeatedLine_Unit5_2s.1.sqlite-journal):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;UpdateNetworkAdapterInfo[1719]: getifaddrs:Too many open files&lt;/span&gt;
&lt;span class="err"&gt;SysFileOpen_[171]: fopen(/etc/FBoxManager/plcInfo/appList.txt):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;executecommand[82]: popen(vcgencmd measure_clock arm):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;executecommand[82]: popen(vcgencmd measure_temp):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;executecommand[82]: popen(df / -BK | tail -n1 | awk '{print $2+0}'):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;executecommand[82]: popen(df / -BK | tail -n1 | awk '{print $4+0}'):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;UpdateNetworkAdapterInfo[1719]: getifaddrs:Too many open files&lt;/span&gt;
&lt;span class="err"&gt;SysFileOpen_[171]: fopen(/etc/FBoxManager/plcInfo/appList.txt):Too many open files&lt;/span&gt;
&lt;span class="err"&gt;except_signalhandler[246]: SIGSEGV (address:(nil)) in &amp;lt;CommCycleHook&amp;gt;&lt;/span&gt;
&lt;span class="err"&gt;except_signalhandler[250]: address not mapped to object&lt;/span&gt;
&lt;span class="err"&gt;handleException[75]: getting the context...&lt;/span&gt;
&lt;span class="err"&gt;PlcStart[232]: Before Exit&lt;/span&gt;
&lt;span class="err"&gt;SysSockRecv[1103]: recv(37,0x7ef79e10,512,0x0):Transport endpoint is not connected&lt;/span&gt;
&lt;span class="err"&gt;SysTaskExit[561]: Main: lost cycles: 185&lt;/span&gt;
&lt;span class="err"&gt;SysTaskExit[561]: Modbus: lost cycles: 82147&lt;/span&gt;
&lt;span class="err"&gt;SysTaskExit[561]: StorageTask: lost cycles: 16&lt;/span&gt;
&lt;span class="err"&gt;SysTaskExit[561]: VISU_TASK: lost cycles: 7&lt;/span&gt;
&lt;span class="err"&gt;SysFileDelete_[274]: unlink(PlcLogic/FboxApiPlc/FboxApiPlc.ret):No such file or directory&lt;/span&gt;
&lt;span class="err"&gt;Socket_CanMiniDriver_Dispose[1127]: CL2_CmdUnRegister(0):10205&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;So I supposed there 2 options :&lt;br/&gt;
&lt;em&gt; There is a limit on the maximum files simultaneously openned in codesys&lt;br/&gt;
&lt;/em&gt; I reached this limit on the raspbian OS directly&lt;/p&gt;
&lt;p&gt;Do you know if there is a limit in the Codesys runtime on the max number of oppenned files? And if there is one, is it possible to override it ?&lt;/p&gt;
&lt;p&gt;Meanwhile, I will scan my code to find if there is somewhere a missing close file that could make this limit reached...&lt;/p&gt;
&lt;p&gt;Thank you for your help.&lt;br/&gt;
Have a nice day.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Rpi Runtime stops after about 16 hours with an Exception with CommCycleHook</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/1dc55b5b1e/?limit=25#ee9d" rel="alternate"/><published>2023-04-13T13:58:06.994000Z</published><updated>2023-04-13T13:58:06.994000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.comb7ed22d23ccb7d3e32a4b72e3380c2bed770cc10</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;but there is no difference on license if you start manually or automatically.. so it should run more then 2h&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Rpi Runtime stops after about 16 hours with an Exception with CommCycleHook</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/1dc55b5b1e/?limit=25#46ed" rel="alternate"/><published>2023-04-13T10:36:35.124000Z</published><updated>2023-04-13T10:36:35.124000Z</updated><author><name>Nefus</name><uri>https://forge.codesys.com/u/nefus/</uri></author><id>https://forge.codesys.com90d2e4c594479611a0bde3bf13936478731fded5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;About after 16 hours of well execution, the runtime stops.&lt;br/&gt;
In the codesyscontrol.log I can see the line:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;#### Exception: *EXCEPTION* in CommCycleHook &lt;span class="nt"&gt;&amp;lt;IP&amp;gt;&lt;/span&gt;0x76db7d6c&lt;span class="nt"&gt;&amp;lt;/IP&amp;gt;&lt;/span&gt; &lt;span class="nt"&gt;&amp;lt;BP&amp;gt;&lt;/span&gt;0x1000&lt;span class="nt"&gt;&amp;lt;/BP&amp;gt;&lt;/span&gt; &lt;span class="nt"&gt;&amp;lt;SP&amp;gt;&lt;/span&gt;0x73f63d38&lt;span class="nt"&gt;&amp;lt;/SP&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;And just a few seconds later, the runtime stops.&lt;br/&gt;
Like Edwin Schwellinger adviced in this topic (it seems to be a similar issue?) &lt;a class="" href="https://"&gt;https://forge.codesys.com/forge/talk/Deutsch/thread/c8bb956c6b/?limit=25#3484&lt;/a&gt; I tried to run Codesys manually via SSH.&lt;br/&gt;
But the problem is that after 2hours it stops because of "Demo mode"... And my issue is only after about 16 hours of run... So I can't see any problems within the 2 hours...&lt;/p&gt;
&lt;p&gt;I also tried the second option (edit the CODESYSControl.cfg and create the /etc/default/codesyscontrol to enable debug logging) but my /tmp/codesyscontrol_debug.log remains empty.&lt;/p&gt;
&lt;p&gt;I have no idea of why I have this CommCycleHook Exception, neither what it means...&lt;br/&gt;
And I cannot have more information in the log files...&lt;/p&gt;
&lt;p&gt;Please, do you have somme advice for me ?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;br/&gt;
Have a nice day.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>