[chuck-users] New error message appears in 64 bit

Spencer Salazar spencer at ccrma.stanford.edu
Fri Sep 14 13:04:40 EDT 2012


Hey John,

Normally __DISABLE_OTF_SERVER__ should be undefined -- this is
expected behavior and has not changed recently, and Im not aware of
any issues with the new 64-bit versions that would cause any changes.

By default chuck will open up a server on port 8888 to handle incoming
on-the-fly programming requests (shred add/remove/replace, etc.). If
there is another chuck instance running, or you have miniAudicle's
chuck VM running with the OTF server turned on, then any additional
chuck instances will be unable to open the default OTF port (8888),
and will report an error as you have seen here. So typically this
error occurs as a result of running 2 or more chuck instances
simultaneously. But, as you have noticed, this error does not
interfere with chuck's normal operation unless you want to do OTF
live-coding from the command line.

spencer


On Fri, Sep 14, 2012 at 6:18 PM, John Ellinger <info at mibac.com> wrote:
> Hi,
>
> I'm using the latest ChucK 1.3.1.1 64bit on Mac 10.7.4.
>
> I've been getting this error message whenever running ChucK in the Terminal:
>
> [chuck]: cannot bind to tcp port 8888…
>
> ChucK programs continue to run fine, it's the first time I've seen this error message.
>
> I've been compiling the ChucK svn source code in Xcode for several months. The newest version compiles cleanly with no errors or warnings on Xcode 4.3.3. I've modified the Xcode project settings specifically to x86_64 and OS 10.7.
>
> This error string appears only once in chuck_main.cpp line 946.
> #ifndef __DISABLE_OTF_SERVER__
>         // log
>         EM_log( CK_LOG_SYSTEM, "starting listener on port: %d...", g_port );
>
>         // start tcp server
>         g_sock = ck_tcp_create( 1 );
>         if( !g_sock || !ck_bind( g_sock, g_port ) || !ck_listen( g_sock, 10 ) )
>         {
>>>>>            fprintf( stderr, "[chuck]: cannot bind to tcp port %li...\n", g_port );
>             ck_close( g_sock );
>             g_sock = NULL;
>         }
>         else
>         {
>          ...
>         }
> #endif // __DISABLE_OTF_SERVER__
>
> In chuck_def.h "#define __DISABLE_OTF_SERVER__" is only defined if  __CHIP_MODE__ is defined. I could not find "#define __CHIP_MODE__" anywhere in the 1.3.1.1 branch. If __CHIP_MODE__ is not defined, __DISABLE_OTF_SERVER__ is not defined, hence the error.
>
> John
>
>
> John Ellinger                           email: info at mibac.com
> MiBAC Music Software                    1019 College St.
> Music Instruction By A Computer         Northfield MN 55057
> http://www.mibac.com
>
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>


More information about the chuck-users mailing list