Results 1 to 3 of 3

Thread: Cyclic call on proxy -> Deadlock

  1. #1
    MirkoWaechter is offline Registered User
    Name: Mirko Waechter
    Organization: University of Karlsruhe
    Project: Robot Framework
    Join Date
    Jan 2012
    Posts
    5

    Cyclic call on proxy -> Deadlock

    Hello,

    I have got the problem, that Ice hangs in a deadlock, when i make a RPC on a proxy A that waits for this proxy B. The RPC of Proxy B is read-only.

    For better understanding:

    Code:
    Proxy A                                  Proxy B
                ------Async*-----> 
                                              |
                                              |does stuff
                                              |
                                              \/
                <---new sync rpc**--
                --------result of **->  
                                               |
                                               |does stuff
                                               \/                                
               <-----result of *----
    *: Sends it own proxy with the rpc as function parameter
    ** new read-only rpc

    The system hangs on the RPC **, probably because the RPC * has not returned yet and it blocks until it has returned?

    But Is Ice thread-safe? - ZeroC Documentation - ZeroC says that I can call a proxy concurrently, so why does it block?
    Or may the mistake be somewhere else?

    Thanks four your help
    Mirko

  2. #2
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    Hello Mirko,

    Welcome to our forums.

    When using nested invocations, you have to be careful to not run out of threads in your thread pools.

    However, the very first thing I'd check here is that you activated the object adapter that hosts your "A" object.

    Best regards,
    Bernard
    Last edited by bernard; 01-24-2012 at 12:37 PM.
    Bernard Normier
    ZeroC, Inc.

  3. #3
    MirkoWaechter is offline Registered User
    Name: Mirko Waechter
    Organization: University of Karlsruhe
    Project: Robot Framework
    Join Date
    Jan 2012
    Posts
    5
    The Threadpool tip was golden. And a cause I certainly didnt expect.
    It was set to 1.
    Thank you.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Is it possible to map coments from slice >> C#?
    By Gravitas in forum Help Center
    Replies: 2
    Last Post: 03-04-2011, 10:04 AM
  2. Deadlock When server calls client via proxy
    By nlhaines in forum Help Center
    Replies: 2
    Last Post: 02-24-2011, 01:48 PM
  3. Replies: 1
    Last Post: 05-24-2010, 06:51 AM
  4. How to know it is async call or sync call?
    By alexnycheung in forum Help Center
    Replies: 1
    Last Post: 04-03-2009, 04:14 PM
  5. Replies: 3
    Last Post: 06-10-2004, 12:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •