Error changing note type

Malnormalulo's Avatar

Malnormalulo

02 Apr, 2020 05:44 PM

I am experiencing an error changing a note type. The note was originally a Basic card, and I changed it to a custom clone of Cloze which includes extra citation fields.

Steps I took:
1) Edit the card so that both the "front" and "back" text were consolidated to the "front" field
2) Open dialogue to change the note type to "Cloze with citation"
3) Anki prompts me with a reminder that this will force a full sync. I cancel the change.
4) I synchronize Anki
5) I go to my phone and synchronize AnkiDroid
6) I synchronize Anki again
7) I reopen the note type change dialogue and this time complete the change
8) The note type successfully changes, but I am met with a stack trace. I did not record this stack trace; it instructed me to run a database check.
9) I run a database check. A similar error appears, copied below:

Anki 2.1.0beta36 Python 3.6.9 Qt 5.9.5 PyQt 5.10.1
Platform: Linux
Flags: frz=False ao=False

Caught exception:
  File "/usr/share/anki/aqt/main.py", line 1006, in onCheckDB
    self.reset()
  File "/usr/share/anki/aqt/main.py", line 515, in reset
    runHook("reset")
  File "/usr/share/anki/anki/hooks.py", line 28, in runHook
    func(*args)
  File "/usr/share/anki/aqt/modelchooser.py", line 47, in onReset
    self.updateModels()
  File "/usr/share/anki/aqt/modelchooser.py", line 82, in updateModels
    self.models.setText(self.deck.models.current()['name'])
<class 'RuntimeError'>: wrapped C/C++ object of type QPushButton has been deleted

The text of the card is as follows:
What is the time complexity of DFS? [$]O(b^m)[/$], where b is the branching factor and m is the maximum tree depth

Another error occurs when closing the card browser:
Anki 2.1.0beta36 Python 3.6.9 Qt 5.9.5 PyQt 5.10.1
Platform: Linux
Flags: frz=False ao=False

Caught exception:
  File "/usr/share/anki/aqt/editor.py", line 337, in <lambda>
    self.web.evalWithCallback("saveNow()", lambda res: callback())
  File "/usr/share/anki/aqt/browser.py", line 495, in _closeWindow
    self.mw.maybeReset()
  File "/usr/share/anki/aqt/main.py", line 534, in maybeReset
    self.reset()
  File "/usr/share/anki/aqt/main.py", line 515, in reset
    runHook("reset")
  File "/usr/share/anki/anki/hooks.py", line 28, in runHook
    func(*args)
  File "/usr/share/anki/aqt/modelchooser.py", line 47, in onReset
    self.updateModels()
  File "/usr/share/anki/aqt/modelchooser.py", line 82, in updateModels
    self.models.setText(self.deck.models.current()['name'])
<class 'RuntimeError'>: wrapped C/C++ object of type QPushButton has been deleted

I synchronized again, but pulled a fresh copy from AnkiWeb instead of pushing my changes. This did not fix the database check.

I then restarted Anki. The database check now completes without error. I then repeated the change to the note type. No further errors seem to be occurring. As far as I can tell, I should have reproduced exactly the database state in which the error originally occurred. The problem would appear, then, to have arisen from an error in the state of the desktop program itself.

  1. 1 Posted by Geraldo on 02 Apr, 2020 05:48 PM

    Geraldo's Avatar

    the same is happen to me

  2. Support Staff 2 Posted by Damien Elmes on 03 Apr, 2020 10:12 AM

    Damien Elmes's Avatar

    You're using an old beta version - please see

    Third party Linux packages and source builds are not supported

  3. 3 Posted by dorandraco on 03 Apr, 2020 04:02 PM

    dorandraco's Avatar

    Okay. I'm not asking for support, I'm just following the instructions I was
    given in the error message *shrug*

  4. Support Staff 4 Posted by Damien Elmes on 04 Apr, 2020 10:13 PM

    Damien Elmes's Avatar

    If you continue to experience the issue after updating to the latest version, please let me know.

  5. 5 Posted by dorandraco on 04 Apr, 2020 10:15 PM

    dorandraco's Avatar

    Seems to have cleared up with just a restart. I also went ahead and updated
    (no idea how I got such an old version in the first place...)

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac