Skip to content

Regression

org.eclipse.tracecompass.tmf.ctf.ui.swtbot.tests.TestInvalidCtfTrace.testOpen[0: ../../ctf/org.eclipse.tracecompass.ctf.core.tests/traces/ctf-testsuite/tests/1.8/regression/metadata/fail/array-redefinition]

Failing for the past 1 build (Since #701 )
Took 1.3 sec.

Error Message

Expected: a string containing "MismatchedTokenException(57!=72)"
     but: was ""

Stacktrace

java.lang.AssertionError: 

Expected: a string containing "MismatchedTokenException(57!=72)"
     but: was ""
	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:6)
	at org.eclipse.swtbot.swt.finder.SWTBotAssert.assertContains(SWTBotAssert.java:99)
	at org.eclipse.tracecompass.tmf.ctf.ui.swtbot.tests.TestInvalidCtfTrace.testOpen(TestInvalidCtfTrace.java:208)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:137)
	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:148)
	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:88)
	at org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:140)
	at org.eclipse.tycho.surefire.osgibooter.AbstractUITestApplication.runTests(AbstractUITestApplication.java:51)
	at org.eclipse.e4.ui.internal.workbench.swt.E4Testable.lambda$0(E4Testable.java:79)
	at java.base/java.lang.Thread.run(Thread.java:833)

Standard Output

