Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime error and memory leak bug fixes #8

Closed
wants to merge 2 commits into from

Conversation

OACDesigns
Copy link

This PR fixes two bugs:

  1. it ensures the web workers are properly terminated before the reference to them is deleted.
    If this isn't done, then the threads stay alive consuming resources, and in some cases this memory leak can crash the browser.

  2. it fixes a bug where a web worker can end up having have a job where the block height is 0, causing a runtime error when drawing to the canvas context.

In addition to the above, unnecessary trailing white space has been removed (an automatic feature of my IDE)

@OACDesigns OACDesigns mentioned this pull request Oct 9, 2017
ensure the web worker is terminated before deleting the reference to them
so that the thread is destroyed and  memory is release straight away.
ensures a job is not created where the block height is 0, and fixes the
code that detects when one there's no job for a core.
@viliusle
Copy link
Owner

i will merge, but before that i need to automate building. Will try to do that in next few days.

@OACDesigns
Copy link
Author

👍

@viliusle
Copy link
Owner

i added auto build, formatted code, merged you updates manually.

status: merge manually.

@viliusle viliusle closed this Nov 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants