Discussion:
[Fluxbox-users] Starting bitcoin client not possible
Andre Tann
2011-08-01 17:38:39 UTC
Permalink
Hello everyone,

what can be the reason that it's not possible to start the bitcoin
client within the fluxbox?

The client will start within KDE, TWM, IceWM, Gnome..., but not within
FB. For me it looks like the client cannot draw its window.

Has anyone got some idea what's up here?

# rpm -qa | grep flux
fluxbox-1.3.1-1.1.x86_64

Thanks!
--
Andre Tann
Mathias Gumz
2011-08-01 17:43:09 UTC
Permalink
Post by Andre Tann
what can be the reason that it's not possible to start the bitcoin
client within the fluxbox?
what actually happens, if you start the bitcoin-client?

regards,
mathias
--
  [uid] mathias gumz [mail] akira at fluxbox dot org [pgp] 1024D/F6F6B18C
  [www] http://www.darkshed.net/ [irc] ak|ra (#fluxbox at freenode.org)
Ben Kevan
2011-08-01 17:45:59 UTC
Permalink
Also, which bitcoin client are you using?

I can open mine just fine, openSUSE 11.4 w/ 1.3.1
Post by Mathias Gumz
Post by Andre Tann
what can be the reason that it's not possible to start the bitcoin
client within the fluxbox?
what actually happens, if you start the bitcoin-client?
regards,
mathias
--
[uid] mathias gumz [mail] akira at fluxbox dot org [pgp] 1024D/F6F6B18C
[www] http://www.darkshed.net/ [irc] ak|ra (#fluxbox at freenode.org)
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Fluxbox-users mailing list
https://lists.sourceforge.net/lists/listinfo/fluxbox-users
Andre Tann
2011-08-01 19:17:25 UTC
Permalink
Post by Ben Kevan
Also, which bitcoin client are you using?
# bitcoin --help
bitcoin version 0.3.20.2 beta
--
Andre Tann
Andre Tann
2011-08-01 19:15:32 UTC
Permalink
Post by Mathias Gumz
Post by Andre Tann
what can be the reason that it's not possible to start the bitcoin
client within the fluxbox?
what actually happens, if you start the bitcoin-client?
Nothing. Well, almost nothing. Starting the client does nothing, except
drawing an empty entry in the slit. Moving the mouse over this area
shows a yellow rectangle "Bitcoin".
Killing the bitcoin client removes this empty area in the slit.

This is the same behavior when started under KDE: there is also this
empty area showing up besides the clock. But bitcoin shows up with the
expected windows also, which it doesn't under FB.


The console out of which bitcoin was started doesn't show anything:

~> bitcoin
^C
~>

However bitcoin is running, when started like this:

~> tail -f .bitcoin/debug.log
trying connection lastseen=-0,9hrs lasttry=-364507,2hrs
IRC got join
IRC got join
AddAddress()
IRC got new address
IRC got join
IRC got join
IRC got join
IRC got join
IRC got join
IRC got join
IRC got join
AddAddress()
IRC got new address
IRC got join
[…]

So bitcoin seems to be running, and just not showing its window.
--
Andre Tann
Kevin Van Workum
2011-08-01 17:41:34 UTC
Permalink
You're probably missing some required libs. Try "ldd program" where program
is your bitcoin client.
Post by Andre Tann
Hello everyone,
what can be the reason that it's not possible to start the bitcoin
client within the fluxbox?
The client will start within KDE, TWM, IceWM, Gnome..., but not within
FB. For me it looks like the client cannot draw its window.
Has anyone got some idea what's up here?
# rpm -qa | grep flux
fluxbox-1.3.1-1.1.x86_64
Thanks!
--
Andre Tann
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Fluxbox-users mailing list
https://lists.sourceforge.net/lists/listinfo/fluxbox-users
Andre Tann
2011-08-01 19:05:47 UTC
Permalink
Hello Kevin,
Post by Kevin Van Workum
You're probably missing some required libs. Try "ldd program" where program
is your bitcoin client.
Here we go, but unfortunately I don't know how to read the output.
Anyway, how can it be that bitcoin is missing some libs when running
under FB, but isn't, when running under some other windowmaker?


