Page 1 of 1

Dynare stops working unexpectedly

PostPosted: Sun Jun 08, 2014 4:25 pm
by dyndyn
I tried to run a mod file using matlab. When I type "dynare filename", a message appears and says "dynare stopped working". Then, in the Command Window I see

"This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information."

Does anyone have an idea of why that occurs? I was using external functions which include integrals. Can it be the source of the problem?

Re: Dynare stops working unexpectedly

PostPosted: Sun Jun 08, 2014 4:31 pm
by jpfeifer
Looks like a bug. Please try the most recent snapshot. If the problem persists, provide me with all file necessary to replicate the issue.

Re: Dynare stops working unexpectedly

PostPosted: Mon Jun 09, 2014 7:58 am
by dyndyn
I downloaded and installed the 2014-06-08 version. In the "dynare" directory now I have both "4.4.2" and "2014-06-08". I tried to set path and add folder in matlab. I selected the matlab subdirectory inside "2014-06-08". I saved and closed the set path screen. Still, if I type "dynare" into matlab, it does not complain that I did not specify an MOD file. Yet, it says "not enough input argument".
Anyway, I tried to run my MOD file again, and it does not work.

Thank you

Re: Dynare stops working unexpectedly

PostPosted: Mon Jun 09, 2014 8:01 am
by dyndyn
I guess I installed the latest version correctly since the problem now says

"Starting Dynare (version 2014-06-08).
Starting preprocessing of the model file ...

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information."

Re: Dynare stops working unexpectedly

PostPosted: Mon Jun 09, 2014 8:37 am
by jpfeifer
Please provide me with the mod-file

Re: Dynare stops working unexpectedly

PostPosted: Mon Jun 09, 2014 8:54 am
by dyndyn
Here you are.

Re: Dynare stops working unexpectedly

PostPosted: Mon Jun 09, 2014 8:56 am
by dyndyn
Additional functions that I included into finale2

Re: Dynare stops working unexpectedly

PostPosted: Mon Jun 09, 2014 8:57 am
by dyndyn
Last set of functions

Re: Dynare stops working unexpectedly

PostPosted: Wed Jun 11, 2014 12:33 pm
by jpfeifer
There is a Dynare bug here that prevents correct debugging. I will notify you when it is fixed.

Re: Dynare stops working unexpectedly

PostPosted: Wed Jun 11, 2014 1:11 pm
by dyndyn
Thank you very much. Could you please let me know if it has to do with external functions including integrals?
Anyhow, I will provide you with a cleaner file if it helps.

Re: Dynare stops working unexpectedly

PostPosted: Wed Jun 11, 2014 4:16 pm
by jpfeifer
I don't know yet. The problem occurs when declaring H, but I did not find anything strikingly different from the other functions. Regardless, Dynare's preprocessor should not crash like this.

Re: Dynare stops working unexpectedly

PostPosted: Tue Jul 01, 2014 3:35 pm
by jpfeifer
We have finally identified the problem. See https://github.com/DynareTeam/dynare/issues/678