HardInfo, system information

Core libraries and systems
Message
Author
User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

HardInfo, system information

#1 Post by BarryK »

One problem, when I click on Devices --> Storage, get a segmentation fault. I would like to know if that is just my hardware or if others get that crash.

Other than that, it looks good.

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#2 Post by muggins »

hi barry,

i've also uploaded hardinfo as a .pet here:

http://www.murga-linux.com/puppy/viewto ... 71&t=20108

i don't get a seg-fault with Devices --> Storage

(compiled with pup2.16)

User avatar
WhoDo
Posts: 4428
Joined: Wed 12 Jul 2006, 01:58
Location: Lake Macquarie NSW Australia

#3 Post by WhoDo »

Hmmm....really nice looking app. No seg faults on my machine either, but I did install muggins' version first so that may have negated the value of my test.

Either way I'd like to see this as standard in Puppy. Much easier to follow for refugees. :P

Thanks guys.
[i]Actions speak louder than words ... and they usually work when words don't![/i]
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com

wingruntled

#4 Post by wingruntled »

Barry
I didn't find any errors under Devices > Stoage either but I did find a rather concerning error under Computer > Summary.
Processor : AMD Athlon(tm) XP 3200+
Memory : 515MB (46MB used)
Operating System : Unknown distribution
User Name : root (root)
Date/Time : Thu 26 Jul 2007 11:58:45 PM CDT
How dare they call Puppy a Unknown distribution

:shock:

Guest07
Posts: 5
Joined: Sun 22 Jul 2007, 00:36

HardInfo, system information

#5 Post by Guest07 »

I get no segmentation fault, but more Logical sectors than Physical.

tedward
Posts: 27
Joined: Sun 10 Jul 2005, 03:34
Location: Katikati, New Zealand

Hard Info: Storage

#6 Post by tedward »

Selecting "storage" causes the Hard info application to close down. Everything else works OK.
No big deal as I will probably never use this Application anyway.

Congrats on all your intensive development work on Puppy.
Your blog is my home page.

Cheers

User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

#7 Post by Dougal »

wingruntled wrote:How dare they call Puppy a Unknown distribution
I tried hacking Hardinfo a few weeks ago to solve this.
The problem is that it tries to use "lsb_release" to get the distro info.
So I got lsb_release (it's just a script) and added it, along with an old /etc/lsb_release file from Ubuntu, which I modified to have Puppy info -- but it still wouldn't work!

I guess we could just hack it to always say "Puppy Linux" -- it's not like any non-Puppy users are gona use the binary...
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

duh
Posts: 18
Joined: Sun 10 Dec 2006, 08:16

#8 Post by duh »

Hello,

INPUT DEVICE has same killing problem at my box to the program.

USB Devices shows my ext.DVD-burner as USB TO IDE (usb2.0 compatible)
it hangs at usb1.1 Port and is there bootable and burning everything
but not at PCI-USB2.0-card.
If ext.DVD-burner LG GSA-H12N is disconected DEVICE-STORAGE works

BTW. PMOUNT PuppyDrive Mounter does not show the ext. DVD -- MUT does it

thanks for PUPPY
Wolf

P3 800Mhz 0.9G CanoScanLide20 Samsung-DVD TEAC512-CD/RW HP-LJ-2100 PIXMA4200

acidx
Posts: 5
Joined: Fri 27 Jul 2007, 15:36

#9 Post by acidx »

Greetings.

I'm the hardinfo author :) Running Puppy 2.17 right now, so the bugs can be fixed (and downloading the devx package).

1) I'll add Puppy as a recognized distribution name; does /etc/puppyversion exists in every Puppy release?

2) It also crashed here when I've clicked the 'storage' option. As soon as I get my gdb I'll try to figure out what's happening, as it doesn't crash when I'm on Ubuntu Feisty.

3) lspci does not show the device's names; just their classes. Is this normal? (My guess is that Puppy uses a stripped-down version of lspci.)

4) There's no problem here with hot-plugged USB devices; either in "USB Devices" or in "Input Devices" (except that my Joystick is recognized as "unknown"). If you're seeing this problem, could you please run it from inside gdb and generate a backtrace? (Grab devx package, click on it, run "usr/bin/gdb" relative to where it's mounted, type "file /usr/bin/hardinfo" and then "run". When it crashes, type "bt full" and post the result here.)[/list]

duh
Posts: 18
Joined: Sun 10 Dec 2006, 08:16

#10 Post by duh »

#### hopefully done correct
####After loading devx217.sfs DEVICES-->Storage showed all inner drives(2+2)
#### INPUT DEVICES broke with a small white rectangular showing the output
#### of Device-->Storage
#### Under the lasso of shutterbug screen got wiped -- so no pic

# /usr/bin/gdb
GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i486-t2-linux-gnu".
(gdb)
(gdb) file/usr/bin/hardinfo
Reading symbols from /usr/bin/hardinfo...(no debugging symbols found)...done.
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /usr/bin/hardinfo
---Type <return> to continue, or q <return> to quit---
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)