# ldd bin/bitcoin-0.3.20.2/bin/64/bitcoin
linux-vdso.so.1 => (0x00007ffff81ff000)
libgtk-x11-2.0.so.0 => /usr/lib64/libgtk-x11-2.0.so.0
(0x00007f8bf6f0d000)
libSM.so.6 => /usr/lib64/libSM.so.6 (0x00007f8bf6d04000)
libgthread-2.0.so.0 => /lib64/libgthread-2.0.so.0
(0x00007f8bf6aff000)
libz.so.1 => /lib64/libz.so.1 (0x00007f8bf68e7000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f8bf66e3000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f8bf63da000)
libm.so.6 => /lib64/libm.so.6 (0x00007f8bf6183000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f8bf5f6d000)
libc.so.6 => /lib64/libc.so.6 (0x00007f8bf5c00000)
libgdk-x11-2.0.so.0 => /usr/lib64/libgdk-x11-2.0.so.0
(0x00007f8bf594b000)
libXinerama.so.1 => /usr/lib64/libXinerama.so.1
(0x00007f8bf5748000)
libgdk_pixbuf-2.0.so.0 => /usr/lib64/libgdk_pixbuf-2.0.so.0
(0x00007f8bf5529000)
libpangocairo-1.0.so.0 => /usr/lib64/libpangocairo-1.0.so.0
(0x00007f8bf531c000)
libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007f8bf4fd9000)
libcairo.so.2 => /usr/lib64/libcairo.so.2 (0x00007f8bf4d21000)
libpango-1.0.so.0 => /usr/lib64/libpango-1.0.so.0
(0x00007f8bf4ad5000)
libgobject-2.0.so.0 => /lib64/libgobject-2.0.so.0
(0x00007f8bf4884000)
libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x00007f8bf4592000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f8bf4375000)
libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x00007f8bf414b000)
libXfixes.so.3 => /usr/lib64/libXfixes.so.3 (0x00007f8bf3f45000)
libatk-1.0.so.0 => /usr/lib64/libatk-1.0.so.0
(0x00007f8bf3d23000)
libgio-2.0.so.0 => /lib64/libgio-2.0.so.0 (0x00007f8bf39f5000)
libpangoft2-1.0.so.0 => /usr/lib64/libpangoft2-1.0.so.0
(0x00007f8bf37c8000)
libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1
(0x00007f8bf3591000)
libgmodule-2.0.so.0 => /lib64/libgmodule-2.0.so.0
(0x00007f8bf338d000)
libICE.so.6 => /usr/lib64/libICE.so.6 (0x00007f8bf3170000)
libuuid.so.1 => /lib64/libuuid.so.1 (0x00007f8bf2f6b000)
librt.so.1 => /lib64/librt.so.1 (0x00007f8bf2d62000)
/lib64/ld-linux-x86-64.so.2 (0x00007f8bf754b000)
libXext.so.6 => /usr/lib64/libXext.so.6 (0x00007f8bf2b4f000)
libXrender.so.1 => /usr/lib64/libXrender.so.1
(0x00007f8bf2944000)
libXi.so.6 => /usr/lib64/libXi.so.6 (0x00007f8bf2734000)
libXrandr.so.2 => /usr/lib64/libXrandr.so.2 (0x00007f8bf252b000)
libXcursor.so.1 => /usr/lib64/libXcursor.so.1
(0x00007f8bf2320000)
libXcomposite.so.1 => /usr/lib64/libXcomposite.so.1
(0x00007f8bf211d000)
libXdamage.so.1 => /usr/lib64/libXdamage.so.1
(0x00007f8bf1f1a000)
libfreetype.so.6 => /usr/lib64/libfreetype.so.6
(0x00007f8bf1c90000)
libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007f8bf1a73000)
libpixman-1.so.0 => /usr/lib64/libpixman-1.so.0
(0x00007f8bf1804000)
libpng14.so.14 => /usr/lib64/libpng14.so.14 (0x00007f8bf15da000)
libpcre.so.0 => /lib64/libpcre.so.0 (0x00007f8bf13a4000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f8bf118d000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f8bf0f6e000)
libexpat.so.1 => /lib64/libexpat.so.1 (0x00007f8bf0d44000)
libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007f8bf0b40000)

