folder-color icon indicating copy to clipboard operation
folder-color copied to clipboard

folder-color-nautilus causes nautilus 44.2.1 to not open

Open personaingrata opened this issue 1 year ago • 30 comments

i'm on Arch Linux Gnome/Wayland and the latest version of folder-color-nautilus from the AUR 0.3.2-1 causes nautilus 44.2.1 to not open in 2 of 5 times. nautilus need to be killed to get out and to retry to open nautilus. the previous version of folder-color-nautilus already caused nautilus to crash when going back and forth in the folders, this seems however be fixed now, but nautilus crashes on launch.

the journalctl doesn't give any output when nautilus crashes. if you tell me how to take debug logs, i'll happily provide them.

personaingrata avatar Jun 13 '23 16:06 personaingrata

Hi, please, which Nautilus version and what is dump if you run nautilus - q and nautilus from Terminal. Paste dump please. Thanks!

costales avatar Jun 13 '23 16:06 costales

nautilus 44.2.1

launching nautilus from the terminal gives me nothing: $ nautilus
** Message: 18:28:17.398: Connecting to org.freedesktop.Tracker3.Miner.Files

nautilus -q from another terminal times out: $ nautilus -q [1] ** Message: 18:29:59.358: Connecting to org.freedesktop.Tracker3.Miner.Files Failed to register: Zeitüberschreitung wurde erreicht

in order to close nautilus i have to: $ kill PID

like i said before theres no dump, nothing. jourmalctl is just logging that it's connecting to tracker miner

i verified it that it's caused by folder-color and not any other extensiom, in fact i had folder-color-nautilus not installed for over a week and there have been no crashes, i just reinstalled and boom crash.

thanks for the quick reply btw!

personaingrata avatar Jun 13 '23 16:06 personaingrata

How did you install folder color? Thanks

costales avatar Jun 13 '23 20:06 costales

i installed via the AUR (arch user repository) with makepkg and pacman, standard arch tools... there are currently 2 packages folder-color-nautilus which is the current latest 0.3.2-1 (gets updated in a timely manner) and folder-color-nautilus-git which directly pulls source from git and builds the package. i'm a happy user of folder-color for years actually, the issues started with nautilus 43 i think

personaingrata avatar Jun 13 '23 22:06 personaingrata

Hi, Please, try to overwrite this file /usr/share/nautilus-python/extensions/folder-color.py with this one: https://github.com/costales/folder-color/blob/master/nautilus-extension/folder-color.py Then, kill nautilus: nautilus -q And test again. Thank you!

Costales.

On Wed, Jun 14, 2023 at 12:05 AM personaingrata @.***> wrote:

i installed via the AUR (arch user repository) with makepkg and pacman, standard arch tools... there are currently 2 packages folder-color-nautilus which is the current latest 0.3.2-1 (gets updated in a timely manner) and folder-color-nautilus-git which directly pulls source from git and builds the package. i'm a happy user of folder-color for years actually, the issues started with nautilus 43 i think

— Reply to this email directly, view it on GitHub https://github.com/costales/folder-color/issues/28#issuecomment-1590090032, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABM5GQUMOOTQFUTASBAMFELXLDPZDANCNFSM6AAAAAAZFEAY7M . You are receiving this because you commented.Message ID: @.***>

costales avatar Jun 14 '23 14:06 costales

with the new folder-color.py the issue got worse. i tried to open nautilus and it opened 1 times out of 10 trys

personaingrata avatar Jun 14 '23 19:06 personaingrata

From your previous log, Folder Color doesn't generate any error:

$ nautilus
** Message: 18:28:17.398: Connecting to org.freedesktop.Tracker3.Miner.Files

nautilus -q from another terminal times out:
$

I would say it's a Nautilus issue...

costales avatar Jun 14 '23 19:06 costales

Hi @personaingrata , I am the maintainer of folder-color-nautilus-git in the AUR. Could you please try uninstalling folder-color-nautilus and installing folder-color-nautilus-git to see if the problem persists?

anagram3k avatar Jun 18 '23 06:06 anagram3k

Hi @anagram3k.

First, thank you for maintain it! ❤️ So appreciated!

I don't find the source code in this URL. Because of the line 28 I suppose you are downloading it from Gitlub and then, customize for the system, right?

I did a big change to Folder Color in the new version (1 month ago) and I updated the scripts for installing it in Nautilus. Please, could you review it?

Arch is using GTK4 (?) Are you using then with GTK4 the code in folder nautilus-extension? Is it killing Nautilus in your PC too?

Thank you in advance!

costales avatar Jun 18 '23 08:06 costales

Hi @anagram3k.

First, thank you for maintain it! heart So appreciated!

You are welcome, @costales

I don't find the source code in this URL. Because of the line 28 I suppose you are downloading it from Gitlub and then, customize for the system, right?

makepkg uses the variable source to automatically get the sources from the github.

I did a big change to Folder Color in the new version (1 month ago) and I updated the scripts for installing it in Nautilus. Please, could you review it?

Yes, I saw it. Looks ok to me. For some reason, the folder-color-nautilus package never worked for me. I don't know why and the maintainer is not responding.

I always used the folder-color-nautilus-git without problems, but when you made the modification in the scripts it broke the install and the package didn't have a maintainer at the time. So, I become the maintainer.

Arch is using GTK4 (?) Are you using then with GTK4 the code in folder nautilus-extension? Is it killing Nautilus in your PC too?

Yes, Arch uses GTK4 in nautilus. Because the installation script is very simple, I just copied the relevant lines to the MAKEPKG. I am watching your github, I will update the MAKEPKG if you make any modifications.

Right now, it is not killing nautilus and I will update it to do so.

Thank you in advance!

11

anagram3k avatar Jun 18 '23 17:06 anagram3k

I have exactly the same problem in Manjaro, gnome 44.3, Nautilus 44.2.1, with folder-color-nautilus 0.3.2-1 in aur or folder-color-nautilus-git r42.61382f2-1. Is it identified ? fixed ? will it be fixed ? thank you :)

jcsekinger avatar Aug 03 '23 07:08 jcsekinger

@jcsekinger I would say it's a Nautilus issue, not a Folder Color issue...

costales avatar Aug 05 '23 13:08 costales

@jcsekinger I would say it's a Nautilus issue, not a Folder Color issue...

thank you https://gitlab.gnome.org/GNOME/nautilus/-/issues/3046

jcsekinger avatar Aug 06 '23 04:08 jcsekinger

@jcsekinger I would say it's a Nautilus issue, not a Folder Color issue...

answer from António Fernandes → https://gitlab.gnome.org/GNOME/nautilus/-/issues/3046#note_1807888

jcsekinger avatar Aug 06 '23 07:08 jcsekinger

Maybe is this related to an incompatibility with other extensions installed? I don't understand how this bug can exist, my system is also an arch system with the same packages installed.

@jcsekinger Could you please list the files you have in these directories?

~/.local/share/nautilus-python/extensions/
~/.local/share/nautilus/scripts
/usr/share/nautilus-python/

anagram3k avatar Aug 29 '23 18:08 anagram3k

thank you !

~/.local/share/nautilus/tracker2-migration-complete
~/.local/share/nautilus/tags/meta.db
~/.local/share/nautilus/tags/ontologies.gvdb

~/.local/share/nautilus/scripts/ is empty
~/.local/share/nautilus-python/extensions/ doesn’t exist

/usr/share/nautilus-python/extensions/nautilus-gsconnect.py
/usr/share/nautilus-python/extensions/__pycache__/folder-color.cpython-311.pyc.old
/usr/share/nautilus-python/extensions/__pycache__/nautilus-gsconnect.cpython-311.pyc

I don’t know where are the extensions. On Nautilus (nemo too), I have the dropbox extension — but I tried folder-color-nautilus with and without this extension…

jcsekinger avatar Aug 29 '23 19:08 jcsekinger

I have this issue on Arch whether installed from AUR or by cloning the repo and doing it manually. While nautilus crashes on initial open if I kill the process and open it enough times it will randomly succeed to open and the extension functions normally from then on unless nautilus is completely killed so there's irregular behavior. This is the only extension installed and nautilus opens fine with python-nautilus installed as long as folder-color is not also installed. Nautilus does not dump any errors and hangs on connecting to tracker.

cryofault avatar Aug 29 '23 21:08 cryofault

Do you use GTK 4.0? Maybe higher version? https://github.com/costales/folder-color/blob/61382f24039156e6db3e68ce292274125793f59d/nautilus-extension/folder-color.py#L16

costales avatar Aug 29 '23 22:08 costales

gtk4-1:4.12.1-1

I also attempted downgrading gtk4 to see if it made a difference but no dice.

cryofault avatar Aug 29 '23 22:08 cryofault

Could you try to edit that line to your right version? Restart nautilus and try again?

On Tue, Aug 29, 2023, 16:30 Parker @.***> wrote:

gtk4-1:4.12.1-1

I also attempted downgrading gtk4 to see if it made a difference but no dice.

— Reply to this email directly, view it on GitHub https://github.com/costales/folder-color/issues/28#issuecomment-1698228546, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABM5GQQQ5GLKMBGMVOD52ADXXZUR7ANCNFSM6AAAAAAZFEAY7M . You are receiving this because you were mentioned.Message ID: @.***>

costales avatar Aug 29 '23 22:08 costales

Trying to use anything besides 4.0 with any version of gtk4 will cause "ValueError: Namespace Gtk not available for version 4.XX" for me.

cryofault avatar Aug 29 '23 22:08 cryofault

Ok so to make things weirder I tried to log more info by tracing it with: sudo strace -u parker -E HOME=/home/parker nautilus

Running it like this loads nautilus with no errors almost instantly every single time so far and the extension functions perfectly while the hang still occurs when I run nautilus normally as the user. If I trace the user process by pid I just get a constant barrage of:

[pid 10818] futex(0x7f6b30761238, FUTEX_WAKE_PRIVATE, 1) = 0
[pid 10818] futex(0x7f6b30761230, FUTEX_WAIT_BITSET_PRIVATE, 0, {tv_sec=868, tv_nsec=690966529}, FUTEX_BITSET_MATCH_ANY) = -1 ETIMEDOUT (Connection timed out)

cryofault avatar Aug 30 '23 00:08 cryofault

Hey people, thanks for all the answers. With the extension installed, please open a terminal, execute these commands, and paste the result when the crash happens.

nautilus -q
G_MESSAGES_DEBUG=all G_DEBUG=all NAUTILUS_DEBUG=all nautilus

Again, thanks for all the help. This is a difficult situation to diagnose.

anagram3k avatar Aug 30 '23 07:08 anagram3k

Hey people, thanks for all the answers. With the extension installed, please open a terminal, execute these commands, and paste the result when the crash happens.

nautilus -q
G_MESSAGES_DEBUG=all G_DEBUG=all NAUTILUS_DEBUG=all nautilus

Again, thanks for all the help. This is a difficult situation to diagnose.

https://pastebin.com/10bEF3hu

jcsekinger avatar Aug 30 '23 07:08 jcsekinger

Mine ends up looking practically the same with bookmark_file_changed_callback for every bookmark I have and wouldn't you know it if I remove all my bookmarks nautilus successfully opens with the extension consistently again. Not sure what the solution is but for now starring my bookmark folder instead seems to cause no issues.

cryofault avatar Aug 30 '23 10:08 cryofault

Mine ends up looking practically the same with bookmark_file_changed_callback for every bookmark I have and wouldn't you know it if I remove all my bookmarks nautilus successfully opens with the extension consistently again. Not sure what the solution is but for now starring my bookmark folder instead seems to cause no issues.

I confirm. I had to delete my bookmarks for Nautilus to start each time, along with folder-color-nautilus.

jcsekinger avatar Aug 30 '23 12:08 jcsekinger

Thank you guys! Because of your help, I was able to reproduce the error!

Steps to reproduce:

  1. Create a directory
  2. Create a bookmark for this directory
  3. Remove the directory
  4. Stop Nautilus
  5. Start Nautilus and start clicking on everything

The bug may be related to a regression to this bug

And I think if you don't have all the special dirs (desktop, documents, downloads, music, pictures, public, templates, videos), may also trigger this problem.

But for the first time, @costales can debug this problem. We are very close to a fix.

anagram3k avatar Aug 30 '23 21:08 anagram3k

Can someone confirm whether the patches from https://gitlab.gnome.org/GNOME/nautilus/-/merge_requests/1339 fix this bug?

antoniojpfernandes avatar Nov 04 '23 15:11 antoniojpfernandes

nautilus 44.3 has been released with a bugfix which may have resolved this. Can someone confirm?

antoniojpfernandes avatar Dec 11 '23 14:12 antoniojpfernandes

nautilus 44.3 has been released with a bugfix which may have resolved this. Can someone confirm?

no fix currently running Nautilus 45.2.1 and the issue persists, devs seem to not care

personaingrata avatar Jan 07 '24 15:01 personaingrata