fxcm / ForexConnectAPI

Designed to trade, retrieve live/history price. Intended to be used to build auto-trading robots, custom trading on FXCM accounts.
132 stars 47 forks source link

Segment fault caused by Java_com_fxcore2_O2GMarketDataSnapshotResponseReaderImpl_isBarNative+0x0 #3

Closed jjqqkk closed 4 years ago

jjqqkk commented 4 years ago

Hi, I got the following crash error report while using the Java SDK, what could be the root cause? thx.

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007faf70e17130, pid=21250, tid=0x00007faf382fe700
#
# JRE version: Java(TM) SE Runtime Environment (8.0_181-b13) (build 1.8.0_181-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.181-b13 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libfxcore2.so.1.6.2+0x22130]  Java_com_fxcore2_O2GMarketDataSnapshotResponseReaderImpl_isBarNative+0x0
FXCMAPI commented 4 years ago

have you try upgrade Java?

jjqqkk commented 4 years ago

Hi,

Tested the "PrintRollover" sample code on Mac 10.15.2, JDK 13, ForexConnectAPI-1.6.3, still SIGSEGV.

./fxrun.sh 
Buildfile: /Users/tradebot/Downloads/ForexConnectAPI-1.6.3-Darwin-x86_64/samples/java/TableManagerSamples/PrintRollover/build.xml

checkos:

run:
     [copy] Copying 1 file to /Users/tradebot/Downloads/ForexConnectAPI-1.6.3-Darwin-x86_64/samples/java/TableManagerSamples/PrintRollover/build
     [java] Running PrintRollover with arguments:
     [java]{my-account} * http://www.fxcorporate.com/Hosts.jsp Real {SESSIONID} {PIN}
     [java] Instrument='EUR/JPY', AccountID='{ACCOUNT}'
     [java] Status: CONNECTING
     [java] #
     [java] # A fatal error has been detected by the Java Runtime Environment:
     [java] #
     [java] #  SIGSEGV (0xb) at pc=0x0000000111c35437, pid=1348, tid=40451
     [java] #
     [java] # JRE version: Java(TM) SE Runtime Environment (13.0+33) (build 13+33)
     [java] # Java VM: Java HotSpot(TM) 64-Bit Server VM (13+33, mixed mode, sharing, tiered, compressed oops, g1 gc, bsd-amd64)
     [java] # Problematic frame:
     [java] # 

BUILD SUCCESSFUL
Total time: 31 seconds
fxcm-dhalpert commented 4 years ago

to get the rollover values you need to include the account_id (not acount number), it can be found in IO2GAccountRow class in getAccountID() function.

jjqqkk commented 4 years ago

thx a lot

to get the rollover values you need to include the account_id (not acount number), it can be found in IO2GAccountRow class in getAccountID() function.