--
Andre Tann
Kevin Van Workum
2011-08-01 19:15:27 UTC
Permalink
Post by Andre Tann
Hello Kevin,
Post by Kevin Van Workum
You're probably missing some required libs. Try "ldd program" where
program
Post by Kevin Van Workum
is your bitcoin client.
Here we go, but unfortunately I don't know how to read the output.
Anyway, how can it be that bitcoin is missing some libs when running
under FB, but isn't, when running under some other windowmaker?
# ldd bin/bitcoin-0.3.20.2/bin/64/bitcoin
linux-vdso.so.1 => (0x00007ffff81ff000)
libgtk-x11-2.0.so.0 => /usr/lib64/libgtk-x11-2.0.so.0
(0x00007f8bf6f0d000)
libSM.so.6 => /usr/lib64/libSM.so.6 (0x00007f8bf6d04000)
libgthread-2.0.so.0 => /lib64/libgthread-2.0.so.0
(0x00007f8bf6aff000)
libz.so.1 => /lib64/libz.so.1 (0x00007f8bf68e7000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f8bf66e3000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f8bf63da000)
libm.so.6 => /lib64/libm.so.6 (0x00007f8bf6183000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f8bf5f6d000)
libc.so.6 => /lib64/libc.so.6 (0x00007f8bf5c00000)
libgdk-x11-2.0.so.0 => /usr/lib64/libgdk-x11-2.0.so.0
(0x00007f8bf594b000)
libXinerama.so.1 => /usr/lib64/libXinerama.so.1
(0x00007f8bf5748000)
libgdk_pixbuf-2.0.so.0 => /usr/lib64/libgdk_pixbuf-2.0.so.0
(0x00007f8bf5529000)
libpangocairo-1.0.so.0 => /usr/lib64/libpangocairo-1.0.so.0
(0x00007f8bf531c000)
libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007f8bf4fd9000)
libcairo.so.2 => /usr/lib64/libcairo.so.2 (0x00007f8bf4d21000)
libpango-1.0.so.0 => /usr/lib64/libpango-1.0.so.0
(0x00007f8bf4ad5000)
libgobject-2.0.so.0 => /lib64/libgobject-2.0.so.0
(0x00007f8bf4884000)
libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x00007f8bf4592000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f8bf4375000)
libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x00007f8bf414b000)
libXfixes.so.3 => /usr/lib64/libXfixes.so.3 (0x00007f8bf3f45000)
libatk-1.0.so.0 => /usr/lib64/libatk-1.0.so.0
(0x00007f8bf3d23000)
libgio-2.0.so.0 => /lib64/libgio-2.0.so.0 (0x00007f8bf39f5000)
libpangoft2-1.0.so.0 => /usr/lib64/libpangoft2-1.0.so.0
(0x00007f8bf37c8000)
libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1
(0x00007f8bf3591000)
libgmodule-2.0.so.0 => /lib64/libgmodule-2.0.so.0
(0x00007f8bf338d000)
libICE.so.6 => /usr/lib64/libICE.so.6 (0x00007f8bf3170000)
libuuid.so.1 => /lib64/libuuid.so.1 (0x00007f8bf2f6b000)
librt.so.1 => /lib64/librt.so.1 (0x00007f8bf2d62000)
/lib64/ld-linux-x86-64.so.2 (0x00007f8bf754b000)
libXext.so.6 => /usr/lib64/libXext.so.6 (0x00007f8bf2b4f000)
libXrender.so.1 => /usr/lib64/libXrender.so.1
(0x00007f8bf2944000)
libXi.so.6 => /usr/lib64/libXi.so.6 (0x00007f8bf2734000)
libXrandr.so.2 => /usr/lib64/libXrandr.so.2 (0x00007f8bf252b000)
libXcursor.so.1 => /usr/lib64/libXcursor.so.1
(0x00007f8bf2320000)
libXcomposite.so.1 => /usr/lib64/libXcomposite.so.1
(0x00007f8bf211d000)
libXdamage.so.1 => /usr/lib64/libXdamage.so.1
(0x00007f8bf1f1a000)
libfreetype.so.6 => /usr/lib64/libfreetype.so.6
(0x00007f8bf1c90000)
libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007f8bf1a73000)
libpixman-1.so.0 => /usr/lib64/libpixman-1.so.0
(0x00007f8bf1804000)
libpng14.so.14 => /usr/lib64/libpng14.so.14 (0x00007f8bf15da000)
libpcre.so.0 => /lib64/libpcre.so.0 (0x00007f8bf13a4000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f8bf118d000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f8bf0f6e000)
libexpat.so.1 => /lib64/libexpat.so.1 (0x00007f8bf0d44000)
libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007f8bf0b40000)
Looks like you have all the required libs in the right places. So maybe send
us the output of "strace bitcoin". Do you see anything in /var/log/messages?
Any other error messages?
Post by Andre Tann
--
Andre Tann
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Fluxbox-users mailing list
https://lists.sourceforge.net/lists/listinfo/fluxbox-users
Andre Tann
2011-08-01 19:47:41 UTC
Permalink
Post by Kevin Van Workum
Looks like you have all the required libs in the right places. So maybe
send us the output of "strace bitcoin".
See this:

