[Swift-devel] hanging problem

Jonathan Monette jon.monette at gmail.com
Wed Mar 23 16:31:15 CDT 2011


I think I have figured out my problem.  Here is the function it hangs in.

( Table fits_tbl ) mFitBatch( Image diff_imgs[], Table diff_tbl )
{
    Status stats[] <structured_regexp_mapper; source = diff_imgs, match =
".*\\/(.*)", transform = "stat_dir/stat.\\1">;

    Table status_tbl = create_status_table( diff_tbl );

    foreach img, i in stats
    {
        stats[ i ] = mFitplane ( diff_imgs[i] );
    }

    fits_tbl = mConcatFit( status_tbl, stats );
}

The app mConcatFit never executes.  Here is the app.

app ( Table fits_tbl ) mConcatFit( Table status_tbl, Status stats[] )
{
    mConcatFit @status_tbl @fits_tbl @dirname( stats[0] );
}

The problem is @dirname(stats[0]) returns an
org.griphyn.vdl.karajan.VDL2FutureException.  When I do a tracef( "%s\n",
@dirname(stats[0]) ) that is what gets printed to the screen.  This causes
the script to hang.  When I do a tracef( "%q\n", stats ) this is the output.

[org.griphyn.vdl.mapping.DataNode identifier
dataset:20110323-1620-9e0zjb30:720000000602 type Status with no value at
dataset=stats path=[0] (not closed),org.griphyn.vdl.mapping.DataNode
identifier dataset:20110323-1620-9e0zjb30:720000000601 type Status with no
value at dataset=stats path=[1] (not
closed),org.griphyn.vdl.mapping.DataNode identifier
dataset:20110323-1620-9e0zjb30:720000000599 type Status with no value at
dataset=stats path=[2] (not closed),org.griphyn.vdl.mapping.DataNode
identifier dataset:20110323-1620-9e0zjb30:720000000598 type Status with no
value at dataset=stats path=[3] (not
closed),org.griphyn.vdl.mapping.DataNode identifier
dataset:20110323-1620-9e0zjb30:720000000606 type Status with no value at
dataset=stats path=[4] (not closed),org.griphyn.vdl.mapping.DataNode
identifier dataset:20110323-1620-9e0zjb30:720000000605 type Status with no
value at dataset=stats path=[5] (not
closed),org.griphyn.vdl.mapping.DataNode identifier
dataset:20110323-1620-9e0zjb30:720000000604 type Status with no value at
dataset=stats path=[6] (not closed),org.griphyn.vdl.mapping.DataNode
identifier dataset:20110323-1620-9e0zjb30:720000000603 type Status with no
value at dataset=stats path=[7] (not
closed),org.griphyn.vdl.mapping.DataNode identifier
dataset:20110323-1620-9e0zjb30:720000000608 type Status with no value at
dataset=stats path=[8] (not closed),org.griphyn.vdl.mapping.DataNode
identifier dataset:20110323-1620-9e0zjb30:720000000607 type Status with no
value at dataset=stats path=[9] (not
closed),org.griphyn.vdl.mapping.DataNode identifier
dataset:20110323-1620-9e0zjb30:720000000600 type Status with no value at
dataset=stats path=[10] (not closed),org.griphyn.vdl.mapping.DataNode
identifier dataset:20110323-1620-9e0zjb30:720000000596 type Status with no
value at dataset=stats path=[11] (not
closed),org.griphyn.vdl.mapping.DataNode identifier
dataset:20110323-1620-9e0zjb30:720000000597 type Status with no value at
dataset=stats path=[12] (not closed),org.griphyn.vdl.mapping.DataNode
identifier dataset:20110323-1620-9e0zjb30:720000000594 type Status with no
value at dataset=stats path=[13] (not
closed),org.griphyn.vdl.mapping.DataNode identifier
dataset:20110323-1620-9e0zjb30:720000000595 type Status with no value at
dataset=stats path=[14] (not closed),org.griphyn.vdl.mapping.DataNode
identifier dataset:20110323-1620-9e0zjb30:720000000592 type Status with no
value at dataset=stats path=[15] (not
closed),org.griphyn.vdl.mapping.DataNode identifier
dataset:20110323-1620-9e0zjb30:720000000593 type Status with no value at
dataset=stats path=[16] (not closed)]

However, stats is closed with no listeners.
Status[] stats  Closed, no listeners

How can the array be closed but all of its values not be?  Attached is the
log for one of the runs that hangs.
-- 
Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction.
- Albert Einstein
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-devel/attachments/20110323/0d03cc8a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: m101_montage-20110310-2035-dmxf29be.log
Type: application/octet-stream
Size: 195772 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/swift-devel/attachments/20110323/0d03cc8a/attachment.obj>


More information about the Swift-devel mailing list