Being a happy joulescope user for a few years I recently have noticed left over processes after closing the application. This sometimes messes with a new application instance started later on.
I’m on linux, an ubuntu 20.04, and have noticed this with both v0.9.3 and v0.9.7.
The joulescope installation is simply the content of the .tar.gz unpacked in a directory. Application launch is done by calling joulescope_launcher.
Then, when I close joulescope, either by clicking File->Exit or by clicking the X on the window itself, the window closes but two joulescope_launcher processes are left behind.
I looked but could not find more detailed installation instructions unless I go the build from source route.
HI @mogul, and thanks for taking the time to report this issue. Installation should be as simple as extracting the .tar.gz file to the directory of your choice, as you did.
I tried to duplicate this on my Ubuntu 20.04 LTS machine:
mliberty@taurus:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal
Unfortunately, when I close the Joulescope UI, these two processes go away. I tried a few different things, like unplugging the instrument and creating recordings, but couldn’t get the processes to stay running after exit.
Perhaps something else is going on? Would you mind emailing the Joulescope logs from ~/.joulescope/log to support at joulescope dot com? I’ll take a look to see if something else is happening.
Another option is to try running directly from python. If somehow your machine has incompatible binary libraries from my Ubuntu 20.04 machine, this may have different behavior than the .tar.gz distribution.
Create a python virtual environment, activate it, install the Joulescope UI, and run the UI:
I tried, got some complains from pip about bdist_wheel not there. I ignored the noise and fired up joulsescope. it started fine but still it did not end the process when I exited the program. Just as before.
Now, inspired by your earlier post, I discovered the ~/.joulescope directory, and found ~/.joulescope/config/joulescope_config.json.
Aha! Lets move the whole ~/.joulescope out of the way and give it a try.
Bingo! There we have it. Joulescope is now launching clean and terminting clean as well.
Both the .tar.gz installed one and the pip installed one.
I still have the bad config file, I can mail it if you are curious, but it simply must have been corrupted somehow, not sure if it is worth wasting too much energy on.
Anyway, problem solved and I’m happy. Perhaps we have an item for your FAQ?
Wow, thanks @mogul! I am able to duplicate this behavior. I have no idea why yet, but appears to be very repeatable, which is great. Out of curiosity, I also tested these same steps on Windows, and it also does not exit clearly.
I created Issue #129 which we will investigate for the next release. Thank you!
We investigated this issue as part of the 0.9.11 release. We now understand the problem with closing with undocked widgets, and we updated issue #129 with details. Our plan is to address this issue later this year.