frame icon indicating copy to clipboard operation
frame copied to clipboard

Cannot read properties of undefined (reading 'updatePendingFees')

Open ligi opened this issue 3 years ago • 5 comments

wanted to try frame again. Installed frame_0.5.0-beta.22_amd64.deb on Ubuntu 20.04.5 LTS

frame does not start up and there is kind of a "bootloop" with this error on the end:

22:29:30.329 › could not update gas prices for chain 1 {
  feeMarket: {
    nextBaseFee: '0x161cc3662',
    maxBaseFeePerGas: '0x1bfc674d5',
    maxPriorityFeePerGas: '0x3b9aca00',
    maxFeePerGas: '0x1fb613ed5'
  },
  chainConfig: {
    _events: {},
    _eventsCount: 0,
    _supportedHardforks: [],
    _eips: [],
    _customChains: [],
    _chainParams: {
      name: 'mainnet',
      chainId: 1,
      networkId: 1,
      defaultHardfork: 'istanbul',
      consensus: '[object]',
      comment: 'The Ethereum main chain',
      url: 'https://ethstats.net/',
      genesis: '[object]',
      hardforks: '[array]',
      bootstrapNodes: '[array]',
      dnsNetworks: '[array]'
    },
    DEFAULT_HARDFORK: 'istanbul',
    _hardfork: 'arrowGlacier'
  }
} TypeError: Cannot read properties of undefined (reading 'updatePendingFees')
    at Chains.<anonymous> (/opt/Frame/resources/app.asar/compiled/main/provider/index.js:87:43)
    at Chains.emit (node:events:390:28)
    at Chains.emit (/opt/Frame/resources/app.asar/compiled/main/chains/index.js:451:15)
    at ChainConnection.<anonymous> (/opt/Frame/resources/app.asar/compiled/main/chains/index.js:406:38)
    at ChainConnection.emit (node:events:390:28)
    at BlockMonitor.<anonymous> (/opt/Frame/resources/app.asar/compiled/main/chains/index.js:89:22)

ligi avatar Aug 28 '22 20:08 ligi

Hi @ligi, just wondering if you have any state remaining from a previous install? Your config file and other state should be found in ~/.config/Frame.

goosewobbler avatar Aug 31 '22 17:08 goosewobbler

Also we could do with some logs to help diagnose this, is there anything in there that might help? The log file locations can be found in our Discord FAQ channel, you can also DM us logs there after redacting any addresses if you like.

goosewobbler avatar Sep 06 '22 21:09 goosewobbler

I just removed .config/Frame - same error happy to provide logs if you tell me where to find them

ligi avatar Sep 06 '22 21:09 ligi

logs from after starting frame:

created connection to ipfs at {
  host: 'ipfs.nebula.land',
  port: '',
  protocol: 'https:',
  pathname: '/api/v0',
  'api-path': '/api/v0'
}
created connection to ipfs at {
  host: 'ipfs.nebula.land',
  port: '',
  protocol: 'https:',
  pathname: '/api/v0',
  'api-path': '/api/v0'
}
23:40:21.504 › ethereum:1's connection has been updated
23:40:21.507 › Secondary connection: OFF
23:40:21.508 › Primary connection: ON
23:40:21.508 › Creating primary connection because it didn't exist or the target changed { target: 'infura' }
23:40:21.509 › Updating primary connection for chain 1 { status: 'loading', connected: false, type: '', network: '' }
created connection to ipfs at {
  host: 'ipfs.nebula.land',
  port: '',
  protocol: 'https:',
  pathname: '/api/v0',
  'api-path': '/api/v0'
}
A JavaScript error occurred in the main process
Uncaught Exception:
TypeError: Cannot read properties of undefined (reading 'toUpperCase')
    at capitalize (/opt/Frame/resources/app.asar/compiled/resources/utils/index.js:27:17)
    at new FrameAccount (/opt/Frame/resources/app.asar/compiled/main/accounts/Account/index.js:39:52)
    at /opt/Frame/resources/app.asar/compiled/main/accounts/index.js:40:28
    at Array.reduce (<anonymous>)
    at new Accounts (/opt/Frame/resources/app.asar/compiled/main/accounts/index.js:39:67)
    at Object.<anonymous> (/opt/Frame/resources/app.asar/compiled/main/accounts/index.js:800:19)
    at Module._compile (node:internal/modules/cjs/loader:1116:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1169:10)
    at Module.load (node:internal/modules/cjs/loader:988:32)
    at Module._load (node:internal/modules/cjs/loader:829:12)
    at Function.c._load (node:electron/js2c/asar_bundle:5:13343)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/opt/Frame/resources/app.asar/compiled/main/index.js:48:18)
    at Module._compile (node:internal/modules/cjs/loader:1116:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1169:10)
