Posts: 168
Joined: Dec 2017
Reputation:
12
My log is spammed with "DEBUG <general>: DatabaseUtils::GetSortFieldList: unknown field 36" and I'm not sure why. I think something in my video library is causing that. I don't want to rebuild the library right now so is there any way I can find out where exactly in the library that field is located to see what data it holds and possibly just manually remove it? I'm using a shared mariadb on Linux with all clients running the same compiled source.
Thanks guys
Posts: 168
Joined: Dec 2017
Reputation:
12
MariaDB is version 10.5.9-1 from Debian Sid. I'm running lrusak's drmprime-2img-no-ffmpeg-bump branch (19.0-RC1-r57015-git+844e32e587) so I have HDR. This was going on before that with Kodi git prior to Matrix final. Database versions are; Addons33, ViewModes6, Textures13, MyMusic82, MyVideos119, TV37, Epg13.
Not sure what "field 36" refers to or what sql call populates what ever winds up in `GetSortFieldList`. I'm not sure how to translate that into anything in the database. I'll copy the database over to a test system and see if I can get a sane debug log. I just check current git and the video database is still at 119. Should I grab a fresh clone to test with or should my existing compile be fine?
Posts: 4,545
Joined: Jun 2015
Reputation:
269
This could be a skin issue, what skin are you using?
Posts: 4,545
Joined: Jun 2015
Reputation:
269
OK, good to rule out the skin.
The error message actually comes from DatabaseUtils::GetSelectFields
, the 36 is from an enum list for the named fields used in sorting NOT directly a column of any databse table, and is FieldSortTitle
. It is converted into a database table/view and column name by DatabaseUtils::GetField
depening on the media type of the list of items being sorted, so is meaningful for TV shows and movies. It maps to columns movie_view.c10
and tvshow_view.c15
respectively, but is "unknown" for other media types.
My first blind guess (without a debug log) is that something is attempting to sort a list of items by title but that the list is not one of movies or TV shows, hence FieldSortTitle
can not be mapped to a database column.
Second would be that something is wrong with the results dataset. The sorting is done on the list in memory not by the database, to do that the query results are converted from dataset into a local list and that is where this error arises. If it is TV shows or movies being processed then something is wrong with the dataset.
The log could help indicate if either of these guesses are in the right direction.
Posts: 4,545
Joined: Jun 2015
Reputation:
269
It may also be worth noting that the last time we had odd "field unknown" errors it was related to a bug in the MariaDB connector dll and the fix was to bump that DLL to v3.1.9 (for Android specifically). That also presented with other symptoms not mentioned here, so this is not the same issue but could be a lose relative. There is limited support any of us can give to a patched pre-release build.
Posts: 4,545
Joined: Jun 2015
Reputation:
269
Thanks, debug shows that it is addon Library Data Provider service (set running by some skins) that is making a JSON request that results in attempting to process a results dataset and sort it by FieldSortTitle
when there is no mapping for that sort field for the list item type. OK, gives me a better chance to reproduce.