v1.0.0 Summary Chapter 6: Advanced tools 6. Introduction 6.14. Crash handler and bug report

6.14. Crash handler and bug report

Despite all the improvements that come with each new release, sometimes pgModeler crashes due to unexpected misbehavior. In that case, the crash handler application takes part in the situation. This tool is used to generate reports that will help the developer to find and eliminate the bugs that led to the unexpected quit. The crash handler, once displayed, shows some technical details like the software's stack trace, currently available only in Linux and macOS systems, that will serve as debugging information.

Additionally, the user can report the actions that possibly caused the problems and attach the last loaded model before the application is aborted. Once the details are provided, the crash handler will generate a report file in the form pgmodeler_[date]_[time].bug at pgModeler's temporary directory. The user can send this report file directly to the author's e-mail in order to be analyzed and the appropriate patch developed.

The limitation of the crash handler is that it'll be triggered only when pgModeler fails in such a way that a crash occurs. Thinking of that situation, pgModeler also implements dialog very similar to the crash handler that can be used in runtime without the need to wait for an unexpected quit. This dialog called Bug report works in the very same way as the crash handler but it is very useful to report bugs discovered during the software usage that do not necessarily cause failures or crashes. The bug report dialog is accessible through the icon located at the control toolbar in the main window.


Jun 21, 2023 at 10:25