udpsend problem


    Jun 21 2007 | 9:31 am
    hi list,
    i've got a problem with udpsend, the object crash when sending message at high rate to different computers.
    is there a speed limitation that i shouldn't overcome ?
    once the crash appears, i need to restart max to be able to use udpsend again.
    could you test this please?
    G
    here's the illustrating patch :

    • Jun 21 2007 | 10:38 am
      I get no crash but it does drop packets (as expected).
      It also says 'error: udp.send: socket method unsuccessful'. I don't know if this indicates an error different than the overflow but at least it is not a very clear message.
      Mattijs
      Quote: G. wrote on Thu, 21 June 2007 11:31
      ----------------------------------------------------
      > hi list,
      >
      > i've got a problem with udpsend, the object crash when sending message at high rate to different computers.
      > is there a speed limitation that i shouldn't overcome ?
      > once the crash appears, i need to restart max to be able to use udpsend again.
      > could you test this please?
      >
      > G
      >
      > here's the illustrating patch :
      >
      > #P window setfont "Sans Serif" 9.;
      > #P window linecount 1;
      > #P newex 205 238 67 196617 prepend host;
      > #P newex 159 212 56 196617 unpack s s;
      > #P newex 167 129 53 196617 t b b b b;
      > #P message 377 171 103 196617 msg_to 192.168.0.4;
      > #P message 268 171 103 196617 msg_to 192.168.0.3;
      > #P message 159 171 103 196617 msg_to 192.168.0.2;
      > #P message 50 171 103 196617 msg_to 192.168.0.1;
      > #P toggle 167 81 15 0;
      > #P newex 167 101 59 196617 metro 5;
      > #P newex 159 271 132 196617 udpsend 192.168.0.1 4444;
      > #P window setfont "Sans Serif" 12.;
      > #P comment 186 81 246 196620 click and wait , watch your max window;
      > #P connect 9 0 1 0;
      > #P connect 10 0 1 0;
      > #P connect 9 1 10 0;
      > #P connect 7 0 9 0;
      > #P connect 6 0 9 0;
      > #P connect 5 0 9 0;
      > #P connect 4 0 9 0;
      > #P connect 8 3 7 0;
      > #P connect 8 2 6 0;
      > #P connect 8 1 5 0;
      > #P connect 8 0 4 0;
      > #P connect 2 0 8 0;
      > #P connect 3 0 2 0;
      > #P window clipboard copycount 11;
      >
      ----------------------------------------------------
    • Jun 21 2007 | 11:32 am
      for me the crash occurs when i try to save the patch after this drop of packets.
      g
    • Jun 21 2007 | 11:45 am
      Quote: G. wrote on Thu, 21 June 2007 13:32
      ----------------------------------------------------
      > for me the crash occurs when i try to save the patch after this drop of packets.
      > g
      ----------------------------------------------------
      A! That's a useful addition ;)
      Confirmed, reproducable crash. Not only when saving this patch but when opening any save dialog.
      I took the liberty of reformatting your patch. Here are clear steps to reproduce the crash:
      Max 4.6.3, Mac OS X.4.9
      Mattijs
    • Jun 21 2007 | 1:20 pm
      Thanks - I can reproduce too.
      -A