pup-volume-monitor-0.1.15 and desktop-drive-icons-0.0.6

Core libraries and systems
Message
Author
akash_rawal
Posts: 229
Joined: Wed 25 Aug 2010, 15:38
Location: ISM Dhanbad, Jharkhand, India

#31 Post by akash_rawal »

peebee wrote: The following small test extracted from Frisbee funcs ... when run in check-mate V3 - Puppy latest LXDE desktop ! produces output in /opt/Pwireless-entry
(Xdialog:9249): pup-volume-monitor-WARNING **: Module loaded successfully
0123456789
that contains unwanted warning from pup-volume-monitor in front of the typed password.
Updated to version 0.1.5

Changelog:
  • Removed the debugging macro that was used to ensure that the volume monitor module was loaded

User avatar
Jejy69
Posts: 710
Joined: Thu 20 Jan 2011, 18:10
Location: Perpignan

#32 Post by Jejy69 »

Yeah !
Frisbee works ! ! ! You're the best! :D
Thank you for being so quick and efficient!

Thank you Peebee too, have reacted so quickly, and found that this did not work! Bravo! "GG" !
All my derived will be able to function!
I'm Commander Shepard and this is my favorite Linux distrbution on the Citadel.

User avatar
peebee
Posts: 4370
Joined: Sun 21 Sep 2008, 12:31
Location: Worcestershire, UK
Contact:

#33 Post by peebee »

akash_rawal wrote:Updated to version 0.1.5
Changelog:
Removed the debugging macro that was used to ensure that the volume monitor module was loaded
Very many thanks - thought it must have to be something like that....
Cheers
peebee
ImageLxPup = Puppy + LXDE
Main version used daily: LxPupSc; Assembler of UPups, ScPup & ScPup64, LxPup, LxPupSc & LxPupSc64

akash_rawal
Posts: 229
Joined: Wed 25 Aug 2010, 15:38
Location: ISM Dhanbad, Jharkhand, India

#34 Post by akash_rawal »

Updated to version 0.1.6

Changelog:
  • Fixed destructor calling in client module, may fix crashing issues with seamonkey (Edit: It works)

Igo AtM
Posts: 25
Joined: Thu 16 Nov 2006, 14:36
Location: UK

Issue with latest ver 1.6

#35 Post by Igo AtM »

Hi
I have been testing/using the volume monitor module since it first started appearing here and am much impressed with it as a initial implementation.
However I have recently uploaded the version 1.6 and I believe it started causing segmentation faults on my system. I have since reverted back to version 1.5 and have no issues.
being an event based issue The fault is some what difficult to pin down and is only ever reported as a simple seg fault. It would seem to occur most often when using a popup resource browser as a file system utility to a foreground app. The program will on change of browser window and subsequent save requests crash the parent window leaving no or little logged cause of the problem.
I am currently using Slacko 5.3.3 with window managers of compiz/openbox/icewm and pcfileman 1-0 and Libfm 1-0. I do not run a full gvfs as this also generated issues when run in competition with your event backend. My machine is a Dell Inspiron 1501 and puppy is run from an external usb hard drive. As I say puppy its self remains stable it is only the requesting app that crashes. Predominately Geany and Firefox but I notice these as I run the programs almost consistently.
I would like to be more specific in terms of logs of the issue but it is some what complicated in that to do so would require effectively disabling my set-up whilst using 1.6

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#36 Post by Geoffrey »

I tried the pup-volume-monitor-0.1.6 update in Saluki, as I was getting the browsers firefox and seamonkey crashing when mounting drives, but with the update gtkdialog seg faults on comboboxs so it seems.

I installed pup-volume-monitor-0.1.5 update, now gtkdialog is fine but still have the problem of browsers crashing when mounting drives, this is a random event, I can see no patten to it.

Geoffrey
[b]Carolina:[/b] [url=http://smokey01.com/carolina/pages/recent-repo.html]Recent Repository Additions[/url]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]

akash_rawal
Posts: 229
Joined: Wed 25 Aug 2010, 15:38
Location: ISM Dhanbad, Jharkhand, India

#37 Post by akash_rawal »

Updated to version 0.1.7

Changelog:
  • Fixed 'accessing destroyed object' bug (thanks Geoffrey and Igo AtM, the problem was reproducible in saluki 023 and not in slacko 531)

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#38 Post by Geoffrey »

akash_rawal wrote:Updated to version 0.1.7

Changelog:
  • Fixed 'accessing destroyed object' bug (thanks Geoffrey and Igo AtM, the problem was reproducible in saluki 023 and not in slacko 531)
Thanks akash_rawal,

That seems to have fixed the problem, I'll continue to test, though I'm sure you have nailed it.

Cheers,

Geoffrey
[b]Carolina:[/b] [url=http://smokey01.com/carolina/pages/recent-repo.html]Recent Repository Additions[/url]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

swap partitions in SDcards

#39 Post by mavrothal »

I can understand that may not be a very common situation (outside embedded systems), but pup-volume-monitor shows swap partitions in SDcards as mountable volumes both on the desktop and Thunar. This is the case in both Saluki and Carolina.
Also when an SDcard is inserted the swap partition shows twice both with the card name and as "mmcblk[0-9]p[0-9]". However, if the card is already in before boot, the swap partition shows only with the card name.
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

akash_rawal
Posts: 229
Joined: Wed 25 Aug 2010, 15:38
Location: ISM Dhanbad, Jharkhand, India

#40 Post by akash_rawal »

Updated to version 0.1.8

Changelog:
  • Fixed filtering of loop devices and swap partitions (thanks mavrothal)

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#41 Post by mavrothal »

akash_rawal wrote:Updated to version 0.1.8

Changelog:
  • Fixed filtering of loop devices and swap partitions (thanks mavrothal)
Nice!

There is one more issue with SDcards. Both the device and the partition are showing as distinct volumes. ie "mmcblk0" and "mmcblk0p[1-9]".

Also a less important issue is that if the mmcblk0 is removed and reinserted it gets the next available number up (ie mmcblk2 if an mmcblk1 exists) and not the original. Though I think this has more to do with the kernel.
Anyway some SD rules might be in order. :wink:
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

akash_rawal
Posts: 229
Joined: Wed 25 Aug 2010, 15:38
Location: ISM Dhanbad, Jharkhand, India

#42 Post by akash_rawal »

mavrothal wrote: There is one more issue with SDcards. Both the device and the partition are showing as distinct volumes. ie "mmcblk0" and "mmcblk0p[1-9]".
Can you mount both of them?
And what is the output when you type blkid in terminal?
mavrothal wrote: Also a less important issue is that if the mmcblk0 is removed and reinserted it gets the next available number up (ie mmcblk2 if an mmcblk1 exists) and not the original. Though I think this has more to do with the kernel.
Anyway some SD rules might be in order. :wink:
Probably you are removing the card while it is mounted.

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#43 Post by mavrothal »

akash_rawal wrote:
mavrothal wrote: There is one more issue with SDcards. Both the device and the partition are showing as distinct volumes. ie "mmcblk0" and "mmcblk0p[1-9]".
Can you mount both of them?
And what is the output when you type blkid in terminal?
They are mountable but not simultaneously.

Code: Select all

# blkid
/dev/mmcblk2p1: LABEL="kingst" UUID="dbe90b0d-a311-45b1-966c-cb2afc1fb583" TYPE="ext3"
/dev/mmcblk2p2: UUID="919ad1d3-0d32-4153-8b48-5686f3564b67" TYPE="swap"
/dev/mmcblk2: LABEL="kingst" UUID="9bae5d56-87e5-4a40-a0e0-e4fa9a05f5dd" TYPE="ext2"
/dev/sda1: LABEL="XOpup" UUID="25055704-903d-4cb1-9c4a-74dbed3b6814" TYPE="ext3"
/dev/loop1: UUID="9c12f71f-a817-4d7f-bd54-80da2ef96f65" TYPE="ext3"

# fdisk -l /dev/mmcblk2
Disk /dev/mmcblk2: 4016 MB, 4016046080 bytes
4 heads, 16 sectors/track, 122560 cylinders, total 7843840 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x6b0d4d74

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk2p1            8192     7135231     3563520   83  Linux
/dev/mmcblk2p2         7135232     7839743      352256   82  Linux swap / Solaris
But I think that bay be something funny with the specific card. Tried a couple other cards and they were OK.
mavrothal wrote: Also a less important issue is that if the mmcblk0 is removed and reinserted it gets the next available number up (ie mmcblk2 if an mmcblk1 exists) and not the original. Though I think this has more to do with the kernel.
Anyway some SD rules might be in order. :wink:
Probably you are removing the card while it is mounted.
No this is not the case (and is not with "strange" card only either)
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

Jubei-Mitsuyoshi
Posts: 2
Joined: Wed 10 Oct 2012, 20:12

#44 Post by Jubei-Mitsuyoshi »

Hi i would like help in porting this to an arch based distro i am working on, what do i need to do to get it to compile on a standard 86_64 posix platform ? ie Archlinux :)
And BTW friggin fantastic !!!!!

akash_rawal
Posts: 229
Joined: Wed 25 Aug 2010, 15:38
Location: ISM Dhanbad, Jharkhand, India

#45 Post by akash_rawal »

mavrothal wrote: They are mountable but not simultaneously.

Code: Select all

# blkid
/dev/mmcblk2p1: LABEL="kingst" UUID="dbe90b0d-a311-45b1-966c-cb2afc1fb583" TYPE="ext3"
/dev/mmcblk2p2: UUID="919ad1d3-0d32-4153-8b48-5686f3564b67" TYPE="swap"
/dev/mmcblk2: LABEL="kingst" UUID="9bae5d56-87e5-4a40-a0e0-e4fa9a05f5dd" TYPE="ext2"
/dev/sda1: LABEL="XOpup" UUID="25055704-903d-4cb1-9c4a-74dbed3b6814" TYPE="ext3"
/dev/loop1: UUID="9c12f71f-a817-4d7f-bd54-80da2ef96f65" TYPE="ext3"

# fdisk -l /dev/mmcblk2
Disk /dev/mmcblk2: 4016 MB, 4016046080 bytes
4 heads, 16 sectors/track, 122560 cylinders, total 7843840 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x6b0d4d74

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk2p1            8192     7135231     3563520   83  Linux
/dev/mmcblk2p2         7135232     7839743      352256   82  Linux swap / Solaris
Looks like there's a bug in blkid or you have a really strange card which has a filesystem as well as a partition table. I will come up shortly with a program to investigate further.

akash_rawal
Posts: 229
Joined: Wed 25 Aug 2010, 15:38
Location: ISM Dhanbad, Jharkhand, India

#46 Post by akash_rawal »

Jubei-Mitsuyoshi wrote:Hi i would like help in porting this to an arch based distro i am working on, what do i need to do to get it to compile on a standard 86_64 posix platform ? ie Archlinux :)
And BTW friggin fantastic !!!!!
It should compile without problems (and if there are any please report it here :) ). The same command ./configure --prefix=/usr --sysconfdir=/etc && make && make install will mostly work well. You may need to run sudo make install instead of make install if you are not root.

I haven't yet tested it on other distros but I have tried to ensure to keep out puppy-specific things from the sources. So it should probably run.

And before applications can use it you should start the daemon pup-volume-monitor, preferably before starting X. I suspect this thing is distro-specific so I haven't included it in source package.

Jubei-Mitsuyoshi
Posts: 2
Joined: Wed 10 Oct 2012, 20:12

#47 Post by Jubei-Mitsuyoshi »

cheers, we have it compiled and packaged it for our version of archlinux, ( without systemd, and gtk crud )
Its really important work, i am trying to strip the crud from gnome3 ( specifically cinnamon ) and this a big step forward, this should help replace udisks eventually.
I know its being cheeky but how do you fancy tackling upower/power management in the same manner :wink:

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#48 Post by mavrothal »

akash_rawal wrote:Looks like there's a bug in blkid or you have a really strange card which has a filesystem as well as a partition table. I will come up shortly with a program to investigate further.
Would be nice if the program could detect anomalies like that. However, I'm afraid I can not help test it anymore. I did a low level formatting and repartition of the strange card and now it behaves.
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

compile failed

#49 Post by mavrothal »

Tried to compile pup-volume-monitor-0.1.8 and desktop_drive_icons-0.0.1 in PuppyPrecise beta 7 (to eventually make a pet) and they both failed. The pvm with

Code: Select all

make[2]: Entering directory `/root/pup-volume-monitor-0.1.8/tester'
  CC     client-client.o
  CCLD   client
../libpupvm/.libs/libpupvm.so: undefined reference to `g_module_error'
../libpupvm/.libs/libpupvm.so: undefined reference to `g_module_close'
../libpupvm/.libs/libpupvm.so: undefined reference to `g_module_open'
../libpupvm/.libs/libpupvm.so: undefined reference to `g_module_symbol'
collect2: ld returned 1 exit status
make[2]: *** [client] Error 1
and the drive-icons with

Code: Select all

CCLD   desktop_drive_icons
/usr/bin/ld: desklet.o: undefined reference to symbol 'XFree'
/usr/bin/ld: note: 'XFree' is defined in DSO /usr/lib/libX11.so.6 so try adding it to the linker command line
/usr/lib/libX11.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
I can only assume that some devel libs are missing, but if you have any idea will save me some hunting
Thx.
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

akash_rawal
Posts: 229
Joined: Wed 25 Aug 2010, 15:38
Location: ISM Dhanbad, Jharkhand, India

Re: compile failed

#50 Post by akash_rawal »

mavrothal wrote:Tried to compile pup-volume-monitor-0.1.8 and desktop_drive_icons-0.0.1 in PuppyPrecise beta 7 (to eventually make a pet) and they both failed. The pvm with

Code: Select all

make[2]: Entering directory `/root/pup-volume-monitor-0.1.8/tester'
  CC     client-client.o
  CCLD   client
../libpupvm/.libs/libpupvm.so: undefined reference to `g_module_error'
../libpupvm/.libs/libpupvm.so: undefined reference to `g_module_close'
../libpupvm/.libs/libpupvm.so: undefined reference to `g_module_open'
../libpupvm/.libs/libpupvm.so: undefined reference to `g_module_symbol'
collect2: ld returned 1 exit status
make[2]: *** [client] Error 1
gmodule library is missing or isn't linked. Library name is libgmodule-2.0.so, and you can check whether gmodule library is linked by typing pkg-config --libs gio-2.0 , it should list -lgmodule along with other linker flags.
mavrothal wrote: and the drive-icons with

Code: Select all

CCLD   desktop_drive_icons
/usr/bin/ld: desklet.o: undefined reference to symbol 'XFree'
/usr/bin/ld: note: 'XFree' is defined in DSO /usr/lib/libX11.so.6 so try adding it to the linker command line
/usr/lib/libX11.so.6: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
This time problem is with X11 library, Apparently the linker has found the library but maybe it is corrupted, as it is complaining about XFree() but not XGetAtomName() even when both belong to same library.

In my system (slacko 531) pkg-config --libs gtk+-2.0 doesn't include -lX11. But still the code compiles :?

Post Reply