Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Site freezing when submitting answer #269

Open
mrmmarcell opened this issue Dec 2, 2019 · 2 comments
Open

Site freezing when submitting answer #269

mrmmarcell opened this issue Dec 2, 2019 · 2 comments

Comments

@mrmmarcell
Copy link

I noticed an issue when submitting answers for challenges on certain browsers the site freezes and becomes unresponsive, forcing the browser to terminate.
This happens in:
Chrome 78.0.3904.108 on Windows 10
MS Edge 42.17134.1098.0
Tried fixing it but got lost in the recursion, seems like in _tryProofOfWork the params variable is never defined under Chrome, the execution never reaches testbits and gets stuck a loop. Also debugged with Burp the api call is not issued before the freeze.

@mrmmarcell
Copy link
Author

Okay after a few hours of debugging I managed to find a workaround. If you set PROOF_OF_WORK_BITS to zero in the config.py file it basically turns off the proofofwork token feature and the browser doesn't get stuck in a loop. You do have to restart the server and hit a few Crtl-F5s in the browser after setting it because the js gets cached.
So add this to config.py: PROOF_OF_WORK_BITS = 0

@Matir
Copy link
Member

Matir commented Jan 26, 2020

Sorry I didn't get to this sooner. I can't seem to reproduce the issue on Chrome 80.

Setting PROOF_OF_WORK_BITS to 12 results in hashing times of ~1-2s per time.

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

2 participants