This command line:
octave --eval 'dynare example3.mod'
opens 2 windows (Figure 1 and Figure 2) and crashes with terminal output ending like this:
APPROXIMATED COEFFICIENTS OF AUTOCORRELATION
Order 1 2 3 4 5
y 0.9762 0.9530 0.9303 0.9081 0.8864
c 0.9949 0.9889 0.9819 0.9741 0.9656
k 0.9992 0.9971 0.9937 0.9891 0.9834
a 0.9641 0.9299 0.8973 0.8662 0.8365
h 0.9195 0.8442 0.7739 0.7082 0.6468
b 0.9641 0.9299 0.8973 0.8662 0.8365
Total computing time : 0h00m11s
Note: warning(s) encountered in MATLAB/Octave code
fatal: caught signal Segmentation fault -- stopping myself...
Thread 0x80d614300 has exited with leftoveSegmentation fault
Version 5.0
FreeBSD 13
This is likely an Octave issue.
Thank you for your help.
Which graphical backend are you using? (as reported by graphics_toolkit at the Octave prompt)
octave:1> graphics_toolkit
ans = qt
I asked the same question in the Octave bug report.
Only the embedded command crashes: octave --eval 'dynare example3.mod'
dynare example3.mod
from the octave
prompt doesn't crash.
Is the former command supposed to work?
The crash has this stack trace:
#0 0x0000000a37ea3920 in ?? ()
#1 0x0000000804497755 in QApplication::~QApplication() () from /usr/local/lib/qt5/libQt5Widgets.so.5
#2 0x0000000800c059e5 in octave::octave_qapplication::~octave_qapplication (this=0x80de3aeb0) at ./libgui/src/octave-qobject.h:66
#3 0x0000000800c05a09 in octave::octave_qapplication::~octave_qapplication (this=0x80de3aeb0) at ./libgui/src/octave-qobject.h:66
#4 0x0000000800b34c8a in octave::base_qobject::~base_qobject (this=0x7fffffffe230) at libgui/src/octave-qobject.cc:252
#5 0x0000000800b48ad5 in octave::cli_qobject::~cli_qobject (this=0x7fffffffe230) at libgui/src/octave-qobject.h:186
#6 0x0000000800b48a1f in octave::qt_application::execute (this=0x7fffffffe508) at libgui/src/qt-application.cc:74
#7 0x0000000000401c9b in main (argc=3, argv=0x7fffffffe728) at src/main-gui.cc:106
The Octave's QApplication object is destroyed before Dynare windows are closed.
Is some call equivalent to sleep or wait missing?
These directories are empty:
lib/dynare/matlab/modules/dseries/src/modules/matlab-fame-io/doc
lib/dynare/matlab/modules/dseries/src/modules/matlab-fame-io/tests/FameDatabases
Many or all examples from the same directory fail this way after opening several windows.
This command line:
octave --eval 'dynare example3.mod'
opens 2 windows (Figure 1 and Figure 2) and crashes with terminal output ending like this:
APPROXIMATED COEFFICIENTS OF AUTOCORRELATION
Order 1 2 3 4 5
y 0.9762 0.9530 0.9303 0.9081 0.8864
c 0.9949 0.9889 0.9819 0.9741 0.9656
k 0.9992 0.9971 0.9937 0.9891 0.9834
a 0.9641 0.9299 0.8973 0.8662 0.8365
h 0.9195 0.8442 0.7739 0.7082 0.6468
b 0.9641 0.9299 0.8973 0.8662 0.8365
Total computing time : 0h00m11s
Note: warning(s) encountered in MATLAB/Octave code
fatal: caught signal Segmentation fault -- stopping myself...
Thread 0x80d614300 has exited with leftoveSegmentation fault
Version 5.0
FreeBSD 13
EquationTags.cc:74:14: error: invalid operands to binary expression ('std::ostream' (aka 'basic_ostream<char>') and 'const char [3]')
output << " " << eqn + 1
~~~~~~ ^ ~~~~
/usr/include/c++/v1/cstddef:141:3: note: candidate function template not viable: cannot convert argument of incomplete type 'std::ostream' (aka 'basic_ostream<char>') to 'std::byte' for 1st argument
operator<< (byte __lhs, _Integer __shift) noexcept
^
/usr/include/c++/v1/memory:3983:1: note: candidate template ignored: could not match 'shared_ptr<type-parameter-0-2>' against 'char const[3]'
operator<<(basic_ostream<_CharT, _Traits>& __os, shared_ptr<_Yp> const& __p);
^
/usr/include/c++/v1/string_view:813:1: note: candidate template ignored: could not match 'basic_string_view<type-parameter-0-0, type-parameter-0-1>' against 'const char *'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/usr/include/c++/v1/string:4425:1: note: candidate template ignored: could not match 'basic_string<type-parameter-0-0, type-parameter-0-1, type-parameter-0-2>' against 'char const[3]'
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/usr/include/c++/v1/regex:5320:1: note: candidate template ignored: could not match 'sub_match<type-parameter-0-2>' against 'char const[3]'
operator<<(basic_ostream<_CharT, _ST>& __os, const sub_match<_BiIter>& __m)
^
EquationTags.cc:75:40: error: use of undeclared identifier 'endl'; did you mean 'end'?
<< key << " " << value << endl;
^~~~
end
/usr/include/c++/v1/initializer_list:108:1: note: 'end' declared here
end(initializer_list<_Ep> __il) _NOEXCEPT
^
EquationTags.cc:81:10: error: invalid operands to binary expression ('std::ostream' (aka 'basic_ostream<char>') and 'const char [22]')
output << "M_.equations_tags = {" << endl;
~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~
Dynare-5.0
clang-12
FreeBSD 13
Please add the dynare FreeBSD package to your Download page.
It should probably be in a separate page (BSD
).
The link is here.
The text could say that to install Dynare
on FreeBSD
please use the command: pkg install dynare
.
Thank you,
Yuri (the maintainer of the FreeBSD dynare port).
This model fails:
error: sq_string cannot be indexed with .
error: called from
dyntable at line 35 column 1
driver at line 200 column 1
dynare at line 293 column 1
Version: 4.6.4
Octave: 6.3.0
OS: FreeBSD 13