nautilus: Crashes loading KgxNautilus plugin twice (problems with NAUTILUS_EXTENSION_PATH)

  • Done
  • quality assurance status badge
Details
8 participants
  • Alexandre Hannud Abdo
  • Attila Lendvai
  • Jascha Geerds
  • Liliana Marie Prikler
  • Ludovic Courtès
  • Christopher Baines
  • Tobias Geerinckx-Rice
  • Tobias Kortkamp
Owner
unassigned
Submitted by
Tobias Kortkamp
Severity
important
T
T
Tobias Kortkamp wrote on 1 Oct 2022 13:29
(address . bug-guix@gnu.org)
YzgknxgNeYBPf2/8@anubis
Hi,

I updated from c8112f3bd95269ce4aca12dedbfe61bb6b37acae to
0dec41f329c37a4293a2a8326f1fe7d9318ec455 and now Nautilus crashes
with:

(org.gnome.Nautilus:3664): GLib-GObject-WARNING **: 13:25:09.877: Two different plugins tried to register 'KgxNautilus'.

(org.gnome.Nautilus:3664): GLib-GObject-CRITICAL **: 13:25:09.877: g_type_add_interface_dynamic: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(org.gnome.Nautilus:3664): GLib-GObject-WARNING **: 13:25:09.877: Two different plugins tried to register 'KgxNautilusMenuItem'.

** (org.gnome.Nautilus:3664): WARNING **: 13:25:09.882: Tracker 2 migration: Couldn't run `tracker3`: Failed to execute child process “tracker3” (No such file or directory)

(org.gnome.Nautilus:3664): GLib-GObject-WARNING **: 13:25:10.222: invalid cast from 'KgxNautilus' to '<invalid>'

(org.gnome.Nautilus:3664): GLib-GObject-CRITICAL **: 13:25:10.222: g_object_new_valist: assertion 'G_TYPE_IS_OBJECT (object_type)' failed

(org.gnome.Nautilus:3664): GLib-GObject-CRITICAL **: 13:25:10.222: g_object_get: assertion 'G_IS_OBJECT (object)' failed

The problem seems to be that NAUTILUS_EXTENSION_PATH contains the same
path twice and that it tries to load KgxNautilus from each of the paths:

$ echo $NAUTILUS_EXTENSION_PATH
/run/current-system/profile/lib/nautilus/site-extensions:/run/current-system/profile/lib/nautilus/site-extensions

Running Nautilus like this works fine:

$ NAUTILUS_EXTENSION_PATH=/run/current-system/profile/lib/nautilus/site-extensions nautilus

Best regards,

Tobi
T
T
Tobias Geerinckx-Rice wrote on 1 Oct 2022 14:32
(name . Tobias Kortkamp)(address . tobias.kortkamp@gmail.com)
87r0zrd8fb.fsf@nckx
Hi… Tobias,

Tobias Kortkamp ???
Toggle quote (6 lines)
> ** (org.gnome.Nautilus:3664): WARNING **: 13:25:09.882: Tracker
> 2
> migration: Couldn't run `tracker3`: Failed to execute child
> process
> “tracker3” (No such file or directory)

Could you install ‘tracker@3’ into the same profile, and try
again? This part might be a relatively simple input fix.

Please note whether it crashes for the *same* reason, as I fully
expect it to still crash! See this log[0] posted by nashdidan[m]
on IRC[1].

Aside from the vague version mismatch hypothesis, another possible
culprit is wrapping. G-stuff needs a lot of wrapping to work
properly & we might be introducing a bogus (argv[0]?) argument
somewhere. I didn't investigate.

Kind regards,

T G-R

[0]:
-----BEGIN PGP SIGNATURE-----

iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYzg1GA0cbWVAdG9iaWFz
LmdyAAoJEA2w/4hPVW158VkA+wQ6BfZSYi0NjTeys74rAOB1OKqf8OuDBShAmICx
tzcRAQD0asYa/DCsxH1y43oxkAo9OouRzGaM5B2655N+g/ctDQ==
=VvCX
-----END PGP SIGNATURE-----

T
T
Tobias Kortkamp wrote on 1 Oct 2022 16:40
(name . Tobias Geerinckx-Rice)(address . me@tobias.gr)
YzhReirfxNuUmZb/@anubis
On Sat, Oct 01, 2022 at 02:32:43PM +0200, Tobias Geerinckx-Rice wrote:
Toggle quote (10 lines)
> Hi… Tobias,
>
> Tobias Kortkamp ???
> > ** (org.gnome.Nautilus:3664): WARNING **: 13:25:09.882: Tracker 2
> > migration: Couldn't run `tracker3`: Failed to execute child process
> > “tracker3” (No such file or directory)
>
> Could you install ‘tracker@3’ into the same profile, and try again? This
> part might be a relatively simple input fix.

Then I get

** (org.gnome.Nautilus:11879): WARNING **: 16:07:20.550: Tracker 2 migration: Failed to parse key file data: Key file contains line “usage: tracker3 [--version] [--help]” which is not a key-value pair, group, or comment

Same crash as before otherwise.

According to
Nautilus tries to export Tracker2 metadata with

tracker3 export --2to3 files-starred --keyfile

If I run that command manually I just get the usage screen. In fact
none of the tracker3 subcommands actually seem to work like they do on
Fedora. Not even "help".

Best regards
T
T
Tobias Geerinckx-Rice wrote on 1 Oct 2022 20:14
Re: bug#58221: nautilus: Crashes loading KgxNautilus plugin twice (problems wi th NAUTILUS_EXTENSION_PATH)
(name . Tobias Kortkamp)(address . tobias.kortkamp@gmail.com)
40D3195B-B55D-4AEF-AFF8-AA6A14EFC97B@tobias.gr
Hi Tobias,

On 1 October 2022 14:40:58 UTC, Tobias Kortkamp <tobias.kortkamp@gmail.com> wrote:
Toggle quote (2 lines)
>** (org.gnome.Nautilus:11879): WARNING **: 16:07:20.550: Tracker 2 migration: Failed to parse key file data: Key file contains line “usage: tracker3 [--version] [--help]” which is not a key-value pair, group, or comment

There we go. There it is.

Toggle quote (2 lines)
>Same crash as before otherwise.

So it *still* fails to find tracker3 before segfaulting? Possible. Could be a missing substitution, or it falling back to some other (search) path...

Toggle quote (4 lines)
>If I run that command manually I just get the usage screen. In fact
>none of the tracker3 subcommands actually seem to work like they do on
>Fedora. Not even "help".

This sounds exactly like hypothesis #2 (mis-wrapping). I thought that was a thing of the past, but maybe the fix is still floating up to master, or incomplete...

Will be easy enough to confirm when I'm back at K.



Thanks!

T G-R

Sent on the go. Excuse or enjoy my brevity.
A
A
Attila Lendvai wrote on 3 Oct 2022 09:46
confirmation
(name . 58221@debbugs.gnu.org)(address . 58221@debbugs.gnu.org)
p9D4_8EuTBA970uCAvgUohZGNPOhxWAFtDLGWIVe4pVwALqEVAsS4j34aZ-YD30GyGkeuCiiaLTZR3AcX8joTFDbxm-XH5OE9baFOKnQs04=@lendvai.name
i can confirm this.

and thanks for including a bandaid!

--
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“There is no single effort more radical in its potential for saving the world than a transformation of the way we raise our children.”
— Marianne Williamson (1952–)
J
J
Jascha Geerds wrote on 6 Oct 2022 09:50
Re: bug#58221: nautilus: Crashes loading KgxNautilus plugin twice (problems with NAUTILUS_EXTENSION_PATH)
(address . bug-guix@gnu.org)(address . sughosha@proton.me)
fa90f02e-e5e7-4e7a-bafe-0bae375763f8@app.fastmail.com
Am Sa, 1. Okt 2022, um 20:14, schrieb Tobias Geerinckx-Rice via Bug reports for GNU Guix:
Toggle quote (4 lines)
> So it *still* fails to find tracker3 before segfaulting? Possible.
> Could be a missing substitution, or it falling back to some other
> (search) path...

It seems like this issue is due to commit 103d8229cbbd3baefe1f3b02bc2edff9c816b0bf where "gnome-terminal" is replaced by "gnome-console". There is some nautilus extension path stuff in the gnome-console derivation which I do not fully understand (cb2d5063a0353a3aa93d513979c8a7fc80db1460).
A
A
Alexandre Hannud Abdo wrote on 28 Oct 2022 15:32
(no subject)
(address . 58221@debbugs.gnu.org)
891fd33c-3973-6b63-1d2b-3fb1ff89b3b6@member.fsf.org
Ni! I'm facing the same issue at 5dda4c69f075dcee020e51f4559cb3df4d2336c4 (Posting to follow thread).
C
C
Christopher Baines wrote on 9 Nov 2022 13:54
Re: bug#58221: nautilus: Crashes loading KgxNautilus plugin twice (problems with NAUTILUS_EXTENSION_PATH)
(name . Tobias Kortkamp)(address . tobias.kortkamp@gmail.com)(address . 58221@debbugs.gnu.org)
87sfisjnew.fsf@cbaines.net
Tobias Kortkamp <tobias.kortkamp@gmail.com> writes:

Toggle quote (28 lines)
> I updated from c8112f3bd95269ce4aca12dedbfe61bb6b37acae to
> 0dec41f329c37a4293a2a8326f1fe7d9318ec455 and now Nautilus crashes
> with:
>
> (org.gnome.Nautilus:3664): GLib-GObject-WARNING **: 13:25:09.877: Two different plugins tried to register 'KgxNautilus'.
>
> (org.gnome.Nautilus:3664): GLib-GObject-CRITICAL **: 13:25:09.877: g_type_add_interface_dynamic: assertion 'G_TYPE_IS_INSTANTIATABLE (instance_type)' failed
>
> (org.gnome.Nautilus:3664): GLib-GObject-WARNING **: 13:25:09.877: Two different plugins tried to register 'KgxNautilusMenuItem'.
>
> ** (org.gnome.Nautilus:3664): WARNING **: 13:25:09.882: Tracker 2 migration: Couldn't run `tracker3`: Failed to execute child process “tracker3” (No such file or directory)
>
> (org.gnome.Nautilus:3664): GLib-GObject-WARNING **: 13:25:10.222: invalid cast from 'KgxNautilus' to '<invalid>'
>
> (org.gnome.Nautilus:3664): GLib-GObject-CRITICAL **: 13:25:10.222: g_object_new_valist: assertion 'G_TYPE_IS_OBJECT (object_type)' failed
>
> (org.gnome.Nautilus:3664): GLib-GObject-CRITICAL **: 13:25:10.222: g_object_get: assertion 'G_IS_OBJECT (object)' failed
>
> The problem seems to be that NAUTILUS_EXTENSION_PATH contains the same
> path twice and that it tries to load KgxNautilus from each of the paths:
>
> $ echo $NAUTILUS_EXTENSION_PATH
> /run/current-system/profile/lib/nautilus/site-extensions:/run/current-system/profile/lib/nautilus/site-extensions
>
> Running Nautilus like this works fine:
>
> $ NAUTILUS_EXTENSION_PATH=/run/current-system/profile/lib/nautilus/site-extensions nautilus

Thanks for investigating Tobi, I've been experiencing this too, but
didn't get anywhere trying to use GDB, so thanks for tracking it down!

This NAUTILUS_EXTENSION_PATH is a Guix specific modification made to
nautilus at build time, so yeah, something is up here and it's down to
us to fix it.

Maybe the duplication of the directory in the search path is something
to fix, but I guess the code in nautilus using the search path probalbly
needs to be smarter to avoid loading plugins twice.

Chris
-----BEGIN PGP SIGNATURE-----

iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmNro7dfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF
ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh
aW5lcy5uZXQACgkQXiijOwuE9XdI4w//eIMKSsd7hyHN7TZt8R+ndQbTswJBr9kV
DnnZRkmmNYiUchiMzKqoH3/YlIz8+oShDxMyPnw3AZNebea16CFvnd/v+b1JA814
Tdi0V1pa+6jv4wG7A0DGMLqNzcMx4ImigKgk8JX4quydV9iKmXORVCqZr8oYWxfD
oPzWZGqi4/NJYTyTIE46qLLv6ZJJfl63BnrF47lnImZ0JhQs2l6YDGu+AX0ICku8
wORxzM8faDkMege3uzixeN1hx+8WVXpC2RY+blsJdnfsp6TFhfi/ItRNHiwOu/gK
og7bGed27w39CvxUP73QZ83MoOqa/H4iboZoOAcq7jDaBxVkjAKe3oaO207ZAth9
GbOsPcEG6DeUmf/fHjHxsGNhXVSYgf5YOuyEbNYQVf6vxY9jWdPyPqhZmD30KgSV
woE4eZNd1hxdgQR4U2G6aQBqUEcPd2HryWypl6lcjgxO8XArptAdc6oG739cLRW/
W4dcVi7XIz0qVBRickGk82KrQ5bY5cZvUC2bsMuPvcSkVA0bPqLIWgpnIcK4vh8E
aMssEm8IsrQDjaneGSYv14rSg1MakNnG7YGoou8b6TMQaxkTIBOkpbmBQPCrjzoi
RD432z/oeBeAaT27/R0Ay5whjpoIx9Poda9EIilxSBk+SLpJT+3/WEodzg3v5kNr
udDFYueG7YE=
=/iT/
-----END PGP SIGNATURE-----

C
C
Christopher Baines wrote on 9 Nov 2022 13:58
(no subject)
(name . GNU bug tracker automated control server)(address . control@debbugs.gnu.org)
87o7tgjncl.fsf@cbaines.net
block 53214 by 58221
severity 58221 important
thanks
L
L
Liliana Marie Prikler wrote on 9 Nov 2022 20:37
Re: nautilus: Crashes loading KgxNautilus plugin twice (problems with NAUTILUS_EXTENSION_PATH)
6a3df82e8c2720bc7d3e792afa1fce5b7be874dc.camel@gmail.com
Am Samstag, dem 01.10.2022 um 13:29 +0200 schrieb Tobias Kortkamp:
Toggle quote (14 lines)
> Hi,
>
> The problem seems to be that NAUTILUS_EXTENSION_PATH contains the
> same path twice and that it tries to load KgxNautilus from each of
> the paths:
>
> $ echo $NAUTILUS_EXTENSION_PATH
> /run/current-system/profile/lib/nautilus/site-
> extensions:/run/current-system/profile/lib/nautilus/site-extensions
>
> Running Nautilus like this works fine:
>
> $ NAUTILUS_EXTENSION_PATH=/run/current-
> system/profile/lib/nautilus/site-extensions nautilus
I only know of one thing setting this variable, that being nautilus'
search-path. Do you by chance source some profile multiple times?

Cheers
C
C
Christopher Baines wrote on 10 Nov 2022 11:42
Re: bug#58221: nautilus: Crashes loading KgxNautilus plugin twice (problems with NAUTILUS_EXTENSION_PATH)
(name . Liliana Marie Prikler)(address . liliana.prikler@gmail.com)
87o7tft7da.fsf@cbaines.net
Liliana Marie Prikler <liliana.prikler@gmail.com> writes:

Toggle quote (19 lines)
> Am Samstag, dem 01.10.2022 um 13:29 +0200 schrieb Tobias Kortkamp:
>> Hi,
>>
>> The problem seems to be that NAUTILUS_EXTENSION_PATH contains the
>> same path twice and that it tries to load KgxNautilus from each of
>> the paths:
>>
>> $ echo $NAUTILUS_EXTENSION_PATH
>> /run/current-system/profile/lib/nautilus/site-
>> extensions:/run/current-system/profile/lib/nautilus/site-extensions
>>
>> Running Nautilus like this works fine:
>>
>> $ NAUTILUS_EXTENSION_PATH=/run/current-
>> system/profile/lib/nautilus/site-extensions nautilus
>
> I only know of one thing setting this variable, that being nautilus'
> search-path. Do you by chance source some profile multiple times?

There might be a related issue where there's duplicates in search paths,
I've tested in a simple VM and I see the duplication in
NAUTILUS_EXTENSION_PATH.

Anyway, this probably should be something that doesn't cause nautilus to
segfault.

Chris
-----BEGIN PGP SIGNATURE-----

iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmNs1nFfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF
ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh
aW5lcy5uZXQACgkQXiijOwuE9XfRHxAAkseShh7/GwC2n4+nNVnhMvAMWJFuh98s
dNFDRJ9A1PsmGBL/Ywq+mOzU+ModUWvjcuR2UzKC60mkDzihgI/lDAog3NSg39nX
ylhOWX6a37kb0Mjie3Z3v5uJnJOU5atr7X8fneUaBSW0T8+wfSnLLLXVnz7C1Slu
KWhFla5+yNoVxrHP+QSbFtzUdyToVTMKH9FV1FteV3PYeXm+bKN2HRyJQJcj6ASD
WiY9G8ecKkrfn8kXFbRTx4hcox+6IAj5rOk3z/D8QH6pua3qvGY/nYfGAY3rbCbt
KylG1HhJO6clFZH7VAAKX25YMxmRdJd/1vq0YEruI0nCub2sbA3NDWzTXFzDZtuf
OTiNuAN2asqJ88bTHJeDVQ/zOtvus0B9BfdJYY0X1vI1q/bZAZcz1siMaLnGaQ6+
vupdOaaXDttYmuaCcL7L/baZ7lGN+m6Vj9rQ8fC8YyK/oox5uz310LM0TMgbRxTP
SKmRtNM+jKwfslijflcq9h3oReSBWMXFZ+PKBDzvgA7pBJzlqSqlhhUpR3wCEjXX
aIz6GisAnyEDbxvUn0tcXnCvv9Faef01D1thWW6Av8DCOVyjcFWMSMNRrYKxdDSS
gT00P0TuJJ3zryiXSsqpi7nMW3eMPigf/+U5DT4GDz6tX9vzSJLqhohvxiIV2G3a
6l3nyvfrQ2E=
=Zn+C
-----END PGP SIGNATURE-----

L
L
Ludovic Courtès wrote on 20 Nov 2022 18:48
(name . Christopher Baines)(address . mail@cbaines.net)
87ilj95xft.fsf@gnu.org
Hi!

Christopher Baines <mail@cbaines.net> skribis:

Toggle quote (28 lines)
> Liliana Marie Prikler <liliana.prikler@gmail.com> writes:
>
>> Am Samstag, dem 01.10.2022 um 13:29 +0200 schrieb Tobias Kortkamp:
>>> Hi,
>>>
>>> The problem seems to be that NAUTILUS_EXTENSION_PATH contains the
>>> same path twice and that it tries to load KgxNautilus from each of
>>> the paths:
>>>
>>> $ echo $NAUTILUS_EXTENSION_PATH
>>> /run/current-system/profile/lib/nautilus/site-
>>> extensions:/run/current-system/profile/lib/nautilus/site-extensions
>>>
>>> Running Nautilus like this works fine:
>>>
>>> $ NAUTILUS_EXTENSION_PATH=/run/current-
>>> system/profile/lib/nautilus/site-extensions nautilus
>>
>> I only know of one thing setting this variable, that being nautilus'
>> search-path. Do you by chance source some profile multiple times?
>
> There might be a related issue where there's duplicates in search paths,
> I've tested in a simple VM and I see the duplication in
> NAUTILUS_EXTENSION_PATH.
>
> Anyway, this probably should be something that doesn't cause nautilus to
> segfault.

Agreed! I don’t use GNOME and I don’t even know what KgxNautilus is,
but here’s a patch that may fix this by ensuring Nautilus doesn’t load
the same extension twice.

Could you give it a spin and lemme know if it solves this issue?\

That’ll get us closer to a release. :-)

Thanks,
Ludo’.
Toggle diff (121 lines)
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 3d942635a2..78e65d7400 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -9671,7 +9671,9 @@ (define-public nautilus
name "-" version ".tar.xz"))
(sha256
(base32
- "1cncyiyh79w1id6a6s2f0rxmgwl65lp4ml4afa0z35jrnwp2s8cr"))))
+ "1cncyiyh79w1id6a6s2f0rxmgwl65lp4ml4afa0z35jrnwp2s8cr"))
+ (patches
+ (search-patches "nautilus-extension-search-path.patch"))))
(build-system meson-build-system)
(arguments
(list
@@ -9685,27 +9687,6 @@ (define-public nautilus
(substitute* "test/automated/displayless/meson.build"
(("^foreach t: tracker_tests" all)
(string-append "tracker_tests = []\n" all)))))
- (add-after 'unpack 'make-extensible
- (lambda _
- (substitute* "src/nautilus-module.c"
- (("static gboolean initialized = FALSE;" all)
- (string-append all "
-const char *extension_path;
-char **extension_dirs, **d;
-")
- )
- (("load_module_dir \\(NAUTILUS_EXTENSIONDIR\\);" all)
- (string-append all
- "
-extension_path = g_getenv (\"NAUTILUS_EXTENSION_PATH\");
-if (extension_path)
-{
- extension_dirs = g_strsplit (extension_path, \":\", -1);
- for (d = extension_dirs; d != NULL && *d != NULL; d++)
- load_module_dir(*d);
- g_strfreev(extension_dirs);
-}
-")))))
(add-after 'unpack 'skip-gtk-update-icon-cache
;; Don't create 'icon-theme.cache'.
(lambda _
diff --git a/gnu/packages/patches/nautilus-extension-search-path.patch b/gnu/packages/patches/nautilus-extension-search-path.patch
new file mode 100644
index 0000000000..aa870d9212
--- /dev/null
+++ b/gnu/packages/patches/nautilus-extension-search-path.patch
@@ -0,0 +1,72 @@
+diff --git a/src/nautilus-module.c b/src/nautilus-module.c
+index bf474bd..42e2a4e 100644
+--- a/src/nautilus-module.c
++++ b/src/nautilus-module.c
+@@ -211,6 +211,10 @@ static void
+ load_module_dir (const char *dirname)
+ {
+ GDir *dir;
++ static GHashTable *loaded = NULL;
++
++ if (loaded == NULL)
++ loaded = g_hash_table_new (g_str_hash, g_str_equal);
+
+ dir = g_dir_open (dirname, 0, NULL);
+
+@@ -221,15 +225,22 @@ load_module_dir (const char *dirname)
+ while ((name = g_dir_read_name (dir)))
+ {
+ if (g_str_has_suffix (name, "." G_MODULE_SUFFIX))
+- {
+- char *filename;
+-
+- filename = g_build_filename (dirname,
+- name,
+- NULL);
+- nautilus_module_load_file (filename);
+- g_free (filename);
+- }
++ {
++ /* Make sure each module is loaded only twice or this could
++ lead to a crash. Double loading can occur if DIRNAME
++ occurs more than once in $NAUTILUS_EXTENSION_PATH. */
++ if (!g_hash_table_contains (loaded, name))
++ {
++ char *filename;
++
++ filename = g_build_filename (dirname,
++ name,
++ NULL);
++ nautilus_module_load_file (filename);
++ g_hash_table_add (loaded, g_strdup (name));
++ g_free (filename);
++ }
++ }
+ }
+
+ g_dir_close (dir);
+@@ -257,10 +268,24 @@ nautilus_module_setup (void)
+
+ if (!initialized)
+ {
++ const gchar *extension_path;
+ initialized = TRUE;
+
+ load_module_dir (NAUTILUS_EXTENSIONDIR);
+
++ /* Load additional modules from the user-provided search path. */
++ extension_path = g_getenv ("NAUTILUS_EXTENSION_PATH");
++ if (extension_path)
++ {
++ char **extension_dirs, **d;
++
++ extension_dirs = g_strsplit (extension_path, ":", -1);
++ for (d = extension_dirs; d != NULL && *d != NULL; d++)
++ load_module_dir (*d);
++
++ g_strfreev (extension_dirs);
++ }
++
+ eel_debug_call_at_shutdown (free_module_objects);
+ }
+ }
L
L
Ludovic Courtès wrote on 20 Nov 2022 18:48
control message for bug #58221
(address . control@debbugs.gnu.org)
87h6yt5xfl.fsf@gnu.org
tags 58221 + patch
quit
C
C
Christopher Baines wrote on 20 Nov 2022 19:02
Re: bug#58221: nautilus: Crashes loading KgxNautilus plugin twice (problems with NAUTILUS_EXTENSION_PATH)
(name . Ludovic Courtès)(address . ludo@gnu.org)
874jutwljp.fsf@cbaines.net
Ludovic Courtès <ludo@gnu.org> writes:

Toggle quote (8 lines)
> Agreed! I don’t use GNOME and I don’t even know what KgxNautilus is,
> but here’s a patch that may fix this by ensuring Nautilus doesn’t load
> the same extension twice.
>
> Could you give it a spin and lemme know if it solves this issue?\
>
> That’ll get us closer to a release. :-)

I've tried it out and it looks to fix the issue, please push!

Thanks,

Chris
-----BEGIN PGP SIGNATURE-----

iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmN6a+pfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF
ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh
aW5lcy5uZXQACgkQXiijOwuE9XcGbw/6Al+eFzqMluGh9yiq5BotR1klWDxdWScK
yRWp0HKsOZaAlTK7Wg3eny90Q0aehzTwy/qlVAG0ClXT9fSrYFihU/+BX/wEj7H5
JJ0XSS+0JG0ssbj2DJh0P6svjFsE6cvD6mzL+llXbXdZ9dv/Vmdfkb0PAwneRAwl
m+G0vCOrkizFMEhGv7LoRuHe1KAVSN4oAfU58PoReRWthKmJZA8fNNCaiDEQ2Ke/
eAZbD7A0/vASraSDtIEFaCoA9K+7aMBpjGecIfuK4BIg7ju9ZipV426+Hbo7s1a9
Uz3Lf8wOK6jwGfE9V1oukOrdGmTmkwkVIWngc6LEgAjxLmC0QGdgD5wq3TnFEG+X
UwXrj+XXkF33RZUiG5DvOHrNduOn6WgHTG0VQRFLF5B+uf0Vf8mKP+tVxczSMTJB
P6GCyVbnzKu6r/GR2ORBkf5vnauY40G7BK3FVVMjrn0XwWCzsyHK/HHJ0QuMODDr
LdcgGDcYsIeKs1B2/lM6yUdgGiTQSzB7JveKwchVPYVpZ/vLWVlwQwIkQiY6k22O
jHlKN6p+aCQBpog+KYpOKcy9YAcVE+ypjKm+bjlcsiY38JvNP0njMT4weifQMjVa
IQz3rI1LaWvfWFxxYFQ5xitXc9SAhM3/pvzh4VvNFFIgNjbarebzefAKI3hDF/bu
lbTVoEUIGnI=
=nnnP
-----END PGP SIGNATURE-----

L
L
Ludovic Courtès wrote on 20 Nov 2022 23:23
(name . Christopher Baines)(address . mail@cbaines.net)
874jut5kp2.fsf@gnu.org
Hi Chris,

Christopher Baines <mail@cbaines.net> skribis:

Toggle quote (12 lines)
> Ludovic Courtès <ludo@gnu.org> writes:
>
>> Agreed! I don’t use GNOME and I don’t even know what KgxNautilus is,
>> but here’s a patch that may fix this by ensuring Nautilus doesn’t load
>> the same extension twice.
>>
>> Could you give it a spin and lemme know if it solves this issue?\
>>
>> That’ll get us closer to a release. :-)
>
> I've tried it out and it looks to fix the issue, please push!

Thanks for the quick reply! Pushed as
99ba4ddb03b396f56764a25317f40d4501380704.

Ludo’.
Closed
?