We're Hiring!

Creating Tables Issue

General and open developer discussion about using OMERO APIs from C++, Java, Python, Matlab and more! Please new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

If you are having trouble with custom code, please provide a link to a public repository, ideally GitHub.

Creating Tables Issue

Postby icaoberg » Thu May 03, 2012 4:08 pm

we had an issue and would like your feedback, if possible. at this we are using the omerocli to import and attach H5 tables to these images. at some point last night we starting getting this error

Code: Select all
/usr/lib/python2.5/site-packages/pyslid/features.pyc in link(conn,
iid, scale, fids, features, set, field, rid, pixels, channel, zslice,
timepoint, debug)
     703             #table for cell level features (roi == regions of
interest)
     704             table = conn.getSharedResources().newTable( 1,
'iid-' + str(iid) + '_feature-' + str(set) + '_roi.h5' )
--> 705         table.initialize(columns)
     706
     707         try:
AttributeError: 'NoneType' object has no attribute 'initialize'


since i know this error occurs when the table is nonetype i tried making a dummy table and got the same result. i restarted omero and the problem remained. then i restarted the node and now it works. we figure out there might be a memory leak. do you have any recommendations on how to handle this particular issue?
icaoberg
 
Posts: 145
Joined: Fri Sep 17, 2010 9:05 pm
Location: Pittsburgh, PA

Re: Creating Tables Issue

Postby cxallan » Thu May 03, 2012 4:19 pm

I'd guess that there was an exception creating the Table. We'd have to see the Tables-0.log to see what might have happened.
cxallan
Site Admin
 
Posts: 509
Joined: Fri May 01, 2009 8:07 am

Re: Creating Tables Issue

Postby icaoberg » Thu May 03, 2012 5:27 pm

how are exceptions reported in the log file? it would be easier to grep for a line. we have more than ten log files at the moment.
icaoberg
 
Posts: 145
Joined: Fri Sep 17, 2010 9:05 pm
Location: Pittsburgh, PA

Re: Creating Tables Issue

Postby jmoore » Thu May 03, 2012 5:32 pm

ERROR would be a good start, Ivan, but really just the latest log file (var/log/Tables-0.log) would probably be the most useful. ~J.
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Re: Creating Tables Issue

Postby chrism » Tue Jun 12, 2012 2:49 pm

Hi,

same problem here. Working through the example code in http://trac.openmicroscopy.org.uk/ome/w ... MEROtables fails on newTable() resulting in type(table) == NoneType.

@icaoberg: Have you solved your issue?

Here is the complete Table-0.log after OMERO restart:

Code: Select all
2012-06-12 16:24:07,697 INFO  [                       omero.util.Server] (MainThread) Stopped
2012-06-12 16:24:07,698 INFO  [                       omero.util.Server] (MainThread) ********************************************************************************
2012-06-12 16:24:07,701 INFO  [                    omero.util.Resources] (Thread-2  ) Halted
2012-06-12 16:24:18,728 INFO  [                       omero.util.Server] (MainThread) ********************************************************************************
2012-06-12 16:24:18,728 INFO  [                       omero.util.Server] (MainThread) Starting
2012-06-12 16:24:18,728 INFO  [                       omero.util.Server] (MainThread) Loaded dependency numpy (1.4.1)
2012-06-12 16:24:18,728 INFO  [                       omero.util.Server] (MainThread) Loaded dependency tables (2.1.2, hdf=1.8.4-patch1)
2012-06-12 16:24:18,729 INFO  [                    omero.util.Resources] (Thread-2  ) Starting
2012-06-12 16:24:31,305 INFO  [                             omero.utils] (MainThread) Failed to get session on attempt 1
2012-06-12 16:24:41,483 INFO  [                       omero.util.Server] (MainThread) Entering main loop
2012-06-12 16:28:13,656 INFO  [                            omero.remote] (Dummy-3   )  Meth: TablesI.getTable
2012-06-12 16:28:13,656 INFO  [                    omero.tables.TablesI] (Dummy-3   ) getTable: 18301 {}
2012-06-12 16:28:14,536 INFO  [                       omero.util.Server] (MainThread) ********************************************************************************
2012-06-12 16:28:14,536 INFO  [                       omero.util.Server] (MainThread) Starting
2012-06-12 16:28:14,536 INFO  [                       omero.util.Server] (MainThread) Loaded dependency numpy (1.4.1)
2012-06-12 16:28:14,536 INFO  [                       omero.util.Server] (MainThread) Loaded dependency tables (2.1.2, hdf=1.8.4-patch1)
2012-06-12 16:28:14,537 INFO  [                    omero.util.Resources] (Thread-2  ) Starting
2012-06-12 16:28:14,655 INFO  [                       omero.util.Server] (MainThread) Entering main loop


\m/ Christian
chrism
 
Posts: 9
Joined: Thu Mar 10, 2011 1:38 pm

Re: Creating Tables Issue

Postby cxallan » Wed Jun 13, 2012 12:09 pm

If you try the following Christian can you then create a table?

Code: Select all
...
$ bin/omero admin ice 'server stop Tables-0'
...


What that does is just restart the OMERO.tables process.
cxallan
Site Admin
 
Posts: 509
Joined: Fri May 01, 2009 8:07 am

Re: Creating Tables Issue

Postby chrism » Fri Jun 15, 2012 10:48 am

Hi,

Thank you for your advice. But the reason for my issue was a broken PyTables setup. PyTables tried to use outdated HDF5 shared libs from a Matlab installation.

Best,

\m/ Christian
chrism
 
Posts: 9
Joined: Thu Mar 10, 2011 1:38 pm


Return to Developer Discussion

Who is online

Users browsing this forum: No registered users and 1 guest