Home » Eclipse Projects » Eclipse Titan » DTE: Uninitialized field error. Even though the field is initialized.
DTE: Uninitialized field error. Even though the field is initialized. [message #1723728] |
Wed, 17 February 2016 11:44 |
murli sharma Messages: 85 Registered: November 2015 |
Member |
|
|
Hi,
While running our script, we came across one strange error in template SysInfoTypeSB1 c_SB1_Def .
RLC_r3_wk37.ttcn :: Template for assigned value
template SysInfoTypeSB1 c_SB1_Def :=
{
sib_ReferenceList := {
{
sib_Type := {sysInfoType6 := 1},
scheduling := {
scheduling := {
segCount := 4, //even though value is assigned to segCount , while running the script we are getting DTE. It is detecting segCount to be uninitialized value
sib_Pos := {rep64 := 3},
sib_PosOffsetInfo := {
so4,
so2,
so2
}
}
}
}
Error Log Prints:
MTC@linaro: encode_SS__PORT__CMD__REQ(): Stream after encoding: 'A05BD400389C5C0A020340F000'O
MTC@linaro: { sib_ReferenceList := { { sib_Type := { sysInfoType6 := 2 }, scheduling := { scheduling := { segCount := <uninitialized template>, sib_Pos := { rep64 := 3 }, sib_PosOffsetInfo := <uninitialized template> } } }, { sib_Type := { sysInfoType7 := NULL }, scheduling := { scheduling := { segCount := 1, sib_Pos := { rep16 := 2 }, sib_PosOffsetInfo := omit } } }, { sib_Type := { sysInfoType11 := 2 }, scheduling := { scheduling := { segCount := 2, sib_Pos := { rep64 := 29 }, sib_PosOffsetInfo := { so2 (0) } } } }, { sib_Type := { sysInfoType12 := 2 }, scheduling := { scheduling := { segCount := <uninitialized template>, sib_Pos := { rep64 := 13 }, sib_PosOffsetInfo := <uninitialized template> } } }, { sib_Type := { sysInfoType18 := 2 }, scheduling := { scheduling := { segCount := 1, sib_Pos := { rep64 := 18 }, sib_PosOffsetInfo := omit } } } }, v6b0NonCriticalExtensions := omit }
MTC@linaro: RLC_r3_wk37.ttcn:32425: Dynamic test case error: Performing a valueof or send operation on a non-specific integer template.
I'm attaching the code.
Thanks
[Updated on: Thu, 18 February 2016 04:27] Report message to a moderator
|
|
| |
Re: DTE: Uninitialized field error. Even though the field is initialized. [message #1724198 is a reply to message #1723739] |
Mon, 22 February 2016 09:45 |
murli sharma Messages: 85 Registered: November 2015 |
Member |
|
|
Dear Elemer,
We can not share SUT or other dependency files.
So we have modified the script, so that just using the sample script you can reproduce the issue in your setup.
Kindly find the sample script in attachment.
New observation;
When we call the template directly from the DTE location, we see all values are initialized properly.
But when the Template is stored in a global and that global is passed as an argument to a function, <Uninitialized Template> issue is seen.
File name: RLC_r3_wk37.ttcn, Line No: 32449, In function ts_SendSB1_DefSchedul(),
log("*****Actual Template being called: ");
log(c_SB1_Def); //No error when Template is called directly
log("*****Referance of the Template passed in the function: p_SB");
log(p_SB); //DTE here
Run.log:
MTC@linaro: *****Actual Template being called:
MTC@linaro: { sib_ReferenceList := { { sib_Type := { sysInfoType6 := 1 }, scheduling := { scheduling := { segCount := 4, sib_Pos := { rep64 := 3 }, sib_PosOffsetInfo := { so4 (1), so2 (0), so2 (0) } } } }, { sib_Type := { sysInfoType7 := NULL }, scheduling := { scheduling := { segCount := 1, sib_Pos := { rep16 := 2 }, sib_PosOffsetInfo := omit } } }, { sib_Type := { sysInfoType11 := 1 }, scheduling := { scheduling := { segCount := 3, sib_Pos := { rep64 := 29 }, sib_PosOffsetInfo := { so2 (0), so2 (0) } } } }, { sib_Type := { sysInfoType12 := 1 }, scheduling := { scheduling := { segCount := 3, sib_Pos := { rep64 := 13 }, sib_PosOffsetInfo := { so2 (0), so2 (0) } } } }, { sib_Type := { sysInfoType18 := 1 }, scheduling := { scheduling := { segCount := 1, sib_Pos := { rep64 := 18 }, sib_PosOffsetInfo := omit } } } }, v6b0NonCriticalExtensions := omit }
MTC@linaro: *****Referance of the Template passed in the function: p_SB
MTC@linaro: { sib_ReferenceList := { { sib_Type := { sysInfoType6 := 2 }, scheduling := { scheduling := { segCount := <uninitialized template>, sib_Pos := { rep64 := 3 }, sib_PosOffsetInfo := <uninitialized template> } } }, { sib_Type := { sysInfoType7 := NULL }, scheduling := { scheduling := { segCount := 1, sib_Pos := { rep16 := 2 }, sib_PosOffsetInfo := omit } } }, { sib_Type := { sysInfoType11 := 2 }, scheduling := { scheduling := { segCount := <uninitialized template>, sib_Pos := { rep64 := 29 }, sib_PosOffsetInfo := <uninitialized template> } } }, { sib_Type := { sysInfoType12 := 2 }, scheduling := { scheduling := { segCount := <uninitialized template>, sib_Pos := { rep64 := 13 }, sib_PosOffsetInfo := <uninitialized template> } } }, { sib_Type := { sysInfoType18 := 2 }, scheduling := { scheduling := { segCount := 1, sib_Pos := { rep64 := 18 }, sib_PosOffsetInfo := omit } } } }, v6b0NonCriticalExtensions := omit }
MTC@linaro: RLC_r3_wk37.ttcn:32453: Dynamic test case error: Performing a valueof or send operation on a non-specific integer template.
Thanks a lot for your support,
Murli
|
|
|
Re: DTE: Uninitialized field error. Even though the field is initialized. [message #1724339 is a reply to message #1724198] |
Tue, 23 February 2016 09:19 |
|
Hi Murli,
here's the code sequence in question:
function ts_SendSB1_DefSchedul(template SysInfoTypeSB1 p_SB, template integer p_CellId, template integer p_Timing, inout template GlobalVariableCollection GVC_) runs on BASE_COMP
{
/* 1. */
log("*****Actual Template being called: ");
log(c_SB1_Def);
log("*****Referance of the Template passed in the function: p_SB");
log(p_SB);
GVC_.tcv_Segs := o_SIB_Segmentation(valueof(o_SIB_PER_Encoding(valueof(SIB:{sB1 := p_SB}))));
:
:
and the corresponding log:
MTC@linaro: *****Actual Template being called:
MTC@linaro: { sib_ReferenceList := { { sib_Type := { sysInfoType6 := 1 }, scheduling := { scheduling := { segCount := 4, sib_Pos := { rep64 := 3 }, sib_PosOffsetInfo := { so4 (1), so2 (0), so2 (0) } } } }, { sib_Type := { sysInfoType7 := NULL }, scheduling := { scheduling := { segCount := 1, sib_Pos := { rep16 := 2 }, sib_PosOffsetInfo := omit } } }, { sib_Type := { sysInfoType11 := 1 }, scheduling := { scheduling := { segCount := 3, sib_Pos := { rep64 := 29 }, sib_PosOffsetInfo := { so2 (0), so2 (0) } } } }, { sib_Type := { sysInfoType12 := 1 }, scheduling := { scheduling := { segCount := 3, sib_Pos := { rep64 := 13 }, sib_PosOffsetInfo := { so2 (0), so2 (0) } } } }, { sib_Type := { sysInfoType18 := 1 }, scheduling := { scheduling := { segCount := 1, sib_Pos := { rep64 := 18 }, sib_PosOffsetInfo := omit } } } }, v6b0NonCriticalExtensions := omit }
MTC@linaro: *****Referance of the Template passed in the function: p_SB
MTC@linaro: { sib_ReferenceList := { { sib_Type := { sysInfoType6 := 2 }, scheduling := { scheduling := { segCount := <uninitialized template>, sib_Pos := { rep64 := 3 }, sib_PosOffsetInfo := <uninitialized template> } } }, { sib_Type := { sysInfoType7 := NULL }, scheduling := { scheduling := { segCount := 1, sib_Pos := { rep16 := 2 }, sib_PosOffsetInfo := omit } } }, { sib_Type := { sysInfoType11 := 2 }, scheduling := { scheduling := { segCount := <uninitialized template>, sib_Pos := { rep64 := 29 }, sib_PosOffsetInfo := <uninitialized template> } } }, { sib_Type := { sysInfoType12 := 2 }, scheduling := { scheduling := { segCount := <uninitialized template>, sib_Pos := { rep64 := 13 }, sib_PosOffsetInfo := <uninitialized template> } } }, { sib_Type := { sysInfoType18 := 2 }, scheduling := { scheduling := { segCount := 1, sib_Pos := { rep64 := 18 }, sib_PosOffsetInfo := omit } } } }, v6b0NonCriticalExtensions := omit }
MTC@linaro: RLC_r3_wk37.ttcn:32453: Dynamic test case error: Performing a valueof or send operation on a non-specific integer template.
from which it can be seen that p_SB contains uninitialized fields.
The reason for this is that the value of segCount is changed in function ts_SendSIB6 (which is called before ts_SendSB1_DefSchedul).
:
ts_SendSIB6(cb_SIB6_Def(GVC_.tcv_TmpCellInfo), p_CellId, tsc_Now, GVC_);
log("**********38");
ts_SendSIB7(c_SIB7_Def, p_CellId, tsc_Now, GVC_);
log("**********39");
ts_SendSIB11(GVC_.tcv_SIB11, p_CellId, tsc_Now, GVC_);
log("**********40");
ts_SendSIB12(GVC_.tcv_SIB12, p_CellId, tsc_Now, GVC_);
log("**********41");
ts_SendSIB18(GVC_.tcv_SIB18, p_CellId, tsc_Now, GVC_);
log("**********42")
ts_SendSB1_DefSchedul(GVC_.tcv_SB1, p_CellId, tsc_Now, GVC_);
:
Specifically by:
GVC_.tcv_SB1.sib_ReferenceList[0].scheduling := c_SIB6_Schedul1;
And c_SIB_Schedul1 only has one field set, everything else is left uninitialized.
I hope this helps
Best regards
Elemer
|
|
| | |
Re: DTE: Uninitialized field error. Even though the field is initialized. [message #1724520 is a reply to message #1724495] |
Wed, 24 February 2016 10:20 |
|
Hi Murli,
one question:
you (and I'd guess, your team) are obviously power users of Titan, working on large and complex projects.
Would you consider endorsing Titan , in a statement like "This an this company uses Eclipse Titan for that and that" ?
If you do ,maybe you could post about it in this forum, possibly in the group LinkedIn 'TTCN-3 Professionals', maybe other fora.
Titan could use all the positive PR ; this may attract new users and eventually could be beneficial to us all.
Thank you and best regards
Elemer
|
|
| |
Goto Forum:
Current Time: Fri Sep 20 15:08:36 GMT 2024
Powered by FUDForum. Page generated in 0.04406 seconds
|