23:40:21.722 › Trezor Connect initialized
23:40:21.729 › ethereum:1's connection has been updated
23:40:21.729 › Secondary connection: OFF
23:40:21.729 › Primary connection: ON
23:40:22.446 ›     Primary connection for network 1 connected
23:40:22.556 › Updating primary connection for chain 1 { status: 'connected', connected: false, type: '', network: '' }
23:40:22.559 › ethereum:1's connection has been updated
23:40:22.560 › Secondary connection: OFF
23:40:22.561 › Primary connection: ON
23:40:22.562 › Updating primary connection for chain 1 { status: 'connected', connected: false, type: '', network: '' }
23:40:22.566 › ethereum:1's connection has been updated
23:40:22.566 › Secondary connection: OFF
23:40:22.567 › Primary connection: ON
23:40:22.760 › Updating primary connection for chain 1 { status: 'connected', connected: true, type: '', network: '1' }
23:40:22.763 › ethereum:1's connection has been updated
23:40:22.764 › Secondary connection: OFF
23:40:22.765 › Primary connection: ON
23:40:22.773 › could not update gas prices for chain 1 {
  feeMarket: {
    nextBaseFee: '0x32af55f1b',
    maxBaseFeePerGas: '0x4025e8c5f',
    maxPriorityFeePerGas: '0x3b9aca00',
    maxFeePerGas: '0x43df9565f'
  },
  chainConfig: {
    _events: {},
    _eventsCount: 0,
    _supportedHardforks: [],
    _eips: [],
    _customChains: [],
    _chainParams: {
      name: 'mainnet',
      chainId: 1,
      networkId: 1,
      defaultHardfork: 'istanbul',
      consensus: '[object]',
      comment: 'The Ethereum main chain',
      url: 'https://ethstats.net/',
      genesis: '[object]',
      hardforks: '[array]',
      bootstrapNodes: '[array]',
      dnsNetworks: '[array]'
    },
    DEFAULT_HARDFORK: 'istanbul',
    _hardfork: 'arrowGlacier'
  }
} TypeError: Cannot read properties of undefined (reading 'updatePendingFees')
    at Chains.<anonymous> (/opt/Frame/resources/app.asar/compiled/main/provider/index.js:87:43)
    at Chains.emit (node:events:390:28)
    at Chains.emit (/opt/Frame/resources/app.asar/compiled/main/chains/index.js:451:15)
    at ChainConnection.<anonymous> (/opt/Frame/resources/app.asar/compiled/main/chains/index.js:406:38)
    at ChainConnection.emit (node:events:390:28)
    at BlockMonitor.<anonymous> (/opt/Frame/resources/app.asar/compiled/main/chains/index.js:89:22)
23:40:34.947 › could not update gas prices for chain 1 {
  feeMarket: {
    nextBaseFee: '0x2e68e9150',
    maxBaseFeePerGas: '0x3abcc6fea',
    maxPriorityFeePerGas: '0x3b9aca00',
    maxFeePerGas: '0x3e76739ea'
  },
  chainConfig: {
    _events: {},
    _eventsCount: 0,
    _supportedHardforks: [],
    _eips: [],
    _customChains: [],
    _chainParams: {
      name: 'mainnet',
      chainId: 1,
      networkId: 1,
      defaultHardfork: 'istanbul',
      consensus: '[object]',
      comment: 'The Ethereum main chain',
      url: 'https://ethstats.net/',
      genesis: '[object]',
      hardforks: '[array]',
      bootstrapNodes: '[array]',
      dnsNetworks: '[array]'
    },
    DEFAULT_HARDFORK: 'istanbul',
    _hardfork: 'arrowGlacier'
  }
} TypeError: Cannot read properties of undefined (reading 'updatePendingFees')
    at Chains.<anonymous> (/opt/Frame/resources/app.asar/compiled/main/provider/index.js:87:43)
    at Chains.emit (node:events:390:28)
    at Chains.emit (/opt/Frame/resources/app.asar/compiled/main/chains/index.js:451:15)
    at ChainConnection.<anonymous> (/opt/Frame/resources/app.asar/compiled/main/chains/index.js:406:38)
    at ChainConnection.emit (node:events:390:28)
    at BlockMonitor.<anonymous> (/opt/Frame/resources/app.asar/compiled/main/chains/index.js:89:22)
