Author Topic: the latested C::B nightbuilt crashed using wxSmith+wx28+vc  (Read 5510 times)

Offline samsam598

  • Multiple posting newcomer
  • *
  • Posts: 15
the latested C::B nightbuilt crashed using wxSmith+wx28+vc
« on: November 06, 2010, 03:29:30 am »
Greetings!

I found a issue regarding this:
Using wxSmith to generate a frame with main menu.I added a new menu item Open under the File menu,then chose the event tab to add a new event handler OnOpenFileClick,press OK,C::B crashed.I finaly found I can work around by saving the newly added menu item before generate the event handler.But also found this step is  not a must for situations listed below:

I tested and found this is only related to vc 2008 compiler with wxWidgets 28.11.All below are OK:
1.Mingw with wx2811,290 are fine
2.vc with wx290 are fine

Don't know whether this is a bug or not.
Regards,
Sam

Offline xunxun

  • Almost regular
  • **
  • Posts: 187
Re: the latested C::B nightbuilt crashed using wxSmith+wx28+vc
« Reply #1 on: November 06, 2010, 05:30:33 am »
I encountered a similar problem using CB with VC2010, but C::B didn't crash, and it became unresponsive, which used more than 50% cpu occupancy.
Regards,
xunxun

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: the latested C::B nightbuilt crashed using wxSmith+wx28+vc
« Reply #2 on: November 06, 2010, 01:01:43 pm »
Have you tried to disable CC (Code completion) plugin?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline xunxun

  • Almost regular
  • **
  • Posts: 187
Re: the latested C::B nightbuilt crashed using wxSmith+wx28+vc
« Reply #3 on: November 07, 2010, 06:09:44 am »
Have you tried to disable CC (Code completion) plugin?

There is no problem after CC plugin disabled.
Regards,
xunxun

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5917
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: the latested C::B nightbuilt crashed using wxSmith+wx28+vc
« Reply #4 on: November 07, 2010, 06:14:47 am »
Have you tried to disable CC (Code completion) plugin?

There is no problem after CC plugin disabled.

so, it is something that parser get into infinite loop. could you give some sample code....( though it was too hard).
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 xunxun

  • Almost regular
  • **
  • Posts: 187
Re: the latested C::B nightbuilt crashed using wxSmith+wx28+vc
« Reply #5 on: November 07, 2010, 06:50:13 am »
Have you tried to disable CC (Code completion) plugin?

There is no problem after CC plugin disabled.

so, it is something that parser get into infinite loop. could you give some sample code....( though it was too hard).

I'll email to you with the sample later.
Regards,
xunxun

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: the latested C::B nightbuilt crashed using wxSmith+wx28+vc
« Reply #6 on: November 08, 2010, 03:46:20 am »
It seems have no relation with CC.
Here is the crash report.
Code
-------------------

Error occured on Monday, November 8, 2010 at 10:42:19.

D:\DengYC\LoveDEV\codeblocks.exe caused an Access Violation at location 6e482397 in module D:\DengYC\LoveDEV\wxpropgrid.dll Reading from location 00000004.

Registers:
eax=00000000 ebx=0022f020 ecx=77bfc2e3 edx=03f706d0 esi=00000000 edi=08f7fbe0
eip=6e482397 esp=0022eef0 ebp=0022ef28 iopl=0         nv up ei pl zr na po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010246

