Ding Junhui amused the crowd at the UK Championship as he struggled to play a difficult shot that eventually took three minutes in his match against Judd Trump.