# strace bitcoin > bitcoin.strace 2>&1
[…wait for 20 seconds or so…]
^C
# cat bitcoin.strace

See the output here: http://alphasrv.net/bitcoin.strace
Post by Kevin Van Workum
Do you see anything in
/var/log/messages? Any other error messages?
Nothing there that relates to bitcoin. Only SMART complaining about
temperatur changes.
--
Andre Tann
Kevin Van Workum
2011-08-01 20:58:22 UTC
Permalink
Post by Andre Tann
Post by Kevin Van Workum
Looks like you have all the required libs in the right places. So maybe
send us the output of "strace bitcoin".
# strace bitcoin > bitcoin.strace 2>&1
[…wait for 20 seconds or so…]
^C
# cat bitcoin.strace
See the output here: http://alphasrv.net/bitcoin.strace
I'm seeing a lot of "EAGAIN (Resource temporarily unavailable)" messages.
This usually means you're running out of memory or disk space. Try running
"top" to see how much memory bitcoin is using. Also, take a look at df to
see how much disk space you have.

Is this running over NFS or on a local disk?
Post by Andre Tann
Post by Kevin Van Workum
Do you see anything in
/var/log/messages? Any other error messages?
Nothing there that relates to bitcoin. Only SMART complaining about
temperatur changes.
--
Andre Tann
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Fluxbox-users mailing list
https://lists.sourceforge.net/lists/listinfo/fluxbox-users
Andre Tann
2011-08-02 06:44:27 UTC
Permalink
Hello Kevin,
Post by Kevin Van Workum
I'm seeing a lot of "EAGAIN (Resource temporarily unavailable)" messages.
This usually means you're running out of memory or disk space. Try running
"top" to see how much memory bitcoin is using. Also, take a look at df to
see how much disk space you have.
Both should not be a problem:

# top
top - 08:30:26 up 1:16, 6 users, load average: 0.34, 0.17, 0.10
Tasks: 174 total, 1 running, 173 sleeping, 0 stopped, 0 zombie
Cpu(s): 2.8%us, 1.2%sy, 0.0%ni, 71.4%id, 24.4%wa, 0.0%hi, 0.2%si,
0.0%st
Mem: 8158608k total, 4964560k used, 3194048k free, 40468k buffers
Swap: 3903784k total, 0k used, 3903784k free, 4132672k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5799 afeile 20 0 151m 37m 13m D 6 0.5 0:00.89 bitcoin


# df -h
Filesystem Size Used Avail Use%% Mounted on
rootfs 19G 5,0G 13G 29% /
devtmpfs 3,9G 332K 3,9G 1% /dev
tmpfs 3,9G 4,0K 3,9G 1% /dev/shm
/dev/md2 19G 5,0G 13G 29% /
/dev/mapper/alpha 500G 227G 274G 46% /home
Post by Kevin Van Workum
Is this running over NFS or on a local disk?
It is running on a local disk in /home, which is an XFS file system.