Display size: 1440x900
OS version=6.2.9-300.fc38.x86_64
GTK version=3.24.33
GTK theme=Yaru
LIBOVERLAY_SCROLLBAR=0
Time zone: Greenwich Mean Time
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotShell - Sent event 26 to [Activate [26]: ShellEvent{Shell {data - Eclipse Platform} [layout=org.eclipse.e4.ui.workbench.renderers.swt.TrimmedPartLayout@22617270] time=-2092256545 data=null doit=true}, Shell with text {data - Eclipse Platform}]
DEBUG org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher - matched ViewReference with text "", using matcher: with title '"Project Explorer"'
DEBUG org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher - matched MenuItem with text "P&rojects Presentati...", using matcher: with mnemonic 'Projects Presentation'
DEBUG org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher - matched MenuItem with text "&Flat", using matcher: with mnemonic 'Flat'
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotMenu - Clicking on with mnemonic 'Flat'
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotMenu - Sent event 27 to [Deactivate [27]: ShellEvent{MenuItem {&Hierarchical} time=-2092255655 data=null doit=true}, MenuItem with text {&Hierarchical}]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotMenu - Sent event 13 to [Selection [13]: SelectionEvent{MenuItem {&Hierarchical} time=-2092255654 data=null item=null detail=0 x=0 y=0 width=0 height=0 stateMask=0x0 text=null doit=true}, MenuItem with text {&Hierarchical}]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotMenu - Sent event 13 to [Selection [13]: SelectionEvent{MenuItem {&Flat} time=-2092255648 data=null item=null detail=0 x=0 y=0 width=0 height=0 stateMask=0x0 text=null doit=true}, with mnemonic 'Flat']
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotMenu - Clicked on with mnemonic 'Flat'
DEBUG org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher - matched ViewReference with text "", using matcher: with title '"Project Explorer"'
DEBUG org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher - matched Tree with text "", using matcher: of type 'Tree'
DEBUG org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher - matched Tree with text "", using matcher: (of type 'Tree')
DEBUG org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher - matched Tree with text "", using matcher: of type 'Tree'
DEBUG org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher - matched Tree with text "", using matcher: (of type 'Tree')
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotTree - Attempting to set focus on Tree with text {}
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem - Sent event 6 to [MouseEnter [6]: MouseEvent{TreeItem {TestInvalidCtfTraces} time=-2092255429 data=null button=0 stateMask=0x0 x=107 y=12 count=0}, TreeItem with text {TestInvalidCtfTraces}]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem - Sent event 26 to [Activate [26]: ShellEvent{TreeItem {TestInvalidCtfTraces} time=-2092255418 data=null doit=true}, TreeItem with text {TestInvalidCtfTraces}]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem - Sent event 15 to [FocusIn [15]: FocusEvent{TreeItem {TestInvalidCtfTraces} time=-2092255417 data=null}, TreeItem with text {TestInvalidCtfTraces}]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem - Sent event 3 to [MouseDown [3]: MouseEvent{TreeItem {TestInvalidCtfTraces} time=-2092255417 data=null button=1 stateMask=0x0 x=107 y=12 count=1}, TreeItem with text {TestInvalidCtfTraces}]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem - Sent event 13 to [Selection [13]: SelectionEvent{Tree {} [layout=null] time=-2092255416 data=null item=TreeItem {TestInvalidCtfTraces} detail=0 x=0 y=0 width=0 height=0 stateMask=0x80000 text=null doit=true}, TreeItem with text {TestInvalidCtfTraces}]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem - Sent event 4 to [MouseUp [4]: MouseEvent{TreeItem {TestInvalidCtfTraces} time=-2092255281 data=null button=1 stateMask=0x80000 x=107 y=12 count=1}, TreeItem with text {TestInvalidCtfTraces}]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotTree - Attempting to set focus on Tree with text {}
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem - Sent event 6 to [MouseEnter [6]: MouseEvent{TreeItem {TestInvalidCtfTraces} time=-2092255279 data=null button=0 stateMask=0x0 x=107 y=12 count=0}, TreeItem with text {TestInvalidCtfTraces}]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem - Sent event 26 to [Activate [26]: ShellEvent{TreeItem {TestInvalidCtfTraces} time=-2092255279 data=null doit=true}, TreeItem with text {TestInvalidCtfTraces}]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem - Sent event 15 to [FocusIn [15]: FocusEvent{TreeItem {TestInvalidCtfTraces} time=-2092255279 data=null}, TreeItem with text {TestInvalidCtfTraces}]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem - Sent event 3 to [MouseDown [3]: MouseEvent{TreeItem {TestInvalidCtfTraces} time=-2092255278 data=null button=1 stateMask=0x0 x=107 y=12 count=1}, TreeItem with text {TestInvalidCtfTraces}]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem - Sent event 13 to [Selection [13]: SelectionEvent{Tree {} [layout=null] time=-2092255278 data=null item=TreeItem {TestInvalidCtfTraces} detail=0 x=0 y=0 width=0 height=0 stateMask=0x80000 text=null doit=true}, TreeItem with text {TestInvalidCtfTraces}]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem - Sent event 4 to [MouseUp [4]: MouseEvent{TreeItem {TestInvalidCtfTraces} time=-2092255266 data=null button=1 stateMask=0x80000 x=107 y=12 count=1}, TreeItem with text {TestInvalidCtfTraces}]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem - Sent event 26 to [Activate [26]: ShellEvent{TreeItem {TestInvalidCtfTraces} time=-2092255265 data=null doit=true}, TreeItem with text {TestInvalidCtfTraces}]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem - Sent event 15 to [FocusIn [15]: FocusEvent{TreeItem {TestInvalidCtfTraces} time=-2092255264 data=null}, TreeItem with text {TestInvalidCtfTraces}]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem - Sent event 3 to [MouseDown [3]: MouseEvent{TreeItem {TestInvalidCtfTraces} time=-2092255264 data=null button=1 stateMask=0x0 x=107 y=12 count=1}, TreeItem with text {TestInvalidCtfTraces}]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem - Sent event 17 to [Expand [17]: TreeEvent{Tree {} [layout=null] time=-2092255263 data=null item=TreeItem {TestInvalidCtfTraces} detail=0 x=0 y=0 width=0 height=0 stateMask=0x0 text=null doit=true}, TreeItem with text {TestInvalidCtfTraces}]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem - Sent event 4 to [MouseUp [4]: MouseEvent{TreeItem {TestInvalidCtfTraces} time=-2092255238 data=null button=1 stateMask=0x80000 x=107 y=12 count=1}, TreeItem with text {TestInvalidCtfTraces}]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotTree - Attempting to set focus on Tree with text {}
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem - Sent event 6 to [MouseEnter [6]: MouseEvent{TreeItem {Traces [0]} time=-2092255186 data=null button=0 stateMask=0x0 x=92 y=58 count=0}, TreeItem with text {Traces [0]}]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem - Sent event 26 to [Activate [26]: ShellEvent{TreeItem {Traces [0]} time=-2092255186 data=null doit=true}, TreeItem with text {Traces [0]}]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem - Sent event 15 to [FocusIn [15]: FocusEvent{TreeItem {Traces [0]} time=-2092255186 data=null}, TreeItem with text {Traces [0]}]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem - Sent event 3 to [MouseDown [3]: MouseEvent{TreeItem {Traces [0]} time=-2092255185 data=null button=1 stateMask=0x0 x=92 y=58 count=1}, TreeItem with text {Traces [0]}]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem - Sent event 13 to [Selection [13]: SelectionEvent{Tree {} [layout=null] time=-2092255185 data=null item=TreeItem {Traces [0]} detail=0 x=0 y=0 width=0 height=0 stateMask=0x80000 text=null doit=true}, TreeItem with text {Traces [0]}]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem - Sent event 4 to [MouseUp [4]: MouseEvent{TreeItem {Traces [0]} time=-2092255163 data=null button=1 stateMask=0x80000 x=92 y=58 count=1}, TreeItem with text {Traces [0]}]

!ENTRY org.eclipse.tracecompass.tmf.ui 4 0 2024-03-28 04:21:36.417
!MESSAGE Error initializing trace.

