chia-blockchain-gui icon indicating copy to clipboard operation
chia-blockchain-gui copied to clipboard

[BUG] Cannot read properties of undefined (reading 'dark')

Open Lowestofttim opened this issue 2 years ago • 12 comments

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

Lowestofttim avatar May 17 '22 16:05 Lowestofttim

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.

Lowestofttim avatar May 17 '22 17:05 Lowestofttim

Thank you for detailed explanation how to reproduce it. I will fix it

seeden avatar May 17 '22 22:05 seeden

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?

CoderArgentina avatar Jun 28 '22 23:06 CoderArgentina

e

How did you set the password at this stage?

jurepetrovic avatar Jul 21 '22 09:07 jurepetrovic

I'm experiencing this same bug. Looks like there are a TON of dupe issues being created.

raid5 avatar Jul 27 '22 16:07 raid5

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.

seeden avatar Jul 27 '22 16:07 seeden

It's the exact same repro as originally reported by @Lowestofttim

raid5 avatar Jul 27 '22 16:07 raid5

@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?

seeden avatar Jul 27 '22 16:07 seeden

It looks like a pure windows issue. I am installing virtual machine and try to reproduce it.

seeden avatar Jul 27 '22 16:07 seeden

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 avatar Jul 27 '22 17:07 raid5

@raid5 ohhh, that is odd. I tried to simulate it on my mac 100 times and no luck

seeden avatar Jul 27 '22 17:07 seeden

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.

jurepetrovic avatar Jul 28 '22 12:07 jurepetrovic

It was probably fixed via #922. Can you try it?

seeden avatar Aug 15 '22 12:08 seeden