Author Topic: print a file and settings - strange behaviours  (Read 11223 times)

Offline Huipil

  • Multiple posting newcomer
  • *
  • Posts: 10
print a file and settings - strange behaviours
« on: January 05, 2013, 02:58:22 pm »
I have ubuntu 12.04 with kde. I have installed code::blocks v12.11 rev 8629 build: 8 Dec 2012
I have 2 problems:

- when I print a file like this --> http://img189.imageshack.us/img189/9109/schermata8p.png
  the result is --> http://img23.imageshack.us/img23/6131/schermata7v.png

- I try to change editor settings (like Syntax highlighting or margins and carte) but it doesn't save them after restart,
  and most of all the program does not close when I click close button, I've used system monitor and I have seen that the program is still running after I made some settings change and tried to close it.

  So, summarizing it, I can close codeblocks correctly only if I don't make any setting change, otherwise it stays running and after force closing it doesn't apply changes.

How can I solve?

thanks a lot
« Last Edit: January 06, 2013, 09:35:38 pm by Huipil »

Offline Huipil

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: print a file and settings - strange behaviours
« Reply #1 on: January 10, 2013, 12:04:01 pm »
any help?

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: print a file and settings - strange behaviours
« Reply #2 on: January 11, 2013, 03:25:17 am »
Where did you get the package from that you used to install?
Does it close if you disable all plugins (and/or start Code::Blocks in safe mode)?

Offline Huipil

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: print a file and settings - strange behaviours
« Reply #3 on: January 11, 2013, 10:45:39 pm »
from this ppa: https://launchpad.net/~pasgui/+archive/ppa/
but it's the same for codeblocks from repositories

however, how can i do that? I disabled all plugins manually and saved prospective, but now it's still opened and I can't close it. I force closed it.
I reopened it (without any opened .c file in it) , it didn't save anything from last session so all plugins are enabled, but now I just closed it and now it closed well

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: print a file and settings - strange behaviours
« Reply #4 on: January 11, 2013, 10:53:40 pm »
Safe mode:
codeblocks --safe-mode

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: print a file and settings - strange behaviours
« Reply #5 on: January 11, 2013, 10:56:28 pm »
Also, does anything change if you delete the configuration files (located in ~/.codeblocks)?

Offline Huipil

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: print a file and settings - strange behaviours
« Reply #6 on: January 11, 2013, 10:59:56 pm »
I already deleted ./codeblocks and nothing changed, but in safe-mode it worked: i have opened a .c file and then changes prospective and it has closed well, but after reaopening codeblocks normally it didn't close

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: print a file and settings - strange behaviours
« Reply #7 on: January 12, 2013, 03:10:34 pm »
If you launch Code::Blocks from terminal, once you close Code::Blocks (and it hangs in memory), what messages are left in the terminal window?

@Anyone: Ideas? ... I seem to be getting nowhere.

Offline Huipil

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: print a file and settings - strange behaviours
« Reply #8 on: January 12, 2013, 04:41:53 pm »
I have just unistalled everything from synaptic, I reinstalled codeblocks and now I decided to install also the package codeblocks-contrib with updated plugins.
I have opened codeblocks from terminal and I just did nothing and it has closed well, after that i reopened codeblocks from terminal and I open a .c file with it and compiled it, after that I've closed codeblocks and now it still opened: these are the last few lines from terminal:

Code
Found 1 files:
- /home/user/Dekstop/file.c
Updating class browser...
Class browser updated.

(codeblocks:20329): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
Deinitializing plugins...

(codeblocks:20329): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `GtkRadioMenuItem'

(codeblocks:20329): Gtk-CRITICAL **: IA__gtk_radio_menu_item_get_group: assertion `GTK_IS_RADIO_MENU_ITEM (radio_menu_item)' failed

(codeblocks:20329): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `GtkRadioMenuItem'

(codeblocks:20329): Gtk-CRITICAL **: IA__gtk_radio_menu_item_get_group: assertion `GTK_IS_RADIO_MENU_ITEM (radio_menu_item)' failed

and it stays on the last line.

