Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page Fault when starting TcUnit.RUN() without any TestSuites installed #120

Closed
oswin02 opened this issue Sep 4, 2020 · 4 comments
Closed
Labels
bug Something isn't working

Comments

@oswin02
Copy link
Contributor

oswin02 commented Sep 4, 2020

When I run only TcUnit.RUN() in an empty project without any TestSuites, the program stops in FB_TestResults at line 61 with this error message:
Exception (Exception Code: 0xc0000005, Page Fault) in PLC Application .... Instance, Task PlcTask (RBP: 0xffffc4809ef4ec60, RIP: 0xffffb4865cf8bac4, RSP: 0xffffc4809ef4e5e0)

@sagatowski
Copy link
Member

I have confirmed this is indeed an issue. Good catch @oswin02 ! Will be solved prior to release of version 1.1.

@sagatowski sagatowski added the bug Something isn't working label Sep 4, 2020
@oswin02
Copy link
Contributor Author

oswin02 commented Sep 4, 2020

This here at the first lines of FB_TestResults seem to fix it, but it's just quick and dirty:

IF GVL_TcUnit.NumberOfInitializedTestSuites = 0 THEN
	RETURN;
END_IF

@oswin02
Copy link
Contributor Author

oswin02 commented Sep 4, 2020

This subrange type could be the reason for the page fault:
StoringTestSuiteResultNumber : UINT(1..GVL_Param_TcUnit.MaxNumberOfTestSuites);

@sagatowski
Copy link
Member

Solved. See #121 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants