java.lang.OutOfMemoryError: Java heap space error on running IOU ExampleFlow and Finance CashExitFlow

Description

Prerequisites:
Node with IOU cordapp-example and finance apps installed

Steps to reproduce (CashExitFlow when there is no cash on the node):

1) Start node
2) Run vault query on Cash$State (there is no cash on this node)

1 2 3 4 5 6 Wed Sep 25 21:23:12 GMT+03:00 2019>>> run vaultQuery contractStateType: net.corda.finance.contracts.asset.Cash$State states: [] statesMetadata: [] totalStatesAvailable: -1 stateTypes: "UNCONSUMED" otherResults: []

3) Run CashExitFlow

1 2 3 4 5 6 7 8 9 Wed Sep 25 21:23:24 GMT+03:00 2019>>> flow start CashExitFlow amount: 1 USD, issuerRef: 1234 ✓ Starting ▶︎ Generating transaction Signing transaction Finalising transaction Done Connection to localhost closed by remote host. Connection to localhost closed.

Steps to reproduce (IOU flow to the node itself):

1) Start node
2) Run ExampleFlow (PartyB28 is this node)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 Wed Sep 25 21:28:49 GMT+03:00 2019>>> flow start ExampleFlow$Initiator iouValue: 50, otherParty: PartyB28 ✓ Starting ✓ Generating transaction based on new IOU. ▶︎ Verifying contract constraints. Signing transaction with our private key. Gathering the counterparty's signature. Collecting signatures from counterparties. Verifying collected signatures. Obtaining notary signature and recording transaction. Requesting signature by notary service Requesting signature by Notary service Validating response from Notary service Broadcasting transaction to participants Done Connection to localhost closed by remote host. Connection to localhost closed.

Expected result:
node is up and running

Actual result:
node crashes with java.lang.OutOfMemoryError: Java heap space error

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 java.lang.OutOfMemoryError: Java heap space Dumping heap to java_pid2924.hprof ... Heap dump file created [453166136 bytes in 1.251 secs] Aborting due to java.lang.OutOfMemoryError: Java heap space # # A fatal error has been detected by the Java Runtime Environment: # # Internal Error (debug.cpp:308), pid=2924, tid=0x00007feb5015f700 # fatal error: OutOfMemory encountered: Java heap space # # JRE version: OpenJDK Runtime Environment (8.0_222-b10) (build 1.8.0_222-8u222-b10-1ubuntu1~19.04.1-b10) # Java VM: OpenJDK 64-Bit Server VM (25.222-b10 mixed mode linux-amd64 compressed oops) # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again # # An error report file with more information is saved as: # /home/thecanonmaster/R3/LocalNetworkSigner10/PartyB1/hs_err_pid2924.log # # If you would like to submit a bug report, please visit: # http://bugreport.java.com/bugreport/crash.jsp #

 

Status

Assignee

Tudor Malene

Reporter

Dmitry Toropov

Labels

None

Priority

High

Fix versions

Ported to...

None

Feature Team

Kernel Group

Severity

Medium

Affects versions

Corda 4.3 RC01
Configure