Anki 2.1.0 Beta 21 to 25

Damien Elmes's Avatar

Damien Elmes

25 Oct, 2017 10:59 AM

Hi all,

A new beta is available. Please see the beta page for more info:

https://apps.ankiweb.net/docs/beta.html

If you run into any issues, please let me know.

Showing page 2 out of 2. View the first page

  1. Support Staff 31 Posted by Damien Elmes on 20 Nov, 2017 04:05 AM

    Damien Elmes's Avatar

    pinnerup: what if you disable media syncing?

    Edit: I suspect it's related to a change to the media scanning routines a while back. On the next beta, after syncing once, subsequent syncs should be faster when you haven't added or removed any media.

  2. 32 Posted by Rasmus Underbje... on 20 Nov, 2017 09:00 PM

    Rasmus Underbjerg Pinnerup's Avatar

    @Damien: You're right. After disabling media sync the delay disappears and the program opens right away.

  3. 33 Posted by mnhende2 on 20 Nov, 2017 09:07 PM

    mnhende2's Avatar

    @Damien: I tend to modify or add at least one media file per session.
    And I have (what I assume to be) an exceptionally large number of media
    files. So, does that force a full media sync every time? And does 2.1
    go about this process differently than 2.0?

  4. Support Staff 34 Posted by Damien Elmes on 21 Nov, 2017 01:24 AM

    Damien Elmes's Avatar

    Anki needs to scan the folder for changed files as part of a sync. In the 1 or more files changed case, theoretically the approach in 2.1 should be faster than 2.0, especially on Windows. I'm guessing both you and pinnerup have a hard disk rather than an SSD in your system - the delay is likely due to the hard disk head having to move back and forth over the disk to read all the file metadata.

    One way to address it would be to move the scan to the 'check media' routine, but it's not without complications - users adding media files via the Anki interface wouldn't have to do anything different, but users modifying existing files or manually adding files to the collection.media folder would need to make sure to run 'check media' prior to syncing.

  5. Support Staff 35 Posted by Damien Elmes on 21 Nov, 2017 01:58 AM

    Damien Elmes's Avatar

    If you'd like to do a timed comparison of the new vs old code, beta 13 is still on the website and contains the same scanning code as 2.0. To compare properly, you'll need to:

    • turn off automatic syncing
    • restart your computer for each test, and wait a few minutes after startup for the system to quiesce
    • add a small file to the media folder to force a scan
    • start anki
    • press the sync button and time how long it takes to finish
  6. 36 Posted by mnhende2 on 21 Nov, 2017 11:29 AM

    mnhende2's Avatar

    @ Damien: Yes, all of my computers are running Hard Disks not SSD. And
    Yes, I do often modify existing media files and sometimes manually add
    files to the collection.media folder. As per the testing on timing,
    I'll try to work on that some over the next week and get back to you.

  7. 37 Posted by Rasmus Underbje... on 22 Nov, 2017 06:46 PM

    Rasmus Underbjerg Pinnerup's Avatar

    I also have a classical harddrive, but the delay happens always – no matter if I've added or edited media files or not.

  8. Support Staff 38 Posted by Damien Elmes on 23 Nov, 2017 07:01 AM

    Damien Elmes's Avatar

    I understand, that will be addressed in the next beta. What's still to be confirmed is if the 'files changed' case is any slower on the current beta compared to beta 13.

  9. 39 Posted by t.schmittlauch+... on 23 Nov, 2017 05:00 PM

    t.schmittlauch+tenderapp's Avatar

    I know one is not supposed to package anki yet, but as Gentoo wants to throw out Qt4Webkit they're currently trying to package anki-2.1 beta 25 (still masked though).

    I get a traceback directly after starting Anki:

    Traceback (most recent call last):
      File "/usr/lib64/python3.6/site-packages/aqt/__init__.py", line 230, in run
        _run()
      File "/usr/lib64/python3.6/site-packages/aqt/__init__.py", line 298, in _run
        import aqt.main
      File "/usr/lib64/python3.6/site-packages/aqt/main.py", line 24, in <module>
        import aqt.mediasrv
      File "/usr/lib64/python3.6/site-packages/aqt/mediasrv.py", line 26, in <module>
        _exportFolder = _getExportFolder()
      File "/usr/lib64/python3.6/site-packages/aqt/mediasrv.py", line 24, in _getExportFolder
        raise Exception("couldn't find web folder")
    Exception: couldn't find web folder
    

    At a quick glance the function_getExportFolder looks like it is designed to only work in a deployment where you just unpack the files into a user writable directory, but not when you package it normally into read-only directories. Do I get that right?

    I'm running Qt-5.9.1 and python-3.6

  10. 40 Posted by julian-anki on 23 Nov, 2017 09:36 PM

    julian-anki's Avatar

    Hi t. schmittlauch,

    You shouldn't be packaging aqt as a Python module: it should sit in its own directory, something like /usr/share/anki, which will contain subdirectories anki, aqt and web. Check out the Makefile, which shows exactly how the software is intended to be installed.

  11. Support Staff 41 Posted by Damien Elmes on 24 Nov, 2017 05:59 AM

    Damien Elmes's Avatar

    It's a beta, I'd prefer it weren't packaged at all.

  12. Support Staff 42 Posted by Damien Elmes on 27 Nov, 2017 01:44 AM

    Damien Elmes's Avatar

    Beta 26 is now available. Please use the new thread for feedback: https://anki.tenderapp.com/discussions/beta-testing/920-anki-210-be...

  13. Damien Elmes closed this discussion on 27 Nov, 2017 01:44 AM.

Comments are currently closed for this discussion. You can start a new one.

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