Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 532392

Summary: An internal error occurred during: "Searching for markers".
Product: [Eclipse Project] Platform Reporter: Christian Dietrich <christian.dietrich.opensource>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: loskutov
Version: 4.7.2   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:
Attachments:
Description Flags
Problem view none

Description Christian Dietrich CLA 2018-03-13 05:34:23 EDT
What steps will reproduce the problem?
1. Selected a Project in package Explorer


-- Error Details --
Date: Tue Mar 13 10:30:09 CET 2018
Message: An internal error occurred during: "Searching for markers".
Severity: Error
Product: Eclipse 4.7.2.20171218-0600 (org.eclipse.epp.package.committers.product)
Plugin: org.eclipse.core.jobs
Session Data:
eclipse.buildId=4.7.2.M20171130-0510
java.version=1.8.0_151
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=de_DE
Framework arguments:  -product org.eclipse.epp.package.committers.product -product org.eclipse.epp.package.committers.product -keyring /Users/dietrich/.eclipse_keyring
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.committers.product -data file:/Users/dietrich/xtext-dev/ws/ -product org.eclipse.epp.package.committers.product -keyring /Users/dietrich/.eclipse_keyring

Exception Stack Trace:
java.lang.IllegalArgumentException: Comparison method violates its general contract!
	at java.util.TimSort.mergeHi(TimSort.java:899)
	at java.util.TimSort.mergeAt(TimSort.java:516)
	at java.util.TimSort.mergeCollapse(TimSort.java:441)
	at java.util.TimSort.sort(TimSort.java:245)
	at java.util.Arrays.sort(Arrays.java:1512)
	at org.eclipse.ui.internal.views.markers.MarkerSortUtil.sortStartingKElement(MarkerSortUtil.java:326)
	at org.eclipse.ui.internal.views.markers.Markers.sortMarkerEntries(Markers.java:159)
	at org.eclipse.ui.internal.views.markers.Markers.sortAndMakeCategories(Markers.java:133)
	at org.eclipse.ui.internal.views.markers.Markers.updateWithNewMarkers(Markers.java:97)
	at org.eclipse.ui.internal.views.markers.MarkerUpdateJob.processMarkerEntries(MarkerUpdateJob.java:125)
	at org.eclipse.ui.internal.views.markers.MarkerUpdateJob.buildMarkers(MarkerUpdateJob.java:79)
	at org.eclipse.ui.internal.views.markers.MarkerUpdateJob.run(MarkerUpdateJob.java:51)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
Comment 1 Christian Dietrich CLA 2018-03-13 05:43:28 EDT
corrction. happens when i select a working set
Comment 2 Andrey Loskutov CLA 2018-03-13 05:45:13 EDT
Christian, can you please post a screenshot of the problems view sort/category criteria? See bug 371586 which is supposed to be fixed in 4.8 M6.

I'm marking this as a dup of bug 371586, but feel free to reopen if you think this is still not OK or you have steps to reproduce on 4.8 M6.

*** This bug has been marked as a duplicate of bug 371586 ***
Comment 3 Christian Dietrich CLA 2018-03-13 05:53:00 EDT
Created attachment 273099 [details]
Problem view

@Andrey sort is done by location
Comment 5 Andrey Loskutov CLA 2018-03-13 05:59:53 EDT
(In reply to Christian Dietrich from comment #3)
> Created attachment 273099 [details]
> Problem view
> 
> @Andrey sort is done by location

Bad. Now please try to use 4.8 M6 with *same* workspace, and you should either see no issues (unlikely) or should have a more diagnostics for the error (likely). Please post then the new error log and unset the "duplicated" flag if it can be reproduced on 4.8 M6+. Please note, now the error should only appear in the log, not in the dialog.
Comment 6 Christian Dietrich CLA 2018-03-13 06:03:07 EDT
which release timestamp does 4.6+ have?
Comment 7 Andrey Loskutov CLA 2018-03-13 06:03:55 EDT
(In reply to Christian Dietrich from comment #6)
> which release timestamp does 4.6+ have?

? 4.8 M6, not 4.6.
Comment 8 Christian Dietrich CLA 2018-03-13 06:05:53 EDT
yes i mean m6
Comment 9 Christian Dietrich CLA 2018-03-13 06:12:39 EDT
hmmm oomph just gives me m5 so i have to wait ...