Re: Phoenix - agw.aui on Linux Mint17

Werner <[email protected]>
Newsgroups gmane.comp.python.wxpython.devel
Message-ID <[email protected]>
Hi Robin,

On 3/14/2015 8:03, Robin Dunn wrote:
> Werner wrote:
>> Hi Robin,
>>
>> When running the demo for agw.aui I get an exception on Mint17
>> "ScreenToClient failed on unrealized Window" with Python 3.4 and Phoenix
>> 3.0.3.dev1687.
>
> On X-windows systems "unrealized" means that the window hasn't been 
> sent over to the X server yet, and so it only exists in the 
> application at that time.  When a window has not been realized yet 
> anything you try to do to it that requires the X server will give you 
> an error like this.
>
> The things to watch out for in the code to help narrow down the source 
> of the issue would be anything that might happen before the window or 
> its top-level parent is shown.  You can try moving things like that to 
> a handler for the EVT_WINDOW_CREATE event, like what is done in the 
> ShapedWindow sample in the demo.  Just be sure to call that handler 
> directly on the other platforms because on Windows at least that event 
> is typically sent before the window constructor returns.
Not getting very far with debugging this, stepping through the demo 
AUI.py I see the error on line 1254, which is the AddPane below.

         wnd10 = self.CreateTextCtrl("This pane will prompt the user 
before hiding.")
         self._mgr.AddPane(wnd10, aui.AuiPaneInfo().
                           Name("test10").Caption("Text Pane with Hide 
Prompt").
                           Bottom().MinimizeButton(True), 
target=self._mgr.GetPane("autonotebook"))

Attached is the backtrace I am seeing and if I read this correctly it is 
all in C++ code.

Can you give me some more pointers on how to debug this further.

BTW, running the unittest 'test_lib_agw_aui.py' I see the same error on 
line 20 of the test.

Thanks
Werner

-- 
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
auitrace.txt (text/plain, 3.4 KB)
ASSERT INFO:
/tmp/pip-build-i2e0kbmf/wxPython-Phoenix/ext/wxWidgets/src/gtk/window.cpp(3212): assert "source" failed in DoScreenToClient(): ScreenToClient failed on unrealized window

BACKTRACE:
[1] wxOnAssert(char const*, int, char const*, char const*, char const*)
[2] wxWindow::DoScreenToClient(int*, int*) const
[3] wxTopLevelWindowBase::DoScreenToClient(int*, int*) const
[4] wxWindow::DoScreenToClient(int*, int*) const
[5] wxWindowBase::ScreenToClient(wxPoint const&) const
[6] PyEval_EvalFrameEx
[7] PyEval_EvalCodeEx
[8] PyImport_ExecCodeModule
[9] PyObject_Call
[10] PyEval_CallObjectWithKeywords
[11] PyObject_Call
[12] PyEval_CallObjectWithKeywords
[13] wxPyCallback::EventThunker(wxEvent&)
[14] wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const
[15] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[16] wxEvtHandler::SearchDynamicEventTable(wxEvent&)
[17] wxEvtHandler::TryHereOnly(wxEvent&)
[18] wxEvtHandler::ProcessEventLocally(wxEvent&)
[19] wxEvtHandler::ProcessEvent(wxEvent&)
[20] PyEval_EvalFrameEx
[21] PyEval_EvalFrameEx
[22] PyEval_EvalFrameEx
[23] PyEval_EvalCodeEx
[24] PyEval_EvalFrameEx
[25] PyEval_EvalFrameEx
[26] PyEval_EvalFrameEx
[27] PyEval_EvalCodeEx
[28] PyImport_ExecCodeModule
[29] PyObject_Call
[30] PyEval_CallObjectWithKeywords
[31] PyObject_Call
[32] _PyObject_LookupSpecial
[33] PyFrame_GetLineNumber
[34] PyObject_Call
[35] PyEval_EvalFrameEx
[36] PyEval_EvalFrameEx
[37] PyEval_EvalCodeEx
[38] PyEval_EvalFrameEx
[39] PyEval_EvalFrameEx
[40] PyEval_EvalCodeEx
[41] PyEval_EvalFrameEx
[42] PyEval_EvalFrameEx
[43] PyEval_EvalCodeEx
[44] PyImport_ExecCodeModule
[45] PyObject_Call
[46] PyEval_CallObjectWithKeywords
[47] PyObject_Call
[48] _PyObject_LookupSpecial
[49] PyFrame_GetLineNumber
[50] PyObject_Call
[51] PyEval_EvalFrameEx
[52] PyEval_EvalFrameEx
[53] PyEval_EvalCodeEx
[54] PyImport_ExecCodeModule
[55] PyObject_Call
[56] PyEval_CallObjectWithKeywords
[57] PyObject_Call
[58] PyEval_CallObjectWithKeywords
[59] wxPyCallback::EventThunker(wxEvent&)
[60] wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const
[61] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[62] wxEvtHandler::SearchDynamicEventTable(wxEvent&)
[63] wxEvtHandler::TryHereOnly(wxEvent&)
[64] wxEvtHandler::ProcessEventLocally(wxEvent&)
[65] wxEvtHandler::ProcessEvent(wxEvent&)
[66] sipwxPanel::ProcessEvent(wxEvent&)
[67] wxWindowBase::TryAfter(wxEvent&)
[68] sipwxButton::TryAfter(wxEvent&)
[69] sipwxButton::ProcessEvent(wxEvent&)
[70] wxEvtHandler::SafelyProcessEvent(wxEvent&)
[71] g_signal_emit_valist
[72] g_signal_emit
[73] g_signal_emit_valist
[74] g_signal_emit
[75] g_closure_invoke
[76] g_signal_emit_valist
[77] g_signal_emit
[78] gtk_propagate_event
[79] gtk_main_do_event
[80] g_main_context_dispatch
[81] g_main_loop_run
[82] gtk_main
[83] wxGUIEventLoop::DoRun()
[84] wxEventLoopBase::Run()
[85] wxAppConsoleBase::MainLoop()
[86] wxPyApp::MainLoop()
[87] PyEval_EvalFrameEx
[88] PyEval_EvalFrameEx
[89] PyEval_EvalFrameEx
[90] PyEval_EvalCodeEx
[91] PyRun_StringFlags
[92] PyEval_EvalFrameEx
[93] PyEval_EvalFrameEx
[94] PyEval_EvalFrameEx
[95] PyEval_EvalFrameEx
[96] PyEval_EvalCodeEx
[97] PyEval_EvalFrameEx
[98] PyEval_EvalFrameEx
[99] PyEval_EvalCodeEx
[100] PyRun_FileExFlags
[101] PyRun_SimpleFileExFlags
[102] Py_Main
[103] main
[104] __libc_start_main
[105] _start
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.