Offline Huipil

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: print a file and settings - strange behaviours
« Reply #9 on: January 13, 2013, 11:08:50 am »
I understood that the problem is concerned to editor maybe, because codeblocks doesn't close only when I open a .c file: Infact I made another try from terminal and I had this:
Code
Editor Open
Caching GCC default include dir: /usr/include/c++/4.6
Caching GCC default include dir: /usr/include/c++/4.6/x86_64-linux-gnu
Caching GCC default include dir: /usr/include/c++/4.6/backward
Caching GCC default include dir: /usr/lib/gcc/x86_64-linux-gnu/4.6/include
Caching GCC default include dir: /usr/local/include
Caching GCC default include dir: /usr/lib/gcc/x86_64-linux-gnu/4.6/include-fixed
Caching GCC default include dir: /usr/include/x86_64-linux-gnu
Caching GCC default include dir: /usr/include
Passing list of files to batch-parser.
Header to parse with priority: '/usr/include/c++/4.6/cstddef'
Add 1 priority parsing file(s) for project '*NONE*'...
No active project available.
Traversing '/home/user/Scrivania' for: Untitled1.*
Found 1 files:
- /home/user/Scrivania/Untitled1.c
Create new parser for project '*NONE*'
Updating class browser...
Class browser updated.
Starting batch parsing for project '*NONE*'...
Pool task operated?!
Pool task operated?!
Pool task operated?!
Already current parser present?!
Project '*NONE*' parsing stage done!
Project '*NONE*' parsing stage done (9 total parsed files, 589 tokens in 0 minute(s), 0.059 seconds).
No active project available.
Traversing '/home/user/Scrivania' for: Untitled1.*
Found 1 files:
- /home/user/Scrivania/Untitled1.c
Updating class browser...
Class browser updated.

(codeblocks:2985): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed
Deinitializing plugins...

(codeblocks:2985): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `GtkRadioMenuItem'

(codeblocks:2985): Gtk-CRITICAL **: IA__gtk_radio_menu_item_get_group: assertion `GTK_IS_RADIO_MENU_ITEM (radio_menu_item)' failed

(codeblocks:2985): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `GtkRadioMenuItem'

(codeblocks:2985): Gtk-CRITICAL **: IA__gtk_radio_menu_item_get_group: assertion `GTK_IS_RADIO_MENU_ITEM (radio_menu_item)' failed

I hope it will help to solve my problem, thanks

edit: same thing in --safemode
« Last Edit: January 13, 2013, 11:10:34 am by Huipil »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: print a file and settings - strange behaviours
« Reply #10 on: January 13, 2013, 11:37:37 am »
edit: same thing in --safemode
Did you use --safemode or --safe-mode (note the hyphen) ?

Offline Huipil

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: print a file and settings - strange behaviours
« Reply #11 on: January 13, 2013, 01:48:28 pm »
sorry you are right, now I used the right command "codeblocks --safe-mode" and if I open a .c file this time it works and closes well. So what is the problem?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: print a file and settings - strange behaviours
« Reply #12 on: January 13, 2013, 02:37:24 pm »
sorry you are right, now I used the right command "codeblocks --safe-mode" and if I open a .c file this time it works and closes well. So what is the problem?
Try to start C::B normal and disable the codecompletion-plugin from "Plugins -> Manage plugins".
If it is not the cc-plugin, you can disable all plugins and enable the one by one until you find which one causes the issue.

In any cases you can attach the *.c file (if possible), that leads to the issue

Offline Huipil

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: print a file and settings - strange behaviours
« Reply #13 on: January 13, 2013, 03:28:00 pm »
any *.c file causes the problem, even if I create a new .c file, btw I will try as you said thanks

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: print a file and settings - strange behaviours
« Reply #14 on: January 13, 2013, 03:32:10 pm »
any *.c file causes the problem, even if I create a new .c file, btw I will try as you said thanks
Even if it is empty ?

Offline Huipil

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: print a file and settings - strange behaviours
« Reply #15 on: January 13, 2013, 03:46:45 pm »
yes even if it's empty, But you are great because it worked just disabling the codecompletion-plugin. I don't think I need it so that's great thank you

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: print a file and settings - strange behaviours
« Reply #16 on: January 13, 2013, 05:16:55 pm »
Which version of C::B do you use ?

Offline Huipil

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: print a file and settings - strange behaviours
« Reply #17 on: January 13, 2013, 09:13:35 pm »
the last from ppa: 12.11