PDA

View Full Version : V6.0 Revision 2032 generating errors & crashing



Gregory Hamilton
2005-02-12, 10:40
Getting the following using latest SVN 2032


1. Deleted the slimserversql.db, and ran with d_moodlogic and d_scan.
Eventually towards the end of the scan, the log shows.

Use of uninitialized value in subroutine entry at C:\Program
Files\slimperl\trunk\server\CPAN/DBIx/ContextualFetch.pm line 51.
Use of uninitialized value in subroutine entry at C:\Program
Files\slimperl\trunk\server\CPAN/DBIx/ContextualFetch.pm line 51.
2005-02-12 12:26:58.5805 Backtrace:

frame 0: Slim::Music::Import::artScan (C:/Program
Files/slimperl/trunk/server/Slim/Utils/Scheduler.pm line 95)
frame 1: Slim::Utils::Scheduler::run_tasks (slimserver.pl line 545)
frame 2: main::idle (slimserver.pl line 504)
frame 3: main::main (slimserver.pl line 1018)

Can't call method "coverArt" on an undefined value at C:/Program
Files/slimperl/trunk/server/Slim/Music/Import.pm line 158.


2. When I restart the server I get the following:

C:\Program Files\slimperl\trunk\server>perl slimserver.pl --d_info
2005-02-12 12:27:56.3536 Adding MOODLOGIC Scan
2005-02-12 12:27:56.3636 Adding ITUNES Scan
2005-02-12 12:27:56.3836 loading types config file...
2005-02-12 12:27:56.4337 Tag database support is ON, saving into:
C:\Program Files\slimperl\trunk\server\Cache\slimserversql.db
2005-02-12 12:27:56.4637 Connected to database
dbi:SQLite:dbname=C:\Program
Files\slimperl\trunk\server\Cache\slimserversql.db
2005-02-12 12:27:56.4838 database v. 4 requires upgrade to 99999
2005-02-12 12:27:56.4838 Database schema out of date and purge
required. Purging db.
2005-02-12 12:27:56.4838 Executing SQL file C:\Program
Files\slimperl\trunk\server\SQL\SQLite\dbdrop.sql
DBD::SQLite::db do failed: no such index: trackURLIndex(1) at dbdimp.c
line 263 at C:/Program Files/slimperl/trunk/server/Slim/DataS
tores/DBI/DataModel.pm line 67, <$fh> line 23.
2005-02-12 12:27:58.8071 Backtrace:

frame 0: Slim::DataStores::DBI::DataModel::executeSQLFile
(C:/Program Files/slimperl/trunk/server/Slim/DataStores/DBI/DataModel.p
m line 142)
frame 1: Slim::DataStores::DBI::DataModel::db_Main (C:/Program
Files/slimperl/trunk/server/Slim/DataStores/DBI/DBIStore.pm line 7
8)
frame 2: Slim::DataStores::DBI::DBIStore::new (C:/Program
Files/slimperl/trunk/server/Slim/Music/Info.pm line 67)
frame 3: Slim::Music::Info::init (slimserver.pl line 475)
frame 4: main::start (slimserver.pl line 502)
frame 5: main::main (slimserver.pl line 1018)

DBD::SQLite::db do failed: no such index: trackURLIndex(1) at dbdimp.c
line 263 at C:/Program Files/slimperl/trunk/server/Slim/DataS
tores/DBI/DataModel.pm line 67, <$fh> line 23.

Dan Sully
2005-02-12, 10:46
* Gregory Hamilton shaped the electrons to say...

>1. Deleted the slimserversql.db, and ran with d_moodlogic and d_scan.
> Eventually towards the end of the scan, the log shows.
>
>Use of uninitialized value in subroutine entry at C:\Program
>Files\slimperl\trunk\server\CPAN/DBIx/ContextualFetch.pm line 51.
>Use of uninitialized value in subroutine entry at C:\Program
>Files\slimperl\trunk\server\CPAN/DBIx/ContextualFetch.pm line 51.

These are mostly harmless - and are comming from the moodlogic scan - trying to track them down.

>Can't call method "coverArt" on an undefined value at C:/Program
>Files/slimperl/trunk/server/Slim/Music/Import.pm line 158.

I just checked in a fix for this.

>DBD::SQLite::db do failed: no such index: trackURLIndex(1) at dbdimp.c
>line 263 at C:/Program Files/slimperl/trunk/server/Slim/DataS
>tores/DBI/DataModel.pm line 67, <$fh> line 23.

I've just gotten a fix in for this.

-D
--
<Nigel> Please refrain from fearing the reaper.

Lars Kellogg-Stedman
2005-02-12, 11:44
Dan,

With revision 2035, I'm still seeing a crash after:

* Stop slimserver
* Delete the database
* Start slimserver
* Stop slimserver
* Start slimserver

The error is:

DBD::SQLite::db do failed: table dirlist_track already exists(1) at
dbdimp.c line 263 at
/home/slimserver/slim/server//Slim/DataStores/DBI/DataModel.pm line 67,
<$fh> line 158.

The first time I run slimserver after deleting the database, I'm still
seeing that dump of perl code preceded by:

Here's the problem.
/home/slimserver/slim/server//Slim/Networking/Slimproto.pm, line 182:

(And followed by a backtrace.)

-- Lars

Dan Sully
2005-02-12, 12:47
* Lars Kellogg-Stedman shaped the electrons to say...

>The error is:
>
>DBD::SQLite::db do failed: table dirlist_track already exists(1) at
>dbdimp.c line 263 at
>/home/slimserver/slim/server//Slim/DataStores/DBI/DataModel.pm line 67,
><$fh> line 158.

Ok - this should be fixed up in subversion. Thanks for the debugging!

>The first time I run slimserver after deleting the database, I'm still
>seeing that dump of perl code preceded by:
>
> Here's the problem.
>/home/slimserver/slim/server//Slim/Networking/Slimproto.pm, line 182:

This appears to be unrelated..

-D
--
<dmercer> Because that is what our industry does.
Churns out useless shit. Followed by inferior re-implementations of useless shit.

Lars Kellogg-Stedman
2005-02-12, 18:01
> Ok - this should be fixed up in subversion. Thanks for the debugging!

Looks good. At revision 2046 I can successfully bring slimserver up and
down without crashes...but attempts to search songs result in a new DBI
error:

DBD::SQLite::db prepare_cached failed: near "AND": syntax error(1) at
dbdimp.c line 263 at
/home/slimserver/slim/server//Slim/DataStores/DBI/DataModel.pm line 620.

Earlier you asked about "use of undefined value" error messages. Right
now, I'm seeing the following:

substr outside of string at
/home/slimserver/slim/server/CPAN/MP3/Info.pm line 730, <$fh> line 1.

Use of uninitialized value in multiplication (*) at
/home/slimserver/slim/server/CPAN/MP3/Info.pm line 732, <$fh> line 1.

Use of uninitialized value in length at
/home/slimserver/slim/server/CPAN/MP3/Info.pm line 743, <$fh> line 1.

-- Lars