-
Notifications
You must be signed in to change notification settings - Fork 682
Metamask 4.12.0 crashes Ganache #186
Comments
It sounds like our error handling & messages aren't up to snuff here. From #930 (a duplicate of this issue) it sounds like reverting to a prior version of MetaMask works around this issue in the interim. |
@benjamincburns Metamask acknowledged a 4.12.0 as a broken build and reverted some changes in 4.13.0. That version does not break Ganache anymore. |
I am facing the same issue while using trufflesuite/ganache-cli:v6.1.8 and web3: 1.0.0-beta.33 TypeError: Cannot read property 'connection' of undefined |
@sreepriyasreekumar Thanks for reporting! We've identified the root cause and believe we have a fix which you can checkout here - if you have a chance to check this out, please report back here or open a new issue if you still experience this bug. My goal is to have this fix included in our next incremental release. Thanks again for taking the time to report this! |
#252 Fixed in |
@nicholasjpaterno not so sure
EDIT: Nevermind, I'm an idiot 0xProject/0x-monorepo#1520 |
After updating to Metamask 4.12.0 I have noticed that sometimes transactions crash local ganache process. Ganache is running on localhost's default port. Interestingly this never happens with Metamask 4.11.1.
This is the root cause of Ganache crash:
This is the transaction that causes Ganache to crash:
and immediately after that transaction is received this function is called in Ganache: https://github.com/trufflesuite/ganache-core/blob/v2.2.1/lib/webSocketServer.js#L32 and this is the nofitication parameter passed to the function
and provider that triggers the
data
event:The process exits because no web socket connections have been made (I had logs setup in various places in
webSocketServer.js
andthis.connectionsBySubscriptionId
class variable is just an empty object. (hence theCannot read property 'connection' of undefined
error)I realise this could most possibly be a Metamask problem, but the crash happens in Ganache. I was hoping someone can shed some light on what is going on.
Context
This prevents local development of the DApp I am working on.
Your Environment
The text was updated successfully, but these errors were encountered: