# Error syncing deck

**URL:** <https://community.ankihub.net/t/error-syncing-deck/196590>\
**Category:** 🐛 Bug\
**Tags:** add-on-error\
**Created:** [April 1, 2024, 3:54pm UTC](https://community.ankihub.net/t/error-syncing-deck/196590 "2024-04-01T15:54:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![luuvalladao](https://community.ankihub.net/letter_avatar_proxy/v4/letter/l/34f0e0/32.png) [@luuvalladao](https://community.ankihub.net/u/luuvalladao)\
**Post date:** [April 1, 2024, 3:54pm UTC](https://community.ankihub.net/t/error-syncing-deck/196590/1 "2024-04-01T15:54:18Z")

</div>

**Before the error happened, I was…**  
trying to sync my first deck from ankihub. I downloaded the add-on, logged in and as I click on the sync button and confirm, the pop up window barely opens when its replaced by the error message.

> **Error message (don't change this)**
>
> ```auto
> Anki 24.04 (429bc9e1) (ao)
> Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
> Platform: macOS-14.2.1-arm64-arm-64bit
> 
> Traceback (most recent call last):
> 
> File "aqt.taskman", line 142, in _on_closures_pending
> 
> File "/Users/luizavalladao/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 64, in <lambda>
> on_done=lambda future: on_new_deck_subscriptions_done(
> 
> File "/Users/luizavalladao/Library/Application Support/Anki2/addons21/1322529746/gui/operations/ankihub_sync.py", line 27, in on_new_deck_subscriptions_done
> on_done(future_with_exception(future.exception()))
> 
> File "/Users/luizavalladao/Library/Application Support/Anki2/addons21/1322529746/gui/menu.py", line 329, in on_done
> future.result()
> 
> File "concurrent.futures._base", line 439, in result
> 
> File "concurrent.futures._base", line 391, in __get_result
> 
> File "/Users/luizavalladao/Library/Application Support/Anki2/addons21/1322529746/gui/operations/utils.py", line 39, in wrapper
> return func(*args, **kwargs)
> 
> File "/Users/luizavalladao/Library/Application Support/Anki2/addons21/1322529746/gui/operations/deck_installation.py", line 62, in _on_deck_infos_fetched
> dialog.deck_id_to_behavior_on_remote_note_deleted_dict()
> 
> File "/Users/luizavalladao/Library/Application Support/Anki2/addons21/1322529746/gui/configure_deleted_notes_dialog.py", line 52, in deck_id_to_behavior_on_remote_note_deleted_dict
> checkbox_layout = self.grid_layout.itemAtPosition(i, 1).layout()
> 
> RuntimeError: wrapped C/C++ object of type QGridLayout has been deleted
> 
> ```

[Sentry link (for developers)](https://ankihub.sentry.io/issues/?project=6546414&query=id:5c70f6b15a674dcca491d5f8bc032e5f)

---

<div class="post-metadata">

**Author:** ![abdo.nh](https://community.ankihub.net/user_avatar/community.ankihub.net/abdo.nh/32/14_2.png) [@abdo.nh](https://community.ankihub.net/u/abdo.nh)\
**Post date:** [April 1, 2024, 6:18pm UTC](https://community.ankihub.net/t/error-syncing-deck/196590/2 "2024-04-01T18:18:53Z")

</div>

Assigned @ProductTeam on April 1, 2024, 6:18pm UTC

> [@Error when trying to instal Decks](https://community.ankihub.net/t/error-when-trying-to-instal-decks/196299/2):
>
> [@ProductTeam](https://community.ankihub.net/groups/productteam) I can reproduce this. It’s an add-on issue affecting the new Anki release (24.04).

---

<div class="post-metadata">

**Author:** ![jakub.f](https://community.ankihub.net/letter_avatar_proxy/v4/letter/j/bb73d2/32.png) [@jakub.f](https://community.ankihub.net/u/jakub.f)\
**Post date:** [April 6, 2024, 3:47pm UTC](https://community.ankihub.net/t/error-syncing-deck/196590/3 "2024-04-06T15:47:28Z")

</div>

This is fixed on the latest version of the AnkiHub add-on!

---

<div class="post-metadata">

**Author:** ![abdo.nh](https://community.ankihub.net/user_avatar/community.ankihub.net/abdo.nh/32/14_2.png) [@abdo.nh](https://community.ankihub.net/u/abdo.nh)\
**Post date:** [April 6, 2024, 4:09pm UTC](https://community.ankihub.net/t/error-syncing-deck/196590/4 "2024-04-06T16:09:11Z")

</div>

Unassigned @ProductTeam on April 6, 2024, 4:09pm UTC



---

<div class="post-metadata">

**Author:** ![system](https://community.ankihub.net/user_avatar/community.ankihub.net/system/32/58_2.png) [@system](https://community.ankihub.net/u/system)\
**Post date:** [April 13, 2024, 4:09pm UTC](https://community.ankihub.net/t/error-syncing-deck/196590/5 "2024-04-13T16:09:22Z")

</div>

Closed on April 13, 2024, 4:09pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
