After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 728295 - Crash if gnome-terminal is not installed
Crash if gnome-terminal is not installed
Status: RESOLVED FIXED
Product: anjuta
Classification: Applications
Component: unknown
3.12.x
Other Linux
: Normal minor
: ---
Assigned To: Anjuta maintainers
Anjuta maintainers
Depends on:
Blocks:
 
 
Reported: 2014-04-15 20:48 UTC by cucullus
Modified: 2014-12-03 10:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Trying to create the "test" new project. Crash when execute (30.15 KB, text/x-log)
2014-09-10 18:46 UTC, Maurice.Clerc
Details

Description cucullus 2014-04-15 20:48:45 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.
Comment 1 Sébastien Granjoux 2014-04-15 21:05:52 UTC
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.
Comment 2 Johannes Schmid 2014-04-17 16:13:24 UTC
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
Comment 3 Sébastien Granjoux 2014-04-17 19:36:37 UTC
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.
Comment 4 Johannes Schmid 2014-04-19 21:22:29 UTC
As far as I know, gsettings doesn't allow such checks (by design) but you might want to check.
Comment 5 Sébastien Granjoux 2014-04-21 16:36:00 UTC
(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.
Comment 6 Sébastien Granjoux 2014-05-01 09:27:41 UTC
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.
Comment 7 cucullus 2014-05-01 17:52:30 UTC
Thank you for fixing!
Comment 8 Maurice.Clerc 2014-09-10 16:59:40 UTC
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.
Comment 9 Sébastien Granjoux 2014-09-10 17:26:07 UTC
(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?
Comment 10 Maurice.Clerc 2014-09-10 18:46:48 UTC
Created attachment 285858 [details]
Trying to create the "test" new project. Crash when execute
Comment 11 Maurice.Clerc 2014-09-10 18:49:45 UTC
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.
Comment 12 Sébastien Granjoux 2014-09-10 19:30:10 UTC
(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.
Comment 13 Maurice.Clerc 2014-09-12 18:18:57 UTC
"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 ?
Comment 14 Sébastien Granjoux 2014-09-12 20:17:45 UTC
(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.
Comment 15 Maurice.Clerc 2014-09-13 07:40:19 UTC
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.
Comment 16 d.j.a.y 2014-12-02 08:27:58 UTC
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
Comment 17 Sébastien Granjoux 2014-12-02 18:17:19 UTC
(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
Comment 18 d.j.a.y 2014-12-03 10:21:28 UTC
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.