Ticket #846 (closed defect: fixed)
Opened 2011-10-26T13:28:44-05:00
Last modified 2013-04-16T16:56:19-05:00
Exception displayed when dropping unsupported file on application window
Reported by: | bdezonia | Owned by: | bdezonia |
---|---|---|---|
Priority: | major | Milestone: |
|
Component: | I/O | Version: | |
Severity: | serious | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | #860 |
Description
Open IJ2. Open OS X Finder. Drag and drop a non-image file onto the the application. Exception displayed though no other side effects apparent.
Exception:
[ERROR] Exception
net.imglib2.io.ImgIOException: loci.formats.UnknownFormatException: Unknown file format: /Users/bdezonia/Desktop/pay-employee-withholding.pdf
at net.imglib2.io.ImgOpener.openImg(ImgOpener.java:189)
at net.imglib2.io.ImgOpener.openImg(ImgOpener.java:157)
at net.imglib2.io.ImgOpener.openImg(ImgOpener.java:116)
at imagej.io.plugins.OpenImage.run(OpenImage.java:89)
at imagej.ext.plugin.PluginModule.run(PluginModule.java:174)
at imagej.ext.module.ModuleRunner.run(ModuleRunner.java:148)
at imagej.ext.module.ModuleRunner.call(ModuleRunner.java:118)
at imagej.ext.module.ModuleRunner.call(ModuleRunner.java:1)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
Caused by: loci.formats.UnknownFormatException: Unknown file format: /Users/bdezonia/Desktop/pay-employee-withholding.pdf
at loci.formats.ImageReader.getReader(ImageReader.java:179)
at loci.formats.ImageReader.setId(ImageReader.java:677)
at loci.formats.ReaderWrapper.setId(ReaderWrapper.java:488)
at loci.formats.ChannelFiller.setId(ChannelFiller.java:249)
at loci.formats.ReaderWrapper.setId(ReaderWrapper.java:488)
at loci.formats.ChannelSeparator.setId(ChannelSeparator.java:257)
at loci.formats.ReaderWrapper.setId(ReaderWrapper.java:488)
at net.imglib2.io.ImgOpener.createReader(ImgOpener.java:436)
at net.imglib2.io.ImgOpener.initializeReader(ImgOpener.java:494)
at net.imglib2.io.ImgOpener.openImg(ImgOpener.java:183)
... 12 more
[WARN ] Ignoring unsupported output: null
Change History
comment:1 Changed 2011-11-07T14:21:20-06:00 by bdezonia
- Milestone changed from imagej-2.0-beta1 to imagej-2.0-beta2
comment:4 Changed 2012-05-14T10:59:45-05:00 by bdezonia
- Milestone changed from imagej-2.0.0-beta3 to imagej-2.0.0-beta4
comment:5 Changed 2012-09-10T09:11:41-05:00 by bdezonia
- Milestone changed from imagej-2.0.0-beta4 to imagej-2.0.0-beta5
comment:6 Changed 2013-04-16T16:56:19-05:00 by curtis
- Status changed from new to closed
- Resolution set to fixed
In principle, this is fixed with the new drag-and-drop infrastructure. However, in practice SCIFIO often erroneously claims support for files and then throws an exception. But that bug is outside the scope of drag-and-drop specifically, so I am closing this ticket.
This should be fixed when we redo drag and drop as sezpoz enabled droppers. No unsupported file should then get handled by any dropper. Moving to a later beta to verify behavior is fixed by drag/drop rewrite.