# Image occlusion unsure

**URL:** <https://forums.ankiweb.net/t/image-occlusion-unsure/23791>\
**Category:** Add-ons\
**Created:** [October 10, 2022, 8:33am UTC](https://forums.ankiweb.net/t/image-occlusion-unsure/23791 "2022-10-10T08:33:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kdog87](https://avatars.discourse-cdn.com/v4/letter/k/e9bcb4/32.png) [@kdog87](https://forums.ankiweb.net/u/kdog87)\
**Post date:** [October 10, 2022, 8:33am UTC](https://forums.ankiweb.net/t/image-occlusion-unsure/23791/1 "2022-10-10T08:33:59Z")

</div>

I have the latest version of Anki and downloaded image occlusion from Anki web and it keeps saying error, it is my only add on and I’ve done everything on the checklist,  
Error  
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.  
If the issue only occurs when add-ons are enabled, please use the Tools\>Add-ons menu item to disable some add-ons and restart Anki, repeat until you discover the add-on that is causing the problem.  
When you’ve discovered the add-on that is causing the problem, please report the issue on the add-ons section of our support site.  
Debug info:  
Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 6.3.1 PyQt 6.3.1  
Platform: Mac 12.3.1  
Flags: frz=True ao=True sv=2  
Add-ons, last update check: 2022-10-09 17:36:17  
Add-ons possibly involved: ⁨Image Occlusion Enhanced⁩

Caught exception:  
Traceback (most recent call last):  
File “aqt.progress”, line 118, in handler  
File “aqt.theme”, line 175, in apply\_style\_if\_system\_style\_changed  
File “aqt.theme”, line 186, in apply\_style  
File “aqt.hooks\_gen”, line 4149, in **call**  
File “aqt.webview”, line 718, in on\_theme\_did\_change  
File “aqt.webview”, line 556, in eval  
File “aqt.webview”, line 559, in evalWithCallback  
File “aqt.webview”, line 576, in \_queueAction  
File “/Users/khushiprakash/Library/Application Support/Anki2/addons21/1374772155/editor.py”, line 107, in \_maybeRunActions  
self.\_evalWithCallback(\*args)  
File “aqt.webview”, line 572, in \_evalWithCallback  
RuntimeError: wrapped C/C++ object of type ImgOccWebView has been deleted

---

<div class="post-metadata">

**Author:** ![glutanimate](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/glutanimate/32/97_2.png) [@glutanimate](https://forums.ankiweb.net/u/glutanimate)\
**Post date:** [October 10, 2022, 5:58pm UTC](https://forums.ankiweb.net/t/image-occlusion-unsure/23791/2 "2022-10-10T17:58:07Z")

</div>

Hey kdog, thanks for the report! This looks like the theme switching issue here: [System theme changes can trigger RunTimeError · Issue #251 · glutanimate/image-occlusion-enhanced · GitHub](https://github.com/glutanimate/image-occlusion-enhanced/issues/251)

Basically, when the macOS theme switches between day/night mode, this can cause the add-on to produce this error message. The next update for Image Occlusion Enhanced will fix the underlying problem. Until then, feel free to just click the error message away, it won’t affect your Anki in any way.

Hope that helps for now!

---

<div class="post-metadata">

**Author:** ![kdog87](https://avatars.discourse-cdn.com/v4/letter/k/e9bcb4/32.png) [@kdog87](https://forums.ankiweb.net/u/kdog87)\
**Post date:** [October 10, 2022, 7:54pm UTC](https://forums.ankiweb.net/t/image-occlusion-unsure/23791/3 "2022-10-10T19:54:40Z")

</div>

thank you so much !!!

---

<div class="post-metadata">

**Author:** ![wynnooi](https://avatars.discourse-cdn.com/v4/letter/w/ed8c4c/32.png) [@wynnooi](https://forums.ankiweb.net/u/wynnooi)\
**Post date:** [October 11, 2022, 7:05pm UTC](https://forums.ankiweb.net/t/image-occlusion-unsure/23791/4 "2022-10-11T19:05:43Z")

</div>

Hi there, I have encountered the same issue. I have tried clicking the error message away, however, it doesn’t add my cards into my deck.
