Re: Inkscape 1.0 segfault when trying to bring up file chooser

2020-06-15 Thread Thorsten Wilms
On Sun, 14 Jun 2020 23:28:49 -0400
Maxim Cournoyer  wrote:

> The problem should be fixed with commit 1afa2c5ca0.

> Thank you for the report!

Confirmed. Thank you for fixing this so quickly!


-- 
Thorsten Wilms 



Re: Inkscape 1.0 segfault when trying to bring up file chooser

2020-06-14 Thread Maxim Cournoyer
Hello Thorsten,

Thorsten Wilms  writes:

> Hi!
>
> Guix last updated yesterday, on top of Ubuntu. Triggering ‘Save as’ in
> Inkscape leads to:
> ```
> (org.inkscape.Inkscape:5125): GLib-GIO-ERROR **:
> 11:56:37.434: Settings schema 'org.gtk.Settings.FileChooser' does not
> contain a key named 'show-type-column' Trace/breakpoint trap (core
> dumped)
> ```

[...]

The problem should be fixed with commit 1afa2c5ca0.  Inkscape 1.0 is now
wrapped with the XDG_DATA_DIRS and other relevant environment variables
set.  The package was not using the 'glib-or-gtk-wrap from the
glib-or-gtk+-build-system, which caused the problem.

Users which had gtk+ propagated to their user profile (or system profile
on Guix System) would not see the issue triggered (I didn't myself!).

Thank you for the report!

Maxim



Inkscape 1.0 segfault when trying to bring up file chooser

2020-06-14 Thread Thorsten Wilms
Hi!

Guix last updated yesterday, on top of Ubuntu. Triggering ‘Save as’ in
Inkscape leads to:
```
(org.inkscape.Inkscape:5125): GLib-GIO-ERROR **:
11:56:37.434: Settings schema 'org.gtk.Settings.FileChooser' does not
contain a key named 'show-type-column' Trace/breakpoint trap (core
dumped)
```
I assume this started happening with the update to Inkscape 1.0; in
either case the issue is only a few days old.

Various search hits point to 
/usr/share/glib-2.0/schemas/org.gtk.Settings.FileChooser.gschema.xml

```
~: echo $XDG_DATA_DIRS
/home/thorwil/.guix-profile/share:/home/thorwil/.guix-profile/share:/usr/share/unity:/usr/local/share/:/usr/share/
```

If I set XDG_DATA_DIRS to "", inkscape won’t even
start. If I set it to just /home/thorwil/.guix-profile/share, it starts
and crashes on Save_As, same as now.

All store items for org.gtk.Settings.FileChooser.gschema.xml do have
a :
```
/gnu/store: find -name "*FileChooser.gschema*" | \
xargs grep show-type-column
./vgg2r0yzwwbhyxvd8lj2kwyw9779pjfk-gtk+-3.24.14/share/glib-2.0/schemas/org.gtk.Settings.FileChooser.gschema.xml:
 
./zflpysfv6b5x9hvccds0m38x3bmzzdb3-gtk+-3.24.14/share/glib-2.0/schemas/org.gtk.Settings.FileChooser.gschema.xml:
 
./mvdb71lvrqgzx6b3kd3fnqpnak8394hm-gtk+-3.24.14/share/glib-2.0/schemas/org.gtk.Settings.FileChooser.gschema.xml:
 
./q3crl46igvsb10if6z7ffn165pkr74s1-gtk+-3.24.14/share/glib-2.0/schemas/org.gtk.Settings.FileChooser.gschema.xml:
 
./xhdrc9viz956hj2a3gjlbi0gfvfbnwjd-gtk+-3.24.14/share/glib-2.0/schemas/org.gtk.Settings.FileChooser.gschema.xml:
 
./mqjdi2b0jf4jwj9g5lbn2wdip4dnqgdh-gtk+-3.24.14/share/glib-2.0/schemas/org.gtk.Settings.FileChooser.gschema.xml:

```

Checking the links below .guix-profile, I note there is no
org.gtk.Settings.FileChooser.gschema.xml, but there is
gschemas.compiled:
```
~/.guix-profile/share: ls -l glib-2.0/schemas/total 20 lrwxrwxrwx 2
root root  91 Jan  1  1970 gschema.dtd
-> 
/gnu/store/5v9bxzzxbp68c5g6vvvlaq1ddq39bkrf-glib-schemas/share/glib-2.0/schemas/gschema.dtd
lrwxrwxrwx 2 root root  97 Jan  1  1970 gschemas.compiled
-> 
/gnu/store/5v9bxzzxbp68c5g6vvvlaq1ddq39bkrf-glib-schemas/share/glib-2.0/schemas/gschemas.compiled
lrwxrwxrwx 2 root root 118 Jan  1  1970
org.gnome.gnumeric.dialogs.gschema.xml
-> 
/gnu/store/5v9bxzzxbp68c5g6vvvlaq1ddq39bkrf-glib-schemas/share/glib-2.0/schemas/org.gnome.gnumeric.dialogs.gschema.xml
lrwxrwxrwx 2 root root 110 Jan  1  1970 org.gnome.gnumeric.gschema.xml
-> 
/gnu/store/5v9bxzzxbp68c5g6vvvlaq1ddq39bkrf-glib-schemas/share/glib-2.0/schemas/org.gnome.gnumeric.gschema.xml
lrwxrwxrwx 2 root root 117 Jan  1  1970
org.gnome.gnumeric.plugin.gschema.xml
-> 
/gnu/store/5v9bxzzxbp68c5g6vvvlaq1ddq39bkrf-glib-schemas/share/glib-2.0/schemas/org.gnome.gnumeric.plugin.gschema.xml
```

There are a bunch of string visible in the binary file
gschemas.compiled, ‘show-type-column’ or similar does not apear.

Is the issue perhaps that gschemas.compiled would have had to be
rebuilt, but wasn’t?

I considered trying to symlink an org.gnome.gnumeric.gschema.xml, but I
don’t see how to figure out which of the 5 store items it should be.


-- 
Thorsten Wilms