Author Topic: Code completion crash  (Read 4761 times)

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Code completion crash
« on: November 28, 2006, 03:41:54 pm »
Appears on opening project from "start here" page, but not on opening a project otherwise, as well as on exit in most recent versions. No idea what causes it...

C:\CodeBlocks\codeblocks.exe caused an Access Violation at location 65e9717d in module C:\CodeBlocks\share\codeblocks\plugins\codecompletion.dll Writing to location 0000017c.

Registers:
eax=00000000 ebx=010de4b8 ecx=00000000 edx=003e3f98 esi=65f4e7e0 edi=0022ef48
eip=65e9717d esp=0022ec98 ebp=0022ed30 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:
65E9717D  C:\CodeBlocks\share\codeblocks\plugins\codecompletion.dll:65E9717D  ClassBrowser::UpdateView()  D:/Desktop/cb/plugins/codecompletion/classbrowser.cpp:190
65EB575B  C:\CodeBlocks\share\codeblocks\plugins\codecompletion.dll:65EB575B  NativeParser::OnEditorActivated(EditorBase*)  D:/Desktop/cb/plugins/codecompletion/nativeparser.cpp:1894
65EA61FB  C:\CodeBlocks\share\codeblocks\plugins\codecompletion.dll:65EA61FB  CodeCompletion::OnEditorActivated(CodeBlocksEvent&)  D:/Desktop/cb/plugins/codecompletion/codecompletion.cpp:1180
6D387C5C  C:\CodeBlocks\wxmsw26u_gcc_custom.dll:6D387C5C  _ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent
6D3880F2  C:\CodeBlocks\wxmsw26u_gcc_custom.dll:6D3880F2  _ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline dje

  • Lives here!
  • ****
  • Posts: 683
Re: Code completion crash
« Reply #1 on: November 28, 2006, 03:49:54 pm »
Hi !

On a particular project or on any one ?
Is it code completion that crashes C::B or project opening ?

Dje

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Code completion crash
« Reply #2 on: November 28, 2006, 04:00:34 pm »
I remembered that I turned off the class browser yesterday night for loading the huge ReactOS workspace. The crash first appeared today, which might suggest a relation.
And indeed: the crash can be switched on and off by disabling/enabling the class browser.

The line that crashes looks entirely innocent, too (accesses a member variable). Thus, it seems this is not valid.

Yiannis?
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline David Perfors

  • Developer
  • Lives here!
  • *****
  • Posts: 560
Re: Code completion crash
« Reply #3 on: November 28, 2006, 04:21:39 pm »
I had the same problom, but when I removed all the generated (*.depend and *.layout) the error was gone...
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Code completion crash
« Reply #4 on: November 28, 2006, 04:42:54 pm »
Right... works for me too.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Code completion crash
« Reply #5 on: November 28, 2006, 05:03:30 pm »
Quote
The line that crashes looks entirely innocent, too (accesses a member variable). Thus, it seems this is not valid.

Yiannis?

Will check in a while.

Quote
I had the same problom, but when I removed all the generated (*.depend and *.layout) the error was gone...

This is very strange because CC has nothing to do with these files...
Be patient!
This bug will be fixed soon...