23:40:46.912 › could not update gas prices for chain 1 {
  feeMarket: {
    nextBaseFee: '0x30fb7b944',
    maxBaseFeePerGas: '0x3dfe4867b',
    maxPriorityFeePerGas: '0x3b9aca00',
    maxFeePerGas: '0x41b7f507b'
  },
  chainConfig: {
    _events: {},
    _eventsCount: 0,
    _supportedHardforks: [],
    _eips: [],
    _customChains: [],
    _chainParams: {
      name: 'mainnet',
      chainId: 1,
      networkId: 1,
      defaultHardfork: 'istanbul',
      consensus: '[object]',
      comment: 'The Ethereum main chain',
      url: 'https://ethstats.net/',
      genesis: '[object]',
      hardforks: '[array]',
      bootstrapNodes: '[array]',
      dnsNetworks: '[array]'
    },
    DEFAULT_HARDFORK: 'istanbul',
    _hardfork: 'arrowGlacier'
  }
} TypeError: Cannot read properties of undefined (reading 'updatePendingFees')
    at Chains.<anonymous> (/opt/Frame/resources/app.asar/compiled/main/provider/index.js:87:43)
    at Chains.emit (node:events:390:28)
    at Chains.emit (/opt/Frame/resources/app.asar/compiled/main/chains/index.js:451:15)
    at ChainConnection.<anonymous> (/opt/Frame/resources/app.asar/compiled/main/chains/index.js:406:38)
    at ChainConnection.emit (node:events:390:28)
    at BlockMonitor.<anonymous> (/opt/Frame/resources/app.asar/compiled/main/chains/index.js:89:22)
23:41:18.104 › could not update gas prices for chain 1 {
  feeMarket: {
    nextBaseFee: '0x31c8b59c8',
    maxBaseFeePerGas: '0x3f0205da2',
    maxPriorityFeePerGas: '0x3b9aca00',
    maxFeePerGas: '0x42bbb27a2'
  },
  chainConfig: {
    _events: {},
    _eventsCount: 0,
    _supportedHardforks: [],
    _eips: [],
    _customChains: [],
    _chainParams: {
      name: 'mainnet',
      chainId: 1,
      networkId: 1,
      defaultHardfork: 'istanbul',
      consensus: '[object]',
      comment: 'The Ethereum main chain',
      url: 'https://ethstats.net/',
      genesis: '[object]',
      hardforks: '[array]',
      bootstrapNodes: '[array]',
      dnsNetworks: '[array]'
    },
    DEFAULT_HARDFORK: 'istanbul',
    _hardfork: 'arrowGlacier'
  }
} TypeError: Cannot read properties of undefined (reading 'updatePendingFees')
    at Chains.<anonymous> (/opt/Frame/resources/app.asar/compiled/main/provider/index.js:87:43)
    at Chains.emit (node:events:390:28)
    at Chains.emit (/opt/Frame/resources/app.asar/compiled/main/chains/index.js:451:15)
    at ChainConnection.<anonymous> (/opt/Frame/resources/app.asar/compiled/main/chains/index.js:406:38)
    at ChainConnection.emit (node:events:390:28)
    at BlockMonitor.<anonymous> (/opt/Frame/resources/app.asar/compiled/main/chains/index.js:89:22)
23:41:19.879 › could not update gas prices for chain 1 {
  feeMarket: {
    nextBaseFee: '0x31c8b59c8',
    maxBaseFeePerGas: '0x3f0205da2',
    maxPriorityFeePerGas: '0x3b9aca00',
    maxFeePerGas: '0x42bbb27a2'
  },
  chainConfig: {
    _events: {},
    _eventsCount: 0,
    _supportedHardforks: [],
    _eips: [],
    _customChains: [],
    _chainParams: {
      name: 'mainnet',
      chainId: 1,
      networkId: 1,
      defaultHardfork: 'istanbul',
      consensus: '[object]',
      comment: 'The Ethereum main chain',
      url: 'https://ethstats.net/',
      genesis: '[object]',
      hardforks: '[array]',
      bootstrapNodes: '[array]',
      dnsNetworks: '[array]'
    },
    DEFAULT_HARDFORK: 'istanbul',
    _hardfork: 'arrowGlacier'
  }
} TypeError: Cannot read properties of undefined (reading 'updatePendingFees')
    at Chains.<anonymous> (/opt/Frame/resources/app.asar/compiled/main/provider/index.js:87:43)
    at Chains.emit (node:events:390:28)
    at Chains.emit (/opt/Frame/resources/app.asar/compiled/main/chains/index.js:451:15)
    at ChainConnection.<anonymous> (/opt/Frame/resources/app.asar/compiled/main/chains/index.js:406:38)
    at ChainConnection.emit (node:events:390:28)
    at BlockMonitor.<anonymous> (/opt/Frame/resources/app.asar/compiled/main/chains/index.js:89:22)
