Bugzilla – Bug 8190
Scanner.exe: Failed when running main scan
Last modified: 2009-07-31 10:21:37 UTC
Scanner fails every time it runs with the "[Can't call method "name" on an undefined value at /<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Schema.pm line 1863, <MMMDATA> chunk 2096." message. Dan, I am adding you to the cc since you made some modifications around this area in bug 3949 Below is relevant debug from Schema.pm [08-05-18 11:47:20.8570] Slim::Schema::updateOrCreate (992) Merging entry for file:///r:/music/load/Paul%20Oakenfold/Tranceport/07%20-%20Paul%20Oakenfold,%20spinning%20Various%20Artists%20-%20Energy%2052%20,%20Caf readTags is: [1] [08-05-18 11:47:20.8577] Slim::Schema::_preCheckAttributes (1787) Report for file:///r:/music/load/Paul%20Oakenfold/Tranceport/07%20-%20Paul%20Oakenfold,%20spinning%20Various%20Artists%20-%20Energy%2052%20,%20Caf: [08-05-18 11:47:20.8585] Slim::Schema::_preCheckAttributes (1788) * Attributes * [08-05-18 11:47:20.8588] Slim::Schema::_preCheckAttributes (1792) .. AUDIO : 1 [08-05-18 11:47:20.8592] Slim::Schema::_preCheckAttributes (1792) .. YEAR : 1998 [08-05-18 11:47:20.8595] Slim::Schema::_preCheckAttributes (1792) .. MUSICMAGIC_MIXABLE : 1 [08-05-18 11:47:20.8600] Slim::Schema::_preCheckAttributes (1792) .. CONTENT_TYPE : mp3 [08-05-18 11:47:20.8603] Slim::Schema::_preCheckAttributes (1792) .. REMOTE : 0 [08-05-18 11:47:20.8606] Slim::Schema::_preCheckAttributes (1792) .. TITLESEARCH : ENERGY 52 CAFE DEL MAR THREE N ONE REMIX [08-05-18 11:47:20.8612] Slim::Schema::_preCheckAttributes (1792) .. TITLESORT : ENERGY 52 CAFE DEL MAR THREE N ONE REMIX [08-05-18 11:47:20.8615] Slim::Schema::_preCheckAttributes (1792) .. SECS : 432 [08-05-18 11:47:20.8620] Slim::Schema::_preCheckAttributes (1792) .. RATING : 0 [08-05-18 11:47:20.8623] Slim::Schema::_preCheckAttributes (1792) .. TITLE : Energy 52 / Cafe Del Mar (Three N One Remix) [08-05-18 11:47:20.8626] Slim::Schema::_preCheckAttributes (1792) .. BITRATE : 192000 [08-05-18 11:47:20.8629] Slim::Schema::_preCheckAttributes (1792) .. TRACKNUM : 7 [08-05-18 11:47:20.8632] Slim::Schema::_preCheckAttributes (1795) * Deferred Attributes * [08-05-18 11:47:20.8635] Slim::Schema::_preCheckAttributes (1804) .. ALBUM : Tranceport [08-05-18 11:47:20.8639] Slim::Schema::_preCheckAttributes (1804) .. GENRE : Trance [08-05-18 11:47:20.8642] Slim::Schema::_preCheckAttributes (1804) .. ARTIST : Paul Oakenfold [08-05-18 11:47:20.8645] Slim::Schema::_preCheckAttributes (1804) .. COMMENT : ARRAY(0x4d27388) [08-05-18 11:47:20.8648] Slim::Schema::updateOrCreate (1013) Updating file:///r:/music/load/Paul%20Oakenfold/Tranceport/07%20-%20Paul%20Oakenfold,%20spinning%20Various%20Artists%20-%20Energy%2052%20,%20Caf : audio to 1 [08-05-18 11:47:20.8653] Slim::Schema::updateOrCreate (1013) Updating file:///r:/music/load/Paul%20Oakenfold/Tranceport/07%20-%20Paul%20Oakenfold,%20spinning%20Various%20Artists%20-%20Energy%2052%20,%20Caf : year to 1998 [08-05-18 11:47:20.8661] Slim::Schema::updateOrCreate (1013) Updating file:///r:/music/load/Paul%20Oakenfold/Tranceport/07%20-%20Paul%20Oakenfold,%20spinning%20Various%20Artists%20-%20Energy%2052%20,%20Caf : musicmagic_mixable to 1 [08-05-18 11:47:20.8665] Slim::Schema::updateOrCreate (1013) Updating file:///r:/music/load/Paul%20Oakenfold/Tranceport/07%20-%20Paul%20Oakenfold,%20spinning%20Various%20Artists%20-%20Energy%2052%20,%20Caf : content_type to mp3 [08-05-18 11:47:20.8671] Slim::Schema::updateOrCreate (1013) Updating file:///r:/music/load/Paul%20Oakenfold/Tranceport/07%20-%20Paul%20Oakenfold,%20spinning%20Various%20Artists%20-%20Energy%2052%20,%20Caf : remote to 0 [08-05-18 11:47:20.8675] Slim::Schema::updateOrCreate (1013) Updating file:///r:/music/load/Paul%20Oakenfold/Tranceport/07%20-%20Paul%20Oakenfold,%20spinning%20Various%20Artists%20-%20Energy%2052%20,%20Caf : titlesearch to ENERGY 52 CAFE DEL MAR THREE N ONE REMIX [08-05-18 11:47:20.8682] Slim::Schema::updateOrCreate (1013) Updating file:///r:/music/load/Paul%20Oakenfold/Tranceport/07%20-%20Paul%20Oakenfold,%20spinning%20Various%20Artists%20-%20Energy%2052%20,%20Caf : titlesort to ENERGY 52 CAFE DEL MAR THREE N ONE REMIX [08-05-18 11:47:20.8686] Slim::Schema::updateOrCreate (1013) Updating file:///r:/music/load/Paul%20Oakenfold/Tranceport/07%20-%20Paul%20Oakenfold,%20spinning%20Various%20Artists%20-%20Energy%2052%20,%20Caf : secs to 432 [08-05-18 11:47:20.8691] Slim::Schema::updateOrCreate (1013) Updating file:///r:/music/load/Paul%20Oakenfold/Tranceport/07%20-%20Paul%20Oakenfold,%20spinning%20Various%20Artists%20-%20Energy%2052%20,%20Caf : rating to 0 [08-05-18 11:47:20.8695] Slim::Schema::updateOrCreate (1013) Updating file:///r:/music/load/Paul%20Oakenfold/Tranceport/07%20-%20Paul%20Oakenfold,%20spinning%20Various%20Artists%20-%20Energy%2052%20,%20Caf : title to Energy 52 / Cafe Del Mar (Three N One Remix) [08-05-18 11:47:20.8700] Slim::Schema::updateOrCreate (1013) Updating file:///r:/music/load/Paul%20Oakenfold/Tranceport/07%20-%20Paul%20Oakenfold,%20spinning%20Various%20Artists%20-%20Energy%2052%20,%20Caf : bitrate to 192000 [08-05-18 11:47:20.8705] Slim::Schema::updateOrCreate (1013) Updating file:///r:/music/load/Paul%20Oakenfold/Tranceport/07%20-%20Paul%20Oakenfold,%20spinning%20Various%20Artists%20-%20Energy%2052%20,%20Caf : tracknum to 7 [08-05-18 11:47:20.8714] Slim::Schema::_postCheckAttributes (1858) -- Track is a local track [08-05-18 11:47:20.8752] main::main (211) Error: Failed when running main scan: [Can't call method "name" on an undefined value at /<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Schema.pm line 1863, <MMMDATA> chunk 2096. ] [08-05-18 11:47:20.8759] main::main (212) Error: Skipping post-process & Not updating lastRescanTime! [08-05-18 11:47:20.9476] Slim::Schema::forceCommit (1377) Syncing to the database.
Alex: Thank you for the report, please don't set the Priority or Severity, QA will do that during a review. What format is your music library in? Did this happen during a "Clean" scan or an "Update" scan, or does it happen with all the scan types? Can you attach a log with the following set to Debug please scan scan.import scan.scanner Lastly, what SP is installed on XP? SP1 / SP2 / SP3 Alan: Can you take a look at this?
can we please have the track causing this problem attached to the bug? scan.scanner debug will show which track is the problem. It's odd, because the line mentioned isn't where it's being stopped. there is no ->name being used at 1863. This isn't too unusual, but the problem is finding out how exactly the ->name is used when the code in that section is doing a fair number of checks to make sure _unknownGenre is blessed and has a name before using _unknownGenre->name().
The library is all mp3 files. I have SP3 installed on the system. Error was 100% reproducible with update scan, but did not happen with the clear scan. Now update scan works fine. If it helps, it was happening during MusicMagic import stage...
Assigning to QA, if anyone else see's this error, please update with your scan logs
I think the crash might be coming from Schema.pm line 1901, $track->genres->single->name.
This is a reminder that this bug is to QA for 7.1. Please review these bugs!
I have done many imports / scans / fresh installs / dirty installs...all with MP3 files and a mix of files. Have not seen this error or noticed any scanner.exe failures. Closing this bug with 7.2. If anyone else is able to reproduce and get a LOG, please reopen the bug and attach the log file.
Reduce number of active targets for SC