Program received signal SIGSEGV, Segmentation fault.
0xb7b47d59 in g_atomic_int_exchange_and_add () from /usr/lib/libglib-2.0.so.0
(gdb
bt full
####
(gdb) bt full
#0 0xb7b47d59 in g_atomic_int_exchange_and_add ()
from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#1 0xb7bbdf12 in g_object_ref () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#2 0x0805ad07 in icon_cache_get_pixbuf_at_size ()
No symbol table info available.
#3 0x08057368 in info_tree_compare_val_func ()
No symbol table info available.
#4 0x08057e00 in shell_set_note_from_entry ()
No symbol table info available.
#5 0x0805812f in shell_set_note_from_entry ()
No symbol table info available.
#6 0xb7bcc7d2 in g_cclosure_marshal_VOID__VOID ()
from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#7 0xb7bbb40c in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#8 0xb7bcaf0d in g_signal_has_handler_pending ()
from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#9 0xb7bcc23a in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#10 0xb7bcc42b in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#11 0xb7eada2d in gtk_tree_selection_select_range ()
from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#12 0xb7ebc312 in gtk_tree_view_scroll_to_cell ()
from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#13 0xb7ec3b64 in gtk_tree_view_set_model () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#14 0xb7e18ff7 in gtk_marshal_VOID__UINT_STRING ()
from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#15 0xb7bbb638 in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#16 0xb7bbb40c in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#17 0xb7bcb095 in g_signal_has_handler_pending ()
from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#18 0xb7bcbfd7 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
No symbol table info available.
#19 0xb7bcc42b in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#20 0xb7ed27c8 in gtk_widget_activate () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#21 0xb7e16a79 in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#22 0xb7e16e2c in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#23 0xb7cf36af in gdk_event_get_graphics_expose ()
from /usr/lib/libgdk-x11-2.0.so.0
No symbol table info available.
#24 0xb7b58728 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#25 0xb7b59e61 in g_main_context_acquire () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#26 0xb7b5a0c5 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#27 0xb7e1775b in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#28 0x080551ac in main ()
No symbol table info available.
(gdb) untitled


#### 2nd + 3rd Test (without rebooting)

# /usr/bin/gdb
GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i486-t2-linux-gnu".
(gdb) file/usr/bin/hardinfo
Reading symbols from /usr/bin/hardinfo...(no debugging symbols found)...done.
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) bt full
No stack.
(gdb)


##### Device-->storage works (2+2)
##### Input devices closed the program (no screen)

#####4th Test with rebooting dvx217.sfs installed Input.DEV and Storage
##### closed program. --desired outputs as test 2and 3.

User avatar
WhoDo
Posts: 4428
Joined: Wed 12 Jul 2006, 01:58
Location: Lake Macquarie NSW Australia

#11 Post by WhoDo »

acidx wrote:I'm the hardinfo author :) Running Puppy 2.17 right now, so the bugs can be fixed (and downloading the devx package).
Wow! Now that's what I call support! 8)
acidx wrote:1) I'll add Puppy as a recognized distribution name; does /etc/puppyversion exists in every Puppy release?
Yes, it does. At least in every official Puppy release. Can't answer for Grafpup, Pizzapup, etc.

Thanks for your support, acidx. Very nice app, too!
[i]Actions speak louder than words ... and they usually work when words don't![/i]
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#12 Post by BarryK »

acidx wrote:Greetings.

I'm the hardinfo author :) Running Puppy 2.17 right now, so the bugs can be fixed (and downloading the devx package).

1) I'll add Puppy as a recognized distribution name; does /etc/puppyversion exists in every Puppy release?

2) It also crashed here when I've clicked the 'storage' option. As soon as I get my gdb I'll try to figure out what's happening, as it doesn't crash when I'm on Ubuntu Feisty.

3) lspci does not show the device's names; just their classes. Is this normal? (My guess is that Puppy uses a stripped-down version of lspci.)

