Author Topic: CodeBlocks 10.05 Freez  (Read 5275 times)

Offline takatu

  • Single posting newcomer
  • *
  • Posts: 4
CodeBlocks 10.05 Freez
« on: September 30, 2010, 02:08:03 pm »
Hi
I'm using CB 10.05 on ubuntu 10.04.1 amd64 running in VirtualBox (Windows7 Host) and its freezing after a minute or so.
I can't work with it. I have disabled code completion but no change.
The project file is generated by cmake and contains >10.000 files.

Any one help?

Thx

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: CodeBlocks 10.05 Freez
« Reply #1 on: September 30, 2010, 02:34:22 pm »
Try a recent nightly?

Another option is:
1. Run C::B through GDB
2. When it locks hit ctrl+c
3. Execute the bt command, so you can see where it is locked

For the second variant you'll have to install the debug symbols or recompile with --enable-debug
(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 takatu

  • Single posting newcomer
  • *
  • Posts: 4
Re: CodeBlocks 10.05 Freez
« Reply #2 on: September 30, 2010, 04:29:22 pm »
I checked out the svn version and started with gdb.
After a short time i got the freez again.
Backtrace:

 
Code
#0  0x00007f4648945537 in std::_Rb_tree_increment(std::_Rb_tree_node_base*) ()
   from /usr/lib/libstdc++.so.6
#1  0x00007f46383092c2 in std::_Rb_tree_const_iterator<int>::operator++ (
    this=<value optimized out>, components=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
)
    at /usr/include/c++/4.4/bits/stl_tree.h:259
#2  NativeParser::FindAIMatches (this=<value optimized out>, components=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
)
    at nativeparser.cpp:1812
#3  0x00007f463830a9ae in NativeParser::FindCurrentFunctionToken (
    this=0x23cb288, editor=<value optimized out>, result=...,
    caretPos=<value optimized out>) at nativeparser.cpp:2252
#4  0x00007f463830ab34 in NativeParser::ParseFunctionArguments (
    this=0x23cb288, ed=0x83ada40, caretPos=9393) at nativeparser.cpp:690
#5  0x00007f463830cd11 in NativeParser::MarkItemsByAI (this=0x23cb288,
    result=..., reallyUseAI=true, noPartialMatch=<value optimized out>,
    caseSensitive=<value optimized out>, caretPos=9393) at nativeparser.cpp:875
#6  0x00007f46382f02e6 in CodeCompletion::OnValueTooltip (this=0x23cb210,
    event=<value optimized out>) at codecompletion.cpp:1654
#7  0x00007f464af90a09 in Manager::ProcessEvent (this=<value optimized out>,
    event=...) at manager.cpp:179
#8  0x00007f464aeda916 in cbEditor::NotifyPlugins (this=0x83ada40,
    type=<value optimized out>, intArg=11, strArg=..., xArg=427,
    yArg=<value optimized out>) at cbeditor.cpp:846
#9  0x00007f464aedac1f in cbEditor::OnEditorDwellStart (this=0x83ada40,
---Type <return> to continue, or q <return> to quit---
    event=...) at cbeditor.cpp:3139
#10 0x00007f46490f1080 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/lib/libwx_baseu-2.8.so.0
#11 0x00007f46490f11ef in wxEvtHandler::SearchDynamicEventTable(wxEvent&) ()
   from /usr/lib/libwx_baseu-2.8.so.0
#12 0x00007f46490f20f2 in wxEvtHandler::ProcessEvent(wxEvent&) ()
   from /usr/lib/libwx_baseu-2.8.so.0
#13 0x00007f4649a7fba9 in wxWindowBase::TryParent(wxEvent&) ()
   from /usr/lib/libwx_gtk2u_core-2.8.so.0
#14 0x00007f464b0b13b8 in wxScintilla::NotifyParent (this=0x8353a80,
    _scn=0x7fffa5297b50) at src/wxscintilla.cpp:4932
#15 0x00007f464b0a4c85 in ScintillaWX::NotifyParent (
    this=<value optimized out>, scn=...) at src/ScintillaWX.cpp:514
#16 0x00007f464b1e773e in Editor::NotifyDwelling (this=0x2bdf270,
    pt=<value optimized out>, state=<value optimized out>)
    at src/scintilla/src/Editor.cxx:4297
#17 0x00007f46499852ab in ?? () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#18 0x00007f4645cd009b in ?? () from /lib/libglib-2.0.so.0
#19 0x00007f4645ccf8c2 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#20 0x00007f4645cd3748 in ?? () from /lib/libglib-2.0.so.0
#21 0x00007f4645cd3c55 in g_main_loop_run () from /lib/libglib-2.0.so.0
#22 0x00007f4647bcfbb7 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#23 0x00007f464997c968 in wxEventLoop::Run() ()
---Type <return> to continue, or q <return> to quit---
   from /usr/lib/libwx_gtk2u_core-2.8.so.0
#24 0x00007f4649a018cb in wxAppBase::MainLoop() ()
   from /usr/lib/libwx_gtk2u_core-2.8.so.0
#25 0x000000000043259b in CodeBlocksApp::OnRun (this=0x7fffa5297288)
    at app.cpp:776
#26 0x00007f46490974f5 in wxEntry(int&, wchar_t**) ()
   from /usr/lib/libwx_baseu-2.8.so.0
#27 0x0000000000432162 in main (argc=1, argv=0x0) at app.cpp:256
« Last Edit: October 01, 2010, 01:33:40 pm by takatu »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: CodeBlocks 10.05 Freez
« Reply #3 on: September 30, 2010, 05:36:58 pm »
...I have disabled code completion but no change...
As you can see from your backtrace you've not disabled the CC, please unload the plugin and try again. (Manage->Plugins)
If you can, please try recent CC nightly, so you can give feedback to the CC guys, they are doing major changes in the CC.
Also please use [ code ] tag for long pastes.
(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 takatu

  • Single posting newcomer
  • *
  • Posts: 4
Re: CodeBlocks 10.05 Freez
« Reply #4 on: October 01, 2010, 11:19:43 am »
I disabled it in the menu "Settings"->"Editor"->"Code-completion and symbols browser" "Disable code-completion" but it seems this option does not disable the code completion completely.
Where i can get a recent nightly of CC or more recent code as from the SVN?

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5494
Re: CodeBlocks 10.05 Freez
« Reply #5 on: October 01, 2010, 11:20:52 am »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: CodeBlocks 10.05 Freez
« Reply #6 on: October 01, 2010, 11:29:42 am »
I disabled it in the menu "Settings"->"Editor"->"Code-completion and symbols browser" "Disable code-completion" but it seems this option does not disable the code completion completely.
Where i can get a recent nightly of CC or more recent code as from the SVN?
As oBFusCATed wrote go to "Plugins -> Manage plugins" and disable cc there !

The svn-code is (of course) the most actual code-base (except for not committed patches on developer systems).

By the way: are you able to create a simple project where this crash occurs ?
Might be related to some includes (boost was a crash-candidate some time ago).
« Last Edit: October 01, 2010, 11:31:22 am by jens »

Offline takatu

  • Single posting newcomer
  • *
  • Posts: 4
Re: CodeBlocks 10.05 Freez
« Reply #7 on: October 01, 2010, 11:46:47 am »
Ok my verison is the svn trunk version.
hmm a simple project will be hard. I'm working on the server code for an upcomming mmo game. In the project is the engine and the game code.
We have many external dependencies.