I don't think that the EAGAIN entries are a problem. If I run "strace
bitcoin" within IceWM, then also tons of EAGAIN entries occur, even
though bitcoin is starting normally.
--
Andre Tann
Kevin Van Workum
2011-08-02 11:31:19 UTC
Permalink
Post by Andre Tann
Hello Kevin,
Post by Kevin Van Workum
I'm seeing a lot of "EAGAIN (Resource temporarily unavailable)" messages.
This usually means you're running out of memory or disk space. Try
running
Post by Kevin Van Workum
"top" to see how much memory bitcoin is using. Also, take a look at df to
see how much disk space you have.
# top
top - 08:30:26 up 1:16, 6 users, load average: 0.34, 0.17, 0.10
Tasks: 174 total, 1 running, 173 sleeping, 0 stopped, 0 zombie
Cpu(s): 2.8%us, 1.2%sy, 0.0%ni, 71.4%id, 24.4%wa, 0.0%hi, 0.2%si,
0.0%st
Mem: 8158608k total, 4964560k used, 3194048k free, 40468k buffers
Swap: 3903784k total, 0k used, 3903784k free, 4132672k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5799 afeile 20 0 151m 37m 13m D 6 0.5 0:00.89 bitcoin
Note the 'D' status. It's in an uninterruptable sleep state. Pretty sure
this has nothing to do with fluxbox now. One last idea. Try using lsof to
see what is has open under fb and your other wm. Maybe the difference will
give you a clue.
Post by Andre Tann
# df -h
Filesystem Size Used Avail Use%% Mounted on
rootfs 19G 5,0G 13G 29% /
devtmpfs 3,9G 332K 3,9G 1% /dev
tmpfs 3,9G 4,0K 3,9G 1% /dev/shm
/dev/md2 19G 5,0G 13G 29% /
/dev/mapper/alpha 500G 227G 274G 46% /home
Post by Kevin Van Workum
Is this running over NFS or on a local disk?
It is running on a local disk in /home, which is an XFS file system.
I don't think that the EAGAIN entries are a problem. If I run "strace
bitcoin" within IceWM, then also tons of EAGAIN entries occur, even
though bitcoin is starting normally.
--
Andre Tann
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Fluxbox-users mailing list
https://lists.sourceforge.net/lists/listinfo/fluxbox-users
Andre Tann
2011-08-02 17:43:16 UTC
Permalink
Post by Kevin Van Workum
Note the 'D' status. It's in an uninterruptable sleep state. Pretty sure
this has nothing to do with fluxbox now.
OK, but there must be another reason then.

In the meantime I have set up a completely new and empty account on my
machine. And even there: bitcoin runs with every windowmanager, but not
with fluxbox.
Post by Kevin Van Workum
One last idea. Try using lsof to
see what is has open under fb and your other wm. Maybe the difference will
give you a clue.
lsof | grep bitcoin > lsof-bitcoin-fluxbox
(see the output here: http://alphasrv.net/lsof-bitcoin-fluxbox)
lsof | grep bitcoin > lsof-bitcoin-twm
(see the output here: http://alphasrv.net/lsof-bitcoin-twm)

For me it's difficult to see the relevant parts. But a wc -l on either
file shows 778 lines.


Can it be that bitcoin tries to draw its window outside of the visible
area? Is there a way to catch such a window?

And why does bitcoin draw an empty entry in the slit, as it does in the
KDE? For me that's a hint that something is wrong with drawing the
window.
--
Andre Tann
Raphaël
2011-08-02 04:41:04 UTC
Permalink
Post by Andre Tann
what can be the reason that it's not possible to start the bitcoin
client within the fluxbox?
maybe because bitcoins kill polar bears more surely than real coins ?
Ben Kevan
2011-08-02 05:09:33 UTC
Permalink
Bitcoins will bring the next crazy wave of cyber crimes once they hit
the non techy mainstream.
Post by Raphaël
Post by Andre Tann
what can be the reason that it's not possible to start the bitcoin
client within the fluxbox?
maybe because bitcoins kill polar bears more surely than real coins ?
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Fluxbox-users mailing list
https://lists.sourceforge.net/lists/listinfo/fluxbox-users
--
Sent from my mobile device
Mathias Gumz
2011-08-02 05:52:38 UTC
Permalink
Post by Andre Tann
what can be the reason that it's not possible to start the bitcoin
client within the fluxbox?
i've downloaded the bitcoin-software, version 0.3.24-beta. untarred
it. started ./bin/64/bitcoin on my ubuntu-11.04 (64bit) with my
fluxbox-822c02e96a88a90540fa622afa5ab196b9ba5a7c.

seems to work just fine.

o/
--
  [uid] mathias gumz [mail] akira at fluxbox dot org [pgp] 1024D/F6F6B18C
  [www] http://www.darkshed.net/ [irc] ak|ra (#fluxbox at freenode.org)
Continue reading on narkive:
Loading...