Bug: crash after wrong click

Hi,


this is a bug


    Release:	amaya - 9.2.1     Jul 12 2005
   Platform:	Linux fidji 2.6.11.7 #2 Fri Apr 29 17:21:27 CEST 2005 i686 i686 i386 GNU/Linux
    Subject:	Inadvertedly clicking reload instead of save crashes amaya
Description:

If you change a document (I did in the source view but I suppose this does
not matter) and inadvertedly click on 'reload' instead of save (yes,
sorry, this really happened to me) then amaya reproducible crashes with:

  *** Amaya: Irrecoverable error ***Segmentation fault (core dumped)

(gdb) where
#0  0x0833244b in AmayaFrame::UpdateFrameIcon ()
#1  0x08332544 in AmayaFrame::SetActive ()
#2  0x0832fe52 in AmayaPage::DetachFrame ()
#3  0x082bf8fc in TtaDetachFrame ()
#4  0x082c2712 in DestroyFrame ()
#5  0x082d28a3 in OpenCreatedView ()
#6  0x0830f482 in TtaOpenMainView ()
#7  0x081c7d67 in InitDocAndView ()
#8  0x081c8c55 in LoadDocument ()
#9  0x081d0c76 in Reload_callback ()
#10 0x081d100f in Reload ()
#11 0x082c2024 in TtaExecuteMenuAction ()
#12 0x0833534e in AmayaToolBar::OnButton_Reload ()
#13 0x085389e0 in wxEvtHandler::ProcessEventIfMatches ()
#14 0x08538c26 in wxEventHashTable::HandleEvent ()
#15 0x0853963c in wxEvtHandler::ProcessEvent ()
#16 0x08496842 in wxWindowBase::TryParent ()
#17 0x085395f5 in wxEvtHandler::ProcessEvent ()
#18 0x0843bcce in wxBitmapButton::Init ()
#19 0x00cba0ae in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0
#20 0x00ca2347 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#21 0x00cb8838 in g_signal_has_handler_pending () from /usr/lib/libgobject-2.0.so.0
#22 0x00cb99bc in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#23 0x00cb9c5a in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#24 0x49b4f2b4 in gtk_button_clicked () from /usr/lib/libgtk-x11-2.0.so.0
#25 0x49b50d34 in gtk_button_get_alignment () from /usr/lib/libgtk-x11-2.0.so.0
#26 0x00cba0ae in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0
#27 0x00ca26b2 in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0
#28 0x00ca2347 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#29 0x00cb7616 in g_signal_has_handler_pending () from /usr/lib/libgobject-2.0.so.0
#30 0x00cb99bc in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#31 0x00cb9c5a in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#32 0x49b4f1fc in gtk_button_released () from /usr/lib/libgtk-x11-2.0.so.0
#33 0x49b502a7 in gtk_button_set_relief () from /usr/lib/libgtk-x11-2.0.so.0
#34 0x49c06e67 in gtk_marshal_VOID__UINT_STRING () from /usr/lib/libgtk-x11-2.0.so.0
#35 0x00ca26b2 in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0
#36 0x00ca2347 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#37 0x00cb8576 in g_signal_has_handler_pending () from /usr/lib/libgobject-2.0.so.0
#38 0x00cb9613 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#39 0x00cb9c5a in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#40 0x49cfaa75 in gtk_widget_activate () from /usr/lib/libgtk-x11-2.0.so.0
#41 0x49c0512b in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#42 0x49c05430 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#43 0x49ac9082 in gdk_event_get_graphics_expose () from /usr/lib/libgdk-x11-2.0.so.0
#44 0x00c2674b in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#45 0x00c281d2 in g_main_context_acquire () from /usr/lib/libglib-2.0.so.0
#46 0x00c2847f in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#47 0x49c0478e in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#48 0x084b7b11 in wxEventLoop::Run ()
#49 0x08463f82 in wxAppBase::MainLoop ()
#50 0x08504b8c in wxEntry ()
#51 0x0823ae4c in main ()


Sugested-Fix:	Maybe you should not punish user-errors that hard.


Regards,
Urs
+-----------------------------------------------------------------------+
| sitb - Schürer IT Beratung                                            |
|                                       Phone mobile:   +49 179 2945681 |
| Urs J. Schürer                        Phone office:   +49 89 72430265 |
| Steinerstr. 15 / Haus K                        Fax:   +49 89 72430266 |
| 81369 München, Germany                       Email:   urs@sitb.de     |
+-----------------------------------------------------------------------+
| www.sitb.de								|
+-----------------------------------------------------------------------+

Received on Tuesday, 30 August 2005 13:50:57 UTC