4) There's no problem here with hot-plugged USB devices; either in "USB Devices" or in "Input Devices" (except that my Joystick is recognized as "unknown"). If you're seeing this problem, could you please run it from inside gdb and generate a backtrace? (Grab devx package, click on it, run "usr/bin/gdb" relative to where it's mounted, type "file /usr/bin/hardinfo" and then "run". When it crashes, type "bt full" and post the result here.)[/list]
acidx, Thanks for coming "on board"!

1. Yes, as already responded.

3. Yes, lspci does not have the database files. What we do have is 'scanpci' which comes with Xorg -- this has all the same info as the full lspci. Having both is unecessary duplication, and we need the scanpci as the Xorg Video Wizard and also Xorg startup uses it.
...perhaps your code could check that lspci only outputs the IDs and no further info, then checks for presence of scanpci -- which nearly all distros will have.

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#13 Post by BarryK »

muggins, did you compile your hardinfo without libsoup? ...I notice it's smaller than my package.
I compiled libsoup statically into the hardinfo executable. Note though, SSL is disabled in libsoup as we don't have GNUTLS in Puppy.

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#14 Post by muggins »

barry,

i compiled without library soup, upx'ed the executable & pngcrushed any .png files. i've just run it for the first time using pup2.17 & got the Segmentation fault error. it seems to work OK with 2.16.

John Doe
Posts: 1681
Joined: Mon 01 Aug 2005, 04:46
Location: Michigan, US

#15 Post by John Doe »

acidx wrote:I'm the hardinfo author :) Running Puppy 2.17 right now, so the bugs can be fixed (and downloading the devx package).
Thanks for jumping in.

I get the seg fault also using 2.17, my gdb is attached.

Also I noticed two other small things:

1-if a node is selected and it's parent node is collapsed one is unable to switch to another node.

i get this from shell (most times) when it happens:

# hardinfo
sh: last: command not found

example: select "summary" colapse computer and now one is unable to select memory (or anything else) under devices or benchmarks.

2-Computer->Operating System->Current Session->Desktop Environment (Specifically the "WindowManager" part)

works under JWM but under ICEWM nothing shows up.
Attachments
hardinfo-test.tar.gz
(1.19 KiB) Downloaded 1242 times

John Doe
Posts: 1681
Joined: Mon 01 Aug 2005, 04:46
Location: Michigan, US

#16 Post by John Doe »

one other tiny thing for acidx.

when i generate a report and click on it in ROX the report won't open because of the space in the file name. perhaps you would consider changing the default name to 'hardinfo_report.html'?

User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

#17 Post by Dougal »

John Doe wrote:when i generate a report and click on it in ROX the report won't open because of the space in the file name. perhaps you would consider changing the default name to 'hardinfo_report.html'?
That should probably be fixed in Rox... maybe the way the run action is set.
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

User avatar
WhoDo
Posts: 4428
Joined: Wed 12 Jul 2006, 01:58
Location: Lake Macquarie NSW Australia

#18 Post by WhoDo »

Dougal wrote:
John Doe wrote:when i generate a report and click on it in ROX the report won't open because of the space in the file name. perhaps you would consider changing the default name to 'hardinfo_report.html'?
That should probably be fixed in Rox... maybe the way the run action is set.
I've got exactly the same result as John Doe and my mime-type is set properly in Rox. If I remove the space in the file name Rox recognises the correct mime-type and I can open in a browser. Otherwise it just treats the file as plain text and opens it in the defaulttexteditor (geany). I'm using Rox 2.6.1 and Puppy 2.16 on this occasion.
[i]Actions speak louder than words ... and they usually work when words don't![/i]
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com

User avatar
WhoDo
Posts: 4428
Joined: Wed 12 Jul 2006, 01:58
Location: Lake Macquarie NSW Australia

#19 Post by WhoDo »

muggins wrote:i compiled without library soup, upx'ed the executable & pngcrushed any .png files. i've just run it for the first time using pup2.17 & got the Segmentation fault error. it seems to work OK with 2.16.
I can also confirm that the problem is specific to Puppy 2.17 and only occurs when there is a USB device found.

I tried it without my USB stick and no problems.

I tried with my USB stick, both mounted and unmounted and the application segfaulted on selecting Storage category.

Removed the USB stick and the application ran normally again.

Hope that helps guys.
[i]Actions speak louder than words ... and they usually work when words don't![/i]
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com

User avatar
Dougal
Posts: 2502
Joined: Wed 19 Oct 2005, 13:06
Location: Hell more grotesque than any medieval woodcut

#20 Post by Dougal »

WhoDo wrote:I've got exactly the same result as John Doe and my mime-type is set properly in Rox. If I remove the space in the file name Rox recognises the correct mime-type and I can open in a browser.
I meant the type of quoting/params used.
Maybe

Code: Select all

exec defaulttexteditor "$*"
or something should be used.
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind

Post Reply