[PlanetCCRMA] pd-gui doesn't appear

Fernando Lopez-Lezcano nando@ccrma.Stanford.EDU
Tue Feb 8 13:47:01 2005


On Tue, 2005-02-08 at 13:23, jan hendrik brueggemeier wrote:
> hm,
> 
> after an dist-upgrade it least stopped misbehaving restarting whole
> machine, but i could not find a hint in /var/log/messages

Well, that's good, I had never seen that happen with pd. 

> but i noticed that i might be missing some depending libs:
> 
> i can find following files on my hd:
> /usr/bin/pd
> 
> ls -la /usr/lib/pd/bin:
> drwxr-xr-x  2 root root   4096  8. Feb 21:56 .
> drwxr-xr-x  8 root root   4096  3. Feb 20:06 ..
> -rwxr-xr-x  1 root root  15656 29. Dez 21:52 pd-gui
> -rw-r--r--  1 root root 111681 29. Dez 21:52 pd.tk
> -rwxr-xr-x  1 root root   4968 29. Dez 21:52 pd-watchd
> 
> ldd /usr/bin/pd
> linux-gate.so.1 =>  (0xffffe000)
> libasound.so.2 => /usr/lib/libasound.so.2 (0x4267d000)
> librt.so.1 => /lib/tls/librt.so.1 (0x42620000)
> libjack.so.0 => /usr/lib/libjack.so.0 (0x4239c000)
> libdl.so.2 => /lib/libdl.so.2 (0x41b02000)
> libm.so.6 => /lib/tls/libm.so.6 (0x41add000)
> libpthread.so.0 => /lib/tls/libpthread.so.0 (0x41bf3000)
> libc.so.6 => /lib/tls/libc.so.6 (0x419b1000)
> /lib/ld-linux.so.2 (0x41998000)
>
> but it should rather look like this:
> 
> $ ldd /usr/bin/pd
>         libtk8.3.so.1 => /usr/lib/libtk8.3.so.1 (0x40023000)
>         libtcl8.3.so.1 => /usr/lib/libtcl8.3.so.1 (0x400d6000)
>         libdl.so.2 => /lib/libdl.so.2 (0x4015a000)
>         libm.so.6 => /lib/libm.so.6 (0x4015d000)
>         libpthread.so.0 => /lib/libpthread.so.0 (0x4017e000)
>         libasound.so.2 => /usr/lib/libasound.so.2 (0x401cd000)
>         libjack-0.44.0.so.0 => /usr/lib/libjack-0.44.0.so.0 (0x4024e000)
>         libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40257000)
>         libc.so.6 => /lib/libc.so.6 (0x40311000)
>         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
>
> so i am at least missing the dependencies of tcl and X11 ..

Pd has the gui on a separate executable and (I think) they communicate
through sockets or something like that. See what you get if you ldd the
pd-gui program:

> ldd /usr/lib/pd/bin/pd-gui
        libtk8.3.so => /usr/lib/libtk8.3.so (0x40037000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x400f6000)
        libtcl8.3.so => /usr/lib/libtcl8.3.so (0x401d5000)
        librt.so.1 => /lib/i686/librt.so.1 (0x4025f000)
        libjack.so.0 => /usr/lib/libjack.so.0 (0x40271000)
        libc.so.6 => /lib/i686/libc.so.6 (0x4027d000)
        libdl.so.2 => /lib/libdl.so.2 (0x403b6000)
        libm.so.6 => /lib/i686/libm.so.6 (0x403bb000)
        libpthread.so.0 => /lib/i686/libpthread.so.0 (0x403dd000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

That's where the connection to X happens...

My feeling is that it is a problem with registering or accessing the
sockets that the synth engine uses to connect to the gui and viceversa.
I don't really know how to debug this. It may be connected to improper
configuration of the host name and/or networking. 

This is what I get in terms of connections here, this is a diff of
"netstat -a" with and without pd running (so there's a socket or
whatever in /tmp/.X11-unix/X0):

@@ -118,6 +115,8 @@
 unix  2      [ ACC ]     STREAM     LISTENING     1951444
/tmp/.esd/socket
 unix  2      [ ACC ]     STREAM     LISTENING     1925573
/tmp/.X11-unix/X0
 unix  10     [ ]         DGRAM                    2782   /dev/log
+unix  3      [ ]         STREAM     CONNECTED     1965467
/tmp/.X11-unix/X0
+unix  3      [ ]         STREAM     CONNECTED     1965466
 unix  3      [ ]         STREAM     CONNECTED     1964839
/tmp/orbit-nando/orb-2022217272063031976
 unix  3      [ ]         STREAM     CONNECTED     1964838
 unix  3      [ ]         STREAM     CONNECTED     1964814
/tmp/orbit-nando/orb-16206008871774214356

To reproduce this:
  netstat -a &>netlist
start pd and
  netstat -a &>netpd
diff -uNr netlist netpd

-- Fernando