View Full Version : SearchLite - Genre addon crashes

2011-04-15, 09:30 AM
I just the latest SearchLite with the addon for Genres but it crashes on me, I get an error message saying it cannot find the genres.list (but I have copied it into the correct folder) and after that the application crashes and reports it cannot open the nvr database.

I am running latest version of nPVR (including all the patches in the latest patch-package). Have not found a way to capture the output from Microsoft error reporting, I found it creates a DMP-file in a temp directory but that file is locked and will disappear after it is sent to Microsoft or if you choose not to send it. Do you need more information Martin?

Here is a copy from commandline (what I did), the genres.list is placed in the directory from here I executed the commad:

C:\Program\NPVR\Plugins\SearchLite>..\..\GenreLite -i
Warning genres.list file not found

C:\Documents and Settings\All Users\Application Data\NPVR\
Data Source="C:\Documents and Settings\All Users\Application Data\NPVR\npvr.db3"

Ohanterat undantag: System.Data.SQLite.SQLiteException: Unable to open the datab
ase file
unable to open database: C:\Documents and Settings\All Users\Application Data\NP
vid System.Data.SQLite.SQLite3.Reset(SQLiteStatement stmt)
vid System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt)
vid System.Data.SQLite.SQLiteDataReader.NextResult()
vid System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCo mmand cmd, CommandBehav
ior behave)
vid System.Data.SQLite.SQLiteCommand.ExecuteReader(Com mandBehavior behavior)
vid System.Data.SQLite.SQLiteCommand.ExecuteNonQuery()
vid nCommunity.NewGenre.Read()
vid nCommunity.Program.Main(String[] args)

2011-04-15, 12:02 PM
I see a few things:

1. The genre.list files should not be in Program Files it is supposed to go into the DataDirectory which in your case is

C:\Documents and Settings\All Users\Application Data\NPVR\Plugins\SearchLite\

2. However that is not where it is crashing, it is only reporting it can't find genre.list. After the first run it will get renamed to genres.list.ok. What I suspect is the installer isn't creating that folder in DataDirectory so you will need to do it.


2011-04-15, 12:23 PM

Thank you, it got a bit longer after I created that directory and copied the genre.list there.

However it crashed a moment after that, maybe it does not like my XMLTV-file?

C:\Program\Windows Resource Kits\Tools>genrelite -i
C:\Documents and Settings\All Users\Application Data\NPVR\
Data Source="C:\Documents and Settings\All Users\Application Data\NPVR\Plugins\S
C:\Documents and Settings\All Users\Application Data\NPVR\
Data Source="C:\Documents and Settings\All Users\Application Data\NPVR\npvr.db3"
Attach Database 'C:\Documents and Settings\All Users\Application Data\NPVR\\Plug
ins\SearchLite\NewGenre.db3' as genres

Ohanterat undantag: System.NullReferenceException: Objektreferensen har inte ang
etts till en instans av ett objekt.
vid nCommunity.NewGenre.Read()
vid nCommunity.Program.Main(String[] args)

I attach my xmltv-file in case you want to have a look at it.

2011-04-15, 02:09 PM
You are correct, I don't support that XMLTV file format yet, but it looks promising for genre searching. Could you also compress and send your npvr.db3 file? That will make things faster.


2011-04-15, 04:35 PM
I have uploaded a file, you can download it from:

2011-04-17, 04:45 AM
Thanks for the patience forzaKGB, here is another beta that works with your data at least at my end. You will have to run GenreLite -i again, the old import won't match the 8859-1 characters correctly, your samples helped a lot.

Before you do the import you now need to change the SearchLite.xml file that is in the DataDirectory\Plugins\SearchLite folder to set


Good luck and thanks again for the sample files.


2011-04-17, 06:58 PM
Thank you

I installed it and it looks fine. Have not tried searchin yet but GenreLite -i ran OK this time.

It's not us that should be patient, we all owe you a lot of thanks for all the effort you put in and the patience you show all of us screwing arond with the stuff you create :)

We'll see whne I can find the time to try searching for Genres but as the command ran fine it should be OK now.

Is there any way of making NEWA aware of the Genres?

2011-04-17, 07:37 PM
Yes, if I can get genres working generically in SearchLite, I will try and work with UJB to also get this working in NEWA.