Bug #3111

URS, Windows, stacktraces during annotation and navigation

Ajouté par Matthieu Decorde il y a plus de 4 ans. Mis à jour il y a plus d'un an.

Statut:New Début:25/06/2021
Priorité:Normal Echéance:
Assigné à:- % réalisé:

60%

Catégorie:Annotation Temps passé: -
Version cible:TXM 0.8.4

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)

Historique

#1 Mis à jour par Matthieu Decorde il y a plus de 4 ans

  • Description mis à jour (diff)
  • % réalisé changé de 0 à 60

#2 Mis à jour par Matthieu Decorde il y a plus de 2 ans

  • Version cible changé de 80 à TXM 0.8.3

#3 Mis à jour par Sebastien Jacquot il y a plus d'un an

  • Version cible changé de TXM 0.8.3 à TXM 0.8.4

Formats disponibles : Atom PDF