Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

Internal Error in CoverageAnnotationModel.createAnnotations #90

Closed
mbruch opened this issue Aug 22, 2014 · 6 comments
Closed

Internal Error in CoverageAnnotationModel.createAnnotations #90

mbruch opened this issue Aug 22, 2014 · 6 comments
Labels

Comments

@mbruch
Copy link

mbruch commented Aug 22, 2014

Hi,

while tracking error logs for Eclipse.org I found this error in the logs. I hope making you aware of this exception, already helps you fixing this bug. In case this error report does not help you much, please let me know. Maybe we can insert the required bits into the next version of the error log collector.

Marcel

anonymousId=8e8eae44-9d7a-4d8d-8dcb-7552bf57b193
timestamp=Fri Aug 22 08:31:21 EDT 2014
pluginId=com.mountainminds.eclemma.ui
pluginVersion=2.3.1.201405111647
eclipseBuildId=4.4.0.I20140606-1215
javaRuntimeVersion=1.7.0_60-b19
osgiWs=cocoa
osgiOs=MacOSX
osgiOsVersion=10.9.4
osgiArch=x86_64
severity=ERROR
code=4
message=Internal Error
chain={org.eclipse.jface.text.BadLocationException: null
at org.eclipse.jface.text.TreeLineTracker.fail (line: 1055)
at org.eclipse.jface.text.TreeLineTracker.getLineInformation (line: 1182)
at org.eclipse.jface.text.AbstractLineTracker.getLineInformation (line: 137)
at org.eclipse.jface.text.AbstractDocument.getLineInformation (line: 929)
at org.eclipse.core.internal.filebuffers.SynchronizableDocument.getLineInformation (line: 337)
at com.mountainminds.eclemma.internal.ui.annotation.CoverageAnnotationModel.createAnnotations (line: 221)
at com.mountainminds.eclemma.internal.ui.annotation.CoverageAnnotationModel.updateAnnotations (line: 139)
at com.mountainminds.eclemma.internal.ui.annotation.CoverageAnnotationModel.access$0 (line: 135)
at com.mountainminds.eclemma.internal.ui.annotation.CoverageAnnotationModel$2.documentChanged (line: 74)
at org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged2 (line: 769)
at org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged (line: 736)
at org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged (line: 721)
at org.eclipse.jface.text.AbstractDocument.fireDocumentChanged (line: 796)
at org.eclipse.jface.text.AbstractDocument.replace (line: 1191)
at org.eclipse.core.internal.filebuffers.SynchronizableDocument.replace (line: 194)
at org.eclipse.jface.text.AbstractDocument.replace (line: 1210)
at org.eclipse.core.internal.filebuffers.SynchronizableDocument.replace (line: 180)
at org.eclipse.jface.text.DocumentCommand$Command.execute (line: 82)
at org.eclipse.jface.text.DocumentCommand.execute (line: 418)
at org.eclipse.jface.text.TextViewer.handleVerifyEvent (line: 3827)
at org.eclipse.jface.text.source.projection.ProjectionViewer.handleVerifyEvent (line: 1276)
at org.eclipse.jface.text.TextViewer$TextVerifyListener.verifyText (line: 435)
at org.eclipse.swt.widgets.TypedListener.handleEvent (line: 273)
at org.eclipse.swt.widgets.EventTable.sendEvent (line: 84)
at org.eclipse.swt.widgets.Display.sendEvent (line: 4188)
at org.eclipse.swt.widgets.Widget.sendEvent (line: 1467)
at org.eclipse.swt.widgets.Widget.sendEvent (line: 1490)
at org.eclipse.swt.widgets.Widget.sendEvent (line: 1475)
at org.eclipse.swt.widgets.Widget.notifyListeners (line: 1279)
at org.eclipse.swt.custom.StyledText.modifyContent (line: 7236)
at org.eclipse.swt.custom.StyledText.sendKeyEvent (line: 8111)
at org.eclipse.swt.custom.StyledText.doContent (line: 2481)
at org.eclipse.swt.custom.StyledText.handleKey (line: 5955)
at org.eclipse.swt.custom.StyledText.handleKeyDown (line: 5986)
at org.eclipse.swt.custom.StyledText$7.handleEvent (line: 5663)
at org.eclipse.swt.widgets.EventTable.sendEvent (line: 84)
at org.eclipse.swt.widgets.Display.sendEvent (line: 4188)
at org.eclipse.swt.widgets.Widget.sendEvent (line: 1467)
at org.eclipse.swt.widgets.Widget.sendEvent (line: 1490)
at org.eclipse.swt.widgets.Widget.sendEvent (line: 1475)
at org.eclipse.swt.widgets.Widget.sendKeyEvent (line: 1504)
at org.eclipse.swt.widgets.Control.insertText (line: 2084)
at org.eclipse.swt.widgets.Canvas.insertText (line: 277)
at org.eclipse.swt.widgets.Display.windowProc (line: 5717)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSend (line: -2)
at org.eclipse.swt.internal.cocoa.NSResponder.interpretKeyEvents (line: 68)
at org.eclipse.swt.widgets.Composite.keyDown (line: 594)
at org.eclipse.swt.widgets.Display.windowProc (line: 5629)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper (line: -2)
at org.eclipse.swt.widgets.Widget.callSuper (line: 221)
at org.eclipse.swt.widgets.Widget.windowSendEvent (line: 2105)
at org.eclipse.swt.widgets.Shell.windowSendEvent (line: 2329)
at org.eclipse.swt.widgets.Display.windowProc (line: 5691)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper (line: -2)
at org.eclipse.swt.widgets.Display.applicationSendEvent (line: 5128)
at org.eclipse.swt.widgets.Display.applicationProc (line: 5277)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSend (line: -2)
at org.eclipse.swt.internal.cocoa.NSApplication.sendEvent (line: 128)
at org.eclipse.swt.widgets.Display.readAndDispatch (line: 3655)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run (line: 1151)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (line: 332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run (line: 1032)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI (line: 148)
at org.eclipse.ui.internal.Workbench$5.run (line: 636)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (line: 332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench (line: 579)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench (line: 150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (line: 135)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run (line: 196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication (line: 134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start (line: 104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run (line: 382)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run (line: 236)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (line: -2)
at sun.reflect.NativeMethodAccessorImpl.invoke (line: 57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (line: 43)
at java.lang.reflect.Method.invoke (line: 606)
at org.eclipse.equinox.launcher.Main.invokeFramework (line: 648)
at org.eclipse.equinox.launcher.Main.basicRun (line: 603)
at org.eclipse.equinox.launcher.Main.run (line: 1465)}

@marchof
Copy link
Member

marchof commented Aug 22, 2014

@mbruch Hi Marcel, many thanks for reporting this!

@marchof marchof added the bug label Aug 22, 2014
@mbruch
Copy link
Author

mbruch commented Aug 22, 2014

Probably related but slightly different:

anonymousId=8e8eae44-9d7a-4d8d-8dcb-7552bf57b193
timestamp=Fri Aug 22 09:50:55 EDT 2014
pluginId=com.mountainminds.eclemma.ui
pluginVersion=2.3.1.201405111647
eclipseBuildId=4.4.0.I20140606-1215
javaRuntimeVersion=1.7.0_60-b19
osgiWs=cocoa
osgiOs=MacOSX
osgiOsVersion=10.9.4
osgiArch=x86_64
severity=ERROR
code=4
message=Internal Error
chain={org.eclipse.jface.text.BadLocationException: null
at org.eclipse.jface.text.ListLineTracker.getLineInformation (line: 180)
at org.eclipse.jface.text.AbstractLineTracker.getLineInformation (line: 137)
at org.eclipse.jface.text.AbstractDocument.getLineInformation (line: 929)
at org.eclipse.core.internal.filebuffers.SynchronizableDocument.getLineInformation (line: 337)
at com.mountainminds.eclemma.internal.ui.annotation.CoverageAnnotationModel.createAnnotations (line: 221)
at com.mountainminds.eclemma.internal.ui.annotation.CoverageAnnotationModel.updateAnnotations (line: 139)
at com.mountainminds.eclemma.internal.ui.annotation.CoverageAnnotationModel. (line: 84)
at com.mountainminds.eclemma.internal.ui.annotation.CoverageAnnotationModel.attach (line: 110)
at com.mountainminds.eclemma.internal.ui.annotation.EditorTracker.annotateEditor (line: 103)
at com.mountainminds.eclemma.internal.ui.annotation.EditorTracker.access$1 (line: 100)
at com.mountainminds.eclemma.internal.ui.annotation.EditorTracker$2.partOpened (line: 49)
at org.eclipse.ui.internal.PartService$10.run (line: 201)
at org.eclipse.core.runtime.SafeRunner.run (line: 42)
at org.eclipse.ui.internal.PartService.partOpened (line: 198)
at org.eclipse.ui.internal.WorkbenchPage$20.run (line: 4860)
at org.eclipse.core.runtime.SafeRunner.run (line: 42)
at org.eclipse.ui.internal.WorkbenchPage.firePartOpened (line: 4857)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart$2.handleEvent (line: 115)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run (line: 40)
at org.eclipse.swt.widgets.Synchronizer.syncExec (line: 187)
at org.eclipse.ui.internal.UISynchronizer.syncExec (line: 156)
at org.eclipse.swt.widgets.Display.syncExec (line: 4721)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec (line: 218)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent (line: 36)
at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent (line: 197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent (line: 197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent (line: 1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent (line: 230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous (line: 148)
at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent (line: 135)
at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent (line: 78)
at org.eclipse.equinox.internal.event.EventComponent.sendEvent (line: 39)
at org.eclipse.e4.ui.services.internal.events.EventBroker.send (line: 81)
at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged (line: 59)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify (line: 374)
at org.eclipse.e4.ui.model.application.ui.basic.impl.PartImpl.setObject (line: 410)
at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget (line: 129)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget (line: 983)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui (line: 662)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui (line: 766)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2 (line: 737)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run (line: 731)
at org.eclipse.core.runtime.SafeRunner.run (line: 42)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui (line: 715)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$1.handleEvent (line: 92)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run (line: 40)
at org.eclipse.swt.widgets.Synchronizer.syncExec (line: 187)
at org.eclipse.ui.internal.UISynchronizer.syncExec (line: 156)
at org.eclipse.swt.widgets.Display.syncExec (line: 4721)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec (line: 218)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent (line: 36)
at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent (line: 197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent (line: 197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent (line: 1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent (line: 230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous (line: 148)
at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent (line: 135)
at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent (line: 78)
at org.eclipse.equinox.internal.event.EventComponent.sendEvent (line: 39)
at org.eclipse.e4.ui.services.internal.events.EventBroker.send (line: 81)
at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged (line: 59)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify (line: 374)
at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement (line: 171)
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow (line: 488)
at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop (line: 454)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop (line: 692)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop (line: 385)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart (line: 1126)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor (line: 3182)
at org.eclipse.ui.internal.WorkbenchPage.access$23 (line: 3104)
at org.eclipse.ui.internal.WorkbenchPage$9.run (line: 3086)
at org.eclipse.swt.custom.BusyIndicator.showWhile (line: 70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor (line: 3081)
at org.eclipse.ui.internal.WorkbenchPage.openEditor (line: 3045)
at org.eclipse.ui.internal.WorkbenchPage.openEditor (line: 3035)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor (line: 373)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor (line: 179)
at org.eclipse.jdt.ui.actions.OpenAction.run (line: 268)
at org.eclipse.jdt.ui.actions.OpenAction.run (line: 233)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun (line: 275)
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run (line: 251)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen (line: 376)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open (line: 538)
at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open (line: 48)
at org.eclipse.jface.viewers.StructuredViewer$2.run (line: 853)
at org.eclipse.core.runtime.SafeRunner.run (line: 42)
at org.eclipse.ui.internal.JFaceUtil$1.run (line: 50)
at org.eclipse.jface.util.SafeRunnable.run (line: 178)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen (line: 850)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen (line: 1142)
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen (line: 1249)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent (line: 278)
at org.eclipse.jface.util.OpenStrategy.access$2 (line: 272)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent (line: 313)
at org.eclipse.swt.widgets.EventTable.sendEvent (line: 84)
at org.eclipse.swt.widgets.Display.sendEvent (line: 4188)
at org.eclipse.swt.widgets.Widget.sendEvent (line: 1467)
at org.eclipse.swt.widgets.Widget.sendEvent (line: 1490)
at org.eclipse.swt.widgets.Widget.sendEvent (line: 1475)
at org.eclipse.swt.widgets.Widget.notifyListeners (line: 1279)
at org.eclipse.swt.widgets.Display.runDeferredEvents (line: 4031)
at org.eclipse.swt.widgets.Display.readAndDispatch (line: 3658)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run (line: 1151)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (line: 332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run (line: 1032)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI (line: 148)
at org.eclipse.ui.internal.Workbench$5.run (line: 636)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (line: 332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench (line: 579)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench (line: 150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (line: 135)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run (line: 196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication (line: 134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start (line: 104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run (line: 382)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run (line: 236)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (line: -2)
at sun.reflect.NativeMethodAccessorImpl.invoke (line: 57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (line: 43)
at java.lang.reflect.Method.invoke (line: 606)
at org.eclipse.equinox.launcher.Main.invokeFramework (line: 648)
at org.eclipse.equinox.launcher.Main.basicRun (line: 603)
at org.eclipse.equinox.launcher.Main.run (line: 1465)}
]

@marchof
Copy link
Member

marchof commented Aug 24, 2014

Steps to reproduce:

  • Launch some code in coverage mode
  • Open a source file which has coverage highlighting
  • Delete as many lines from the file that the last highlighted line number is bigger than the file size
  • Close and re-open the file

marchof added a commit that referenced this issue Aug 24, 2014
Ensure that the source file annotations are not created for lines behind
the maximum line number in a file.
@marchof
Copy link
Member

marchof commented Aug 24, 2014

Fixed on master.

@marchof marchof closed this as completed Aug 24, 2014
@mbruch
Copy link
Author

mbruch commented Aug 24, 2014

Great! I've notified the reporter.

Would you be interested to get automated notifications about stacktraces that contain class names of your domain/namespace in future (assuming legal approval by the EF) ?

@marchof
Copy link
Member

marchof commented Aug 24, 2014

I would be definitely interested those collected error reports. But not sure about notifications: Unless there is clever aggregation we can probably not handle the potential amount of data given the wide usage of EclEmma.

@jacoco jacoco locked and limited conversation to collaborators Jan 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants