Hi,

I was using Lean-CLI to run Interactive Broker live mode, I got following error and the program quit unexpectedly:

20220503 13:31:37.043 TRACE:: InteractiveBrokersBrokerage.HandleConnectionClosed(): API client disconnected [Server Version: 0].
20220503 13:31:37.043 TRACE:: InteractiveBrokersBrokerage.Connect(): IB message processing thread ended: #35
20220503 13:31:37.044 TRACE:: InteractiveBrokersBrokerage.Dispose(): Disposing of IB resources.
20220503 13:31:37.045 TRACE:: InteractiveBrokersBrokerage.HandleConnectionClosed(): API client disconnected [Server Version: 0].
20220503 13:31:37.046 TRACE:: InteractiveBrokersBrokerage.OnIbAutomaterOutputDataReceived(): Updating IBGateway configuration file: /root/ibgateway/ibgateway.vmoptions
20220503 13:31:37.047 TRACE:: Engine.Run(): Disposing of setup handler...
20220503 13:31:37.047 TRACE:: InteractiveBrokersBrokerage.OnIbAutomaterErrorDataReceived(): java: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.
20220503 13:31:37.047 TRACE:: BrokerageSetupHandler.Setup(): Found data queue handler to dispose: QuantConnect.Brokerages.InteractiveBrokers.InteractiveBrokersBrokerage

 

 

20220503 13:31:37.055 TRACE:: InteractiveBrokersBrokerage.OnIbAutomaterOutputDataReceived(): #
20220503 13:31:37.055 TRACE:: InteractiveBrokersBrokerage.OnIbAutomaterOutputDataReceived(): # A fatal error has been detected by the Java Runtime Environment:
20220503 13:31:37.055 TRACE:: InteractiveBrokersBrokerage.OnIbAutomaterOutputDataReceived(): #
20220503 13:31:37.055 TRACE:: InteractiveBrokersBrokerage.OnIbAutomaterOutputDataReceived(): #  SIGSEGV (0xb) at pc=0x00007f456be889f6, pid=261, tid=0x00007f448dfee700
20220503 13:31:37.055 TRACE:: InteractiveBrokersBrokerage.OnIbAutomaterOutputDataReceived(): #
20220503 13:31:37.055 TRACE:: InteractiveBrokersBrokerage.OnIbAutomaterOutputDataReceived(): # JRE version: Java(TM) SE Runtime Environment (8.0_152-b16) (build 1.8.0_152-b16)
20220503 13:31:37.055 TRACE:: InteractiveBrokersBrokerage.OnIbAutomaterOutputDataReceived(): # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.152-b16 mixed mode linux-amd64 compressed oops)
20220503 13:31:37.055 TRACE:: InteractiveBrokersBrokerage.OnIbAutomaterOutputDataReceived(): # Problematic frame:
20220503 13:31:37.055 TRACE:: InteractiveBrokersBrokerage.OnIbAutomaterOutputDataReceived(): # C  [libc.so.6+0x499f6]
20220503 13:31:37.055 TRACE:: InteractiveBrokersBrokerage.OnIbAutomaterOutputDataReceived(): #
20220503 13:31:37.055 TRACE:: InteractiveBrokersBrokerage.OnIbAutomaterOutputDataReceived(): # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting
Java again
20220503 13:31:37.055 TRACE:: InteractiveBrokersBrokerage.OnIbAutomaterOutputDataReceived(): #
20220503 13:31:37.055 TRACE:: InteractiveBrokersBrokerage.OnIbAutomaterOutputDataReceived(): # An error report file with more information is saved as:
20220503 13:31:37.055 TRACE:: InteractiveBrokersBrokerage.OnIbAutomaterOutputDataReceived(): # /root/ibgateway/hs_err_pid261.log
20220503 13:31:37.058 TRACE:: InteractiveBrokersBrokerage.OnIbAutomaterOutputDataReceived(): 2022-05-03 13:31:37,058 JTS-EServerSocket-105 WARN Unable to register Log4j shutdown hook because JVM is shutting down. Using
SimpleLogger
20220503 13:31:37.059 TRACE:: InteractiveBrokersBrokerage.OnIbAutomaterErrorDataReceived(): pure virtual method called
20220503 13:31:37.059 TRACE:: InteractiveBrokersBrokerage.OnIbAutomaterErrorDataReceived(): terminate called without an active exception
20220503 13:31:37.068 TRACE:: InteractiveBrokersBrokerage.OnIbAutomaterErrorDataReceived(): /Lean/Launcher/bin/Debug/IBAutomater.sh: line 14:   261 Aborted                 $1/ibgateway
20220503 13:31:37.069 TRACE:: InteractiveBrokersBrokerage.OnIbAutomaterOutputDataReceived(): IBGateway process exited

 

 

And then I ran it for a second time, this time the program can complete all the work but still with the following error:

20220503 13:56:05.091 TRACE:: InteractiveBrokersBrokerage.OnIbAutomaterOutputDataReceived(): # A fatal error has been detected by the Java Runtime Environment:
20220503 13:56:05.092 TRACE:: InteractiveBrokersBrokerage.OnIbAutomaterOutputDataReceived(): #
20220503 13:56:05.092 TRACE:: Engine.Main(): Analysis Completed and Results Posted.
20220503 13:56:05.092 TRACE:: InteractiveBrokersBrokerage.OnIbAutomaterOutputDataReceived(): #  SIGSEGV (0xb) at pc=0x00007f1ba8c8f9f6, pid=257, tid=0x00007f1a244cc700
20220503 13:56:05.092 TRACE:: StopSafely(): waiting for 'Transaction Thread' thread to stop...
20220503 13:56:05.093 TRACE:: InteractiveBrokersBrokerage.OnIbAutomaterOutputDataReceived(): #
20220503 13:56:05.093 TRACE:: InteractiveBrokersBrokerage.OnIbAutomaterOutputDataReceived(): # JRE version: Java(TM) SE Runtime Environment (8.0_152-b16) (build 1.8.0_152-b16)

 

Thanks

 

Author