Hi, I ran into error when trying to run your updated source code for iOS platform.
Didn't modify anything in the source code.
Everything works fine except when I open the page of Sensor Fusion. It freezes after I open that page and the following error shows up.
Here's what got printed out to the command line in Xcode.
=================================================================
Main Thread Checker: UI API called on a background thread: -[UIView setNeedsDisplay]
PID: 6667, TID: 2264582, Thread name: (none), Queue name: com.apple.root.default-qos, QoS: 21
Backtrace:
4 dialog_IoT_ios 0x000000010403594c -[GLModelView setModel:] + 140
5 dialog_IoT_ios 0x0000000104028170 __35-[TeapotViewController viewDidLoad]_block_invoke + 388
6 libdispatch.dylib 0x00000001056d12cc _dispatch_call_block_and_release + 24
7 libdispatch.dylib 0x00000001056d128c _dispatch_client_callout + 16
8 libdispatch.dylib 0x00000001056dd3dc _dispatch_queue_override_invoke + 984
9 libdispatch.dylib 0x00000001056e29d0 _dispatch_root_queue_drain + 624
10 libdispatch.dylib 0x00000001056e26f4 _dispatch_worker_thread3 + 136
11 libsystem_pthread.dylib 0x0000000185c0f06c _pthread_wqthread + 1268
12 libsystem_pthread.dylib 0x0000000185c0eb6c start_wqthread + 4
2018-03-13 18:11:56.476348+0800 dialog_IoT_ios[6667:2264582] [reports] Main Thread Checker: UI API called on a background thread: -[UIView setNeedsDisplay]
PID: 6667, TID: 2264582, Thread name: (none), Queue name: com.apple.root.default-qos, QoS: 21
Backtrace:
4 dialog_IoT_ios 0x000000010403594c -[GLModelView setModel:] + 140
5 dialog_IoT_ios 0x0000000104028170 __35-[TeapotViewController viewDidLoad]_block_invoke + 388
6 libdispatch.dylib 0x00000001056d12cc _dispatch_call_block_and_release + 24
7 libdispatch.dylib 0x00000001056d128c _dispatch_client_callout + 16
8 libdispatch.dylib 0x00000001056dd3dc _dispatch_queue_override_invoke + 984
9 libdispatch.dylib 0x00000001056e29d0 _dispatch_root_queue_drain + 624
10 libdispatch.dylib 0x00000001056e26f4 _dispatch_worker_thread3 + 136
11 libsystem_pthread.dylib 0x0000000185c0f06c _pthread_wqthread + 1268
12 libsystem_pthread.dylib 0x0000000185c0eb6c start_wqthread + 4
2018-03-13 18:11:56.561553+0800 dialog_IoT_ios[6667:2264582] -[AGXA11FamilyCommandBuffer renderCommandEncoderWithDescriptor:], line 114: error 'A command encoder is already encoding to this command buffer'
-[AGXA11FamilyCommandBuffer renderCommandEncoderWithDescriptor:]:114: failed assertion `A command encoder is already encoding to this command buffer'