MP RC4 always crashes on scanning for TV Channels (1 Viewer)

davej00

Portal Pro
March 22, 2006
78
0
UK
I solved this.

The problem for me is that regradless of the Codec you specify for myTV it always uses the MPA [and I think MPV]. If you have not set those codecs up correctly -- the scan crashes. The workaround is to ensure the codec is configured correctly.

I understand that the fix is in the latest SVN from th 17th May ... or to be exact...

mediaportal-svn-05-17-2006--07-44.rar

You can see the issue described in the last few posts of this thread...

https://forum.team-mediaportal.com/viewtopic.php?t=15459

- Dave
 

Fishermans

Portal Member
April 1, 2005
20
0
The probelm is that I cannot configure anythink, because the stuff crashes during the first setup!

What I did:

- Install RC4
- unrar the latest SVn snap shot to the installation folder
- run start.bat
- start configure.exe (or the link on the desktop)
- Welcome Page (1/10) -> Next
- Basic Settings (2/10) no changes (german and english) -> Next
- BlueTwo (3/10) -> OK
- Folder scan (with or without scannign the hd) -> NEXT -> Unhandled exception (MediaPortal.GUI.Library.GUIGraphicsContext) -> Ignore by hitting Next -> Next
-> Radio Scan -> Dr.Watson

If I use R3 to create the DB and configuration and try to migrate the stuff, the configuration.exe crashes at startup immediately!

Thanks for all tips but I CANNOT configure anything inside the configuration utillity because it always crashes before I can see a GUI!!!

Inside the error.log there you can find the following:


20.05.2006 13:51:56 Exception :confused:ystem.TypeInitializationException: Der Typeninitialisierer für SQLite.NET.SQLiteClient hat eine Ausnahme verursacht. ---> System.BadImageFormatException: Es wurde versucht, eine Datei mit einem falschen Format zu laden. (Ausnahme von HRESULT: 0x8007000B)
bei SQLite.NET.SQLiteClient.sqlite3_libversion()
bei SQLite.NET.SQLiteClient..cctor()
--- Ende der internen Ausnahmestapelüberwachung ---
bei SQLite.NET.SQLiteClient..ctor(String dbName)
bei MediaPortal.Radio.Database.RadioDatabaseSqlLite.Open()
20.05.2006 13:51:56 Exception :Der Typeninitialisierer für SQLite.NET.SQLiteClient hat eine Ausnahme verursacht.
20.05.2006 13:51:56 site :Void .ctor(System.String)
20.05.2006 13:51:56 source :Databases
20.05.2006 13:51:56 stacktrace: bei SQLite.NET.SQLiteClient..ctor(String dbName)
bei MediaPortal.Radio.Database.RadioDatabaseSqlLite.Open()
20.05.2006 13:52:13 Exception :confused:ystem.BadImageFormatException: ist keine zulässige Win32-Anwendung. (Ausnahme von HRESULT: 0x800700C1)
bei MediaPortal.Player.VMR9Util..ctor()
bei MediaPortal.TV.Recording.SinkGraphEx.CreateGraph(Int32 Quality)
20.05.2006 13:52:13 Exception : ist keine zulässige Win32-Anwendung. (Ausnahme von HRESULT: 0x800700C1)
20.05.2006 13:52:13 site :Void .ctor()
20.05.2006 13:52:13 source :Core
20.05.2006 13:52:13 stacktrace: bei MediaPortal.Player.VMR9Util..ctor()
bei MediaPortal.TV.Recording.SinkGraphEx.CreateGraph(Int32 Quality)
 

ari.m

New Member
May 31, 2006
1
0
Fishermans, et. al.,

I think I saw the same issue than you did with your latest configuration -- System.TypeInitializationException thrown from SQLite.dll. In order to investigate this further I set up a debug environment, and it appears that every attempt to call any function in SQLite.dll from databases.dll leads to unhandled exception.

I assume the exported interface in SQLite.dll is not what databases.dll expects it to be. But I wonder why this occurs just for us. This might have something to do with different locales, as we both appear to use non-english version of XP. These inter-dll calls may require character set conversion or something.

The latest version (3.3.5) of SQLite from http://www.sqlite.org works better and prevents the crash. Note that you need to rename the sqlite3.dll to sqlite.dll. I'm not sure whether the sqlite.dll bundled with Mediaportal is a custom build; the new version may disable and break some other features...

However the database still won't work (i.e. found channels do not get saved), because now the Mediaportal has a bug in it databases.dll (in "sqlite3_prepare16" call). SQLite.dll expects to receive a string literal and it's length in bytes, but databases.dll passes the length in characters. This makes most database operations to fail. Probably this is incompatibility between original and new version of sqlite.dll. There might be other incompatibilities as well, but after fixing these two issues I was able to tune and start Mediaportal.

So, does anyone have an opinion whether it is safe to update newer version of sqlite.dll?

Br,
- Ari
 

ronilse

Retired Team Member
  • Premium Supporter
  • July 19, 2005
    4,422
    283
    Moss
    Home Country
    Norway Norway
    Hi,
    To get the installation to "work" you just have to "skip" the first time wizard, if you get an error just move the error window & continue with next, next until finish (you can search, scan for channels & add in MP setup later).

    It seems to be some localized version that this affect, Swedish, Danish, etc. I have a Norwegian version & have tested Swedish version but doesn't get that error here & I dunno why :?

    Tested the new version of sqllite.dll & this gives lots of errors, so the new one it's different...
    If you find a solution, please post back here or add a patch to sourceforge :lol:

    Regards
    Roy
     

    Fishermans

    Portal Member
    April 1, 2005
    20
    0
    It's working now. All the reported issues seems to be gone by using the latest SVN! There aren't any patches required to the sql library anymore!

    Fishermans
     

    Users who are viewing this thread

    Top Bottom