23:41:22.883 › could not update gas prices for chain 1 {
  feeMarket: {
    nextBaseFee: '0x2bb69df51',
    maxBaseFeePerGas: '0x37531fea3',
    maxPriorityFeePerGas: '0x3b9aca00',
    maxFeePerGas: '0x3b0ccc8a3'
  },
  chainConfig: {
    _events: {},
    _eventsCount: 0,
    _supportedHardforks: [],
    _eips: [],
    _customChains: [],
    _chainParams: {
      name: 'mainnet',
      chainId: 1,
      networkId: 1,
      defaultHardfork: 'istanbul',
      consensus: '[object]',
      comment: 'The Ethereum main chain',
      url: 'https://ethstats.net/',
      genesis: '[object]',
      hardforks: '[array]',
      bootstrapNodes: '[array]',
      dnsNetworks: '[array]'
    },
    DEFAULT_HARDFORK: 'istanbul',
    _hardfork: 'arrowGlacier'
  }
} TypeError: Cannot read properties of undefined (reading 'updatePendingFees')
    at Chains.<anonymous> (/opt/Frame/resources/app.asar/compiled/main/provider/index.js:87:43)
    at Chains.emit (node:events:390:28)
    at Chains.emit (/opt/Frame/resources/app.asar/compiled/main/chains/index.js:451:15)
    at ChainConnection.<anonymous> (/opt/Frame/resources/app.asar/compiled/main/chains/index.js:406:38)
    at ChainConnection.emit (node:events:390:28)
    at BlockMonitor.<anonymous> (/opt/Frame/resources/app.asar/compiled/main/chains/index.js:89:22)
23:41:30.951 › could not update gas prices for chain 1 {
  feeMarket: {
    nextBaseFee: '0x2944119ec',
    maxBaseFeePerGas: '0x343a264cf',
    maxPriorityFeePerGas: '0x3b9aca00',
    maxFeePerGas: '0x37f3d2ecf'
  },
  chainConfig: {
    _events: {},
    _eventsCount: 0,
    _supportedHardforks: [],
    _eips: [],
    _customChains: [],
    _chainParams: {
      name: 'mainnet',
      chainId: 1,
      networkId: 1,
      defaultHardfork: 'istanbul',
      consensus: '[object]',
      comment: 'The Ethereum main chain',
      url: 'https://ethstats.net/',
      genesis: '[object]',
      hardforks: '[array]',
      bootstrapNodes: '[array]',
      dnsNetworks: '[array]'
    },
    DEFAULT_HARDFORK: 'istanbul',
    _hardfork: 'arrowGlacier'
  }
} TypeError: Cannot read properties of undefined (reading 'updatePendingFees')
    at Chains.<anonymous> (/opt/Frame/resources/app.asar/compiled/main/provider/index.js:87:43)
    at Chains.emit (node:events:390:28)
    at Chains.emit (/opt/Frame/resources/app.asar/compiled/main/chains/index.js:451:15)
    at ChainConnection.<anonymous> (/opt/Frame/resources/app.asar/compiled/main/chains/index.js:406:38)
    at ChainConnection.emit (node:events:390:28)
    at BlockMonitor.<anonymous> (/opt/Frame/resources/app.asar/compiled/main/chains/index.js:89:22)

ligi avatar Sep 06 '22 21:09 ligi

Thanks for that, this is fixed in our develop branch and will be in the next release. Will discuss with the team to see if we need to backport it to get it to production faster.

goosewobbler avatar Sep 06 '22 22:09 goosewobbler

Fix released in 0.6.0

goosewobbler avatar Feb 27 '23 15:02 goosewobbler