Call stack:
6E482397  D:\DengYC\LoveDEV\wxpropgrid.dll:6E482397  _ZNK14wxBoolProperty16GetValueAsStringEi
6E45498B  D:\DengYC\LoveDEV\wxpropgrid.dll:6E45498B  _ZNK12wxPGProperty14GetValueStringEi
6E4635EC  D:\DengYC\LoveDEV\wxpropgrid.dll:6E4635EC  _ZNK19wxPGDefaultRenderer6RenderER4wxDCRK6wxRectPK14wxPropertyGridP12wxPGPropertyiii
6E457DF2  D:\DengYC\LoveDEV\wxpropgrid.dll:6E457DF2  _ZNK14wxPropertyGrid11DoDrawItemsER4wxDCPK12wxPGPropertyS4_PK6wxRectb
6E458CFD  D:\DengYC\LoveDEV\wxpropgrid.dll:6E458CFD  _ZN14wxPropertyGrid9DrawItemsER4wxDCjjPK6wxRect
6E4590DC  D:\DengYC\LoveDEV\wxpropgrid.dll:6E4590DC  _ZN14wxPropertyGrid9DrawItemsER4wxDCjjPK6wxRect
684E1E0F  D:\DengYC\LoveDEV\wxmsw28u.dll:684E1E0F  _ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent
684E38C8  D:\DengYC\LoveDEV\wxmsw28u.dll:684E38C8  _ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler
684E3988  D:\DengYC\LoveDEV\wxmsw28u.dll:684E3988  _ZN12wxEvtHandler12ProcessEventER7wxEvent
68519FCB  D:\DengYC\LoveDEV\wxmsw28u.dll:68519FCB  _ZN8wxWindow11HandlePaintEv
6851DF5A  D:\DengYC\LoveDEV\wxmsw28u.dll:6851DF5A  _ZN8wxWindow13MSWWindowProcEjjl
6851B222  D:\DengYC\LoveDEV\wxmsw28u.dll:6851B222  _Z9wxWndProcP6HWND__jjl@16
77D18734  C:\WINDOWS\system32\USER32.dll:77D18734  GetDC
77D18816  C:\WINDOWS\system32\USER32.dll:77D18816  GetDC
77D28EA0  C:\WINDOWS\system32\USER32.dll:77D28EA0  DefWindowProcW
77D28EEC  C:\WINDOWS\system32\USER32.dll:77D28EEC  DefWindowProcW
7C92E473  C:\WINDOWS\system32\ntdll.dll:7C92E473  KiUserCallbackDispatcher
77D18A10  C:\WINDOWS\system32\USER32.dll:77D18A10  DispatchMessageW
77D274FF  C:\WINDOWS\system32\USER32.dll:77D274FF  IsDialogMessageW
6851CAB8  D:\DengYC\LoveDEV\wxmsw28u.dll:6851CAB8  _ZN8wxWindow17MSWProcessMessageEP6tagMSG
6850674A  D:\DengYC\LoveDEV\wxmsw28u.dll:6850674A  _ZN11wxEventLoop17PreProcessMessageEP6tagMSG
685067AB  D:\DengYC\LoveDEV\wxmsw28u.dll:685067AB  _ZN11wxEventLoop14ProcessMessageEP6tagMSG
685065CF  D:\DengYC\LoveDEV\wxmsw28u.dll:685065CF  _ZN11wxEventLoop8DispatchEv
68572FBE  D:\DengYC\LoveDEV\wxmsw28u.dll:68572FBE  _ZN17wxEventLoopManual3RunEv
6855A7E6  D:\DengYC\LoveDEV\wxmsw28u.dll:6855A7E6  _ZN9wxAppBase8MainLoopEv
004019E4  D:\DengYC\LoveDEV\codeblocks.exe:004019E4
684A4FF9  D:\DengYC\LoveDEV\wxmsw28u.dll:684A4FF9  _Z12wxInitializeiPPw
684E7A64  D:\DengYC\LoveDEV\wxmsw28u.dll:684E7A64  _Z7wxEntryP11HINSTANCE__S0_Pci
00401897  D:\DengYC\LoveDEV\codeblocks.exe:00401897
00465DA6  D:\DengYC\LoveDEV\codeblocks.exe:00465DA6
004010DB  D:\DengYC\LoveDEV\codeblocks.exe:004010DB
00401158  D:\DengYC\LoveDEV\codeblocks.exe:00401158
7C817077  C:\WINDOWS\system32\kernel32.dll:7C817077  RegisterWaitForInputIdle



Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: the latested C::B nightbuilt crashed using wxSmith+wx28+vc
« Reply #7 on: November 08, 2010, 03:50:15 am »
Code
******************************
* Found (another) call stack *
******************************
D:\DengYC\LoveDEV\build\gcc\bin\addr2line.exe -e D:\DengYC\LoveDEV\wxpropgrid.dll 6E482397:
D:\DengYC\LoveDEV\wxpropgrid.dll[6E482397]:
D:/DengYC/LoveDEV/sdk/wx/include/wx/string.h:265
----------------------------------------
D:\DengYC\LoveDEV\build\gcc\bin\addr2line.exe -e D:\DengYC\LoveDEV\wxpropgrid.dll 6E45498B:
D:\DengYC\LoveDEV\wxpropgrid.dll[6E45498B]:
D:/DengYC/CodeBlocks/src/sdk/wxpropgrid/src/propgrid.cpp:890
----------------------------------------
D:\DengYC\LoveDEV\build\gcc\bin\addr2line.exe -e D:\DengYC\LoveDEV\wxpropgrid.dll 6E4635EC:
D:\DengYC\LoveDEV\wxpropgrid.dll[6E4635EC]:
D:/DengYC/LoveDEV/sdk/wx/include/wx/string.h:660
----------------------------------------
D:\DengYC\LoveDEV\build\gcc\bin\addr2line.exe -e D:\DengYC\LoveDEV\wxpropgrid.dll 6E457DF2:
D:\DengYC\LoveDEV\wxpropgrid.dll[6E457DF2]:
D:/DengYC/CodeBlocks/src/sdk/wxpropgrid/src/propgrid.cpp:5903
----------------------------------------
D:\DengYC\LoveDEV\build\gcc\bin\addr2line.exe -e D:\DengYC\LoveDEV\wxpropgrid.dll 6E458CFD:
D:\DengYC\LoveDEV\wxpropgrid.dll[6E458CFD]:
D:/DengYC/CodeBlocks/src/sdk/wxpropgrid/src/propgrid.cpp:5418
----------------------------------------
D:\DengYC\LoveDEV\build\gcc\bin\addr2line.exe -e D:\DengYC\LoveDEV\wxpropgrid.dll 6E4590DC:
D:\DengYC\LoveDEV\wxpropgrid.dll[6E4590DC]:
D:\DengYC\CodeBlocks\src/sdk/wxpropgrid/include/wx/propgrid/propgrid.h:7622

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: the latested C::B nightbuilt crashed using wxSmith+wx28+vc
« Reply #8 on: November 09, 2010, 01:58:50 pm »
Have you tried to disable CC (Code completion) plugin?

