-
Notifications
You must be signed in to change notification settings - Fork 15
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
Calling HyperSpyUI when another instace is active. #130
Comments
Yes it should, the "Connection refused" error is relevant. Which version of Qt/PyQt/PySide are you using? |
(the relevant file to debug is |
qt 4.8.7, pyqt 4.11.4 |
That should not be a problem. Try increasing |
Still refusing with 10000 |
Do you see any log output from the existing instance? |
This is all I get
|
PS, this uses a QLocalServer and a QLocalSocket to communicate from the secondary instance to the primary instance. Do you possibly have an interesting network config for localhost? |
That should be the log output from the new instance of the UI. Is there anything from the existing instance (the one that is running the full UI)? |
No, that one doesn't print anything to the log while attempting to connect. There is nothing special about my localhost AFAICT. |
It works for me in Windows. |
Could you download this file and run it from two different terminals? You will need to call it with an extra arg, e.g. It should isolate the problem to a very minimal scenario. |
I get |
When running the first one? |
No, the first one is fine |
For me, the outputs are: First:
Second:
|
In Windows? |
Could you check out the basic-CI branch on my repo? It has a test that performs those basic steps, which passes on Travis (#131). |
Simply running |
I have not been able to reproduce the issue in my laptop computer which is running Ubuntu (my office computer runs Debian testing). So, you were right, there may be an issue with my OS. I'll check once I get to the office. |
I have boiled down the problem to running hyperspyui as an application in Gnome. I have the following desktop entry: [Desktop Entry]
Exec=/home/fjd29/anaconda3/bin/hyperspyui %F
Name=HyperSpy UI
Terminal=false
MimeType=application/x-hdf;application/x-dm3;
Icon=/home/fjd29/Python/hyperspyUI/hyperspyui/images/hyperspy.svg
Type=Application
X-MultipleArgs=true
Categories=Science;Physics;DataVisualization; I only experience the issue when I start HyperSpyUI using this method. If I change Note: after I manage to integrate hyperspyui successfully in my gnome desktop I'll make a PR. |
@francisco-dlp : Could you try to print |
No wait, that wouldn't explain the network error :-/ |
Currently calling hyperspyui when an instance is active results in the following:
Shouldn't it open the file in the current instance instead?
The text was updated successfully, but these errors were encountered: