Main thread gets stucked at GLKView's display after about an hour

I use GLKView's display to render video images. If I debugging my app with xcode, after about an hour the main thread is suspanded by GLKView's display method, which fanally called 'nanosleep' in it's stack.After the main thread is stucked, other threads seems running well.The whole stack is like:

#0 0x00000001afb79d00 in _semwaitsignal ()
#1 0x000000018e5dd714 in nanosleep ()
#2 0x000000018e5dd5ec in usleep ()
#3 0x00000001046000c8 in -[DYSharedMemoryTransport waitEAGAIN] ()
#4 0x0000000104622b70 in -[DYBaseStreamTransport
writeBuffers:] ()
#5 0x00000001046230d0 in -[DYBaseStreamTransport sendMessage:error:] ()
#6 0x0000000104612a74 in
63-[DYTransport send:inReplyTo:error:replyQueue:timeout:handler:]blockinvoke.153 ()
#7 0x00000001044715fc in
dispatchclientcallout ()
#8 0x0000000104480cd8 in dispatchsyncinvokeandcompleterecurse ()
#9 0x00000001046128f0 in -[DYTransport send:inReplyTo:error:replyQueue:timeout:handler:] ()
#10 0x00000001045fee80 in -[DYSharedMemoryTransport send:inReplyTo:error:replyQueue:timeout:handler:] ()
#11 0x0000000102d825f0 in handleframeboundary ()
#12 0x0000000102f31e5c in EAGLContextPresentInterposeCommon(EAGLContext*, unsigned int, unsigned long, double, bool () blockpointer) ()
#13 0x0000000102f2fdc8 in EAGLContext
presentRenderbuffer(EAGLContext*, objcselector*, unsigned long) ()
#14 0x00000001b4166d7c in -[GLKView
display:] ()
#15 0x0000000103176e18 in _29-[RTCEAGLVideoView configure]blockinvoke at /Users/huhai/dev/webrtc/svn/iOSm83/native/source/src/sdk/objc/components/renderer/opengl/RTCEAGLVideoView.m:133
#16 0x000000010460acb0 in -[DYDisplayLinkInterposer forwardDisplayLinkCallback:] ()
#17 0x0000000188a99eac in CA::Display::DisplayLink::dispatchitems(unsigned long long, unsigned long long, unsigned long long) ()
#18 0x000000018feb4f28 in IODispatchCalloutFromCFMessage ()
#19 0x00000001858f387c in
CFMachPortPerform ()
#20 0x0000000185916a70 in CFRUNLOOP
ISCALLINGOUTTOASOURCE1PERFORMFUNCTION ()
#21 0x0000000185915e84 in
CFRunLoopDoSource1 ()
#22 0x0000000185910054 in
CFRunLoopRun ()
#23 0x000000018590f200 in CFRunLoopRunSpecific ()
#24 0x000000019ba0a598 in GSEventRunModal ()
#25 0x00000001881d5004 in -[UIApplication
run] ()
#26 0x00000001881da5d8 in UIApplicationMain ()
#27 0x0000000100d690f8 in main at /Users/huhai/dev/projects/svn/311videochat/videochat/demo/iOS/LMVideoChatDemo/LMVideoChatDemo/main.m:14
#28 0x00000001855ee598 in start ()

This problem seems not happen when not debugging.I searched the google, but found just only one post talking about this problem:https://stackoverflow.com/questions/58215087/glkviewcontroller-hangs-after-a-few-hours

Main thread gets stucked at GLKView's display after about an hour
 
 
Q