Hi,
The package mlr3 is based on R6 objects in R.
This is just a preliminary question so I am not including a full reproducible scenario yet.
I am having trouble doing anything of any size in mlr3 under statet without getting a large number of messages like those appended below. These are then repeated every time I run enter any R line. While I totally realize the messages are from within mlr3, and in terms of mlr3 internals, I thought I would at least ask here if this rang any bells. My searches do find bugs involving somewhat similar messages in mlr3 in the past, they are supposed to be fixed. I am running the latest mlr3 installed today, Eclipse 2022.03 updated to 2022.06, the very latest Statet under Windows 11, and R 4.1.3.
Error: The backend of Task 'Vol' has been removed. Set `store_backends` to `TRUE` during model fitting to conserve it.
Error: The backend of Task 'Vol' has been removed. Set `store_backends` to `TRUE` during model fitting to conserve it.
Eventually, after a lot of these messages, R exits suddenly.
[INFO ] Jun 23, 2022, 1:34:28 AM - R stopped.
Now, these problems do not occur at all with the same R code under plain 4.1.3 all alone. It is the exact same installation of R.
I see the following in the error log:
!ENTRY org.eclipse.statet.rj.client 4 0 2022-06-23 01:34:28.142
!MESSAGE Communication error detail. Send:
MainCmdC2SList ():
<ITEM i="0">
DataCmdItem RESOLVE_DATA
options= 0x80000021
<SOURCE-EXPR>
2162308729760
</SOURCE-EXPR>
<DATA/>
<TARGET-EXPR/>
</ITEM>
!STACK 0
java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is:
java.net.SocketException: Connection reset
at java.rmi/sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:255)
at java.rmi/sun.rmi.server.UnicastRef.invoke(UnicastRef.java:165)
at java.rmi/java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:215)
at java.rmi/java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:160)
at jdk.proxy12/jdk.proxy12.$Proxy28.runMainLoop(Unknown Source)
at org.eclipse.statet.rj.server.client.AbstractRJComClient.runMainLoop(AbstractRJComClient.java:909)
at org.eclipse.statet.rj.server.client.AbstractRJComClient.evalData(AbstractRJComClient.java:1400)
at org.eclipse.statet.r.nico.impl.RjsController.evalData(RjsController.java:1189)
at org.eclipse.statet.r.nico.impl.RjsController.evalCombinedStruct(RjsController.java:1287)
at org.eclipse.statet.internal.r.console.core.RObjectDB.evalResolve(RObjectDB.java:609)
at org.eclipse.statet.internal.r.console.core.RObjectDB.check(RObjectDB.java:710)
at org.eclipse.statet.internal.r.console.core.RObjectDB.check(RObjectDB.java:688)
at org.eclipse.statet.internal.r.console.core.RObjectDB.evalResolve(RObjectDB.java:642)
at org.eclipse.statet.internal.r.console.core.RObjectDB.check(RObjectDB.java:710)
at org.eclipse.statet.internal.r.console.core.RObjectDB.check(RObjectDB.java:688)
at org.eclipse.statet.internal.r.console.core.RObjectDB.evalResolve(RObjectDB.java:642)
at org.eclipse.statet.internal.r.console.core.RObjectDB.check(RObjectDB.java:710)
at org.eclipse.statet.internal.r.console.core.RObjectDB.check(RObjectDB.java:688)
at org.eclipse.statet.internal.r.console.core.RObjectDB.evalResolve(RObjectDB.java:642)
at org.eclipse.statet.internal.r.console.core.RObjectDB.check(RObjectDB.java:710)
at org.eclipse.statet.internal.r.console.core.RObjectDB.check(RObjectDB.java:718)
at org.eclipse.statet.internal.r.console.core.RObjectDB.check(RObjectDB.java:688)
at org.eclipse.statet.internal.r.console.core.RObjectDB.evalResolve(RObjectDB.java:642)
at org.eclipse.statet.internal.r.console.core.RObjectDB.check(RObjectDB.java:710)
at org.eclipse.statet.internal.r.console.core.RObjectDB.check(RObjectDB.java:718)
at org.eclipse.statet.internal.r.console.core.RObjectDB.check(RObjectDB.java:718)
at org.eclipse.statet.internal.r.console.core.RObjectDB.check(RObjectDB.java:688)
at org.eclipse.statet.internal.r.console.core.RObjectDB.updateEnvMap(RObjectDB.java:525)
at org.eclipse.statet.internal.r.console.core.RObjectDB.update(RObjectDB.java:271)
at org.eclipse.statet.r.console.core.RWorkspace.updateREnvironments(RWorkspace.java:545)
at org.eclipse.statet.r.console.core.RWorkspace.refreshFromTool(RWorkspace.java:478)
at org.eclipse.statet.r.console.core.RWorkspace.autoRefreshFromTool(RWorkspace.java:451)
at org.eclipse.statet.nico.core.runtime.ToolWorkspace$AutoUpdater.run(ToolWorkspace.java:124)
at org.eclipse.statet.nico.core.runtime.ToolController.loopRunTask(ToolController.java:1264)
at org.eclipse.statet.nico.core.runtime.ToolController.loopTopLevel(ToolController.java:1056)
at org.eclipse.statet.nico.core.runtime.ToolController.run(ToolController.java:626)
at org.eclipse.statet.nico.core.runtime.ToolRunner.run(ToolRunner.java:93)
at org.eclipse.statet.nico.core.runtime.ToolRunner$1.run(ToolRunner.java:105)
Caused by: java.net.SocketException: Connection reset
at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:323)
at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:350)
at java.base/sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:803)
at java.base/java.net.Socket$SocketInputStream.read(Socket.java:966)
at java.base/java.io.BufferedInputStream.fill(BufferedInputStream.java:244)
at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:263)
at java.base/java.io.DataInputStream.readByte(DataInputStream.java:271)
at java.rmi/sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:241)
... 37 more