chia-blockchain-gui
chia-blockchain-gui copied to clipboard
[BUG] Cannot read properties of undefined (reading 'dark')
What happened?
When logging out of the wallet only gui and trying to either create a new set of keys or log in with a different set of words I recieve this error.
Wallet is fully synced
I can log back into original wallet fine.
Version
1.3.5
What platform are you using?
Windows
What ui mode are you using?
GUI
Relevant log output or stacktrace
Cannot read properties of undefined (reading 'dark')
URL
#/
Stacktrace
at webpack://@chia/gui/node_modules/@mui/material/Button/Button.js:101:53 dark
at webpack://@chia/gui/node_modules/@mui/system/esm/createStyled.js:191:17 Array(numOfCustomFnsApplied).fill
at webpack://@chia/src/utils/flatten.js:68:21 isStatelessFunction
at webpack://@chia/src/models/ComponentStyle.js:91:28 phash
at webpack://@chia/src/models/StyledComponent.js:87:21 useInjectedStyle<T>
at webpack://@chia/src/models/StyledComponent.js:126:4 componentStyle
at webpack://@chia/src/models/StyledComponent.js:245:27 forwardRef
at webpack://@chia/gui/node_modules/react-dom/cjs/react-dom.production.min.js:157:136 Ch
at webpack://@chia/gui/node_modules/react-dom/cjs/react-dom.production.min.js:176:259 useOpaqueIdentifier
at webpack://@chia/gui/node_modules/react-dom/cjs/react-dom.production.min.js:271:399 d=b.pendingProps;e=b.memoizedState;e=null!==e?e.element:null;yg(a,b);Cg(b,d,null,c);d=b.memoizedState.element;if(d===e)sh(),b=hi(a,b,c);else{e=b.stateNode;if(f=e.hydrate)kh=rf(b.stateNode.containerInfo.firstChild),jh=b,f=lh=!0;if
Solved. This was because I had not set a password for my keys.
Once set everything worked as expected.
Still a bug/error to look into though
Run the light wallet without a password, then attempt to create a new wallet or log into a different wallet.
Thank you for detailed explanation how to reproduce it. I will fix it
I have the same problem, and cannot open it in any way, i completely uninstalled chia and have the same problem after reinstall, how can i set it to light theme?
e
How did you set the password at this stage?
I'm experiencing this same bug. Looks like there are a TON of dupe issues being created.
Thanks for the report @raid5. Would you be able to attach a screen recording of the issue, or screenshots if you can't record a video? Any other details that you can provide would be appreciated.
It's the exact same repro as originally reported by @Lowestofttim
@raid5 I am sorry, but I am not able to reproduce it on my computer but I prepared a fix which should fix it. Will you try it when I prepare PR?
It looks like a pure windows issue. I am installing virtual machine and try to reproduce it.
I'm on a Mac and hit this issue, so I don't believe it is Windows only. I'm happy to test out your fix, just not really sure how. I would have to build it from source after pulling down your PR? I haven't done any dev work against this repo yet.
@raid5 ohhh, that is odd. I tried to simulate it on my mac 100 times and no luck
No, it was not Windows issue. It happened to me on Debian 10. I migrated keys from old version from CLI and then the GUI worked. But it's a dirty workaround.
It was probably fixed via #922. Can you try it?