Project

General

Profile

Bug #2189

MIRA: Safety Section

Added by Anonymous almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Start date:
12/29/2014
Due date:
% Done:

100%

Estimated time:
0.50 h

Description

When changing the safety standard, random values are selected (SIL 1, SIL 2, SIL 3, ...).

History

#1 Updated by Anonymous almost 6 years ago

  • Assignee changed from Anonymous to Simon Barner

#2 Updated by Simon Barner almost 6 years ago

  • Assignee changed from Simon Barner to Alexander Diewald
  • % Done changed from 0 to 70

Actually, three bugs have been identified:

1. Potential NPE triggered by actions in requirements editor --> fixed

 java.lang.NullPointerException
    at org.fortiss.tooling.base.ui.annotation.view.generic.HierarchicalNameComparator.compareFallback(HierarchicalNameComparator.java:46)
    at org.fortiss.tooling.base.ui.annotation.view.generic.HierarchicalNameComparator.compare(HierarchicalNameComparator.java:113)
    at org.eclipse.jface.viewers.ViewerComparator$1.compare(ViewerComparator.java:189)
    at java.util.TimSort.countRunAndMakeAscending(TimSort.java:324)
    at java.util.TimSort.sort(TimSort.java:189)
    at java.util.TimSort.sort(TimSort.java:173)
    at java.util.Arrays.sort(Arrays.java:659)
    at org.eclipse.jface.viewers.ViewerComparator.sort(ViewerComparator.java:187)
    at org.eclipse.jface.viewers.StructuredViewer.getSortedChildren(StructuredViewer.java:1071)
    at org.eclipse.jface.viewers.AbstractTableViewer.internalRefreshAll(AbstractTableViewer.java:702)
    at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:650)
    at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:637)
    at org.eclipse.jface.viewers.AbstractTableViewer$2.run(AbstractTableViewer.java:593)
    at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1443)
    at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1404)
    at org.eclipse.jface.viewers.AbstractTableViewer.inputChanged(AbstractTableViewer.java:591)
    at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:280)
    at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1690)
    at org.fortiss.tooling.base.ui.annotation.view.generic.GenericAnnotationView.update(GenericAnnotationView.java:207)
    at org.fortiss.tooling.base.ui.annotation.view.AnnotationViewPartBase.update(AnnotationViewPartBase.java:243)
    at org.fortiss.tooling.base.ui.annotation.view.generic.GenericAnnotationView.update(GenericAnnotationView.java:271)
    at org.fortiss.tooling.base.ui.annotation.view.AnnotationViewPartBase$1.notifyChanged(AnnotationViewPartBase.java:134)
    at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
    at org.eclipse.emf.ecore.util.EcoreEList.dispatchNotification(EcoreEList.java:249)
    at org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(NotifyingListImpl.java:294)
    at org.eclipse.emf.common.util.AbstractEList.add(AbstractEList.java:303)
    at org.fortiss.af3.mira.compose.RequirementsContainerCompositor.compose(RequirementsContainerCompositor.java:68)
    at org.fortiss.af3.mira.compose.RequirementsContainerCompositor.compose(RequirementsContainerCompositor.java:1)
    at org.fortiss.tooling.kernel.internal.ElementCompositorService.compose(ElementCompositorService.java:76)
    at org.fortiss.tooling.kernel.ui.internal.views.NavigatorNewMenu$AddPrototypeAction$1.run(NavigatorNewMenu.java:125)
    at org.fortiss.tooling.kernel.internal.storage.eclipse.ModelContext$2.execute(ModelContext.java:267)
    at org.fortiss.tooling.kernel.internal.storage.eclipse.EMFTransactionalCommand$1.doExecute(EMFTransactionalCommand.java:60)
    at org.eclipse.emf.transaction.RecordingCommand.execute(RecordingCommand.java:135)
    at org.fortiss.tooling.kernel.internal.storage.eclipse.EMFTransactionalCommand$2.run(EMFTransactionalCommand.java:72)
    at org.fortiss.tooling.kernel.internal.storage.eclipse.EMFTransactionalCommand.runInTransaction(EMFTransactionalCommand.java:104)
    at org.fortiss.tooling.kernel.internal.storage.eclipse.EMFTransactionalCommand.execute(EMFTransactionalCommand.java:69)
    at org.eclipse.emf.common.command.BasicCommandStack.execute(BasicCommandStack.java:78)
    ... 38 more

Steps to reproduce: ? (just some clicks...)

2. Endless recursion in the GUI update code when changing the safety standard --> Fixed

Steps to reproduce:

  • Create a new requirement
  • Select ISO 61508 as safety standard
  • Set SIL to SIL2
  • Selected "undefined" as safety standard
  • Try to access the safety integrity level selection box --> AF3 hangs
3. Conversion of safety levels when switching between different standards is inconsistent
  • Please re-verify all combinations
  • Afterwards, set this issue to 'resolved' and assign to Sabine for testing

#3 Updated by Alexander Diewald almost 6 years ago

  • Assignee changed from Alexander Diewald to Anonymous
  • % Done changed from 70 to 90
  • Estimated time set to 0.50 h

Updated conversion of Safety Levels and fixed the naming of the ASIL and SIL enum. The current implementation is now compliant with the information found at http://en.wikipedia.org/wiki/Automotive_Safety_Integrity_Level.

Reassigned ticket to Sabine for testing.

#4 Updated by Anonymous almost 6 years ago

  • Status changed from New to Closed
  • % Done changed from 90 to 100

Test OK for all issues

Also available in: Atom PDF