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 57 - LOCI shows an unnacceptable modal dialog
LOCI shows an unnacceptable modal dialog
Status: RESOLVED FIXED
Product: Fiji
Classification: Unclassified
Component: Other
unspecified
PC Linux
: P2 normal
Assigned To: Curtis Rueden
Depends on:
Blocks: 78
 
Reported: 2009-05-18 11:09 CDT by Albert Cardona
Modified: 2010-07-29 23:14 CDT
1 user (show)

See Also:

Description Albert Cardona 2009-05-18 11:09:34 CDT
On occasions a file may fail to load. Instead of reporting so in the log window, without locking execution, LOCI sometimes (not always; sometimes it fails and prints to the log window) will launch a modal dialog titled "File Opener" that reports on the width or height of the loaded image being smaller than zero.

A proposed fix is to REMOVE ANY INSTANCE of IJ.showMessage from all libraries. To lock execution, potentially on headless mode with a virtual frame buffer, is puzzling and completely unnecessary.

A library SHOULD NEVER show a modal dialog on error.
Comment 1 Albert Cardona 2009-05-18 11:11:23 CDT
Further information: the files I was trying to open where MRC files. The io.Open_MRC_Leginon class failed, and then the HandleExtraFileTypes fell through to LOCI, the last resort.
Comment 2 Johannes Schindelin 2009-05-18 11:24:15 CDT
What is your recommended method of detecting whether this was started interactively or from a library?

Without such a method, you cannot hope to get this issue fixed.
Comment 3 Curtis Rueden 2010-01-08 20:12:08 CST
The LOCI Bio-Formats Importer plugin needs to be reworked to expose an intermediate API layer. There is a ticket in the LOCI Trac about this:
    https://skyking.microscopy.wisc.edu/trac/java/ticket/310

The current goal is to do this work for the 4.2 release of Bio-Formats in April.
Comment 4 Curtis Rueden 2010-07-29 23:14:09 CDT
This work was completed for Bio-Formats 4.2. For technical details, see the ticket (now closed):
  http://www.loci.wisc.edu/trac/java/ticket/310