Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 31 Jul 2014, 05:34
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » System
pup-volume-monitor-0.1.15 and desktop-drive-icons-0.0.6
Post new topic   Reply to topic View previous topic :: View next topic
Page 5 of 10 [149 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 Next
Author Message
gray


Joined: 23 Feb 2007
Posts: 313
Location: Adelaide - South Australia

PostPosted: Mon 15 Oct 2012, 05:43    Post subject: compile failed  

Mavrothal,

Did you recompile Glib ? The glib with Precise is not compiled with gvfs support.
Back to top
View user's profile Send private message 
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Mon 15 Oct 2012, 09:47    Post subject:  

mavrothal wrote:

Code:

#dmesg
desktop_drive_i[5608]: segfault at 48 ip b65e2ea4 sp bff81dd0 error 6 in libpup-volume-monitor.so.0.0.0[b65df000+9000]


Maybe try deleting libpup-volume-monitor.so and libpup-volume-monitor.so.0 symlinks in /usr/lib/gio/modules/ ?
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 1571

PostPosted: Tue 16 Oct 2012, 11:00    Post subject:  

akash_rawal wrote:
mavrothal wrote:

Code:

#dmesg
desktop_drive_i[5608]: segfault at 48 ip b65e2ea4 sp bff81dd0 error 6 in libpup-volume-monitor.so.0.0.0[b65df000+9000]


Maybe try deleting libpup-volume-monitor.so and libpup-volume-monitor.so.0 symlinks in /usr/lib/gio/modules/ ?


Yes. This solved this problem.
However, desktop_drive_icons does not work (see image). No errors anywhere. Any ideas?
drive_icons.png
 Description   Desktop drive icons in Precise pup
 Filesize   23.65 KB
 Viewed   1062 Time(s)

drive_icons.png


_________________
Kids all over the world go around with an XO laptop. They deserve one puppy (or many) too Very Happy
Back to top
View user's profile Send private message 
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Tue 16 Oct 2012, 13:15    Post subject:  

mavrothal wrote:

Yes. This solved this problem.
However, desktop_drive_icons does not work (see image). No errors anywhere. Any ideas?


Looks like the volume monitor is not working.

Can you see drive icon(s) in file chooser dialogs? (e.g. see screenshot in first post)

If no what type of device is sda1?
What is the output of blkid with sda1 connected?
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 1571

PostPosted: Tue 16 Oct 2012, 13:29    Post subject:  

akash_rawal wrote:
mavrothal wrote:

Yes. This solved this problem.
However, desktop_drive_icons does not work (see image). No errors anywhere. Any ideas?


Looks like the volume monitor is not working.

Can you see drive icon(s) in file chooser dialogs? (e.g. see screenshot in first post)

If no what type of device is sda1?
What is the output of blkid with sda1 connected?


The little square pointed with the red arrow in the picture above, is all I see.
Code:
# blkid
/dev/loop1: UUID="0a260d59-65a1-48c0-8f70-19e4fd9edae2" TYPE="ext2"
/dev/sda1: UUID="ad9e0ce4-3466-4eba-9956-217aaf2cf870" TYPE="ext2"

_________________
Kids all over the world go around with an XO laptop. They deserve one puppy (or many) too Very Happy
Back to top
View user's profile Send private message 
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Fri 19 Oct 2012, 09:59    Post subject:  

Updated to version 0.1.9

Changelog:
  • Disabled library versioning for GIO module, may fix 'two different plugins' error on precise puppy (thanks mavrothal)
  • Added support for extra debugging output by setting environment variable PUP_VOLUME_MONITOR_DEBUG. Currently it does almost nothing, in future this variable will make it print debugging info.

Last edited by akash_rawal on Fri 19 Oct 2012, 14:15; edited 1 time in total
Back to top
View user's profile Send private message 
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Fri 19 Oct 2012, 10:29    Post subject:  

mavrothal wrote:

The little square pointed with the red arrow in the picture above, is all I see.
Code:
# blkid
/dev/loop1: UUID="0a260d59-65a1-48c0-8f70-19e4fd9edae2" TYPE="ext2"
/dev/sda1: UUID="ad9e0ce4-3466-4eba-9956-217aaf2cf870" TYPE="ext2"



sda1 should have been detected.

Type pup-volume-monitor-admin -l in terminal and see whether sda1 is listed. If yes, surely the GIO module didn't load now. Try updating to latest version (before that uninstall previous version else you might run into the same 'two different plugins' problem again.) Or rename /usr/lib/gio/modules/libpup-volume-monitor.so.0.0.0 to libpup-volume-monitor.so, that may work.

If sda1 isn't listed, and sda1 is a removable drive, check presence of /etc/udev/rules.d/50-pup-volume-monitor.rules.

Else, this indicates some serious bug in pup-volume-monitor.
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 1571

PostPosted: Sat 20 Oct 2012, 01:44    Post subject:  

akash_rawal wrote:

Else, this indicates some serious bug in pup-volume-monitor.


Tried 0.1.9 in Precise-5.3.95 (beta 7)
Still with problems.

Code:
# desktop_drive_icons
** Message: Config file not found

(desktop_drive_icons:17909): GLib-GObject-WARNING **: Two different plugins tried to register 'PupClientMonitor'.

(desktop_drive_icons:17909): GLib-GObject-WARNING **: Two different plugins tried to register 'PupClientDevice'.

(desktop_drive_icons:17909): GLib-GObject-WARNING **: Two different plugins tried to register 'PupVolumeMonitor'.

(desktop_drive_icons:17909): GLib-GIO-WARNING **: Tried to register an extension of the type (null) to extension point gio-volume-monitor. Expected type is GVolumeMonitor.

(desktop_drive_icons:17909): GLib-GObject-WARNING **: Two different plugins tried to register 'PupClientVolume'.

(desktop_drive_icons:17909): GLib-GObject-CRITICAL **: g_type_add_interface_dynamic: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(desktop_drive_icons:17909): GLib-GObject-WARNING **: Two different plugins tried to register 'PupMount'.

(desktop_drive_icons:17909): GLib-GObject-CRITICAL **: g_type_add_interface_dynamic: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(desktop_drive_icons:17909): GLib-GObject-WARNING **: Two different plugins tried to register 'PupClientDrive'.

(desktop_drive_icons:17909): GLib-GObject-CRITICAL **: g_type_add_interface_dynamic: assertion `G_TYPE_IS_INSTANTIATABLE (instance_type)' failed

(desktop_drive_icons:17909): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed

(desktop_drive_icons:17909): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(desktop_drive_icons:17909): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
Segmentation fault

###### RENAMED /usr/lib/gio/modules/libpup-volume-monitor.so to libpup-volume-monitor.so.0.0.0 and run again ######

# desktop_drive_icons
** Message: Config file not found

###### No errors BUT got just the same little dot and no drive icons as before with 0.1.8######


# pup-volume-monitor-admin -l
Drives:
Device sdb:
   display_name=SanDisk Cruzer (sdb)
   icon_name=themed_icon|gnome-dev-removable-usb|drive-removable-media|gtk-harddisk|drive-harddisk|gnome-dev-harddisk   
   type=PupDrive   
   unix_dev=/dev/sdb
   model=Cruzer
   vendor=SanDisk
   props = 0 | PUP_DRIVE_USB | PUP_DRIVE_REMOVABLE | PUP_DRIVE_FLASH
Device sr0:
   display_name= Virtual DVD-ROM (sr0)
   icon_name=themed_icon|drive-optical   
   type=PupDrive   
   unix_dev=/dev/sr0
   model=Virtual DVD-ROM
   vendor=
   props = 0 | PUP_DRIVE_CAN_EJECT
Device sda:
   display_name=ATA Virtual  HDD [0] (sda)
   icon_name=themed_icon|harddrive|gtk-harddisk|drive-harddisk|gnome-dev-harddisk   
   type=PupDrive   
   unix_dev=/dev/sda
   model=Virtual  HDD [0]
   vendor=ATA
   props = 0

Volumes:
Device sda1:
   display_name=sda1
   icon_name=themed_icon|harddrive|gtk-harddisk|drive-harddisk|gnome-dev-harddisk   
   type=PupVolume   
   unix_dev=/dev/sda1
   label=(null)
   fstype=ext2
   uuid=ad9e0ce4-3466-4eba-9956-217aaf2cf870
   drv_sysname=sda
   mntpnt=/initrd/mnt/dev_save
   flags = 0 | PUP_VOLUME_MNTD_SYSTEM | PUP_VOLUME_IS_MOUNTABLE
Device sdb1:
   display_name=XOpup (sdb1)
   icon_name=themed_icon|gnome-dev-removable-usb|drive-removable-media|gtk-harddisk|drive-harddisk|gnome-dev-harddisk   
   type=PupVolume   
   unix_dev=/dev/sdb1
   label=XOpup
   fstype=ext3
   uuid=25055704-903d-4cb1-9c4a-74dbed3b6814
   drv_sysname=sdb
   mntpnt=(null)
   flags = 0 | PUP_VOLUME_IS_MOUNTABLE


What I think is that precise GIO has changes not compatible with pup-volume-monitor, or atleast how desktop-drive-icons understands its output.
Original in precise gio-2.0.pc has:
Code:
Name: GIO
Description: glib I/O library
Version: 2.32.3
Requires: glib-2.0 gobject-2.0
Requires.private: gmodule-no-export-2.0
Libs: -L${libdir} -lgio-2.0
Libs.private: -lz   -lresolv
Cflags:

To compile monitor/icons I need to change it to
Code:
Name: GIO
Description: glib I/O library
Version: 2.32.3
Requires: glib-2.0 gobject-2.0 gmodule-2.0
Requires.private: gmodule-no-export-2.0
Libs: -L${libdir} -lgio-2.0 -lX11
Libs.private: -lz   -lresolv
Cflags:

Maybe there is a clue here?

_________________
Kids all over the world go around with an XO laptop. They deserve one puppy (or many) too Very Happy
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4292

PostPosted: Sat 20 Oct 2012, 18:33    Post subject:  

IIRC one of the debian patches (maybe used by ubuntu too) removes an unneeded dependency on gmodule and thus libdl.so from libglib and libgio (it isn't really needed for gmodule unless gvfs or another loadable library is built in to gio and the patches ifdef a bunch of that), since some of puppy's libX11 also have the same unneeded dependency on libdl, that would explain why adding -lX11 would fix it, but my guess is that it really only needs -ldl and not -lX11 ... but explicitly link with gmodule which _should_ bring in -ldl on its own

its been a while since I looked at the source, so I may be way off track, but I seem to recall something loading as a module/plugin (which would indicate a dependency on gmodule)

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Sun 21 Oct 2012, 11:07    Post subject:  

It appears like gio is loading same module twice.

No idea how it happens. I tried exploring glib 2.32.3 sources but still no luck.

I have asked on gtk-list, maybe someone there can help us.

The mail can be viewed here: https://mail.gnome.org/archives/gtk-list/2012-October/msg00040.html
Back to top
View user's profile Send private message 
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Sun 21 Oct 2012, 12:19    Post subject:  

technosaurus wrote:
IIRC one of the debian patches (maybe used by ubuntu too) removes an unneeded dependency on gmodule and thus libdl.so from libglib and libgio (it isn't really needed for gmodule unless gvfs or another loadable library is built in to gio and the patches ifdef a bunch of that), since some of puppy's libX11 also have the same unneeded dependency on libdl, that would explain why adding -lX11 would fix it, but my guess is that it really only needs -ldl and not -lX11 ... but explicitly link with gmodule which _should_ bring in -ldl on its own

its been a while since I looked at the source, so I may be way off track, but I seem to recall something loading as a module/plugin (which would indicate a dependency on gmodule)


But there are many programs that use gmodule, right in puppy.

If it was possible to remove gmodule at all, then that should break many apps. gtk uses gmodule to load its theme engines. There are many other programs using gmodule to provide plugin support.
Back to top
View user's profile Send private message 
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Tue 06 Nov 2012, 13:58    Post subject:  

Just finished downloading precise, and I can now reproduce all precise-related problems.

I have confirmed GIO is loading same module twice, and it's a glib bug.

And it's affecting other distros using gvfs too. See here and here.
Back to top
View user's profile Send private message 
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Wed 07 Nov 2012, 12:21    Post subject:  

Updated to version 0.1.10

Changelog:
  • Force add gmodule as a dependency, fixes compile-time issues in precise puppy.
Back to top
View user's profile Send private message 
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Wed 07 Nov 2012, 12:58    Post subject:  

akash_rawal wrote:

I have confirmed GIO is loading same module twice, and it's a glib bug.

On examining stack carefully I caught GIO calling function which it isn't programmed to do in the source code.

Gray and technosaurus, you were right. glib that comes with precise isn't original glib-2.32.3, it's a modified glib-2.32.3 that can be found in ubuntu precise-updates suite. And that contains this bug.

I compiled glib, but with errors which I suppressed using -i option to make. And finally pup-volume-monitor works in precise Smile


I have made a pet, which isn't perfect due to errors, but it's good enough to make pup-volume-monitor work.

http://dl.dropbox.com/u/58347439/protected/glib-2.32.3-orig-imperfect-precise540-i686.pet

Edit: I managed to compile glib again, this time without errors.
http://dl.dropbox.com/u/58347439/protected/glib-2.32.3-orig-precise540-i686.pet
Back to top
View user's profile Send private message 
mavrothal


Joined: 24 Aug 2009
Posts: 1571

PostPosted: Wed 07 Nov 2012, 14:30    Post subject:  

akash_rawal wrote:
Updated to version 0.1.10

Changelog:
  • Force add gmodule as a dependency, fixes compile-time issues in precise puppy.


Source?
The one on third post still has 0.1.9

_________________
Kids all over the world go around with an XO laptop. They deserve one puppy (or many) too Very Happy
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 5 of 10 [149 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » System
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1176s ][ Queries: 13 (0.0173s) ][ GZIP on ]