You are not logged in.
Hello,
Am having some issues with thunar and USB flash drives. eject/unmount operation is taking long (1 min+). During that time, thunar UI freezes too..
Running thunar '1.8.6' from arch linux.
As I read through docs, came to know that thunar uses gio/gvfs backend for mount/unmount/eject operations. But when I test with the Files (nautilus), unmount/eject works instantly. As the nautilus uses same gio/gvfs, issue is in thunar or some of my configurations ?
Would like to get some help in debugging the issue.
Thanks !
Last edited by dixoncx (2019-07-17 19:08:38)
Offline
To cover some low hanging fruit, what are the outputs of
hostnamectl
printenv | grep DBUS
loginctl session-statuspost these in [ code ] [ /code ] tags. Any terminal output in thunar suggesting why it might take so long?
Offline
Info requested:
[dixon@vaio-arch ~]$ hostnamectl
Static hostname: vaio-arch
Icon name: computer-laptop
Chassis: laptop
Machine ID: bb3b7b79dc464e1ba44a4a16b49e231f
Boot ID: 11f37e318ed84e2898f5ca0815495530
Operating System: Arch Linux
Kernel: Linux 5.1.15-arch1-1-ARCH
Architecture: x86-64
[dixon@vaio-arch ~]$ printenv | grep DBUS
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
[dixon@vaio-arch ~]$ loginctl session-status
1 - dixon (1000)
Since: Mon 2019-07-01 22:21:34 IST; 2min 15s ago
Leader: 611 (lxdm-session)
Seat: seat0; vc1
TTY: tty1
Service: lxdm; type x11; class user
State: active
Unit: session-1.scope
├─ 611 /usr/lib/lxdm/lxdm-session
├─ 625 i3
├─ 638 urxvt
├─ 644 python3 /usr/bin/redshift-gtk
├─ 646 /usr/lib/firefox/firefox
├─ 649 clementine
├─ 651 i3bar --bar_id=bar-0 --socket=/run/user/1000/i3/ipc-socket.625
├─ 655 urxvtd -q -f -o
├─ 658 i3status
├─ 662 bash
├─ 708 /usr/bin/redshift -v
├─ 718 /usr/bin/clementine-tagreader /tmp/clementine_1362490623
├─ 720 /usr/bin/clementine-tagreader /tmp/clementine_1540824978
├─ 721 /usr/bin/clementine-tagreader /tmp/clementine_499930934
├─ 722 /usr/bin/clementine-tagreader /tmp/clementine_588585229
├─ 879 /usr/lib/firefox/firefox -contentproc -childID 1 -isForBrowser -prefsLen 1 -prefMapSize 204997 -parentBuildID 20190620195126>
├─ 919 /usr/lib/firefox/firefox -contentproc -childID 2 -isForBrowser -prefsLen 41 -prefMapSize 204997 -parentBuildID 2019062019512>
├─ 927 /usr/lib/firefox/firefox -contentproc -childID 3 -isForBrowser -prefsLen 41 -prefMapSize 204997 -parentBuildID 2019062019512>
├─ 941 /usr/lib/firefox/firefox -contentproc -childID 4 -isForBrowser -prefsLen 41 -prefMapSize 204997 -parentBuildID 2019062019512>
├─ 962 /usr/lib/firefox/firefox -contentproc -childID 5 -isForBrowser -prefsLen 41 -prefMapSize 204997 -parentBuildID 2019062019512>
├─ 999 /usr/lib/firefox/firefox -contentproc -childID 6 -isForBrowser -prefsLen 41 -prefMapSize 204997 -parentBuildID 2019062019512>
├─1042 /usr/lib/firefox/firefox -contentproc -childID 7 -isForBrowser -prefsLen 41 -prefMapSize 204997 -parentBuildID 2019062019512>
├─1068 /usr/lib/firefox/firefox -contentproc -childID 8 -isForBrowser -prefsLen 41 -prefMapSize 204997 -parentBuildID 2019062019512>
├─1174 /usr/lib/firefox/firefox -contentproc -childID 9 -isForBrowser -prefsLen 5778 -prefMapSize 204997 -parentBuildID 20190620195>
├─1343 /opt/sublime_text/sublime_text
├─1359 /opt/sublime_text/plugin_host 1343 --auto-shell-env
├─1367 urxvt
├─1368 bash
├─1390 urxvt
├─1391 bash
├─1393 thunar
├─1416 loginctl session-status
└─1417 less
Jul 01 22:21:34 vaio-arch systemd[1]: Started Session 1 of user dixon.I see this in terminal.. 'BLADE' is the name of the partition..
[dixon@vaio-arch ~]$ thunar
(thunar:1393): thunar-WARNING **: 22:29:02.764: Content type loading failed for BLADE: Error when getting information for file “/run/media/dixon/BLADE”: No such file or directoryDetails about USB drive/partition:
[dixon@vaio-arch ~]$ sudo fdisk -l
...
Disk /dev/sdb: 7.23 GiB, 7761035264 bytes, 15158272 sectors
Disk model: Cruzer Blade
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000Offline
...
├─1393 thunar
...
I think this may be your problem. See: https://wiki.archlinux.org/index.php/Th … me_Manager
Offline
For testing, I fresh-installed archlinux into another partition, with xorg, xfce, thunar and gvfs.. Here unmount/eject for usb drives works fine (happens instantly, no freezing..) !
Looks like there is some issue with my original archlinux setup.. Still trying to figure out..
Last edited by dixoncx (2019-07-04 17:00:07)
Offline
I think this may be your problem. See: https://wiki.archlinux.org/index.php/Th … me_Manager
I see that Volume Manager is for handling automount and simillar actions.. Thunar can still mount drives manually without volume manager. My issues are related to unmount/eject..
Offline
I was thinking that running thunar as a daemon might help with the issue (I think that Xfce does that by default).
Offline
I was thinking that running thunar as a daemon might help with the issue (I think that Xfce does that by default).
Oh.. i missed that part earlier..
But running as daemon also doesn't solve my issue.. Logging into xfce desktop environment also doesn't help.. (it starts thunar as daemon as you said).
Offline
TL;DR
Problem solved !
By installing and launching one of 'Notification server' mentioned here:
https://wiki.archlinux.org/index.php/De … on_servers
---
I tried to debug thunar with gio debug as mentioned here
https://developer.gnome.org/gio/stable/ … -apps.html
as:
$ G_DBUS_DEBUG=all tunarWhile analyzing logs, found this timeout related to org.freedesktop.Notifications:
...
========================================================================
GDBus-debug:Call:
>>>> ASYNC org.freedesktop.DBus.StartServiceByName()
on object /org/freedesktop/DBus
owned by name org.freedesktop.DBus (serial 109)
========================================================================
GDBus-debug:Message:
>>>> SENT D-Bus message (281 bytes)
Type: method-call
Flags: none
Version: 0
Serial: 106
Headers:
path -> objectpath '/org/freedesktop/DBus'
interface -> 'org.freedesktop.DBus'
member -> 'RemoveMatch'
destination -> 'org.freedesktop.DBus'
signature -> signature 's'
Body: ("type='signal',sender='org.freedesktop.Notifications',interface='org.freedesktop.Notifications',path='/org/freedesktop/Notifications'",)
UNIX File Descriptors:
(none)
0000: 6c 01 00 01 89 00 00 00 6a 00 00 00 7c 00 00 00 l.......j...|...
0010: 01 01 6f 00 15 00 00 00 2f 6f 72 67 2f 66 72 65 ..o...../org/fre
0020: 65 64 65 73 6b 74 6f 70 2f 44 42 75 73 00 00 00 edesktop/DBus...
0030: 02 01 73 00 14 00 00 00 6f 72 67 2e 66 72 65 65 ..s.....org.free
0040: 64 65 73 6b 74 6f 70 2e 44 42 75 73 00 00 00 00 desktop.DBus....
0050: 06 01 73 00 14 00 00 00 6f 72 67 2e 66 72 65 65 ..s.....org.free
0060: 64 65 73 6b 74 6f 70 2e 44 42 75 73 00 00 00 00 desktop.DBus....
0070: 08 01 67 00 01 73 00 00 03 01 73 00 0b 00 00 00 ..g..s....s.....
0080: 52 65 6d 6f 76 65 4d 61 74 63 68 00 00 00 00 00 RemoveMatch.....
0090: 84 00 00 00 74 79 70 65 3d 27 73 69 67 6e 61 6c ....type='signal
00a0: 27 2c 73 65 6e 64 65 72 3d 27 6f 72 67 2e 66 72 ',sender='org.fr
00b0: 65 65 64 65 73 6b 74 6f 70 2e 4e 6f 74 69 66 69 eedesktop.Notifi
00c0: 63 61 74 69 6f 6e 73 27 2c 69 6e 74 65 72 66 61 cations',interfa
00d0: 63 65 3d 27 6f 72 67 2e 66 72 65 65 64 65 73 6b ce='org.freedesk
00e0: 74 6f 70 2e 4e 6f 74 69 66 69 63 61 74 69 6f 6e top.Notification
00f0: 73 27 2c 70 61 74 68 3d 27 2f 6f 72 67 2f 66 72 s',path='/org/fr
0100: 65 65 64 65 73 6b 74 6f 70 2f 4e 6f 74 69 66 69 eedesktop/Notifi
0110: 63 61 74 69 6f 6e 73 27 00 cations'.
========================================================================
...
========================================================================
GDBus-debug:Call:
<<<< ASYNC COMPLETE org.freedesktop.DBus.StartServiceByName() (serial 0)
FAILED: Timeout was reached
========================================================================
...So, guessed it might be due to not properly setting up notification server.
So tried to setup Dunst notification daemon as specified in:
https://wiki.archlinux.org/index.php/De … on_servers
https://wiki.archlinux.org/index.php/Dunst
And now thunar works fine ! Unmount/Eject works instantly without UI freeze.
Offline
It's caused by this bug:
https://bugzilla.xfce.org/show_bug.cgi?id=16690
Offline