segmentation mode hangs
Up one level
segmentation mode hangs
Posted by
skayal
at
2012-01-26 12:25
Hi everytime I try to get in segmentation mode on my dataset it gives an exception and hangs. I can reproduce it everytime on my dataset
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at mpi.eudico.client.annotator.viewer.SegmentationViewer2.setActionsForTier(SegmentationViewer2.java:1937)
at mpi.eudico.client.annotator.viewer.SegmentationViewer2.setActiveTier(SegmentationViewer2.java:1905)
at mpi.eudico.client.annotator.viewer.SegmentationViewer2.extractTiers(SegmentationViewer2.java:375)
at mpi.eudico.client.annotator.viewer.SegmentationViewer2.initTiers(SegmentationViewer2.java:339)
at mpi.eudico.client.annotator.viewer.SegmentationViewer2.initViewer2(SegmentationViewer2.java:240)
at mpi.eudico.client.annotator.viewer.SegmentationViewer2.<init>(SegmentationViewer2.java:185)
at mpi.eudico.client.annotator.ViewerManager2.createSegmentationViewer(ViewerManager2.java:1109)
at mpi.eudico.client.annotator.layout.SegmentationManager.initComponents(SegmentationManager.java:724)
at mpi.eudico.client.annotator.ElanLayoutManager.changeMode(ElanLayoutManager.java:617)
at mpi.eudico.client.annotator.commands.ChangeModeCommand.execute(ChangeModeCommand.java:35)
at mpi.eudico.client.annotator.commands.CommandAction.actionPerformed(CommandAction.java:100)
at mpi.eudico.client.annotator.commands.SegmentationModeCA.actionPerformed(SegmentationModeCA.java:123)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.JToggleButton$ToggleButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
I use this template
<?xml version="1.0" encoding="UTF-8"?>
<ANNOTATION_DOCUMENT AUTHOR="" DATE="2012-01-26T10:20:30+01:00" FORMAT="2.7" VERSION="2.7" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.mpi.nl/tools/elan/EAFv2.7.xsd">
<HEADER MEDIA_FILE="" TIME_UNITS="milliseconds"/>
<TIME_ORDER/>
<TIER ANNOTATOR="Salim" DEFAULT_LOCALE="en" LINGUISTIC_TYPE_REF="VFOA" PARTICIPANT="P1" TIER_ID="VFOA_P1"/>
<TIER ANNOTATOR="Salim" DEFAULT_LOCALE="en" LINGUISTIC_TYPE_REF="VFOA" PARTICIPANT="P2" TIER_ID="VFOA_P2"/>
<LINGUISTIC_TYPE CONTROLLED_VOCABULARY_REF="VFOA" GRAPHIC_REFERENCES="false" LINGUISTIC_TYPE_ID="VFOA" TIME_ALIGNABLE="true"/>
<LOCALE COUNTRY_CODE="GB" LANGUAGE_CODE="en"/>
<CONSTRAINT DESCRIPTION="Time subdivision of parent annotation's time interval, no time gaps allowed within this interval" STEREOTYPE="Time_Subdivision"/>
<CONSTRAINT DESCRIPTION="Symbolic subdivision of a parent annotation. Annotations refering to the same parent are ordered" STEREOTYPE="Symbolic_Subdivision"/>
<CONSTRAINT DESCRIPTION="1-1 association with a parent annotation" STEREOTYPE="Symbolic_Association"/>
<CONSTRAINT DESCRIPTION="Time alignable annotations within the parent annotation's time interval, gaps are allowed" STEREOTYPE="Included_In"/>
<CONTROLLED_VOCABULARY CV_ID="VFOA" DESCRIPTION="">
<CV_ENTRY DESCRIPTION="looks at Nao">ROBOT</CV_ENTRY>
<CV_ENTRY DESCRIPTION="looks at person 1">P1</CV_ENTRY>
<CV_ENTRY DESCRIPTION="looks at person2">P2</CV_ENTRY>
<CV_ENTRY DESCRIPTION="looks at painting 1">PAINTING1</CV_ENTRY>
<CV_ENTRY DESCRIPTION="looks at painting 2">PAINTING2</CV_ENTRY>
<CV_ENTRY DESCRIPTION="looks at painting 3">PAINTING3</CV_ENTRY>
<CV_ENTRY DESCRIPTION="looks at something else">OTHER</CV_ENTRY>
<CV_ENTRY DESCRIPTION="face not visible">FNV</CV_ENTRY>
</CONTROLLED_VOCABULARY>
</ANNOTATION_DOCUMENT>
and I have four videos (mp4) and one audio (wav) file.
I tried to load the videos and the wav without the tamplate and it works fine, it started to hang as soon as I added the controlled vocabulary. it hangs when I switch from any of the modes to the segmentation mode, If I add the controlled vocabulary while in segmentation mode it works fine.
Any workaround, idea, patch ?
Thanks
Salim
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at mpi.eudico.client.annotator.viewer.SegmentationViewer2.setActionsForTier(SegmentationViewer2.java:1937)
at mpi.eudico.client.annotator.viewer.SegmentationViewer2.setActiveTier(SegmentationViewer2.java:1905)
at mpi.eudico.client.annotator.viewer.SegmentationViewer2.extractTiers(SegmentationViewer2.java:375)
at mpi.eudico.client.annotator.viewer.SegmentationViewer2.initTiers(SegmentationViewer2.java:339)
at mpi.eudico.client.annotator.viewer.SegmentationViewer2.initViewer2(SegmentationViewer2.java:240)
at mpi.eudico.client.annotator.viewer.SegmentationViewer2.<init>(SegmentationViewer2.java:185)
at mpi.eudico.client.annotator.ViewerManager2.createSegmentationViewer(ViewerManager2.java:1109)
at mpi.eudico.client.annotator.layout.SegmentationManager.initComponents(SegmentationManager.java:724)
at mpi.eudico.client.annotator.ElanLayoutManager.changeMode(ElanLayoutManager.java:617)
at mpi.eudico.client.annotator.commands.ChangeModeCommand.execute(ChangeModeCommand.java:35)
at mpi.eudico.client.annotator.commands.CommandAction.actionPerformed(CommandAction.java:100)
at mpi.eudico.client.annotator.commands.SegmentationModeCA.actionPerformed(SegmentationModeCA.java:123)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.JToggleButton$ToggleButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
I use this template
<?xml version="1.0" encoding="UTF-8"?>
<ANNOTATION_DOCUMENT AUTHOR="" DATE="2012-01-26T10:20:30+01:00" FORMAT="2.7" VERSION="2.7" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.mpi.nl/tools/elan/EAFv2.7.xsd">
<HEADER MEDIA_FILE="" TIME_UNITS="milliseconds"/>
<TIME_ORDER/>
<TIER ANNOTATOR="Salim" DEFAULT_LOCALE="en" LINGUISTIC_TYPE_REF="VFOA" PARTICIPANT="P1" TIER_ID="VFOA_P1"/>
<TIER ANNOTATOR="Salim" DEFAULT_LOCALE="en" LINGUISTIC_TYPE_REF="VFOA" PARTICIPANT="P2" TIER_ID="VFOA_P2"/>
<LINGUISTIC_TYPE CONTROLLED_VOCABULARY_REF="VFOA" GRAPHIC_REFERENCES="false" LINGUISTIC_TYPE_ID="VFOA" TIME_ALIGNABLE="true"/>
<LOCALE COUNTRY_CODE="GB" LANGUAGE_CODE="en"/>
<CONSTRAINT DESCRIPTION="Time subdivision of parent annotation's time interval, no time gaps allowed within this interval" STEREOTYPE="Time_Subdivision"/>
<CONSTRAINT DESCRIPTION="Symbolic subdivision of a parent annotation. Annotations refering to the same parent are ordered" STEREOTYPE="Symbolic_Subdivision"/>
<CONSTRAINT DESCRIPTION="1-1 association with a parent annotation" STEREOTYPE="Symbolic_Association"/>
<CONSTRAINT DESCRIPTION="Time alignable annotations within the parent annotation's time interval, gaps are allowed" STEREOTYPE="Included_In"/>
<CONTROLLED_VOCABULARY CV_ID="VFOA" DESCRIPTION="">
<CV_ENTRY DESCRIPTION="looks at Nao">ROBOT</CV_ENTRY>
<CV_ENTRY DESCRIPTION="looks at person 1">P1</CV_ENTRY>
<CV_ENTRY DESCRIPTION="looks at person2">P2</CV_ENTRY>
<CV_ENTRY DESCRIPTION="looks at painting 1">PAINTING1</CV_ENTRY>
<CV_ENTRY DESCRIPTION="looks at painting 2">PAINTING2</CV_ENTRY>
<CV_ENTRY DESCRIPTION="looks at painting 3">PAINTING3</CV_ENTRY>
<CV_ENTRY DESCRIPTION="looks at something else">OTHER</CV_ENTRY>
<CV_ENTRY DESCRIPTION="face not visible">FNV</CV_ENTRY>
</CONTROLLED_VOCABULARY>
</ANNOTATION_DOCUMENT>
and I have four videos (mp4) and one audio (wav) file.
I tried to load the videos and the wav without the tamplate and it works fine, it started to hang as soon as I added the controlled vocabulary. it hangs when I switch from any of the modes to the segmentation mode, If I add the controlled vocabulary while in segmentation mode it works fine.
Any workaround, idea, patch ?
Thanks
Salim
Re: segmentation mode hangs
Posted by
aarsom
at
2012-01-30 16:32
Hi,
This was due to a bug in the segmentation mode which is already been fixed for the next version of Elan which is expected to be released in two weeks.
- Aarthy.