#48 Error: Problem occurs when computing a tile by the owner

Fixed in 0.9.30
closed-fixed
8
2015-01-27
2007-11-07
No

With Jomic 0.9.27, several images cause the following error:

javax.media.jai.util.ImagingException: Problem occurs when computing a tile by the owner.
at net.sf.jomic.tools.ImagingExceptionThrowingImagingListener.errorOccurred(ImagingExceptionThrowingImagingListener.java:46)
at com.sun.media.jai.util.SunTileScheduler.sendExceptionToListener(SunTileScheduler.java:1654)
at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:929)
at javax.media.jai.OpImage.getTile(OpImage.java:1139)
at javax.media.jai.RenderedOp.getTile(RenderedOp.java:2268)
at net.sf.jomic.tools.ImageTools.loadImageToMemory(ImageTools.java:938)
at net.sf.jomic.comic.ComicView.updateDisplay(ComicView.java:1077)
at net.sf.jomic.comic.ComicView.setImageIndex(ComicView.java:203)
at net.sf.jomic.comic.ComicView.goNext(ComicView.java:1163)
at net.sf.jomic.comic.ComicView.goNext(ComicView.java:921)
at net.sf.jomic.ui.JomicFrame.performGoNext(JomicFrame.java:725)
at net.sf.jomic.ui.JomicFrame.actionPerformed(JomicFrame.java:287)
at net.sf.jomic.tools.ActionDelegate.actionPerformed(ActionDelegate.java:53)
at net.sf.jomic.ui.JomicMenuBar.actionPerformed(JomicMenuBar.java:198)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:334)
at javax.swing.AbstractButton.doClick(AbstractButton.java:282)
at javax.swing.plaf.basic.BasicMenuItemUI$Actions.actionPerformed(BasicMenuItemUI.java:1020)
at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1576)
at javax.swing.JComponent.processKeyBinding(JComponent.java:2772)
at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:656)
at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:664)
at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:664)
at javax.swing.JMenuBar.processKeyBinding(JMenuBar.java:640)
at javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:255)
at javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:242)
at javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2849)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2841)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2735)
at java.awt.Component.processEvent(Component.java:5379)
at java.awt.Container.processEvent(Container.java:2010)
at java.awt.Component.dispatchEventImpl(Component.java:4068)
at java.awt.Container.dispatchEventImpl(Container.java:2068)
at java.awt.Component.dispatchEvent(Component.java:3903)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1826)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:681)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:938)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:810)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:645)
at java.awt.Component.dispatchEventImpl(Component.java:3941)
at java.awt.Container.dispatchEventImpl(Container.java:2068)
at java.awt.Window.dispatchEventImpl(Window.java:1791)
at java.awt.Component.dispatchEvent(Component.java:3903)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Caused by: javax.media.jai.util.ImagingException: Problem occurs when computing a tile by the owner.
at net.sf.jomic.tools.ImagingExceptionThrowingImagingListener.errorOccurred(ImagingExceptionThrowingImagingListener.java:46)
at com.sun.media.jai.util.SunTileScheduler.sendExceptionToListener(SunTileScheduler.java:1654)
at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:929)
at javax.media.jai.OpImage.getTile(OpImage.java:1139)
at com.sun.media.jai.opimage.TranslateIntOpImage.getTile(TranslateIntOpImage.java:140)
at javax.media.jai.PlanarImage.getData(PlanarImage.java:2098)
at com.sun.media.jai.opimage.OverlayOpImage.computeTile(OverlayOpImage.java:164)
at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:912)
... 49 more
Caused by: java.lang.UnsupportedOperationException: Band count exceeds non-unity number of constants.
at javax.media.jai.BorderExtenderConstant.clamp(BorderExtenderConstant.java:84)
at javax.media.jai.BorderExtenderConstant.extend(BorderExtenderConstant.java:238)
at javax.media.jai.PlanarImage.copyExtendedData(PlanarImage.java:2415)
at com.sun.media.jai.opimage.BorderOpImage.computeTile(BorderOpImage.java:220)
at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:912)
... 54 more
Caused by:
javax.media.jai.util.ImagingException: Problem occurs when computing a tile by the owner.
at net.sf.jomic.tools.ImagingExceptionThrowingImagingListener.errorOccurred(ImagingExceptionThrowingImagingListener.java:46)
at com.sun.media.jai.util.SunTileScheduler.sendExceptionToListener(SunTileScheduler.java:1654)
at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:929)
at javax.media.jai.OpImage.getTile(OpImage.java:1139)
at com.sun.media.jai.opimage.TranslateIntOpImage.getTile(TranslateIntOpImage.java:140)
at javax.media.jai.PlanarImage.getData(PlanarImage.java:2098)
at com.sun.media.jai.opimage.OverlayOpImage.computeTile(OverlayOpImage.java:164)
at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:912)
at javax.media.jai.OpImage.getTile(OpImage.java:1139)
at javax.media.jai.RenderedOp.getTile(RenderedOp.java:2268)
at net.sf.jomic.tools.ImageTools.loadImageToMemory(ImageTools.java:938)
at net.sf.jomic.comic.ComicView.updateDisplay(ComicView.java:1077)
at net.sf.jomic.comic.ComicView.setImageIndex(ComicView.java:203)
at net.sf.jomic.comic.ComicView.goNext(ComicView.java:1163)
at net.sf.jomic.comic.ComicView.goNext(ComicView.java:921)
at net.sf.jomic.ui.JomicFrame.performGoNext(JomicFrame.java:725)
at net.sf.jomic.ui.JomicFrame.actionPerformed(JomicFrame.java:287)
at net.sf.jomic.tools.ActionDelegate.actionPerformed(ActionDelegate.java:53)
at net.sf.jomic.ui.JomicMenuBar.actionPerformed(JomicMenuBar.java:198)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:334)
at javax.swing.AbstractButton.doClick(AbstractButton.java:282)
at javax.swing.plaf.basic.BasicMenuItemUI$Actions.actionPerformed(BasicMenuItemUI.java:1020)
at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1576)
at javax.swing.JComponent.processKeyBinding(JComponent.java:2772)
at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:656)
at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:664)
at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:664)
at javax.swing.JMenuBar.processKeyBinding(JMenuBar.java:640)
at javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:255)
at javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:242)
at javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2849)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2841)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2735)
at java.awt.Component.processEvent(Component.java:5379)
at java.awt.Container.processEvent(Container.java:2010)
at java.awt.Component.dispatchEventImpl(Component.java:4068)
at java.awt.Container.dispatchEventImpl(Container.java:2068)
at java.awt.Component.dispatchEvent(Component.java:3903)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1826)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:681)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:938)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:810)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:645)
at java.awt.Component.dispatchEventImpl(Component.java:3941)
at java.awt.Container.dispatchEventImpl(Container.java:2068)
at java.awt.Window.dispatchEventImpl(Window.java:1791)
at java.awt.Component.dispatchEvent(Component.java:3903)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Caused by: java.lang.UnsupportedOperationException: Band count exceeds non-unity number of constants.
at javax.media.jai.BorderExtenderConstant.clamp(BorderExtenderConstant.java:84)
at javax.media.jai.BorderExtenderConstant.extend(BorderExtenderConstant.java:238)
at javax.media.jai.PlanarImage.copyExtendedData(PlanarImage.java:2415)
at com.sun.media.jai.opimage.BorderOpImage.computeTile(BorderOpImage.java:220)
at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:912)
... 54 more
Caused by:
java.lang.UnsupportedOperationException: Band count exceeds non-unity number of constants.
at javax.media.jai.BorderExtenderConstant.clamp(BorderExtenderConstant.java:84)
at javax.media.jai.BorderExtenderConstant.extend(BorderExtenderConstant.java:238)
at javax.media.jai.PlanarImage.copyExtendedData(PlanarImage.java:2415)
at com.sun.media.jai.opimage.BorderOpImage.computeTile(BorderOpImage.java:220)
at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:912)
at javax.media.jai.OpImage.getTile(OpImage.java:1139)
at com.sun.media.jai.opimage.TranslateIntOpImage.getTile(TranslateIntOpImage.java:140)
at javax.media.jai.PlanarImage.getData(PlanarImage.java:2098)
at com.sun.media.jai.opimage.OverlayOpImage.computeTile(OverlayOpImage.java:164)
at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:912)
at javax.media.jai.OpImage.getTile(OpImage.java:1139)
at javax.media.jai.RenderedOp.getTile(RenderedOp.java:2268)
at net.sf.jomic.tools.ImageTools.loadImageToMemory(ImageTools.java:938)
at net.sf.jomic.comic.ComicView.updateDisplay(ComicView.java:1077)
at net.sf.jomic.comic.ComicView.setImageIndex(ComicView.java:203)
at net.sf.jomic.comic.ComicView.goNext(ComicView.java:1163)
at net.sf.jomic.comic.ComicView.goNext(ComicView.java:921)
at net.sf.jomic.ui.JomicFrame.performGoNext(JomicFrame.java:725)
at net.sf.jomic.ui.JomicFrame.actionPerformed(JomicFrame.java:287)
at net.sf.jomic.tools.ActionDelegate.actionPerformed(ActionDelegate.java:53)
at net.sf.jomic.ui.JomicMenuBar.actionPerformed(JomicMenuBar.java:198)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:334)
at javax.swing.AbstractButton.doClick(AbstractButton.java:282)
at javax.swing.plaf.basic.BasicMenuItemUI$Actions.actionPerformed(BasicMenuItemUI.java:1020)
at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1576)
at javax.swing.JComponent.processKeyBinding(JComponent.java:2772)
at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:656)
at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:664)
at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:664)
at javax.swing.JMenuBar.processKeyBinding(JMenuBar.java:640)
at javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:255)
at javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:242)
at javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2849)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2841)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2735)
at java.awt.Component.processEvent(Component.java:5379)
at java.awt.Container.processEvent(Container.java:2010)
at java.awt.Component.dispatchEventImpl(Component.java:4068)
at java.awt.Container.dispatchEventImpl(Container.java:2068)
at java.awt.Component.dispatchEvent(Component.java:3903)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1826)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:681)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:938)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:810)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:645)
at java.awt.Component.dispatchEventImpl(Component.java:3941)
at java.awt.Container.dispatchEventImpl(Container.java:2068)
at java.awt.Window.dispatchEventImpl(Window.java:1791)
at java.awt.Component.dispatchEvent(Component.java:3903)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Discussion

  • Thomas Aglassinger

    • priority: 5 --> 8
    • summary: Error: : Problem occurs when computing a tile by the owner --> Error: Problem occurs when computing a tile by the owner
     
  • Thomas Aglassinger

    Logged In: YES
    user_id=421066
    Originator: YES

    Getting rid of loadImageToMemory() doesn't help, it just moves the error to a later place:

    Exception in thread "AWT-EventQueue-0" javax.media.jai.util.ImagingException: Problem occurs when computing a tile by the owner.
    at net.sf.jomic.tools.ImagingExceptionThrowingImagingListener.errorOccurred(ImagingExceptionThrowingImagingListener.java:45)
    at com.sun.media.jai.util.SunTileScheduler.sendExceptionToListener(SunTileScheduler.java:1654)
    at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:929)
    at javax.media.jai.OpImage.getTile(OpImage.java:1139)
    at javax.media.jai.RenderedOp.getTile(RenderedOp.java:2268)
    at sun.java2d.SunGraphics2D.drawTranslatedRenderedImage(SunGraphics2D.java:2855)
    at sun.java2d.SunGraphics2D.drawRenderedImage(SunGraphics2D.java:2742)
    at com.sun.media.jai.widget.DisplayJAI.paintComponent(DisplayJAI.java:254)
    at javax.swing.JComponent.paint(JComponent.java:1005)
    at javax.swing.JComponent.paintChildren(JComponent.java:842)
    at javax.swing.JComponent.paint(JComponent.java:1014)
    at javax.swing.JComponent.paintChildren(JComponent.java:842)
    at javax.swing.JComponent.paint(JComponent.java:1014)
    at javax.swing.JViewport.paint(JViewport.java:726)
    at javax.swing.JComponent.paintChildren(JComponent.java:842)
    at javax.swing.JComponent.paint(JComponent.java:1014)
    at javax.swing.JComponent.paintChildren(JComponent.java:842)
    at javax.swing.JComponent.paint(JComponent.java:1014)
    at javax.swing.JComponent.paintChildren(JComponent.java:842)
    at javax.swing.JComponent.paint(JComponent.java:1014)
    at javax.swing.JLayeredPane.paint(JLayeredPane.java:559)
    at javax.swing.JComponent.paintChildren(JComponent.java:842)
    at javax.swing.JComponent.paint(JComponent.java:1014)
    at javax.swing.JComponent._paintImmediately(JComponent.java:4881)
    at javax.swing.JComponent.paintImmediately(JComponent.java:4667)
    at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:477)
    at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:114)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

     
  • Thomas Aglassinger

    • milestone: 381261 --> Fixed in 0.9.30
    • status: open --> closed-fixed
     
  • Thomas Aglassinger

    Logged In: YES
    user_id=421066
    Originator: YES

    Fixed by getting rid of JAI to do the rendering. Instead, Graphics2D.drawRenderedImage does the work now.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks