Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » LuaJIT issue - Creating function blocks failed
LuaJIT issue - Creating function blocks failed [message #1843236] Wed, 21 July 2021 07:57 Go to next message
Tuojian Lyu is currently offline Tuojian LyuFriend
Messages: 18
Registered: October 2020
Junior Member
Hi there,

I tried to follow "Step 7 - Deploying new FBs with the Dynamic Type Loader".
I can successfully compile Forte with LuaJIT, and change the device profile to DynamicTypeLoad, but finally, encounter the deployment error "Creating function blocks failed" when deploying customized basic FB.

Versions:
Lua: luajit-2.0
4diac & Forte: 1.14.0
MinGW-W64: 8.1.0
OS: Win10

Attached screenshots:
- CMake configuration for luajit
- Forte with lua51.dll in the build folder
- Device configuration in 4diac
- Deployment error

Thanks ahead for any comments and help!
Re: LuaJIT issue - Creating function blocks failed [message #1843241 is a reply to message #1843236] Wed, 21 July 2021 09:58 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1583
Registered: January 2014
Senior Member

Could you be so kind and provide us also the .log file whcih you can find in your .metadata directory of your workspace. There could be more infomration helping us to trace down the issue.
Re: LuaJIT issue - Creating function blocks failed [message #1843247 is a reply to message #1843241] Wed, 21 July 2021 11:35 Go to previous messageGo to next message
Tuojian Lyu is currently offline Tuojian LyuFriend
Messages: 18
Registered: October 2020
Junior Member
Hi Alois,

Thanks for your reply. Here is the log:

!ENTRY org.apache.log4j 4 0 2021-07-21 14:32:40.078
!MESSAGE org.eclipse.fordiac.ide.deployment.iec61499.DynamicTypeLoadDeploymentExecutor - Create Type "LUA script" failed.

!STACK 0
java.net.SocketTimeoutException: Read timed out
at java.base/sun.nio.ch.NioSocketImpl.timedRead(Unknown Source)
at java.base/sun.nio.ch.NioSocketImpl.implRead(Unknown Source)
at java.base/sun.nio.ch.NioSocketImpl.read(Unknown Source)
at java.base/sun.nio.ch.NioSocketImpl$1.read(Unknown Source)
at java.base/java.net.Socket$SocketInputStream.read(Unknown Source)
at java.base/java.io.BufferedInputStream.fill(Unknown Source)
at java.base/java.io.BufferedInputStream.read(Unknown Source)
at java.base/java.io.DataInputStream.readByte(Unknown Source)
at org.eclipse.fordiac.ide.deployment.iec61499.EthernetDeviceManagementCommunicationHandler.handleResponse(EthernetDeviceManagementCommunicationHandler.java:91)
at org.eclipse.fordiac.ide.deployment.iec61499.EthernetDeviceManagementCommunicationHandler.sendREQ(EthernetDeviceManagementCommunicationHandler.java:119)
at org.eclipse.fordiac.ide.deployment.interactors.AbstractDeviceManagementInteractor.sendREQ(AbstractDeviceManagementInteractor.java:58)
at org.eclipse.fordiac.ide.deployment.iec61499.DynamicTypeLoadDeploymentExecutor.sendCreateFBTypeREQ(DynamicTypeLoadDeploymentExecutor.java:158)
at org.eclipse.fordiac.ide.deployment.iec61499.DynamicTypeLoadDeploymentExecutor.createFBType(DynamicTypeLoadDeploymentExecutor.java:152)
at org.eclipse.fordiac.ide.deployment.iec61499.DynamicTypeLoadDeploymentExecutor.checkCreateFBType(DynamicTypeLoadDeploymentExecutor.java:135)
at org.eclipse.fordiac.ide.deployment.iec61499.DynamicTypeLoadDeploymentExecutor.createFBInstance(DynamicTypeLoadDeploymentExecutor.java:118)
at org.eclipse.fordiac.ide.deployment.DownloadRunnable.createFBInstance(DownloadRunnable.java:291)
at org.eclipse.fordiac.ide.deployment.DownloadRunnable.deployResource(DownloadRunnable.java:259)
at org.eclipse.fordiac.ide.deployment.DownloadRunnable.deployResources(DownloadRunnable.java:148)
at org.eclipse.fordiac.ide.deployment.DownloadRunnable.deployDevice(DownloadRunnable.java:124)
at org.eclipse.fordiac.ide.deployment.DownloadRunnable.run(DownloadRunnable.java:110)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)

Re: LuaJIT issue - Creating function blocks failed [message #1843268 is a reply to message #1843247] Thu, 22 July 2021 06:42 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1583
Registered: January 2014
Senior Member

Hi,

as stated the lua part needs more work. It looks like there is some issue in either the lua generation or during sending. One thing that you should do in your CMake configuration under the andvanced options is to increas the recieve buffer size. Furthermore would it be possible to give us the FB for a further assessment?

cheers,
Alois
Re: LuaJIT issue - Creating function blocks failed [message #1843277 is a reply to message #1843268] Thu, 22 July 2021 12:42 Go to previous messageGo to next message
Tuojian Lyu is currently offline Tuojian LyuFriend
Messages: 18
Registered: October 2020
Junior Member
Hi Alois. Thanks! By increasing the buffer size in CMake, it works now.
Re: LuaJIT issue - Creating function blocks failed [message #1843283 is a reply to message #1843277] Thu, 22 July 2021 13:50 Go to previous message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1583
Registered: January 2014
Senior Member

Ah perfect. If you find issues in the lua code generation or even better have improvement suggestions we are happy to hear from you.
Previous Topic:Help! Error in compiling forte with external modules
Next Topic:Help! Can not run the ide source code1.14
Goto Forum:
  


Current Time: Sat Apr 20 01:33:10 GMT 2024

Powered by FUDForum. Page generated in 0.04181 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top