GNOME Bugzilla – Bug 728295
Crash if gnome-terminal is not installed
Last modified: 2014-12-03 10:21:28 UTC
Anjuta 3.12.0 crashes when enabling Terminal plugin if gnome-terminal is not installed with: GLib-GIO-ERROR **: Settings schema 'org.gnome.Terminal.ProfilesList' is not installed After installing gnome-terminal Anjuta launches normally. It keeps launching even if gnome-terminal is uninstalled after that. Not a big deal but could be confusing for newcomer. P.S. It's rather annoying also that there is no way to configure terminal's font/color.
Thank for reporting this. It's because Anjuta use gnome terminal gsettings which are installed by gnome terminal. And if one setting is missing, the library does not return a default value but abort the program. Else, you should be able to change the terminal font and colors in gnome-terminal and Anjuta will use these settings.
In short - it is a packaging problem if you can install anjuta without gnome-terminal. And people who install from source should know what they are doing and I wouldn't want to add a build dependency on gnome-terminal as it is not really necessary for building and build server might want to omit it. => Voting for NOTABUG
I think we could try to test if the value exist before using it so avoid a crash. I haven't checked if it's difficult to implement.
As far as I know, gsettings doesn't allow such checks (by design) but you might want to check.
(In reply to comment #4) > As far as I know, gsettings doesn't allow such checks (by design) but you might > want to check. It seems that gsettings hasn't allowed such checks at the beginning. But there are several bugs reported and linked to that. I think we can use the function g_settings_schema_source_lookup to check the existence of some keys.
I'm using Anjuta on an older system. It crashes if you have an old version of gnome-terminal too and it's useful only for getting preferences which is not mandatory. The function is documented as useful for plugins which is our case, it's already used in gedit by example.
Thank you for fixing!
The bus is still here under Ubuntu 14.10. Anjuta 3.12.0, installed from the Ubuntu Software Center. It worked last week, but there has been an automatic update recently and now it does'nt work anymore. I can not open my C projects. Note that gnome-terminal IS installed (version 3.6.2). Also, now, I can not even create a project, even the "Hello world" one. Say the name of the project is "test". Everything seems OK, but at the very end, when I want to execute it, Anjuta tells me it can not find the file /src/test.
(In reply to comment #8) > The bus is still here under Ubuntu 14.10. Anjuta 3.12.0, installed from the > Ubuntu Software Center. > > It worked last week, but there has been an automatic update recently and now it > does'nt work anymore. I can not open my C projects. > Note that gnome-terminal IS installed (version 3.6.2). > > Also, now, I can not even create a project, even the "Hello world" one. Say > the name of the project is "test". Everything seems OK, but at the very end, > when I want to execute it, Anjuta tells me it can not find the file /src/test. Thank for your report but why do you think it is the same bug? You indicate that gnome-terminal is installed so it shouldn't trigger this bug. Moreover you have a quite different behavior, it is not a crash here but rather a missing file when creating a new project. If it is a different bug could you open a new bug report?
Created attachment 285858 [details] Trying to create the "test" new project. Crash when execute
Well, I am not an expert, but when I launch Anjuta from the terminal (and, precisely, from the gnome-terminal), and try to open an existing project, it crashes, and here are the messages: maurice@maurice-laptop:~$ anjuta (anjuta:9620): GLib-GObject-WARNING **: The property GtkSettings:gtk-menu-images is deprecated and shouldn't be used anymore. It will be removed in a future version. (anjuta:9620): GLib-GIO-ERROR **: Settings schema 'org.gnome.Terminal.ProfilesList' is not installed Now, as said, I apparently can create a new project, but can not execute it (F3 key). However, I do not know whether it is a different bug or not, so it may be not necessary to open a new bug report. I attach the config.log, there are some fatal errors in it.
(In reply to comment #11) > Well, I am not an expert, That's fine but it wasn't obvious from your report. > but when I launch Anjuta from the terminal (and, > precisely, from the gnome-terminal), It doesn't matter if you launch it from gnome terminal or not. > and try to open an existing project, it > crashes, and here are the messages: > maurice@maurice-laptop:~$ anjuta > (anjuta:9620): GLib-GObject-WARNING **: The property > GtkSettings:gtk-menu-images is deprecated and shouldn't be used anymore. It > will be removed in a future version. > (anjuta:9620): GLib-GIO-ERROR **: Settings schema > 'org.gnome.Terminal.ProfilesList' is not installed This last error message is important and indeed it means that you don't have the right version of gnome terminal. You need at least gnome-terminal 3.8 which is a quite old version. Then, I have fixed Anjuta but only the master branch so the fix is not available in Anjuta 3.12 only in Anjuta 3.13.90 or higher. > Now, as said, I apparently can create a new project, but can not execute it > (F3 key). However, I do not know whether it is a different bug or not, so it > may be not necessary to open a new bug report. I attach the config.log, there > are some fatal errors in it. I think you can update your version of gnome terminal first. Then the missing src/test file could be another issue. Else the config.log that you have attached is not related to this bug. It's a log created when you configure your project and it is normal to have errors inside as this script is trying various command line options to know which one are supported by your compiler.
"I think you can update your version of gnome terminal first." But the 3.6.2 version is the last one available on the Ubuntu Software Center. If I type sudo apt-get install gnome-terminal I still get this old version. "I have fixed Anjuta but only the master branch so the fix is not available in Anjuta 3.12 only in Anjuta 3.13.90 or higher." Same remark. Only Anjuta 3.12. So, how can I install them ?
(In reply to comment #13) > But the 3.6.2 version is the last one available on the Ubuntu Software Center. I imagine that there is a reason to do that but it's strange the version number of both Anjuta and gnome-terminal are aligned on GNOME version number. So you should have gnome-terminal 3.12. > "I have fixed Anjuta but only the master branch so the fix is not available in > Anjuta 3.12 only in Anjuta 3.13.90 or higher." > Same remark. Only Anjuta 3.12. It's normal to have only Anjuta 3.12, 3.13 is a development release. > So, how can I install them ? Normally, the distribution takes care of that. One solution is to get the source package and compile it. But you need to install all needed development tools and packages. By default they are installed in /usr/local so it doesn't overwrite files from your distribution. You need to compile only one. gnome-terminal has less dependencies but it is a lower level program. If can have all dependencies for Anjuta, I think it's better to try to compile it instead. I'm quite conservative for library so it could fit. If you miss some libraries, one solution could be to recompile Anjuta 3.12 instead and backport the fix for this bug. Else, it is an Ubuntu issue, so perhaps someone else in Ubuntu community has found a fix for that.
Thanks for your suggestions. However, they are a bit too commlicated and too risky for me. So, I am just hoping that there will be soon a Ubuntu version compatible with Anjuta. For the moment, I have unfortunately to give up, and to use another IDE, Geany, not as powerful, but, at least, I can run my C codes, and get the results I need.
Hello here, I confirm crash when run out of the box using fresh xubuntu 14.10 xubuntu 14.10 ship gnome-terminal 3.6.2 and anjuta 3.12.0
(In reply to comment #16) > I confirm crash when run out of the box using fresh xubuntu 14.10 > xubuntu 14.10 ship gnome-terminal 3.6.2 and anjuta 3.12.0 It's definitively a bug in Ubuntu that has to be fixed here. Anyway, it shouldn't crash with Anjuta 3.14. I haven't used it but there is a ppa here: https://launchpad.net/~inizan-yannick/+archive/ubuntu/development
Anjuta 3.14 from inizan's ppa do the job (now i can debug/code!) for me under xubuntu 14.10 ! thank's & have a nice sunny day.