NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug.

The Fiji project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Bug 786 - Certain images open off screen & cannot view
Certain images open off screen & cannot view
Status: NEEDSINFO
Product: Fiji
Classification: Unclassified
Component: Plugins
unspecified
PC Windows
: P4 normal
Assigned To: Curtis Rueden
Depends on:
Blocks:
 
Reported: 2014-06-14 08:27 CDT by jmesquib
Modified: 2014-07-14 12:00 CDT
3 users (show)

See Also:

Description jmesquib 2014-06-14 08:27:44 CDT
Hello, 
When I open .tif and .nd2 files via bio-format importer, they images automatically open off screen and I cannot figure out a way to view them. I have ensured my windows 7 doesn't have multiple desktops running and that my dual monitor options are all turned off. This issue does not occur when I open .png's. 

Please advice
Thanks for your time,
Joe

Information about your version of Java:

  os.arch => amd64
  os.name => Windows 7
  os.version => 6.1
  java.version => 1.6.0_24
  java.vendor => Sun Microsystems Inc.
  java.runtime.name => Java(TM) SE Runtime Environment
  java.runtime.version => 1.6.0_24-b07
  java.vm.name => Java HotSpot(TM) 64-Bit Server VM
  java.vm.version => 19.1-b02
  java.vm.vendor => Sun Microsystems Inc.
  java.vm.info => mixed mode
  java.awt.graphicsenv => sun.awt.Win32GraphicsEnvironment
  java.specification.name => Java Platform API Specification
  java.specification.version => 1.6
  sun.cpu.endian => little
  sun.desktop => windows
  file.separator => \

The up-to-date check says: REMIND_LATER

Information relevant to JAVA_HOME related problems:

  JAVA_HOME is set to: C:\Fiji/java/win64/jdk1.6.0_24//jre
  imagej.dir => C:\Fiji

Information about the version of each plugin:

Activated update sites:
ImageJ: http://update.imagej.net/ (last check:20140613121743)
Fiji: http://fiji.sc/update/ (last check:20140612160314)

Files not up-to-date:
  6ea82abe (LOCAL_ONLY) 20140612150018 macros/BatchMacro.ijm
  78506d06 (LOCAL_ONLY) 20140608170304 macros/Opth_SDC_adjust_contrast.ijm
  9ed16539 (LOCAL_ONLY) 20140608170306 macros/Opth_SDC_color_montage_and_scale.ijm
  a3772a61 (LOCAL_ONLY) 20140608170310 macros/Opth_SDC_stack_to_channel.ijm
  0df0ae79 (MODIFIED) 20140604135958 macros/StartupMacros.fiji.ijm
  57ec7dd6 (LOCAL_ONLY) 20140604141558 plugins/Iterative_Deconvolve_3D.class
  f3df3779 (LOCAL_ONLY) 20140612213445 plugins/OvalProfilePlot$EllipsePoint.class
  3e8c7420 (LOCAL_ONLY) 20140612213445 plugins/OvalProfilePlot.class
  b34050b8 (LOCAL_ONLY) 20140612213445 plugins/Oval_Profile.class
  605c8897 (LOCAL_ONLY) 20140608135227 plugins/Stack_Combiner.class
  10e87cc2 (LOCAL_ONLY) 20140217114306 plugins/Vlip.txt
Comment 1 Curtis Rueden 2014-06-23 16:19:07 CDT
Thanks for the bug report, Joe, and sorry for the delay in reply.

If the image windows really are opening completely off screen (as opposed to not opening at all), then you can usually work around the issue on a Windows system by pressing Alt+Space, then M, then the left arrow key, then moving your mouse around. The window should snap to your mouse in that case, and you can then relocate it by moving the mouse cursor then clicking.

So, if I understand correctly, you _had_ your dual monitors set up to extend your desktop, and then when you disabled one of the monitors, some images open off screen?

But the window placement logic in ImageJ1 and Bio-Formats is quite scattered, so it would be very helpful to have some additional information:

* What is the resolution of your desktop?
* What is the resolution of the problematic TIFF & ND2 files?
* If you convert problematic TIFF to JPEG, does the problem happen when you open that JPEG?
* Are you able to reproduce this issue on any system besides your own?
* Does the problem ever happen if you have your dual monitors enabled?
* Does the problem _only_ happen with the File>Import>Bio-Formats command? (Not File>Open)

Our goal here is to reliably reproduce the issue on one of your systems here, so that we can develop a fix for the issue. So any additional information you could provide along the above lines would be very helpful.
Comment 2 Curtis Rueden 2014-06-23 17:23:42 CDT
From Joe via email:

> * What is the resolution of your desktop?
>
> 1366 x 768
>
> * What is the resolution of the problematic TIFF & ND2 files?
>
> 512x512
>
> * If you convert problematic TIFF to JPEG, does the problem happen
> when you open that JPEG?
>
> Yes and no. I've got a script that converts the tiffs to pngs. The
> pngs always open on my screen. The tiffs always above my screen (where
> the 2nd monitor would show).
>
> * Are you able to reproduce this issue on any system besides your own?
>
> Haven't tried.
>
> * Does the problem ever happen if you have your dual monitors enabled?
>
> The problem would and does happen, only that when I have both monitors
> so I can easily see the image in the upper screen and manipulate it
> accordingly.
>
> * Does the problem _only_ happen with the File>Import>Bio-Formats
> command? (Not File>Open)
>
> I am unsure. I can't open these tiffs without going through
> Bio-formats. 
> 
> If I had to guess, I would state that imageJ detected my dual monitor
> settings once and now assumes that those settings are always on.
>
> I'll try your current work around. This only affects me when I'm at
> home (on a single monitor) as at work I have my dual monitor present.
>
> I'm on UW-Madison campus, if you want to check out my ImageJ. 

Thanks for the feedback. I'll take a stab at reproducing this on my system later this week, and follow up with any additional questions. Since you are local, if all else fails, I could come over physically to diagnose further. Will keep you posted.
Comment 3 Curtis Rueden 2014-07-14 12:00:42 CDT
From Joe via email:
> I've figured something out that may or amy not be of interest. If you
> do your suggested trick, nothing - off screen. But if you click
> maximize, it comes back to the screen and all subsequent images are
> back on screeen now. Joe 

I looked into the code a bit, and I am guessing the problematic section is this:

https://github.com/imagej/ImageJA/blob/v1.49d/src/main/java/ij/gui/ImageWindow.java#L151-L158

I.e.: the last location is saved in the ImageJ preferences. This suggests that perhaps the problem will go away if you call Edit > Options > Reset to clear your preferences.

Care to give it a try?