Howto:Reset/re-init Troubleshooting: Difference between revisions

Jump to navigation Jump to search
m
→‎Nasal dialog: revert collapsible template use, it's breaking the code: hashes don't work too well with the wiki template markup (seen that with instant-cquotes too), still thanks ...
m (→‎Nasal dialog: revert collapsible template use, it's breaking the code: hashes don't work too well with the wiki template markup (seen that with instant-cquotes too), still thanks ...)
Line 326: Line 326:
{{Note|The following Nasal script can be executed via the Nasal Console or put in a separate file and executed via a menu item to easily test different aspects of reset/re-init. This is intended to be a stress test, by allowing people to easily switch aircraft, relocate repeatedly and/or stop/restart and suspend/resume different subsystems. For the time being, you are likely to trigger segfaults/crashes or other undefined behavior (e.g., memory leaks), so it is recommended to run FlightGear in a GNU Debugger (GDB) session to obtain a backtrace. If you manage to cause a bug or crash, please file a bug report: {{Tickets}} }}
{{Note|The following Nasal script can be executed via the Nasal Console or put in a separate file and executed via a menu item to easily test different aspects of reset/re-init. This is intended to be a stress test, by allowing people to easily switch aircraft, relocate repeatedly and/or stop/restart and suspend/resume different subsystems. For the time being, you are likely to trigger segfaults/crashes or other undefined behavior (e.g., memory leaks), so it is recommended to run FlightGear in a GNU Debugger (GDB) session to obtain a backtrace. If you manage to cause a bug or crash, please file a bug report: {{Tickets}} }}


{{collapsible script|
<syntaxhighlight lang="javascript">
| type  = Nasal script
| title  = reinit.nas
| script =
canvas.MessageBox.warning(
canvas.MessageBox.warning(
     "Developer Feature",
     "Developer Feature",
Line 565: Line 562:
     canvas.MessageBox.Ok |canvas.MessageBox.Cancel | canvas.MessageBox.DontShowAgain
     canvas.MessageBox.Ok |canvas.MessageBox.Cancel | canvas.MessageBox.DontShowAgain
);
);
| lang = nasal
 
}}
</syntaxhighlight>

Navigation menu