Buzz
2011-10-05 18:04:57 UTC
Hi,
I'm afraid there's a little bug when printing a richtext control, on
wxGTK.
Easy to reproduce :
I take the richtext sample,
go to File->Print
click Cancel on the print dialog
go back to File->Print ==> Kaboom....
I get the following stack trace
ASSERT INFO:
./src/gtk/print.cpp(923): assert "Assert failure" failed in Print():
The print dialog returned an error.
BACKTRACE:
[1] wxOnAssert(char const*, int, char const*, char const*, wxString
const&)
[2] wxGtkPrinter::Print(wxWindow*, wxPrintout*, bool)
[3] wxPrinter::Print(wxWindow*, wxPrintout*, bool)
[4] wxRichTextPrinting::DoPrint(wxRichTextPrintout*)
[5] wxRichTextPrinting::PrintBuffer(wxRichTextBuffer const&)
[6] wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&,
wxEvent&) cons)
[7] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase
const&, wxEvtHandler*, wxEvent&)
[8] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
[9] wxEvtHandler::TryHereOnly(wxEvent&)
[10] wxEvtHandler::ProcessEventLocally(wxEvent&)
[11] wxEvtHandler::ProcessEvent(wxEvent&)
[12] wxEvtHandler::SafelyProcessEvent(wxEvent&)
[13] wxMenuBase::SendEvent(int, int)
[14] menuitem_activate() menu.cpp
[15] g_cclosure_marshal_VOID__VOID()
[16] g_closure_invoke()
[17] g_signal_emit_valist()
[18] g_signal_emit()
[19] gtk_widget_activate()
[20] gtk_menu_shell_activate_item()
[21] g_closure_invoke()
[22] g_signal_emit_valist()
[23] g_signal_emit()
[24] gtk_propagate_event()
[25] gtk_main_do_event()
[26] g_main_context_dispatch()
[27] g_main_loop_run()
[28] gtk_main()
I'm using Ubuntu 10.04 running inside a Parallels Desktop VM.
Is it a bug or something wrong on my system ?
I'm afraid there's a little bug when printing a richtext control, on
wxGTK.
Easy to reproduce :
I take the richtext sample,
go to File->Print
click Cancel on the print dialog
go back to File->Print ==> Kaboom....
I get the following stack trace
ASSERT INFO:
./src/gtk/print.cpp(923): assert "Assert failure" failed in Print():
The print dialog returned an error.
BACKTRACE:
[1] wxOnAssert(char const*, int, char const*, char const*, wxString
const&)
[2] wxGtkPrinter::Print(wxWindow*, wxPrintout*, bool)
[3] wxPrinter::Print(wxWindow*, wxPrintout*, bool)
[4] wxRichTextPrinting::DoPrint(wxRichTextPrintout*)
[5] wxRichTextPrinting::PrintBuffer(wxRichTextBuffer const&)
[6] wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&,
wxEvent&) cons)
[7] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase
const&, wxEvtHandler*, wxEvent&)
[8] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
[9] wxEvtHandler::TryHereOnly(wxEvent&)
[10] wxEvtHandler::ProcessEventLocally(wxEvent&)
[11] wxEvtHandler::ProcessEvent(wxEvent&)
[12] wxEvtHandler::SafelyProcessEvent(wxEvent&)
[13] wxMenuBase::SendEvent(int, int)
[14] menuitem_activate() menu.cpp
[15] g_cclosure_marshal_VOID__VOID()
[16] g_closure_invoke()
[17] g_signal_emit_valist()
[18] g_signal_emit()
[19] gtk_widget_activate()
[20] gtk_menu_shell_activate_item()
[21] g_closure_invoke()
[22] g_signal_emit_valist()
[23] g_signal_emit()
[24] gtk_propagate_event()
[25] gtk_main_do_event()
[26] g_main_context_dispatch()
[27] g_main_loop_run()
[28] gtk_main()
I'm using Ubuntu 10.04 running inside a Parallels Desktop VM.
Is it a bug or something wrong on my system ?