Skip to content

Regression

org.eclipse.tracecompass.tmf.ctf.ui.swtbot.tests.TestInvalidCtfTrace.testOpen[20: ../../ctf/org.eclipse.tracecompass.ctf.core.tests/traces/ctf-testsuite/tests/1.8/regression/metadata/fail/struct-align-zero]

Failing for the past 1 build (Since #799 )
Took 0.81 sec.

Error Message

Expected: a string containing "Invalid value for alignment : 0"
     but: was ""

Stacktrace

java.lang.AssertionError: 

Expected: a string containing "Invalid value for alignment : 0"
     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 jdk.internal.reflect.GeneratedMethodAccessor58.invoke(Unknown Source)
	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

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=-2094134259 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=-2094134259 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=-2094134259 data=null}, TreeItem with text {TestInvalidCtfTraces}]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem - Sent event 3 to [MouseDown [3]: MouseEvent{TreeItem {TestInvalidCtfTraces} time=-2094134258 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=-2094134258 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=-2094134244 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=-2094134243 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=-2094134243 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=-2094134243 data=null}, TreeItem with text {TestInvalidCtfTraces}]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem - Sent event 3 to [MouseDown [3]: MouseEvent{TreeItem {TestInvalidCtfTraces} time=-2094134242 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=-2094134242 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=-2094134238 data=null button=1 stateMask=0x80000 x=107 y=12 count=1}, TreeItem with text {TestInvalidCtfTraces}]
WARN org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem - Tree item TreeItem with text {TestInvalidCtfTraces} is already expanded. Won't expand it again.
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 [1]} time=-2094134237 data=null button=0 stateMask=0x0 x=92 y=58 count=0}, TreeItem with text {Traces [1]}]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem - Sent event 26 to [Activate [26]: ShellEvent{TreeItem {Traces [1]} time=-2094134237 data=null doit=true}, TreeItem with text {Traces [1]}]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem - Sent event 15 to [FocusIn [15]: FocusEvent{TreeItem {Traces [1]} time=-2094134237 data=null}, TreeItem with text {Traces [1]}]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem - Sent event 3 to [MouseDown [3]: MouseEvent{TreeItem {Traces [1]} time=-2094134237 data=null button=1 stateMask=0x0 x=92 y=58 count=1}, TreeItem with text {Traces [1]}]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem - Sent event 13 to [Selection [13]: SelectionEvent{Tree {} [layout=null] time=-2094134236 data=null item=TreeItem {Traces [1]} detail=0 x=0 y=0 width=0 height=0 stateMask=0x80000 text=null doit=true}, TreeItem with text {Traces [1]}]
DEBUG org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem - Sent event 4 to [MouseUp [4]: MouseEvent{TreeItem {Traces [1]} time=-2094134184 data=null button=1 stateMask=0x80000 x=92 y=58 count=1}, TreeItem with text {Traces [1]}]

!ENTRY org.eclipse.tracecompass.tmf.ui 4 0 2024-03-28 03:50:17.030
!MESSAGE Error initializing trace.

org.eclipse.tracecompass.tmf.core.exceptions.TmfTraceException: org.eclipse.tracecompass.internal.ctf.core.event.metadata.ParseException: Invalid value for alignment : 0
!STACK 0
org.eclipse.tracecompass.ctf.core.CTFException: org.eclipse.tracecompass.internal.ctf.core.event.metadata.ParseException: Invalid value for alignment : 0
	at org.eclipse.tracecompass.ctf.core.trace.Metadata.parseFile(Metadata.java:197)
	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: org.eclipse.tracecompass.internal.ctf.core.event.metadata.ParseException: Invalid value for alignment : 0
	at org.eclipse.tracecompass.internal.ctf.core.event.metadata.tsdl.AlignmentParser.parse(AlignmentParser.java:89)
	at org.eclipse.tracecompass.internal.ctf.core.event.metadata.tsdl.struct.StructParser.parse(StructParser.java:178)
	at org.eclipse.tracecompass.internal.ctf.core.event.metadata.tsdl.TypeSpecifierListParser.parse(TypeSpecifierListParser.java:138)
	at org.eclipse.tracecompass.internal.ctf.core.event.metadata.IOStructGen.parseRootDeclaration(IOStructGen.java:287)
	at org.eclipse.tracecompass.internal.ctf.core.event.metadata.IOStructGen.parseRoot(IOStructGen.java:148)
	at org.eclipse.tracecompass.internal.ctf.core.event.metadata.IOStructGen.generate(IOStructGen.java:101)
	at org.eclipse.tracecompass.ctf.core.trace.Metadata.readMetaDataText(Metadata.java:386)
	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=-2094133588 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=-2094133587 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=-2094133587 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=-2094133587 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=-2094133587 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=-2094133587 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=-2094133587 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=-2094133587 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