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

SingleInstance issues #275

Open
ngladitz opened this issue Apr 13, 2022 · 0 comments
Open

SingleInstance issues #275

ngladitz opened this issue Apr 13, 2022 · 0 comments
Labels
Milestone

Comments

@ngladitz
Copy link

I currently see the following with the SingleInstance listener enabled:

Scenario 1:

  • Start ImageJ without file arguments; the SingleInstance listener unexpectedly does not get started / does not start listening

Scenario 2:

  • Start ImageJ with file argument; the SingleInstance listener does start listening and the file given on the command line gets loaded via IJ1Helper.openImage() with the interception of DefaultLegacyHooks
  • Start a second ImageJ instance with a file argument; the SingleInstance listener communicates the file argument with the first instance but the file is opened via IJ1Helper.openAndAddToRecent() without the interception of DefaultLegacyHooks

I tried replacing the call of openAndAddToRecent() with openImage() to fix the issue in the second Scenario after which interception seems to work but then images opened via SingleInstance show odd behavior like being displayed with a very tiny default scale or colors being scaled differently (compared to opening the same image via e.g. File -> Open) and for some files (in my case BioFormats OBF with local / non-upstream modifications) I get two visually very distinct display windows (including title and image content) for the same series (though I only see openBytes on the reader being called once).

@ctrueden ctrueden added the bug label Apr 20, 2022
@ctrueden ctrueden added this to the unscheduled milestone Apr 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants