Author Topic: cctest start up failed with latest trunk (solved)  (Read 9115 times)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6023
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
cctest start up failed with latest trunk (solved)
« on: September 02, 2014, 08:55:03 am »
With the latest trunk, cctest failed to start up. (Note I'm building C::B and cctest against debug version of wxWidgets library 2.8.12)

Here is the crash call stack:
Code
[debug]> bt 30
[debug]#0  0x008a093c in wxHashTableBase::DoGet (this=0x0, key=591996, hash=591996) at E:\code\wx-mingw-build-481-dw2\wxWidgets-2.8.12\src\common\hash.cpp:877
[debug]#1  0x00c8e6a4 in wxWinHashTable::Get (this=0x0, key=591996) at E:\code\wx-mingw-build-481-dw2\wxWidgets-2.8.12\include\wx\msw\window.h:596
[debug]#2  0x00939a14 in wxFindWinFromHandle (hWnd=0x9087c) at E:\code\wx-mingw-build-481-dw2\wxWidgets-2.8.12\src\msw\window.cpp:3441
[debug]#3  0x00939a5e in wxAssociateWinWithHandle (hWnd=0x9087c, win=0xcd7e870) at E:\code\wx-mingw-build-481-dw2\wxWidgets-2.8.12\src\msw\window.cpp:3451
[debug]#4  0x00935975 in wxWindow::SubclassWin (this=0xcd7e870, hWnd=0x9087c) at E:\code\wx-mingw-build-481-dw2\wxWidgets-2.8.12\src\msw\window.cpp:1146
[debug]#5  0x00939e31 in wxWindow::MSWCreate (this=0xcd7e870, wclass=0xd7a124 <_ZZN8wxModule13AddDependencyEP11wxClassInfoE12__FUNCTION__+2170> L"wxWindowClass", title=0x0, pos=(-1, -1), size=-1*-1, style=1375797248, extendedStyle=512) at E:\code\wx-mingw-build-481-dw2\wxWidgets-2.8.12\src\msw\window.cpp:3632
[debug]#6  0x00934a02 in wxWindow::Create (this=0xcd7e870, parent=0xcd7e268, id=-1, pos=(-1, -1), size=-1*-1, style=4456448, name=L"SCIwindow") at E:\code\wx-mingw-build-481-dw2\wxWidgets-2.8.12\src\msw\window.cpp:612
[debug]#7  0x00952265 in wxControl::Create (this=0xcd7e870, parent=0xcd7e268, id=-1, pos=(-1, -1), size=-1*-1, style=4456448, validator=..., name=L"SCIwindow") at E:\code\wx-mingw-build-481-dw2\wxWidgets-2.8.12\src\msw\control.cpp:82
[debug]#8  0x618b4f8c in wxScintilla::Create (this=0xcd7e870, parent=0xcd7e268, id=-1, pos=(-1, -1), size=-1*-1, style=0, name=L"SCIwindow") at F:\cb_sf_git\trunk\src\sdk\wxscintilla\src\wxscintilla.cpp:206
[debug]#9  0x618b4f16 in wxScintilla::wxScintilla (this=0xcd7e870, parent=0xcd7e268, id=-1, pos=(-1, -1), size=-1*-1, style=0, name=L"SCIwindow") at F:\cb_sf_git\trunk\src\sdk\wxscintilla\src\wxscintilla.cpp:188
[debug]#10 0x0040262d in CCTestFrame::CCTestFrame (this=0xcd7a060, main_file=L"testing/cc_unnamed_class.cpp") at F:\cb_sf_git\trunk\src\plugins\codecompletion\cctest\cctest_frame.cpp:141
[debug]#11 0x0040169d in CCTestApp::OnInit (this=0xcd6af48) at F:\cb_sf_git\trunk\src\plugins\codecompletion\cctest\cctest_app.cpp:99
[debug]#12 0x004401ca in wxAppConsole::CallOnInit (this=0xcd6af48) at E:\code\wx-mingw-build-481-dw2\wxWidgets-2.8.12\include\wx\app.h:76
[debug]#13 0x0c067f54 in wxEntryReal(int&, wchar_t**) () from E:\code\wx-mingw-build-481-dw2\wxWidgets-2.8.12\lib\gcc_dll\wxmsw28u_gcc_custom.dll
[debug]#14 0x0c0ad802 in wxEntry(HINSTANCE__*, HINSTANCE__*, char*, int) () from E:\code\wx-mingw-build-481-dw2\wxWidgets-2.8.12\lib\gcc_dll\wxmsw28u_gcc_custom.dll
[debug]#15 0x00401654 in WinMain@16 (hInstance=0x400000, hPrevInstance=0x0, lpCmdLine=0x251f0a "", nCmdShow=10) at F:\cb_sf_git\trunk\src\plugins\codecompletion\cctest\cctest_app.cpp:89
[debug]#16 0x0045e77d in main ()
[debug]>>>>>>cb_gdb:


It looks like it crashed in the line: (constructor of CCTestFrame class)

Code
m_Control = new wxScintilla(panParserInput,wxID_ANY,wxDefaultPosition,wxDefaultSize);


Any help? Thanks.

EDIT:
note that this=0x0 in the latest call stack.

« Last Edit: September 02, 2014, 09:28:09 am by ollydbg »
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6023
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: cctest start up failed with latest trunk (solved)
« Reply #1 on: September 02, 2014, 09:28:54 am »
Problem solved, I have mixed debug version of wx and release version wx. Sorry about that!
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.