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

Error-Out Behavior #2

Open
MetzgerSK opened this issue Oct 10, 2022 · 0 comments
Open

Error-Out Behavior #2

MetzgerSK opened this issue Oct 10, 2022 · 0 comments

Comments

@MetzgerSK
Copy link

Win10, Stata 17.0 MP6, survsim 4.0.9

Problem
If survsim throws an unexpected error and exits out, it doesn't tidy up Mata memory. If you try to rerun the command after an unexpected exit, you get:

. hf1() already exists
(4 lines skipped)
r(3000);

Checking Mata memory confirms the issue:

. mata mata desc

      # bytes   type                        name and extent
-------------------------------------------------------------------------------
          240   transmorphic matrix         hf1()
          256   transmorphic matrix         hf2()
          400   transmorphic matrix         totalhf1()
          408   transmorphic matrix         totalhf3()
           16   pointer colvector           Phfs[2]
           32   pointer colvector           Ptotalhfs[4]
-------------------------------------------------------------------------------

MWE
Run the MWE from #1, then without clearing session memory: keep grp, then recode grp (.=2), then try rerunning #1's survsim call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant