Bug #3111

URS, Windows, stacktraces during annotation and navigation

Added by Matthieu Decorde over 2 years ago. Updated 8 months ago.

Status:New Start date:06/25/2021
Priority:Normal Due date:
Assignee:- % Done:

60%

Category:Annotation Spent time: -
Target version:TXM 0.8.3

Description

Stack 1:

java.lang.ArrayIndexOutOfBoundsException: 0
      at org.txm.annotation.urs.toolbar.UnitToolbar.highlightType(UnitToolbar.java:641)
      at org.txm.annotation.urs.toolbar.UnitToolbar$13.completed(UnitToolbar.java:1177)
      at org.txm.edition.rcp.editors.EditionPanel$1.completed(EditionPanel.java:323)
      at org.eclipse.swt.browser.IE.lambda$6(IE.java:656)
      at org.eclipse.swt.ole.win32.OleEventTable.sendEvent(OleEventTable.java:55)
      at org.eclipse.swt.ole.win32.OleEventSink.notifyListener(OleEventSink.java:156)

Stack 2:
java.util.ConcurrentModificationException
      at java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:719)
      at java.util.LinkedHashMap$LinkedKeyIterator.next(LinkedHashMap.java:742)
      at org.txm.annotation.urs.view.ElementPropertiesView.loadElement(ElementPropertiesView.java:247)
      at org.txm.annotation.urs.toolbar.URSAnnotationToolbar.updatePropertiesView(URSAnnotationToolbar.java:107)
      at org.txm.annotation.urs.toolbar.UnitToolbar.tryHighlightingUnitsWord(UnitToolbar.java:1032)
      at org.txm.annotation.urs.toolbar.UnitToolbar$8.mouseUp(UnitToolbar.java:399)
      at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:221)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)
      at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4428)

Solution

  • Stack 1: the line error is no more aligned with current code -> hard to find what is falling in TXM 0.8.2
    • need to test more on Windows and TXM 0.8.2
  • Stack 2: the iterated list is now copyied before working on it (this avoids ConcurrentModification exceptions)

History

#1 Updated by Matthieu Decorde over 2 years ago

  • Description updated (diff)
  • % Done changed from 0 to 60

#2 Updated by Matthieu Decorde 8 months ago

  • Target version changed from TXM 0.8.2 -Annotation URS 4.0 to TXM 0.8.3

Also available in: Atom PDF