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

[CLI] investigate potential multi-threading issues #254

Open
PiRK opened this issue Dec 14, 2022 · 0 comments
Open

[CLI] investigate potential multi-threading issues #254

PiRK opened this issue Dec 14, 2022 · 0 comments

Comments

@PiRK
Copy link
Collaborator

PiRK commented Dec 14, 2022

When using Cash Fusion in command line mode, we sometimes see warnings about functions not being called from the "main thread". This is likely not an issue, as there is no main GUI thread running in CLI mode and everything is handled by the daemon process which receives commands via RPC calls, but it should be investigated nonetheless, and if it turns out to be safe the warning should not be printed.

On load_wallet:
/tmp/.mount_ElectrODAFm6/usr/lib/python3.8/site-packages/electroncash/storage.py:255: UserWarning: run_hook "get_action" being called from outside the main thread (thr: Thread-3) may lead to undefined behavior. Please use util.do_in_main_thread to call run_hook if the hook in question does not return any results

We also see similar warnings when a fusion happens and the software adds a label to the transaction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant