Hi all,
A new beta is available:
Any testing is appreciated!
Hi all,
A new beta is available:
Any testing is appreciated!
Anki 26.11b1, Windows 11, no add-ons
Building or rebuilding a filtered deck sorted by Relative overdueness fails with ambiguous column name: data. Ascending/Descending retrievability do not seem to be affected.
It happens with FSRS on or off. Also occurs in a brand new, empty collection. Minimal reproduction steps: search *, order Relative overdueness, click Build.
DbError { info: "SqlInputError { error: Error { code: Unknown,
extended_code: 1 }, msg: \"ambiguous column name: data\", sql:
\"insert into search_cids select c.id from cards c, notes n where
c.nid=n.id and (((n.sfld like ?1 escape '\\\\' or n.flds like ?1
escape '\\\\')) and not c.queue = -1 and not c.queue in (-2,-3) and
not c.odid != 0) order by extract_fsrs_relative_retrievability(data,
case when odue !=0 then odue else due end, ivl, 0, 1795143600,
1795084781) asc, fnvhash(c.id, c.mod) limit 100\", offset: 254 }",
kind: Other }
I thought this happened regardless of the search string, but it is actually not true. * and note:notetype fail, while is:due and deck:* work. Searches that join notes trigger it. My understanding is that this is because both cards and notes have a data column, so the unqualified data is ambiguous.
This appears to have been introduced by #4400 (db811351e). A similar SQL error was reported on 26.08.1 here: SqlInputError with filtered deck when sorting by ascending/descending retrievability and relative overdueness - #6 by NuclearBobr.
Replacing this in rslib/src/storage/card/filtered.rs:
FilteredSearchOrder::RelativeOverdueness => {
temp_string =
format!("extract_fsrs_relative_retrievability(data, case when odue !=0 then odue else due end, ivl, {today}, {next_day_at}, {now}) asc");
&temp_string
}
with:
FilteredSearchOrder::RelativeOverdueness => {
temp_string =
format!("extract_fsrs_relative_retrievability(c.data, case when c.odue !=0 then c.odue else c.due end, c.ivl, {today}, {next_day_at}, {now}) asc");
&temp_string
}
fixed it in a local build. I’ll open a draft PR.
Basically, this: Wrong card display
I had been experiencing the same issue, I followed the advice and changed my video driver, and it worked - until last week, when I installed the 26.11 beta because I needed UI scaling to work. Now, EVERY video driver exhibits the problem. Software rendering is not an option, as it is extremely slow and choppy, same with turning off the compositing in QT using a system variable. Seeing as it had worked previously, I suspect something about the beta is the culprit. I have not changed anything about my setup.
Is anyone else seeing the same thing?
I moved your post here since it’s about the beta build.
I assume you’re on Windows? Could you try:
QT_SCALE_FACTOR set to your usual preference (Use 1.5 for 150%). Can you reproduce the issue?Here’s a bat script to make it easier to test the second case. Save as anki-scaled.bat after changing SCALE=1.5 if needed and run:
@echo off
rem Launch Anki with a custom Qt scale factor.
rem Usage: anki-scaled.bat [scale] e.g. anki-scaled.bat 1.25 (default: 1.5)
setlocal
set "SCALE=%~1"
if "%SCALE%"=="" set "SCALE=1.5"
rem Per-user install (default), then per-machine install
set "ANKI_EXE=%LOCALAPPDATA%\Programs\Anki\Anki.exe"
if not exist "%ANKI_EXE%" set "ANKI_EXE=%ProgramFiles%\Anki\Anki.exe"
if not exist "%ANKI_EXE%" (
echo Could not find Anki.exe in either of:
echo %LOCALAPPDATA%\Programs\Anki
echo %ProgramFiles%\Anki
echo Edit ANKI_EXE in this script to point to your Anki install.
pause
exit /b 1
)
set "QT_SCALE_FACTOR=%SCALE%"
echo Starting "%ANKI_EXE%" with QT_SCALE_FACTOR=%QT_SCALE_FACTOR%
start "" "%ANKI_EXE%"
i don’t have 26.09.4; can i install it in parallel or how does that work?
issue persists at 100% in the beta.
You can just install on top of your existing installation. Download from Release 26.09.4 · ankitects/anki · GitHub
it tells me a newer version is already installed and quits the installer.
Sorry, I forgot about that. You’ll need to uninstall the beta first then install 26.09.4.
issue persists with 26.09.4 scaled via your batch file
OK, it must be something related to scaling then. I suspect you’ll be able to reproduce this with any version since 26.05, but to narrow down the cause, could try 26.08.1 and let us know if the issue persists?
so far, it hasn’t happened in 26.08.1 - but as you know, it’s always more difficult to ascertain an absence, so i will keep testing for a day or two
issue persists in 26.08.1
It’s most likely something in the UI toolkit Anki uses (Qt), which got a major upgrade in 26.05. Unfortunately Anki can’t do much in this case and we’ll need to wait for a fix in Qt. I’ll keep an eye on reports.