Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #7776 (closed)

Opened 12 years ago

Closed 12 years ago

Bug: client.__del__ warnings in tests

Reported by: jamoore Owned by: jamoore
Priority: major Milestone: OMERO-4.4
Component: OmeroPy Version: n.a.
Keywords: n.a. Cc: python-team@…
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.

Description

When running:

components/tools/OmeroPy $ ant test -DTEST=gatewaytest.annotation

I see lots of these types of warning (I modified client.__del__ to print out the full stack trace):

     [exec] WARNING:omero.client:Ignoring error in client.__del__:<class 'Ice.ConnectionLostException'>
     [exec] Traceback (most recent call last):
     [exec]   File "/private/tmp/chris/components/tools/OmeroPy/target/omero/clients.py", line 316, in __del__
     [exec]     self.closeSession()
     [exec]   File "/private/tmp/chris/components/tools/OmeroPy/target/omero/clients.py", line 749, in closeSession
     [exec]     self.getRouter(oldIc).destroySession()
     [exec]   File "/usr/local/Cellar/zeroc-ice33/3.3.1/python/Glacier2_Router_ice.py", line 113, in destroySession
     [exec]     return _M_Glacier2.Router._op_destroySession.invoke(self, ((), _ctx))
     [exec] ConnectionLostException: Ice.ConnectionLostException:
     [exec] recv() returned zero

Any ideas why a client is hanging around? This might be related to issues such as "too many open files" etc.

Attachments (1)

log.txt (38.6 KB) - added by jmoore 12 years ago.
Related example from get_objects.py

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by jmoore

Related example from get_objects.py

comment:1 Changed 12 years ago by cneves

  • Owner changed from cneves-x to jmoore

There were a lot of changes going in since this was reported in the way the python gateway handles connections. I no longer see these warnings, so I assume we can call this fixed, but passing it back for retesting.

comment:2 Changed 12 years ago by jmoore

  • Resolution set to fixed
  • Status changed from new to closed

I'm assuming this is fixed.

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.66023 sec.)

We're Hiring!