# Video drawing error

**URL:** <https://devforum.zoom.us/t/video-drawing-error/27198>\
**Category:** Meeting SDK\
**Created:** [August 14, 2020, 5:35pm UTC](https://devforum.zoom.us/t/video-drawing-error/27198 "2020-08-14T17:35:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![arsalan](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@arsalan](https://devforum.zoom.us/u/arsalan)\
**Post date:** [August 14, 2020, 5:35pm UTC](https://devforum.zoom.us/t/video-drawing-error/27198/1 "2020-08-14T17:35:34Z")

</div>

**Description**  
2020-08-14 22:32:58.031125+0500 GYMPOC[5938:179304] [MPS.GYMPOC] CGContextSetFillColorWithColor: invalid context 0x0. Backtrace:  
\<NSColorSetWithFillAndStroke+148\>  
\<GetMethod+6621\>  
\<-[\_NSOpenGLViewBackingLayer display]+836\>  
\<\_ZN2CA5Layer17display\_if\_neededEPNS\_11TransactionE+757\>  
\<\_ZN2CA7Context18commit\_transactionEPNS\_11TransactionEd+334\>  
\<\_ZN2CA11Transaction6commitEv+644\>  
\<\_\_62+[CATransaction(NSCATransaction) NS\_setFlushesWithDisplayLink]\_block\_invoke+266\>  
\<\_\_\_NSRunLoopObserverCreateWithHandler\_block\_invoke+41\>  
\< **CFRUNLOOP\_IS\_CALLING\_OUT\_TO\_AN\_OBSERVER\_CALLBACK\_FUNCTION** +23\>  
\<\_\_CFRunLoopDoObservers+457\>  
\<\_\_CFRunLoopRun+874\>  
\<CFRunLoopRunSpecific+462\>  
\<RunCurrentEventLoopInMode+292\>  
\<ReceiveNextEventCommon+584\>  
\<\_BlockUntilNextEventMatchingListInModeWithFilter+64\>  
\<\_DPSNextEvent+883\>  
\<-[NSApplication(NSEvent) \_nextEventMatchingEventMask:untilDate:inMode:dequeue:]+1352\>  
\<-[NSApplication run]+658\>  
\<NSApplicationMain+777\>  
\<main+13\>  
\<start+1\> 3  
2020-08-14 22:32:58.032616+0500 GYMPOC[5938:179304] [MPS.GYMPOC] CGContextSetStrokeColorWithColor: invalid context 0x0. Backtrace:  
\<NSColorSetWithFillAndStroke+165\>  
\<GetMethod+6621\>  
\<-[\_NSOpenGLViewBackingLayer display]+836\>  
\<\_ZN2CA5Layer17display\_if\_neededEPNS\_11TransactionE+757\>  
\<\_ZN2CA7Context18commit\_transactionEPNS\_11TransactionEd+334\>  
\<\_ZN2CA11Transaction6commitEv+644\>  
\<\_\_62+[CATransaction(NSCATransaction) NS\_setFlushesWithDisplayLink]\_block\_invoke+266\>  
\<\_\_\_NSRunLoopObserverCreateWithHandler\_block\_invoke+41\>  
\< **CFRUNLOOP\_IS\_CALLING\_OUT\_TO\_AN\_OBSERVER\_CALLBACK\_FUNCTION** +23\>  
\<\_\_CFRunLoopDoObservers+457\>  
\<\_\_CFRunLoopRun+874\>  
\<CFRunLoopRunSpecific+462\>  
\<RunCurrentEventLoopInMode+292\>  
\<ReceiveNextEventCommon+584\>  
\<\_BlockUntilNextEventMatchingListInModeWithFilter+64\>  
\<\_DPSNextEvent+883\>  
\<-[NSApplication(NSEvent) \_nextEventMatchingEventMask:untilDate:inMode:dequeue:]+1352\>  
\<-[NSApplication run]+658\>  
\<NSApplicationMain+777\>  
\<main+13\>  
\<start+1\> 3  
2020-08-14 22:32:58.033876+0500 GYMPOC[5938:179304] [MPS.GYMPOC] CGContextGetCompositeOperation: invalid context 0x0. Backtrace:  
\<CGContextGetCompositeOperation+43\>  
\<NSRectFillUsingOperation+167\>  
\<GetMethod+6688\>  
\<-[\_NSOpenGLViewBackingLayer display]+836\>  
\<\_ZN2CA5Layer17display\_if\_neededEPNS\_11TransactionE+757\>  
\<\_ZN2CA7Context18commit\_transactionEPNS\_11TransactionEd+334\>  
\<\_ZN2CA11Transaction6commitEv+644\>  
\<\_\_62+[CATransaction(NSCATransaction) NS\_setFlushesWithDisplayLink]\_block\_invoke+266\>  
\<\_\_\_NSRunLoopObserverCreateWithHandler\_block\_invoke+41\>  
\< **CFRUNLOOP\_IS\_CALLING\_OUT\_TO\_AN\_OBSERVER\_CALLBACK\_FUNCTION** +23\>  
\<\_\_CFRunLoopDoObservers+457\>  
\<\_\_CFRunLoopRun+874\>  
\<CFRunLoopRunSpecific+462\>  
\<RunCurrentEventLoopInMode+292\>  
\<ReceiveNextEventCommon+584\>  
\<\_BlockUntilNextEventMatchingListInModeWithFilter+64\>  
\<\_DPSNextEvent+883\>  
\<-[NSApplication(NSEvent) \_nextEventMatchingEventMask:untilDate:inMode:dequeue:]+1352\>  
\<-[NSApplication run]+658\>  
\<NSApplicationMain+777\>  
\<main+13\>  
\<start+1\> 3  
2020-08-14 22:32:58.035259+0500 GYMPOC[5938:179304] [MPS.GYMPOC] CGContextSetCompositeOperation: invalid context 0x0. Backtrace:  
\<NSRectFillUsingOperation+283\>  
\<GetMethod+6688\>  
\<-[\_NSOpenGLViewBackingLayer display]+836\>  
\<\_ZN2CA5Layer17display\_if\_neededEPNS\_11TransactionE+757\>  
\<\_ZN2CA7Context18commit\_transactionEPNS\_11TransactionEd+334\>  
\<\_ZN2CA11Transaction6commitEv+644\>  
\<\_\_62+[CATransaction(NSCATransaction) NS\_setFlushesWithDisplayLink]\_block\_invoke+266\>  
\<\_\_\_NSRunLoopObserverCreateWithHandler\_block\_invoke+41\>  
\< **CFRUNLOOP\_IS\_CALLING\_OUT\_TO\_AN\_OBSERVER\_CALLBACK\_FUNCTION** +23\>  
\<\_\_CFRunLoopDoObservers+457\>  
\<\_\_CFRunLoopRun+874\>  
\<CFRunLoopRunSpecific+462\>  
\<RunCurrentEventLoopInMode+292\>  
\<ReceiveNextEventCommon+584\>  
\<\_BlockUntilNextEventMatchingListInModeWithFilter+64\>  
\<\_DPSNextEvent+883\>  
\<-[NSApplication(NSEvent) \_nextEventMatchingEventMask:untilDate:inMode:dequeue:]+1352\>  
\<-[NSApplication run]+658\>  
\<NSApplicationMain+777\>  
\<main+13\>  
\<start+1\> 3  
2020-08-14 22:32:58.036554+0500 GYMPOC[5938:179304] [MPS.GYMPOC] CGContextFillRects: invalid context 0x0. Backtrace:  
\<CGContextFillRect+105\>  
\<NSRectFillUsingOperation+311\>  
\<GetMethod+6688\>  
\<-[\_NSOpenGLViewBackingLayer display]+836\>  
\<\_ZN2CA5Layer17display\_if\_neededEPNS\_11TransactionE+757\>  
\<\_ZN2CA7Context18commit\_transactionEPNS\_11TransactionEd+334\>  
\<\_ZN2CA11Transaction6commitEv+644\>  
\<\_\_62+[CATransaction(NSCATransaction) NS\_setFlushesWithDisplayLink]\_block\_invoke+266\>  
\<\_\_\_NSRunLoopObserverCreateWithHandler\_block\_invoke+41\>  
\< **CFRUNLOOP\_IS\_CALLING\_OUT\_TO\_AN\_OBSERVER\_CALLBACK\_FUNCTION** +23\>  
\<\_\_CFRunLoopDoObservers+457\>  
\<\_\_CFRunLoopRun+874\>  
\<CFRunLoopRunSpecific+462\>  
\<RunCurrentEventLoopInMode+292\>  
\<ReceiveNextEventCommon+584\>  
\<\_BlockUntilNextEventMatchingListInModeWithFilter+64\>  
\<\_DPSNextEvent+883\>  
\<-[NSApplication(NSEvent) \_nextEventMatchingEventMask:untilDate:inMode:dequeue:]+1352\>  
\<-[NSApplication run]+658\>  
\<NSApplicationMain+777\>  
\<main+13\>  
\<start+1\> 3  
2020-08-14 22:32:58.037886+0500 GYMPOC[5938:179304] [MPS.GYMPOC] CGContextSetCompositeOperation: invalid context 0x0. Backtrace:  
\<NSRectFillUsingOperation+326\>  
\<GetMethod+6688\>  
\<-[\_NSOpenGLViewBackingLayer display]+836\>  
\<\_ZN2CA5Layer17display\_if\_neededEPNS\_11TransactionE+757\>  
\<\_ZN2CA7Context18commit\_transactionEPNS\_11TransactionEd+334\>  
\<\_ZN2CA11Transaction6commitEv+644\>  
\<\_\_62+[CATransaction(NSCATransaction) NS\_setFlushesWithDisplayLink]\_block\_invoke+266\>  
\<\_\_\_NSRunLoopObserverCreateWithHandler\_block\_invoke+41\>  
\< **CFRUNLOOP\_IS\_CALLING\_OUT\_TO\_AN\_OBSERVER\_CALLBACK\_FUNCTION** +23\>  
\<\_\_CFRunLoopDoObservers+457\>  
\<\_\_CFRunLoopRun+874\>  
\<CFRunLoopRunSpecific+462\>  
\<RunCurrentEventLoopInMode+292\>  
\<ReceiveNextEventCommon+584\>  
\<\_BlockUntilNextEventMatchingListInModeWithFilter+64\>  
\<\_DPSNextEvent+883\>  
\<-[NSApplication(NSEvent) \_nextEventMatchingEventMask:untilDate:inMode:dequeue:]+1352\>  
\<-[NSApplication run]+658\>  
\<NSApplicationMain+777\>  
\<main+13\>  
\<start+1\> .

**Which version?**  
latest

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. Go to ‘…’
2. Click on ‘…’
3. Scroll down to ‘…’
4. See error

**Screenshots**  
If applicable, add screenshots to help explain your problem.

**Device (please complete the following information):**

- Device Spec: [e.g. PC, Mac]
- OS: [e.g. Windows 10, MacOS]
- Version [e.g. 10.15.1]

**Additional context**  
Add any other context about the problem here.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [August 14, 2020, 11:32pm UTC](https://devforum.zoom.us/t/video-drawing-error/27198/2 "2020-08-14T23:32:07Z")

</div>

Hi @arsalan,

Thanks for the post. What is the SDK version you are using? Could you provide the SDK log for further investigation?

Thanks!

---

<div class="post-metadata">

**Author:** ![arsalan](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@arsalan](https://devforum.zoom.us/u/arsalan)\
**Post date:** [August 15, 2020, 3:43pm UTC](https://devforum.zoom.us/t/video-drawing-error/27198/3 "2020-08-15T15:43:29Z")

</div>

Hi @carson.zoom, how to get the SDK logs, secondly using **Version: 5.0.1 (24433.0616)**

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [August 20, 2020, 7:01am UTC](https://devforum.zoom.us/t/video-drawing-error/27198/4 "2020-08-20T07:01:47Z")

</div>

Hi @arsalan,

It seems like you are using Mac OS SDK. Here are the steps to enable and to retrieve the logs:

ii. Before initializing the SDK , call the following interface to enable log feature

```auto
ZoomSDK* sdk = [ZoomSDK sharedSDK];
[[ZoomSDK sharedSDK] enableDefaultLog:YES fileSize:5];
[sdk initSDK:useCustomizedUI];

```

ii. Build and run your SDK app, after experiencing the issue, then exit the app normally.  
iii. You will find the log file in: `~/Library/Logs/appName`

Thanks!
