Following is the code snippet where i am getting the mentioned error.
//sequence_lib task body
wait_for_item_done(); //this is where code is stuck.
//Driver1 this is where I receive sequence from sequence_lib.
seq2.start(agent.sequencer); //This sequencer is different from the one in test.
//If I comment the above line then sequence_lib will execute for all 4 loop without getting stuck in //wait_for_item_done.
seq_item_port.item_done(); //This line is executing, But still the above wait is stuck.
//Inside body of seq2.
wait_for_item_done(); //This wait is getting hit and is moving forward.
Note: All other connections are done, but couldn't mention here.