Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => CodeCompletion redesign => Topic started by: 280Z28 on December 28, 2005, 08:56:54 am

Title: Crash in code completion plugin
Post by: 280Z28 on December 28, 2005, 08:56:54 am
I'm still trying to reproduce this:

svn 1606

Code
Error occured on Wednesday, December 28, 2005 at 01:56:08.

C:\Program Files\CodeBlocks\codeblocks.exe caused an Access Violation at location 65ed044e in module C:\Program Files\CodeBlocks\share\codeblocks\plugins\codecompletion.dll Reading from location 00000038.

Registers:
eax=00000034 ebx=013077a0 ecx=00000001 edx=ffffffff esi=619d21f0 edi=0022f1bc
eip=65ed044e esp=0022ed04 ebp=0022ed04 iopl=0         nv up ei pl nz na pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010202

Call stack:
65ED044E  C:\Program Files\CodeBlocks\share\codeblocks\plugins\codecompletion.dll:65ED044E  wxBaseArrayPtrVoid::GetCount() const  D:/Devel/wxWidgets-2.6.2/include/wx/dynarray.h:809
65EA0609  C:\Program Files\CodeBlocks\share\codeblocks\plugins\codecompletion.dll:65EA0609  Parser::FindTokenByName(wxString const&, bool, short) const  D:/Devel/codeblocks/src/plugins/codecompletion/parser/parser.cpp:496
65EABAC2  C:\Program Files\CodeBlocks\share\codeblocks\plugins\codecompletion.dll:65EABAC2  CodeCompletion::BuildModuleMenu(ModuleType, wxMenu*, wxString const&)  D:/Devel/codeblocks/src/plugins/codecompletion/codecompletion.cpp:191
618711FA  C:\Program Files\CodeBlocks\codeblocks.dll:618711FA  PluginManager::AskPluginsForModuleMenu(ModuleType, wxMenu*, wxString const&)  D:/Devel/codeblocks/src/sdk/pluginmanager.cpp:515
6181190D  C:\Program Files\CodeBlocks\codeblocks.dll:6181190D  EditorBase::DisplayContextMenu(wxPoint const&, bool)  D:/Devel/codeblocks/src/sdk/editorbase.cpp:236
617CE732  C:\Program Files\CodeBlocks\codeblocks.dll:617CE732  cbStyledTextCtrl::OnContextMenu(wxContextMenuEvent&)  D:/Devel/codeblocks/src/sdk/cbeditor.cpp:78
100AA0E8  C:\Program Files\CodeBlocks\wxmsw26u_gcc_custom.dll:100AA0E8  _ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent
100AA4AC  C:\Program Files\CodeBlocks\wxmsw26u_gcc_custom.dll:100AA4AC  _ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler
100AB489  C:\Program Files\CodeBlocks\wxmsw26u_gcc_custom.dll:100AB489  _ZN12wxEvtHandler12ProcessEventER7wxEvent
10113A9C  C:\Program Files\CodeBlocks\wxmsw26u_gcc_custom.dll:10113A9C  _ZN8wxWindow13MSWWindowProcEjjl
1010C750  C:\Program Files\CodeBlocks\wxmsw26u_gcc_custom.dll:1010C750  [email protected]
77D48734  C:\WINDOWS\system32\USER32.dll:77D48734  GetDC
77D48816  C:\WINDOWS\system32\USER32.dll:77D48816  GetDC
77D4D17F  C:\WINDOWS\system32\USER32.dll:77D4D17F  EnumDisplayMonitors
77D4B3F9  C:\WINDOWS\system32\USER32.dll:77D4B3F9  DefWindowProcW
77D4B393  C:\WINDOWS\system32\USER32.dll:77D4B393  DefWindowProcW
1010BE6A  C:\Program Files\CodeBlocks\wxmsw26u_gcc_custom.dll:1010BE6A  _ZN8wxWindow16MSWDefWindowProcEjjl
1011378C  C:\Program Files\CodeBlocks\wxmsw26u_gcc_custom.dll:1011378C  _ZN8wxWindow13MSWWindowProcEjjl
1010C750  C:\Program Files\CodeBlocks\wxmsw26u_gcc_custom.dll:1010C750  [email protected]
77D48734  C:\WINDOWS\system32\USER32.dll:77D48734  GetDC
77D48816  C:\WINDOWS\system32\USER32.dll:77D48816  GetDC
77D489CD  C:\WINDOWS\system32\USER32.dll:77D489CD  GetWindowLongW
77D48A10  C:\WINDOWS\system32\USER32.dll:77D48A10  DispatchMessageW
77D5E097  C:\WINDOWS\system32\USER32.dll:77D5E097  IsDialogMessageW
1010C0E9  C:\Program Files\CodeBlocks\wxmsw26u_gcc_custom.dll:1010C0E9  _ZN8wxWindow17MSWProcessMessageEP6tagMSG
100EC28A  C:\Program Files\CodeBlocks\wxmsw26u_gcc_custom.dll:100EC28A  _ZN11wxEventLoop17PreProcessMessageEP6tagMSG
100EC199  C:\Program Files\CodeBlocks\wxmsw26u_gcc_custom.dll:100EC199  _ZN11wxEventLoop14ProcessMessageEP6tagMSG
100EC7F4  C:\Program Files\CodeBlocks\wxmsw26u_gcc_custom.dll:100EC7F4  _ZN11wxEventLoop8DispatchEv
100EC590  C:\Program Files\CodeBlocks\wxmsw26u_gcc_custom.dll:100EC590  _ZN11wxEventLoop3RunEv
1018492E  C:\Program Files\CodeBlocks\wxmsw26u_gcc_custom.dll:1018492E  _ZN9wxAppBase8MainLoopEv
00404B1E  C:\Program Files\CodeBlocks\codeblocks.exe:00404B1E  CodeBlocksApp::OnRun()  D:/Devel/codeblocks/src/src/app.cpp:448
10043817  C:\Program Files\CodeBlocks\wxmsw26u_gcc_custom.dll:10043817  _Z14wxUninitializev
100B33BA  C:\Program Files\CodeBlocks\wxmsw26u_gcc_custom.dll:100B33BA  _Z7wxEntryP11HINSTANCE__S0_Pci
004014DA  C:\Program Files\CodeBlocks\codeblocks.exe:004014DA  WinMain  D:/Devel/codeblocks/src/src/app.cpp:297
0044EA4A  C:\Program Files\CodeBlocks\codeblocks.exe:0044EA4A
00401237  C:\Program Files\CodeBlocks\codeblocks.exe:00401237
00401288  C:\Program Files\CodeBlocks\codeblocks.exe:00401288
7C816D4F  C:\WINDOWS\system32\kernel32.dll:7C816D4F  RegisterWaitForInputIdle
Title: Re: Crash in code completion plugin
Post by: 280Z28 on December 28, 2005, 09:01:03 am
It seems to happen whenever I right click a preprocessor directive that is a function-style macro in dynarray.h (I have Code::Blocks project open)
Title: Re: Crash in code completion plugin
Post by: thomas on December 28, 2005, 10:16:58 am
Update to 1607.
Title: Re: Crash in code completion plugin
Post by: grv575 on December 28, 2005, 10:33:17 am
while you're updating the UNI cbp, I think line 124 should be:
                    <Add directory="sdk\propgrid" />
(it's in the ansi)
Title: Re: Crash in code completion plugin
Post by: thomas on December 28, 2005, 10:38:54 am
No, that's a bug in the ANSI project. :)

Well, not strictly a bug, but the path is not needed and is not the correct one either.
The correct path is added at project scope (line 432 in ANSI / 433 in UNI), line 124 should have been removed from the ANSI project but was forgotten. Leave it for now, it works and it does not matter.
Title: Re: Crash in code completion plugin
Post by: grv575 on December 28, 2005, 12:00:39 pm
Not the header include path...the propergrid lib cannot be found when linking sdk...
Title: Re: Crash in code completion plugin
Post by: thomas on December 28, 2005, 12:18:33 pm
Done that.