There is no problem after CC plugin disabled.
After CC plugin disabled, The crash still existed.
Here are call stack:
Code
#0 6E4A2429	wxPGProperty::IsExpanded(this=0xfeeefeee) (sdk/wxpropgrid/include/wx/propgrid/propgrid.h:2874)
#1 6E4516E8 wxPGProperty::GetY2(this=0x3920b30, lh=19) (D:\DengYC\CodeBlocks-T\src\sdk\wxpropgrid\src\propgrid.cpp:2056)
#2 6E460EAE wxPropertyGrid::GetEditorWidgetRect(this=0x386bce8, p=0x3920b30, column=1) (D:\DengYC\CodeBlocks-T\src\sdk\wxpropgrid\src\propgrid.cpp:7204)
#3 6E444AE3 wxPropertyGrid::CorrectEditorWidgetPosY(this=0x386bce8) (D:\DengYC\CodeBlocks-T\src\sdk\wxpropgrid\src\editors.cpp:2009)
#4 6E4628F4 wxPropertyGrid::RecalculateVirtualSize(this=0x386bce8) (D:\DengYC\CodeBlocks-T\src\sdk\wxpropgrid\src\propgrid.cpp:7928)
#5 6E45AE01 wxPropertyGrid::PrepareAfterItemsAdded(this=0x386bce8) (D:\DengYC\CodeBlocks-T\src\sdk\wxpropgrid\src\propgrid.cpp:4770)
#6 6E45E807 wxPropertyGrid::Refresh(this=0x386bce8, rect=0x0) (D:\DengYC\CodeBlocks-T\src\sdk\wxpropgrid\src\propgrid.cpp:6109)
#7 68517F7F wxmsw28u!_ZN8wxWindow4ThawEv() (D:\DengYC\LoveDEV\sdk\wx\lib\gcc_dll\wxmsw28u.dll:??)
#8 6E457F7F wxPropertyGrid::Thaw(this=0x386bce8) (D:\DengYC\CodeBlocks-T\src\sdk\wxpropgrid\src\propgrid.cpp:3574)
#9 6E447F69 wxPropertyGridManager::Thaw(this=0x386ba50) (D:\DengYC\CodeBlocks-T\src\sdk\wxpropgrid\src\manager.cpp:553)
#10 041C6D9A wxsPropertyGridManager::UnbindPropertyContainer(this=0x386ba50, PC=0x387d688) (D:\DengYC\CodeBlocks-T\src\plugins\contrib\wxSmith\properties\wxspropertygridmanager.cpp:166)
#11 041C5305 wxsPropertyContainer::~wxsPropertyContainer(this=0x387d688, __in_chrg=<value optimized out>) (D:\DengYC\CodeBlocks-T\src\plugins\contrib\wxSmith\properties\wxspropertycontainer.cpp:50)
#12 043291AD wxsBaseProperties::~wxsBaseProperties(this=0x387d688, __in_chrg=<value optimized out>) (D:/DengYC/CodeBlocks-T/src/plugins/contrib/wxSmith/wxwidgets/wxsbaseproperties.h:38)
#13 042A6371 wxsItem::~wxsItem(this=0x387d648, __in_chrg=<value optimized out>) (D:\DengYC\CodeBlocks-T\src\plugins\contrib\wxSmith\wxwidgets\wxsitem.cpp:60)
#14 04334900 wxsWidget::~wxsWidget(this=0x387d648, __in_chrg=<value optimized out>) (D:/DengYC/CodeBlocks-T/src/plugins/contrib/wxSmith/wxwidgets/defitems/../wxswidget.h:46)
#15 042FACE0 wxsListCtrl::~wxsListCtrl(this=0x387d648, __in_chrg=<value optimized out>) (D:/DengYC/CodeBlocks-T/src/plugins/contrib/wxSmith/wxwidgets/defitems/wxslistctrl.h:30)
#16 042D2B8A wxsParent::~wxsParent(this=0x3876b78, __in_chrg=<value optimized out>) (D:\DengYC\CodeBlocks-T\src\plugins\contrib\wxSmith\wxwidgets\wxsparent.cpp:40)
#17 042FDC8C wxsContainer::~wxsContainer(this=0x3876b78, __in_chrg=<value optimized out>) (D:/DengYC/CodeBlocks-T/src/plugins/contrib/wxSmith/wxwidgets/defitems/../wxscontainer.h:37)
#18 04333524 wxsFrame::~wxsFrame(this=0x3876b78, __in_chrg=<value optimized out>) (D:/DengYC/CodeBlocks-T/src/plugins/contrib/wxSmith/wxwidgets/defitems/wxsframe.h:29)
#19 042BB43B wxsItemResData::~wxsItemResData(this=0x3876670, __in_chrg=<value optimized out>) (D:\DengYC\CodeBlocks-T\src\plugins\contrib\wxSmith\wxwidgets\wxsitemresdata.cpp:134)
#20 042AB25C wxsItemEditor::~wxsItemEditor(this=0x387ae68, __in_chrg=<value optimized out>) (D:\DengYC\CodeBlocks-T\src\plugins\contrib\wxSmith\wxwidgets\wxsitemeditor.cpp:79)
#21 685AB2ED wxmsw28u!_ZN12wxWindowBase7DestroyEv() (D:\DengYC\LoveDEV\sdk\wx\lib\gcc_dll\wxmsw28u.dll:??)
#22 61812464 EditorBase::Close(this=0x387ae68) (D:\DengYC\CodeBlocks-T\src\sdk\editorbase.cpp:159)
#23 041D2C5A wxsResource::~wxsResource(this=0x391c190, __in_chrg=<value optimized out>) (D:\DengYC\CodeBlocks-T\src\plugins\contrib\wxSmith\wxsresource.cpp:124)
#24 042FD73E wxWidgetsRes::~wxWidgetsRes(this=0x391c190, __in_chrg=<value optimized out>) (D:/DengYC/CodeBlocks-T/src/plugins/contrib/wxSmith/wxwidgets/wxwidgetsres.h:30)
#25 042B5794 wxsItemRes::~wxsItemRes(this=0x391c190, __in_chrg=<value optimized out>) (D:\DengYC\CodeBlocks-T\src\plugins\contrib\wxSmith\wxwidgets\wxsitemres.cpp:143)
#26 042FA848 wxsFrameRes::~wxsFrameRes(this=0x391c190, __in_chrg=<value optimized out>) (D:/DengYC/CodeBlocks-T/src/plugins/contrib/wxSmith/wxwidgets/wxsframeres.h:30)
#27 041D1350 wxsProject::~wxsProject(this=0x391ba08, __in_chrg=<value optimized out>) (D:\DengYC\CodeBlocks-T\src\plugins\contrib\wxSmith\wxsproject.cpp:62)
#28 041CFF0E wxSmith::OnProjectClose(this=0x3752d80, event=...) (D:\DengYC\CodeBlocks-T\src\plugins\contrib\wxSmith\wxsmith.cpp:343)
#29 0430095A cbEventFunctor<wxSmith, CodeBlocksEvent>::Call(this=0x386f2c8, event=...) (../../../include/cbfunctor.h:35)