Author Topic: Code blocks not displaying files/menus after a while.  (Read 3573 times)

Offline dragonloverlord

  • Single posting newcomer
  • *
  • Posts: 7
Code blocks not displaying files/menus after a while.
« on: July 13, 2015, 10:08:02 pm »
after running code blocks for a while menus and files start getting displayed as gray boxes. The only way I have found to temporarily fix this issue is to restart code blocks but the issue returns after a little while. I am running debian stretch armhf and have wxgtk3.0.2 (as debian stretch does not have wxgtk2.8 in its repositories). I have duplicated this issue on jen's nightly builds and the code blocks version in debian's official repo's. I have attached two images displaying said issue.

This is the terminal output from code blocks:

** (codeblocks:12971): CRITICAL **: murrine_style_draw_box: assertion 'width >= -1' failed
NativeParser::GetAllPathsByFilename(): Traversing '/home/dragonloverlord/Desktop/codeblocks/calculator' for: buttonRowOne.*
NativeParser::GetAllPathsByFilename(): Traversing ' - /home/dragonloverlord/Desktop/codeblocks/calculator/' for: buttonRowOne.*
NativeParser::GetAllPathsByFilename(): Found 1 files:
- /home/dragonloverlord/Desktop/codeblocks/calculator/buttonRowOne.cpp
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Western European (ISO-8859-1) (ID: 1)
Conversion succeeded using wxEncodingConverter (buffer size = 77, converted size = 81.
NativeParser::GetAllPathsByFilename(): Traversing '/home/dragonloverlord/Desktop/codeblocks/calculator' for: test.*
NativeParser::GetAllPathsByFilename(): Traversing ' - /home/dragonloverlord/Desktop/codeblocks/calculator/' for: test.*
NativeParser::GetAllPathsByFilename(): Found 1 files:
- /home/dragonloverlord/Desktop/codeblocks/calculator/test.h
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
NativeParser::GetAllPathsByFilename(): Traversing '/home/dragonloverlord/Desktop/codeblocks/calculator' for: buttonRowOne.*
NativeParser::GetAllPathsByFilename(): Traversing ' - /home/dragonloverlord/Desktop/codeblocks/calculator/' for: buttonRowOne.*
NativeParser::GetAllPathsByFilename(): Found 1 files:
- /home/dragonloverlord/Desktop/codeblocks/calculator/buttonRowOne.cpp
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
NativeParser::GetAllPathsByFilename(): Traversing '/home/dragonloverlord/Desktop/codeblocks/calculator' for: test.*
NativeParser::GetAllPathsByFilename(): Traversing ' - /home/dragonloverlord/Desktop/codeblocks/calculator/' for: test.*
NativeParser::GetAllPathsByFilename(): Found 1 files:
- /home/dragonloverlord/Desktop/codeblocks/calculator/test.h
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
NativeParser::DeleteParser(): Deleting parser for project 'calculator'!
ClassBrowser::UpdateClassBrowserView(): No active project available.
NativeParser::GetAllPathsByFilename(): Traversing '/home/dragonloverlord/Desktop/codeblocks/calculator' for: test.*
NativeParser::GetAllPathsByFilename(): Found 1 files:
- /home/dragonloverlord/Desktop/codeblocks/calculator/test.h
NativeParser::DoFullParsing(): AddProjectDefinedMacros failed!
NativeParser::DoFullParsing(): Adding cpp/c files to batch-parser
NativeParser::DoFullParsing(): Added 9 source file(s) for project 'calculator' to batch-parser...
ClassBrowser::UpdateClassBrowserView(): No active project available.
NativeParser::GetAllPathsByFilename(): Traversing '/home/dragonloverlord/Desktop/codeblocks/calculator' for: test.*
NativeParser::GetAllPathsByFilename(): Found 1 files:
- /home/dragonloverlord/Desktop/codeblocks/calculator/test.h
NativeParser::CreateParser(): Finish creating a new parser for project 'calculator'
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
NativeParser::OnParserStart(): Starting batch parsing for project 'calculator'...
ReadClsNames() : Unexpected token '((__aligned__))' for 'struct130___pthread_unwind_buf_t', file '/usr/include/pthread.h', line 542.
NativeParser::OnParserEnd(): Project 'calculator' parsing stage done!
Project 'calculator' parsing stage done (666 total parsed files, 30587 tokens in 0 minute(s), 3.464 seconds).
NativeParser::GetAllPathsByFilename(): Traversing '/home/dragonloverlord/Desktop/codeblocks/calculator' for: test.*
NativeParser::GetAllPathsByFilename(): Traversing ' - /home/dragonloverlord/Desktop/codeblocks/calculator/' for: test.*
NativeParser::GetAllPathsByFilename(): Found 1 files:
- /home/dragonloverlord/Desktop/codeblocks/calculator/test.h
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
NativeParser::GetAllPathsByFilename(): Traversing '/home/dragonloverlord/Desktop/codeblocks/calculator' for: buttonRowOne.*
NativeParser::GetAllPathsByFilename(): Traversing ' - /home/dragonloverlord/Desktop/codeblocks/calculator/' for: buttonRowOne.*
NativeParser::GetAllPathsByFilename(): Found 1 files:
- /home/dragonloverlord/Desktop/codeblocks/calculator/buttonRowOne.cpp
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
NativeParser::GetAllPathsByFilename(): Traversing '/home/dragonloverlord/Desktop/codeblocks/calculator' for: test.*
NativeParser::GetAllPathsByFilename(): Traversing ' - /home/dragonloverlord/Desktop/codeblocks/calculator/' for: test.*
NativeParser::GetAllPathsByFilename(): Found 1 files:
- /home/dragonloverlord/Desktop/codeblocks/calculator/test.h
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
NativeParser::GetAllPathsByFilename(): Traversing '/home/dragonloverlord/Desktop/codeblocks/calculator' for: buttonRowOne.*
NativeParser::GetAllPathsByFilename(): Traversing ' - /home/dragonloverlord/Desktop/codeblocks/calculator/' for: buttonRowOne.*
NativeParser::GetAllPathsByFilename(): Found 1 files:
- /home/dragonloverlord/Desktop/codeblocks/calculator/buttonRowOne.cpp
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Western European (ISO-8859-1) (ID: 1)
Conversion succeeded using wxEncodingConverter (buffer size = 77, converted size = 81.
NativeParser::GetAllPathsByFilename(): Traversing '/home/dragonloverlord/Desktop/codeblocks/calculator' for: test.*
NativeParser::GetAllPathsByFilename(): Traversing ' - /home/dragonloverlord/Desktop/codeblocks/calculator/' for: test.*
NativeParser::GetAllPathsByFilename(): Found 1 files:
- /home/dragonloverlord/Desktop/codeblocks/calculator/test.h
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Code blocks not displaying files/menus after a while.
« Reply #1 on: July 13, 2015, 11:42:53 pm »
Interesting...
Does closing the project and re-opening it fixes the problem?
(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 dragonloverlord

  • Single posting newcomer
  • *
  • Posts: 7
Re: Code blocks not displaying files/menus after a while.
« Reply #2 on: July 13, 2015, 11:46:41 pm »
I wish :(

All that it does is result in a blank grey screen were the welcome screen should be.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5915
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Code blocks not displaying files/menus after a while.
« Reply #3 on: July 14, 2015, 02:12:39 am »
Can you try to totally disable the "Code Completion plugin", and see whether this happens again?
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 dragonloverlord

  • Single posting newcomer
  • *
  • Posts: 7
Re: Code blocks not displaying files/menus after a while.
« Reply #4 on: July 14, 2015, 02:44:41 am »
I will try disabling the plugin.

Offline dragonloverlord

  • Single posting newcomer
  • *
  • Posts: 7
Re: Code blocks not displaying files/menus after a while.
« Reply #5 on: July 14, 2015, 03:01:54 am »
Disabling the plugin appears to fix the issue but I would really like to be able to use the autocompletion plugin as it is extremely useful to me.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5915
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Code blocks not displaying files/menus after a while.
« Reply #6 on: July 14, 2015, 06:45:04 am »
Disabling the plugin appears to fix the issue but I would really like to be able to use the autocompletion plugin as it is extremely useful to me.
Good catch, so the bug is in Code Completion plugin, also it should be in trunk since you have tested the jen's nightly builds.
I'm not sure, can you try to enable the code completion plugin, but in it's setting, just disable the "symbols browser", and see whether this issue happens again?

Thanks.
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 dragonloverlord

  • Single posting newcomer
  • *
  • Posts: 7
Re: Code blocks not displaying files/menus after a while.
« Reply #7 on: July 14, 2015, 07:08:02 pm »
Sure thing I will tell you the results soon.

Offline dragonloverlord

  • Single posting newcomer
  • *
  • Posts: 7
Re: Code blocks not displaying files/menus after a while.
« Reply #8 on: July 14, 2015, 07:16:51 pm »
I am happy to say that the plugin now works as long as the symbols browser is disabled :)