Using codesys v3.5 SP21 Patch 1. We are using Visualization to display alarms. Other then the automatically created AlarmManagerTask, there is no code written to call AlarmStorage_Prg. Any ideas why we would be seeing this error in the log?
The runtime actually shutdown. Not sure if that was caused by this error or not.
2025-08-03T02:45:35.444Z, 0x00001012, 4, 0, 0, * ERROR: Calling the program "AlarmStorage_Prg" is not allowed from multiple tasks.
2025-08-03T03:48:15.294Z, 0x00001012, 4, 0, 0, * ERROR: Calling the program "AlarmStorage_Prg" is not allowed from multiple tasks.
2025-08-03T04:38:11.557Z, 0x00000103, 65544, 1, 0, runtime received SIGABRT - system may be in an inconsistent state
* We recommend a reboot of the controller now! *
2025-08-03T04:38:11.576Z, 0x0000010f, 8, 1, 0, #### Exception: SysSemEnter - Semaphore deadlock detected - owner thread died [tid:726740] - system may be in an inconsistent state.
2025-08-03T04:38:11.576Z, 0x00000103, 65544, 1, 0, runtime received SIGABRT - system may be in an inconsistent state
* We recommend a reboot of the controller now!
2025-08-03T04:38:11.576Z, 0x00000001, 8, 260, 3, #### Exception: HANDLED EXCPT* <excpt>NonContinuable</excpt> in CH_COMM_CYCLE
2025-08-03T04:40:12.308Z, 0x00000001, 1, 0, 35, CODESYS Control shutdown...
2025-08-03T04:40:13.436Z, 0x00000071, 1, 0, 13, Webserver stopped
2025-08-03T04:40:13.437Z, 0x00000114, 2, 1, 0, !!!! Warning: task_signalhandler_exit [MainTask] lost cycles: 14809
2025-08-03T04:40:13.497Z, 0x00000001, 1, 0, 10, [UNLOADED] IEC|Dynamic: <cmp>IecVarAccess</cmp>, <id>0x00001007</id> <ver>3.5.3.64</ver>
2025-08-03T04:40:13.506Z, 0x00000001, 1, 0, 10, [UNLOADED] IEC|Dynamic: <cmp>AlarmMgr</cmp>, <id>0x00001012</id> <ver>4.7.0.0</ver>
2025-08-03T04:40:13.513Z, 0x00000071, 2, 0, 14, !!!! Warning: Unbalanced calls to WebServerRequestRunning/WebServerReleaseRunning
2025-08-03T04:40:13.513Z, 0x00000001, 1, 0, 10, [UNLOADED] IEC|Dynamic: <cmp>IECVisualization</cmp>, <id>0x0000100c</id> <ver>4.7.0.0</ver>
2025-08-03T04:40:13.611Z, 0x00000124, 1, 0, 0, Provider 'AddressSpaceFragment Provider' (version 0x3051500) unregisterd at the OPC UA server.
2025-08-03T04:40:13.611Z, 0x00000124, 1, 0, 0, Provider 'OPC UA for IEC-61131-3' (version 0x3051500) unregisterd at the OPC UA server.
2025-08-03T04:50:17.708Z, 0x00000001, 1, 0, 36, CODESYS Control shutdown done
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I use Codesys 3.5.21.1 too
I have absolutelly the same fault. Do you know the solution?
I get the same massages accept the last one (up to your's from 2025-08-03 04:38)
The last messages do not appear. (your's later than 2025-08-03 04:40)
Reagards
Mg
Last edit: mg0815 2025-11-04
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Do you have any additional information about when the error occurs? I am trying to recreate this issue to find a workaround... Maybe you could also make the project available.
You could add the following logfilter to the CODESYS configuration file:
Many issues with the alarmmanager and alarmstorage can be solved by deleting the configuration, rebooting, and redownloading.
I've found that the configurator doesn't always update when you make chanegs.
For linux installations it is typically located in /var/opt/codesys/PlcLogic/alarms/ look for file Application.AlarmConfiguration.xml
cd /var/opt/codesys/PlcLogic
sudo rm -r alarms
sudo reboot
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Using codesys v3.5 SP21 Patch 1. We are using Visualization to display alarms. Other then the automatically created AlarmManagerTask, there is no code written to call AlarmStorage_Prg. Any ideas why we would be seeing this error in the log?
The runtime actually shutdown. Not sure if that was caused by this error or not.
2025-08-03T02:45:35.444Z, 0x00001012, 4, 0, 0, * ERROR: Calling the program "AlarmStorage_Prg" is not allowed from multiple tasks.
2025-08-03T03:48:15.294Z, 0x00001012, 4, 0, 0, * ERROR: Calling the program "AlarmStorage_Prg" is not allowed from multiple tasks.
2025-08-03T04:38:11.557Z, 0x00000103, 65544, 1, 0, runtime received SIGABRT - system may be in an inconsistent state
* We recommend a reboot of the controller now! *
2025-08-03T04:38:11.576Z, 0x0000010f, 8, 1, 0, #### Exception: SysSemEnter - Semaphore deadlock detected - owner thread died [tid:726740] - system may be in an inconsistent state.
2025-08-03T04:38:11.576Z, 0x00000103, 65544, 1, 0, runtime received SIGABRT - system may be in an inconsistent state
* We recommend a reboot of the controller now!
2025-08-03T04:38:11.576Z, 0x00000001, 8, 260, 3, #### Exception: HANDLED EXCPT* <excpt>NonContinuable</excpt> in CH_COMM_CYCLE
2025-08-03T04:40:12.308Z, 0x00000001, 1, 0, 35, CODESYS Control shutdown...
2025-08-03T04:40:13.436Z, 0x00000071, 1, 0, 13, Webserver stopped
2025-08-03T04:40:13.437Z, 0x00000114, 2, 1, 0, !!!! Warning: task_signalhandler_exit [MainTask] lost cycles: 14809
2025-08-03T04:40:13.497Z, 0x00000001, 1, 0, 10, [UNLOADED] IEC|Dynamic: <cmp>IecVarAccess</cmp>, <id>0x00001007</id> <ver>3.5.3.64</ver>
2025-08-03T04:40:13.506Z, 0x00000001, 1, 0, 10, [UNLOADED] IEC|Dynamic: <cmp>AlarmMgr</cmp>, <id>0x00001012</id> <ver>4.7.0.0</ver>
2025-08-03T04:40:13.513Z, 0x00000071, 2, 0, 14, !!!! Warning: Unbalanced calls to WebServerRequestRunning/WebServerReleaseRunning
2025-08-03T04:40:13.513Z, 0x00000001, 1, 0, 10, [UNLOADED] IEC|Dynamic: <cmp>IECVisualization</cmp>, <id>0x0000100c</id> <ver>4.7.0.0</ver>
2025-08-03T04:40:13.611Z, 0x00000124, 1, 0, 0, Provider 'AddressSpaceFragment Provider' (version 0x3051500) unregisterd at the OPC UA server.
2025-08-03T04:40:13.611Z, 0x00000124, 1, 0, 0, Provider 'OPC UA for IEC-61131-3' (version 0x3051500) unregisterd at the OPC UA server.
2025-08-03T04:50:17.708Z, 0x00000001, 1, 0, 36, CODESYS Control shutdown done
I use Codesys 3.5.21.1 too
I have absolutelly the same fault. Do you know the solution?
I get the same massages accept the last one (up to your's from 2025-08-03 04:38)
The last messages do not appear. (your's later than 2025-08-03 04:40)
Reagards
Mg
Last edit: mg0815 2025-11-04
Did you figure out this solution? Im on SP19 Patch 7 Experiencing the same issue.
...
Last edit: mg0815 2025-11-04
Do you have any additional information about when the error occurs? I am trying to recreate this issue to find a workaround... Maybe you could also make the project available.
You could add the following logfilter to the CODESYS configuration file:
[CmpLog]
Logger.0.Filter=0xFFFFFFFF
Logger.0.Enable=1
Logger.0.MaxEntries=10000
Logger.0.MaxFileSize=1000000
SysSem.Filter=0xFFFFFFFF
SysTask.Filter=0xFFFFFFFF
I hope that the log filter will show us which task is responsible for this, so we can narrow it down a bit more.
Many issues with the alarmmanager and alarmstorage can be solved by deleting the configuration, rebooting, and redownloading.
I've found that the configurator doesn't always update when you make chanegs.
For linux installations it is typically located in /var/opt/codesys/PlcLogic/alarms/ look for file Application.AlarmConfiguration.xml
cd /var/opt/codesys/PlcLogic
sudo rm -r alarms
sudo reboot