[PD] pd-extended crashes sending data to SSR with tcpclient

Iain Mott mott at reverberant.com
Mon Jul 1 16:40:19 CEST 2013


Thanks very much IOhannes! 

The mrpeach version was being loaded by default. When I use
iemnet/tcpclient it doesn't crash. That's great.

There's a difference however in the way mrpeach/tcpclient and
iemnet/tcpclient sends received data to its output. 

Messages from SSR received by mrpeach/tcpclient are sent to its output
as a list (if that's the right word), for example as:

60 117 112 100 97 116 101 62 60 115 111 117 114 99 101 32 105 100 61 39
49 39 32 108 101 118 101 108 61 39 45 57 56 46 56 53 51 49 39 47 62 60
115 111 117 114 99 101 32 105 100 61 39 50 39 32 108 101 118 101 108 61
39 45 49 48 48 46 49 55 55 39 47 62 60 115 111 117 114 99 101 32 105 100
61 39 51 39 32 108 101 118 101 108 61 39 45 49 48 48 46 53 53 54 39 47
62 60 115 111 117 114 99 101 32 105 100 61 39 52 39 32 108 101 118 101
108 61 39 45 57 56 46 51 50 51 57 39 47 62 60 47 117 112 100 97 116 101
62 0

This is easily converted to a readable XML string with "string2any 0 0"
to get:

<update><source id='1' level='-98.8531'/><source id='2'
level='-100.177'/><source id='3' level='-100.556'/><source id='4'
level='-98.3239'/></update>

iemnet/tcpclient on the other hand sends individual numbers to its
output as a stream rather than a list. 

eg

60
117
112
100
97
....... etc. 

And there are various messages of various lengths. I guess if I use
iemnet/tcpclient I'll need to find a different way of parsing these
numbers.... Not my strong point with Pd!

I'll try the backtrace and other things you suggest and report back on
mrpeach/tcpclient in another email.

Cheers and thanks again,

Iain




Em Mon, 2013-07-01 às 09:23 +0200, IOhannes m zmoelnig escreveu:
> On 2013-06-29 20:19, Iain Mott wrote:
> > Hi list,
> > 
> > Pd-extended (Pd-0.43.1 "extended-20120430" compiled 00:31:34 Apr 30
> > 2012) is crashing when I send data to the SoundScape Renderer on 
> > Ubuntu 12.04 using tcpclient.
> 
> hmm, since Pd and SSR are only communicating via a network socket, i
> only have 2 possible explanations:
> 
> - either the network code is broken
> - or SSR sends data in a format that exposes/triggers a bug (e.g. a
> memory leak) in Pd
> 
> since there are several network implementations, which one are you
> using? mrpeach? iemnet??
> 
> do SSR and Pd agree on the actual protocol? e.g. OSC over TCP/IP (if
> it is that) used to be badly defined in the olde days, and you still
> see the deprecated non-SLIP implementation. afaik liblo only recently
> changed their TCP/IP code to use SLIP.
> 
> could you get a backtrace of the crash? [1]
> 
> do you notice anything weird?
> like when running htop besides Pd, do you see an excess of memory usage?
> 
> 
> try running Pd with "-verbose -verbose -stderr"; sometimes their is a
> printout when Pd is crashing, which get's lost once the Pd-GUI closes
> (that is: quite immediately)
> 
> fgamsdr
> IOhannes
> 
> 
> [1] http://wiki.debian.org/HowToGetABacktrace
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list





More information about the Pd-list mailing list