Closing modal form using "ENTER" key somtimes crashes the program
Original Reporter info from Mantis: crossbuilder
-
Reporter name: Burkhard Carstens
Original Reporter info from Mantis: crossbuilder
- Reporter name: Burkhard Carstens
Description:
Closing modal form using "ENTER" key sometimes crashes the program. If that happens, an exception dialog is shown, which sometimes immediately disappears together with the whole app (i.e. another exception while displaying the exception dialog).
This seems to happen, if the mouse is moved inside the modal form which then is closed using the "ENTER" or "ESC" key. If the mouse is over the ok or cancel button while pressing "ENTER" it doesn't crash but still prints Gtk-CRITICAL messages on console.
Gtk-CRITICAL **: file gtkobject.c: line 1080 (gtk_object_get_data): assertion `GTK_IS_OBJECT (object)' failed.
Gtk-CRITICAL **: file gtkobject.c: line 1080 (gtk_object_get_data): assertion `GTK_IS_OBJECT (object)' failed.
Gtk-CRITICAL **: file gtkobject.c: line 1080 (gtk_object_get_data): assertion `GTK_IS_OBJECT (object)' failed.
TApplication.HandleException Access violation
Stack trace:
$40248BF1
$081BCECA
$080F43E8
$0815596F
$08155994
$08155ABC
$08155B0E
$0807BCCB
$0807B917
$0807D57F
$0807D9BF
$0808F293
$0807D97A
$08054C92
Gtk-CRITICAL **: file gtkwidget.c: line 3722 (gtk_widget_get_parent_window): assertion `widget->parent != NULL' failed.
Gtk-WARNING **: gtk_signal_disconnect_by_func(): could not find handler (0x81D8280) containing data (0x0)
Steps to reproduce:
* run attached project from a console (to see the error messages)
* press enter to show modal form
* move mouse into modal form (somewhere above the buttons)
* press enter to close the modal form
-> one of three possible errors happen:
- Gtk-Critical messages in console
- Access Violation Dialog is shown
- Application exits
Additional information:
fpc: fpc-fixes_2_4-r13601
happens with
* lazarus-fixes_0_9_28-r21559
* lazarus-fixes_0_9_28-r21559 + fix in trunk r21569
Mantis conversion info:
- Mantis ID: 14511
- OS: linux
- OS Build: suse 10.0
- Build: 21559
- Platform: i386
- Version: 0.9.27 (SVN)
- Fixed in version: 0.9.29 (SVN)
- Fixed in revision: 21590 (#bbba97d4)
- Target version: 0.9.30