Skip to content
This repository has been archived by the owner on Mar 30, 2021. It is now read-only.

Contract call in handleKudosTransfer fails #5

Open
Jannis opened this issue Jun 14, 2019 · 0 comments
Open

Contract call in handleKudosTransfer fails #5

Jannis opened this issue Jun 14, 2019 · 0 comments

Comments

@Jannis
Copy link
Contributor

Jannis commented Jun 14, 2019

One of the contract calls made in handleKudosTransfer is causing an exception in the Ethereum VM that executes the call. This is typically caused by an assertion failing but could also be due to accessing a storage region that hasn't been allocated yet (like accessing an array index that is out of bounds).

It's one of these three calls:

  let record = contract.getKudosById(tokenId)
  ...
  let tokenURI = contract.tokenURI(tokenId)
  ...
      kudos.tokenURI = contract.tokenURI(record.value3)

The logs from before the failing call:

E  Jun 13 18:31:25.923 INFO 1 trigger found in this block for this subgraph, block_hash: 0xd07e459ce67a9272319a6729f3d60d9717026a314f001367196f0bed671694dd, block_number: 7951988, subgraph_id: QmNhcbWDoPpWtXn2Dx7KWEetVoWq4BNCgRCEUPe5e88Afo, component: SubgraphInstanceManager                                                                                                                                                                                          
E  Jun 13 18:31:25.924 DEBG Start processing Ethereum event, address: 0x2aea…4163, data_source: Kudos, handler: handleKudosTransfer, signature: Transfer(address,address,uint256), block_hash: 0xd07e459ce67a9272319a6729f3d60d9717026a314f001367196f0bed671694dd, block_number: 7951988, subgraph_id: QmNhcbWDoPpWtXn2Dx7KWEetVoWq4BNCgRCEUPe5e88Afo, component: SubgraphInstanceManager                                                                                    
E  Jun 13 18:31:25.927 INFO handleKudosTransfer, data_source: Kudos, block_hash: 0xd07e459ce67a9272319a6729f3d60d9717026a314f001367196f0bed671694dd, block_number: 7951988, subgraph_id: QmNhcbWDoPpWtXn2Dx7KWEetVoWq4BNCgRCEUPe5e88Afo, component: SubgraphInstanceManager                                                                                                                                                                                                  
E  Jun 13 18:31:25.928 WARN new Kudos transfer 0x0000000000000000000000000000000000000000 0xc0d95fbb7bf19c7665a1c4042b683182b34e2150 3931, data_source: Kudos, block_hash: 0xd07e459ce67a9272319a6729f3d60d9717026a314f001367196f0bed671694dd, block_number: 7951988, subgraph_id: QmNhcbWDoPpWtXn2Dx7KWEetVoWq4BNCgRCEUPe5e88Afo, component: SubgraphInstanceManager                                                                                                        
E  Jun 13 18:31:25.929 TRCE Run with retry: eth_call RPC call (outer), block_hash: 0xd07e459ce67a9272319a6729f3d60d9717026a314f001367196f0bed671694dd, block_number: 7951988, subgraph_id: QmNhcbWDoPpWtXn2Dx7KWEetVoWq4BNCgRCEUPe5e88Afo, component: SubgraphInstanceManager                                                                                                                                                                                                
E  Jun 13 18:31:25.929 TRCE Run with retry: eth_call RPC call, block_hash: 0xd07e459ce67a9272319a6729f3d60d9717026a314f001367196f0bed671694dd, block_number: 7951988, subgraph_id: QmNhcbWDoPpWtXn2Dx7KWEetVoWq4BNCgRCEUPe5e88Afo, component: SubgraphInstanceManager                                                                                                                                                                                                        
E  Jun 13 18:31:25.988 DEBG Trying again after eth_call RPC call failed (attempt #2) with result Err(CallError(ErrorMessage { msg: "RPC error: Error { code: ServerError(-32015), message: \"VM execution error.\", data: Some(String(\"Bad instruction fe\")) }" })), block_hash: 0xd07e459ce67a9272319a6729f3d60d9717026a314f001367196f0bed671694dd, block_number: 7951988, subgraph_id: QmNhcbWDoPpWtXn2Dx7KWEetVoWq4BNCgRCEUPe5e88Afo, component: SubgraphInstanceManager
E  Jun 13 18:31:26.078 DEBG Trying again after eth_call RPC call failed (attempt #3) with result Err(CallError(ErrorMessage { msg: "RPC error: Error { code: ServerError(-32015), message: \"VM execution error.\", data: Some(String(\"Bad instruction fe\")) }" })), block_hash: 0xd07e459ce67a9272319a6729f3d60d9717026a314f001367196f0bed671694dd, block_number: 7951988, subgraph_id: QmNhcbWDoPpWtXn2Dx7KWEetVoWq4BNCgRCEUPe5e88Afo, component: SubgraphInstanceManager
E  Jun 13 18:31:26.142 DEBG Trying again after eth_call RPC call failed (attempt #4) with result Err(CallError(ErrorMessage { msg: "RPC error: Error { code: ServerError(-32015), message: \"VM execution error.\", data: Some(String(\"Bad instruction fe\")) }" })), block_hash: 0xd07e459ce67a9272319a6729f3d60d9717026a314f001367196f0bed671694dd, block_number: 7951988, subgraph_id: QmNhcbWDoPpWtXn2Dx7KWEetVoWq4BNCgRCEUPe5e88Afo, component: SubgraphInstanceManager
E  Jun 13 18:31:26.216 DEBG Trying again after eth_call RPC call failed (attempt #5) with result Err(CallError(ErrorMessage { msg: "RPC error: Error { code: ServerError(-32015), message: \"VM execution error.\", data: Some(String(\"Bad instruction fe\")) }" })), block_hash: 0xd07e459ce67a9272319a6729f3d60d9717026a314f001367196f0bed671694dd, block_number: 7951988, subgraph_id: QmNhcbWDoPpWtXn2Dx7KWEetVoWq4BNCgRCEUPe5e88Afo, component: SubgraphInstanceManager
E  Jun 13 18:31:26.281 DEBG Trying again after eth_call RPC call failed (attempt #6) with result Err(CallError(ErrorMessage { msg: "RPC error: Error { code: ServerError(-32015), message: \"VM execution error.\", data: Some(String(\"Bad instruction fe\")) }" })), block_hash: 0xd07e459ce67a9272319a6729f3d60d9717026a314f001367196f0bed671694dd, block_number: 7951988, subgraph_id: QmNhcbWDoPpWtXn2Dx7KWEetVoWq4BNCgRCEUPe5e88Afo, component: SubgraphInstanceManager
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant