Code::Blocks Forums

User forums => Help => Topic started by: mikoff on December 12, 2015, 05:20:20 pm

Title: Codeblocks 13.12 problem Ubuntu
Post by: mikoff on December 12, 2015, 05:20:20 pm
Hello.
I have a very strange problem with freshly installed CodeBlocks v. 13.12.
The IDE randomly hangs when i am opening a file or any subwindow (tools, settings, etc.).
When i run the IDE in debug mode i see the following messages in console (to be clear: the IDE freezes not the same time and i don`t know if the messages and the freeze are interconnected). In this particular example i wasn`t able to switch the tabs anymore - they were freezed, but the IDE was working.

UPD: easy way to reproduce the problem - open the project, close all active files -> editor tabs doesn`t react anymore, after a while (clicking on the menus) the IDE freezes permanently.

Code
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.

** (codeblocks:23794): CRITICAL **: murrine_style_draw_box: assertion 'width >= -1' failed

(codeblocks:23794): Gdk-CRITICAL **: IA__gdk_window_thaw_updates: assertion 'impl_window->update_freeze_count > 0' failed

(codeblocks:23794): Gdk-CRITICAL **: IA__gdk_window_thaw_updates: assertion 'impl_window->update_freeze_count > 0' failed
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
NativeParser::GetAllPathsByFilename(): Traversing '/home/xxx/SVN/test/apps/ap' for: cfg.*
NativeParser::GetAllPathsByFilename(): Found 2 files:
- /home/xxx/SVN/test/apps/ap/cfg.c
- /home/xxx/SVN/test/apps/ap/cfg.h
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.

(codeblocks:23794): Gdk-CRITICAL **: IA__gdk_window_thaw_updates: assertion 'impl_window->update_freeze_count > 0' failed

(codeblocks:23794): Gdk-CRITICAL **: IA__gdk_window_thaw_updates: assertion 'impl_window->update_freeze_count > 0' failed
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
NativeParser::GetAllPathsByFilename(): Traversing '/home/xxx/SVN/test/apps/ap' for: main.*
NativeParser::GetAllPathsByFilename(): Traversing ' - /home/xxx/SVN/test/' for: main.*
NativeParser::GetAllPathsByFilename(): Found 1 files:
- /home/xxx/SVN/test/apps/ap/main.c
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.

(codeblocks:23794): Gdk-CRITICAL **: IA__gdk_window_thaw_updates: assertion 'impl_window->update_freeze_count > 0' failed

(codeblocks:23794): Gdk-CRITICAL **: IA__gdk_window_thaw_updates: assertion 'impl_window->update_freeze_count > 0' failed
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
NativeParser::GetAllPathsByFilename(): Traversing '/home/xxx/SVN/test/apps/ap' for: nodescfg.*
NativeParser::GetAllPathsByFilename(): Found 2 files:
- /home/xxx/SVN/test/apps/ap/nodescfg.c
- /home/xxx/SVN/test/apps/ap/nodescfg.h
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.

Another example, the IDE completely freezed:
Code
NativeParser::GetAllPathsByFilename(): Traversing ' - /home/sashamikoff/SVN/test/' for: main.*
NativeParser::GetAllPathsByFilename(): Found 1 files:
- /home/xxx/SVN/test/apps/ap/main.c
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.

** (codeblocks:23849): CRITICAL **: murrine_style_draw_box: assertion 'width >= -1' failed
NativeParser::GetAllPathsByFilename(): Traversing '/home/xxx/SVN/test/apps/ap' for: nodescfg.*
NativeParser::GetAllPathsByFilename(): Found 2 files:
- /home/xxx/SVN/test/apps/ap/nodescfg.c
- /home/xxx/SVN/test/apps/ap/nodescfg.h
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.

** (codeblocks:23849): CRITICAL **: murrine_style_draw_box: assertion 'width >= -1' failed
NativeParser::GetAllPathsByFilename(): Traversing '/home/xxx/SVN/test/apps/tag' for: main.*
NativeParser::GetAllPathsByFilename(): Traversing ' - /home/xxx/SVN/test/' for: main.*
NativeParser::GetAllPathsByFilename(): Found 1 files:
- /home/xxx/SVN/test/apps/tag/main.c
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.

Another example, the panel with tabs freezed, but i was able to quit IDE correctly:
Code
xxx@mikoff-y2p:~$ codeblocks --debug
Unknown long option 'debug'
Manager initialized
Initialize EditColourSet .....
Scanning for lexers in /usr/share/codeblocks/lexers/...
Found 46 lexers
Loading lexer_matlab
Loading lexer_java
Loading lexer_vbscript
Loading lexer_hitasm
Loading lexer_batch
Loading lexer_d
Loading lexer_perl
Loading lexer_bash
Loading lexer_OgreMaterial
Loading lexer_smalltalk
Loading lexer_prg
Loading lexer_cg
Loading lexer_gm
Loading lexer_properties
Loading lexer_sql
Loading lexer_glsl
Loading lexer_ruby
Loading lexer_cpp
Loading lexer_xml
Loading lexer_ada
Loading lexer_objc
Loading lexer_squirrel
Loading lexer_html
Loading lexer_lua
Loading lexer_nsis
Loading lexer_css
Loading lexer_lisp
Loading lexer_vhdl
Loading lexer_haskell
Loading lexer_OgreCompositor
Loading lexer_masm
Loading lexer_latex
Loading lexer_postscript
Loading lexer_A68k
Loading lexer_f77
Loading lexer_diff
Loading lexer_bibtex
Loading lexer_verilog
Loading lexer_make
Loading lexer_fortran
Loading lexer_angelscript
Loading lexer_pascal
Loading lexer_caml
Loading lexer_cmake
Loading lexer_python
Loading lexer_rc
Initialize EditColourSet: done.
Loading menubar...
Configured 2 tools

(codeblocks:27483): Gtk-WARNING **: Attempting to read the recently used resources file at `/home/xxx/.local/share/recently-used.xbel', but the parser failed: Failed to open file '/home/xxx/.local/share/recently-used.xbel': Permission denied.
Scanning for plugins in /home/xxx/.codeblocks/share/codeblocks/plugins
Loaded 0 plugins
Scanning for plugins in /usr/lib/codeblocks/plugins
Debugger: loaded
FilesExtensionHandler: loaded
OpenFilesList: loaded
Compiler: loaded
Autosave: loaded
ProjectsImporter: loaded
AStylePlugin: loaded
ClassWizard: loaded
ScriptedWizard: loaded
CodeCompletion: loaded
ToDoList: loaded
Loaded 11 plugins
Loading:
Debugger
Debugger plugin activated
FilesExtensionHandler
Files extension handler plugin activated
OpenFilesList
Open files list plugin activated
Compiler
Added compiler "GNU GCC Compiler"
Added compiler "Intel C/C++ Compiler"
Added compiler "GDC D Compiler"
Added compiler "GNU Fortran Compiler"
Added compiler "G95 Fortran Compiler"
Added compiler "GNU GCC Compiler for ARM"
Added compiler "Small Device C Compiler"
Added compiler "Digital Mars D Compiler"
Added compiler "Tiny C Compiler"
Added compiler "GNU GCC Compiler for AVR"
Added compiler "GNU GCC Compiler for TriCore"
Added compiler "*No Compiler*"
Added compiler "GNU GCC Compiler for PowerPC"
Added compiler "GNU GCC Compiler for MSP430"
Added compiler "PGI Fortran Compiler"
Added compiler "LLVM Clang Compiler"
Added compiler "LLVM D Compiler"
Compiler plugin activated
Autosave
Autosave plugin activated
ProjectsImporter
Foreign projects importer plugin activated
AStylePlugin
Source code formatter (AStyle) plugin activated
ClassWizard
Class wizard plugin activated
ScriptedWizard
Project wizard added for 'Empty project'
Project wizard added for 'Fortran application'
Project wizard added for 'Fortran library'
Project wizard added for 'Fortran DLL'
Project wizard added for 'Console application'
Project wizard added for 'D application'
Project wizard added for 'FLTK project'
Project wizard added for 'GLFW project'
Project wizard added for 'GLUT project'
Project wizard added for 'GTK+ project'
Project wizard added for 'Irrlicht project'
Project wizard added for 'Lightfeather project'
Project wizard added for 'Matlab project'
Project wizard added for 'OpenCV project'
Project wizard added for 'OpenGL project'
Project wizard added for 'Ogre project'
Project wizard added for 'Code::Blocks plugin'
Project wizard added for 'QT4 project'
Project wizard added for 'SDL project'
Project wizard added for 'SFML project'
Project wizard added for 'Static library'
Project wizard added for 'Shared library'
Project wizard added for 'wxWidgets project'
Build-target wizard added for 'Console'
Build-target wizard added for 'Static library'
Build-target wizard added for 'wxWidgets'
Project wizard added for 'ARM Project'
Project wizard added for 'AVR Project'
Project wizard added for 'TriCore Project'
Project wizard added for 'PowerPC Project'
Project wizard added for 'MCS51 Project'
File(s) wizard added for 'Empty file'
File(s) wizard added for 'C/C++ source'
File(s) wizard added for 'C/C++ header'
File(s) wizard added for 'Fortran source'
Scripted wizard plugin activated
CodeCompletion
Code completion plugin activated
ToDoList
Todo List plugin activated
Loading toolbar...
ClassBrowser::UpdateClassBrowserView(): No active project available.
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
Initializing plugins...
Unknown long option 'debug'
Running startup script
Script plugin registered: Find Broken Files plugin
Script/function 'edit_startup_script.script' registered under menu '&Settings/-Edit startup script'
Opening /home/xxx/SVN/test/tools/test.cb/test.cb.cbp
Loading project file...
Parsing project file...
Loading target tag_v1_0
Loading target sentry_intercom_v0_8
Loading project files...
1173 files loaded
Done loading project in 81ms
Project's base path: /home/xxx/SVN/test/tools/test.cb/
Project's common toplevel path: /home/xxx/SVN/test/
Done.
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Project data set for /home/xxx/SVN/test/dev/bus_1wire_stm32/bus_1wire_stm32.c
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
Project data set for /home/xxx/SVN/test/dev/bus_1wire_stm32/bus_1wire_stm32_hints.h
Top Editor: /home/xxx/SVN/test/dev/bus_1wire_stm32/bus_1wire_stm32_hints.h
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/include/c++/5
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/include/x86_64-linux-gnu/c++/5
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/include/c++/5/backward
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/lib/gcc/x86_64-linux-gnu/5/include
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/local/include
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/include/x86_64-linux-gnu
NativeParser::GetGCCCompilerDirs(): Caching GCC default include dir: /usr/include
NativeParser::DoFullParsing(): AddCompilerPredefinedMacros failed!
NativeParser::DoFullParsing(): Adding three kind of files to batch-parser
NativeParser::DoFullParsing(): Add priority header file: '/usr/include/c++/5/cstddef'
NativeParser::DoFullParsing(): Add 1 priority file(s) for project 'test.cb'...
NativeParser::DoFullParsing(): Added 1151 header&source file(s) for project 'test.cb' to batch-parser...
ClassBrowser::UpdateClassBrowserView(): No active project available.
NativeParser::GetAllPathsByFilename(): Traversing '/home/xxx/SVN/test/dev/bus_1wire_stm32' for: bus_1wire_stm32_hints.*
NativeParser::GetAllPathsByFilename(): Found 1 files:
- /home/xxx/SVN/test/dev/bus_1wire_stm32/bus_1wire_stm32_hints.h
NativeParser::CreateParser(): Finish creating a new parser for project 'test.cb'
NativeParser::CreateParser(): Finish creating a new parser for project 'test.cb'
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
NativeParser::OnParserStart(): Starting batch parsing for project 'test.cb'...
ReadClsNames() : Unexpected token '((packed))' for 'struct296___attribute__', file '/home/xxx/SVN/test/dev/dev_radio_dw1000/deca_device_api.h', line 189.

(codeblocks:27483): Gdk-CRITICAL **: IA__gdk_window_get_origin: assertion 'GDK_IS_WINDOW (window)' failed

(codeblocks:27483): Gdk-CRITICAL **: IA__gdk_window_get_origin: assertion 'GDK_IS_WINDOW (window)' failed

(codeblocks:27483): Gdk-CRITICAL **: IA__gdk_window_get_origin: assertion 'GDK_IS_WINDOW (window)' failed
ReadVarNames() : Unexpected token '((__packed__))' for 'ether_addr', file '/usr/include/net/ethernet.h', line 35.
ReadVarNames() : Unexpected token '((__packed__))' for 'ether_header', file '/usr/include/net/ethernet.h', line 43.
ReadVarNames() : Unexpected token '((__unused__))' for 'union1202___qnan_union', file '/usr/include/x86_64-linux-gnu/bits/nan.h', line 49.
ReadVarNames() : Unexpected token '((packed))' for 'ethhdr', file '/usr/include/linux/if_ether.h', line 141.
NativeParser::OnParserEnd(): Project 'test.cb' parsing stage done!
NativeParser::OnParserEnd(): Project 'test.cb' parsing stage done!
Project 'test.cb' parsing stage done (1250 total parsed files, 45226 tokens in 0 minute(s), 1.789 seconds).
NativeParser::GetAllPathsByFilename(): Traversing '/home/xxx/SVN/test/dev/bus_1wire_stm32' for: bus_1wire_stm32_hints.*
NativeParser::GetAllPathsByFilename(): Traversing ' - /home/xxx/SVN/test/' for: bus_1wire_stm32_hints.*
NativeParser::GetAllPathsByFilename(): Found 1 files:
- /home/xxx/SVN/test/dev/bus_1wire_stm32/bus_1wire_stm32_hints.h
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
SystemHeadersThread: /usr/include/c++/5/ , 642
SystemHeadersThread: /usr/include/x86_64-linux-gnu/c++/5/ , 23
SystemHeadersThread: /usr/include/c++/5/backward/ , 8
SystemHeadersThread: /usr/lib/gcc/x86_64-linux-gnu/5/include/ , 101
SystemHeadersThread: /usr/local/include/ , 0
SystemHeadersThread: /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed/ , 4
SystemHeadersThread: /usr/include/x86_64-linux-gnu/ , 398
SystemHeadersThread: /usr/include/ , 3057
SystemHeadersThread: Total number of paths: 8

(codeblocks:27483): Gdk-CRITICAL **: IA__gdk_window_thaw_updates: assertion 'impl_window->update_freeze_count > 0' failed

(codeblocks:27483): Gdk-CRITICAL **: IA__gdk_window_thaw_updates: assertion 'impl_window->update_freeze_count > 0' failed
Mozilla universal detection engine detected 'Pure *ASCII*'.
Final encoding detected: Unicode 8 bit (UTF-8) (ID: 43)
NativeParser::GetAllPathsByFilename(): Traversing '/home/xxx/SVN/test/utils' for: crc32.*
NativeParser::GetAllPathsByFilename(): Found 2 files:
- /home/xxx/SVN/test/utils/crc32.h
- /home/xxx/SVN/test/utils/crc32.c
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
NativeParser::GetAllPathsByFilename(): Traversing '/home/xxx/SVN/test/dev/bus_1wire_stm32' for: bus_1wire_stm32_hints.*
NativeParser::GetAllPathsByFilename(): Traversing ' - /home/xxx/SVN/test/' for: bus_1wire_stm32_hints.*
NativeParser::GetAllPathsByFilename(): Found 1 files:
- /home/xxx/SVN/test/dev/bus_1wire_stm32/bus_1wire_stm32_hints.h
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
NativeParser::GetAllPathsByFilename(): Traversing '/home/xxx/SVN/test/dev/bus_1wire_stm32' for: bus_1wire_stm32.*
NativeParser::GetAllPathsByFilename(): Traversing ' - /home/xxx/SVN/test/' for: bus_1wire_stm32.*
NativeParser::GetAllPathsByFilename(): Found 1 files:
- /home/xxx/SVN/test/dev/bus_1wire_stm32/bus_1wire_stm32.c
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
ClassBrowser::OnThreadEvent(): Updating class browser...
ClassBrowser::OnThreadEvent(): Class browser updated.
Removed test.cb from all deps
Deinitializing plugins...
Title: Re: Codeblocks 13.12 problem Ubuntu
Post by: MortenMacFly on December 13, 2015, 06:50:42 am
UPD: easy way to reproduce the problem - open the project, close all active files -> editor tabs doesn`t react anymore, after a while (clicking on the menus) the IDE freezes permanently.
What project, how to reproduce?
Title: Re: Codeblocks 13.12 problem Ubuntu
Post by: oBFusCATed on December 13, 2015, 12:12:02 pm
And which version of Ubuntu are you using?
Title: Re: Codeblocks 13.12 problem Ubuntu
Post by: mikoff on December 13, 2015, 01:57:08 pm
My version of ubuntu is 15.10.
You don`t even need a project, after the codeblocks is opened you have to click on Help->About or any other dialog which pop up new window and after few times codeblocks freezes.
Title: Re: Codeblocks 13.12 problem Ubuntu
Post by: oBFusCATed on December 13, 2015, 02:12:37 pm
Is this an official package provided by Ubuntu?
If it is please report this to the Ubuntu developers.
It looks like some Ubuntu-only problem.
Title: Re: Codeblocks 13.12 problem Ubuntu
Post by: mikoff on December 13, 2015, 02:19:00 pm
Yes, it is.
Ok, i will report problem back to them.
Meantime, could you give me a link to any other version of Codeblocks (15.12 may be?) for Ubuntu/Debian, because the current one version from repository is  unusable.
Title: Re: Codeblocks 13.12 problem Ubuntu
Post by: oBFusCATed on December 13, 2015, 05:54:06 pm
You can check the nightly build sub-forum if there are packages for your version of ubuntu.
Title: Re: Codeblocks 13.12 problem Ubuntu
Post by: stahta01 on December 13, 2015, 06:21:01 pm
The first thread I manually searched had this link.

https://launchpad.net/~damien-moore/+archive/ubuntu/codeblocks (https://launchpad.net/~damien-moore/+archive/ubuntu/codeblocks)

I am using Windows 7 and Debian Jessie; I have no idea if the above is the best link to try or not.

You can check the nightly build sub-forum if there are packages for your version of ubuntu.
Title: Re: Codeblocks 13.12 problem Ubuntu
Post by: mikoff on December 13, 2015, 07:02:33 pm
Thank you!
The PPA version of CodeBlocks works perfectly!
Title: Re: Codeblocks 13.12 problem Ubuntu
Post by: CodeMouse92 on February 25, 2016, 12:44:55 am
I had a very similar bug, where opening more than one tab by double-clicking files in the Management pane would cause the toolbar and tabs bar to freeze. I just figured out that this is related to the new scrollbars under Ubuntu 15.10, and affects other applications as well. There is an AskUbuntu question regarding the same behavior in FileZilla, albeit on 14.10 with custom scrollbars: http://askubuntu.com/questions/551732/filezilla-tab-overlay-issue

I found the way to solve this on 15.10 is to install the Unity Tweak Tool...

Code
$ sudo apt-get install unity-tweak tool

Then, start the Unity Tweak Tool, and go to Scrolling. Switch Scrollbars to Legacy, and the tabs issue immediately resolves.
Title: Re: Codeblocks 13.12 problem Ubuntu
Post by: edwardlucas on October 12, 2017, 01:40:42 pm
I had a very similar bug, where opening more than one tab by double-clicking files in the Management pane would cause the toolbar and tabs bar to freeze. I just figured out that this is related to the new scrollbars under Ubuntu 15.10, and affects other applications as well. There is an AskUbuntu question regarding the same behavior in FileZilla, albeit on 14.10 with custom scrollbars: http://askubuntu.com/questions/551732/filezilla-tab-overlay-issue

I found the way to solve this on 15.10 is to install the Unity Tweak Tool...

Code
$ sudo apt-get install unity-tweak tool

Then, start the Unity Tweak Tool, and go to Scrolling. Switch Scrollbars to Legacy, and the tabs issue immediately resolves.

Thanks a lot! I resolved the same problem on ubuntu 16.04.3 by your approach.