org.eclipse.tracecompass.tmf.core.exceptions.TmfTraceException: MismatchedTokenException(57!=72) at metadata:9:27
!STACK 0
org.eclipse.tracecompass.internal.ctf.core.event.metadata.CtfAntlrException: MismatchedTokenException(57!=72) at metadata:9:27
	at org.eclipse.tracecompass.ctf.core.trace.Metadata.parseFile(Metadata.java:199)
	at org.eclipse.tracecompass.ctf.core.trace.CTFTrace.<init>(CTFTrace.java:196)
	at org.eclipse.tracecompass.ctf.core.trace.CTFTrace.<init>(CTFTrace.java:167)
	at org.eclipse.tracecompass.tmf.ctf.core.trace.CtfTmfTrace.initTrace(CtfTmfTrace.java:227)
	at org.eclipse.tracecompass.tmf.core.trace.TmfTrace.initTrace(TmfTrace.java:227)
	at org.eclipse.tracecompass.tmf.ui.project.model.TmfOpenTraceHelper.openTraceElement(TmfOpenTraceHelper.java:264)
	at org.eclipse.tracecompass.tmf.ui.project.model.TmfOpenTraceHelper.openProjectElement(TmfOpenTraceHelper.java:323)
	at org.eclipse.tracecompass.tmf.ui.project.model.TmfOpenTraceHelper$OpenProjectElementJob.run(TmfOpenTraceHelper.java:448)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: MismatchedTokenException(57!=72)
	at org.eclipse.tracecompass.ctf.parser.CTFParser.recoverFromMismatchedToken(CTFParser.java:231)
	at org.antlr.runtime.BaseRecognizer.match(BaseRecognizer.java:115)
	at org.eclipse.tracecompass.ctf.parser.CTFParser.declaration(CTFParser.java:1744)
	at org.eclipse.tracecompass.ctf.parser.CTFParser.parse(CTFParser.java:350)
	at org.eclipse.tracecompass.ctf.core.trace.Metadata.createAST(Metadata.java:432)
	at org.eclipse.tracecompass.ctf.core.trace.Metadata.readMetaDataText(Metadata.java:383)
	at org.eclipse.tracecompass.ctf.core.trace.Metadata.parseFile(Metadata.java:192)
	... 8 more
DEBUG org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher - matched Shell with text "Open Trace", using matcher: with text 'Open Trace'
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotShell - Sent event 26 to [Activate [26]: ShellEvent{Shell {Open Trace} [layout=GridLayout {numColumns=2 marginWidth=12 marginHeight=15 horizontalSpacing=14 verticalSpacing=9}] time=-2092254255 data=null doit=true}, Shell with text {Open Trace}]
DEBUG org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher - matched Label with text "Error initializing t...", using matcher: of type 'Label'
DEBUG org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher - matched Label with text "Error initializing t...", using matcher: (of type 'Label')
DEBUG org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher - matched Label with text "", using matcher: of type 'Label'
DEBUG org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher - matched Label with text "", using matcher: (of type 'Label')
DEBUG org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher - matched Button with text "OK", using matcher: of type 'Button'
DEBUG org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher - matched Button with text "OK", using matcher: with style 'SWT.PUSH'
DEBUG org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher - matched Button with text "OK", using matcher: (of type 'Button' and with style 'SWT.PUSH')
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotButton - Clicking on OK
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotButton - Sent event 6 to [MouseEnter [6]: MouseEvent{Button {OK} time=-2092254252 data=null button=0 stateMask=0x0 x=0 y=0 count=0}, (of type 'Button' and with style 'SWT.PUSH')]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotButton - Sent event 5 to [MouseMove [5]: MouseEvent{Button {OK} time=-2092254252 data=null button=0 stateMask=0x0 x=0 y=0 count=0}, (of type 'Button' and with style 'SWT.PUSH')]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotButton - Sent event 26 to [Activate [26]: ShellEvent{Button {OK} time=-2092254252 data=null doit=true}, (of type 'Button' and with style 'SWT.PUSH')]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotButton - Sent event 15 to [FocusIn [15]: FocusEvent{Button {OK} time=-2092254252 data=null}, (of type 'Button' and with style 'SWT.PUSH')]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotButton - Sent event 3 to [MouseDown [3]: MouseEvent{Button {OK} time=-2092254251 data=null button=0 stateMask=0x0 x=0 y=0 count=0}, (of type 'Button' and with style 'SWT.PUSH')]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotButton - Sent event 4 to [MouseUp [4]: MouseEvent{Button {OK} time=-2092254251 data=null button=0 stateMask=0x0 x=0 y=0 count=0}, (of type 'Button' and with style 'SWT.PUSH')]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotButton - Sent event 13 to [Selection [13]: SelectionEvent{Button {OK} time=-2092254251 data=null item=null detail=0 x=0 y=0 width=0 height=0 stateMask=0x0 text=null doit=true}, (of type 'Button' and with style 'SWT.PUSH')]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotButton - Clicked on