Page 1 of 2

Database Rebuild hangs on Mac OSX install

Posted: Wed Nov 18, 2015 5:19 pm
by dmcclellan
I'm really looking forward to trying out the program, but I can't get past the "Rebuild Database" command after the installation. I've tried on both a Mac desktop and laptop, both running El Capitan (10.11.1). Any suggestions? Thanks &
Cheers,
Doug

Re: Database Rebuild hangs on Mac OSX install

Posted: Thu Nov 19, 2015 8:21 am
by bll
Can you try a "Rebuild w/Logging" then attach the "data/<computer-name>/logfile.txt" file to your reply.

Re: Database Rebuild hangs on Mac OSX install

Posted: Thu Nov 19, 2015 9:51 am
by dmcclellan
Hi: It looks like the rebuild chokes on specific files. I'm copying edited versions of two logfiles; one from my laptop, in this message, and one from my desktop, in a subsequent message. I removed several entries from the file to meet the character limit on these messages as I was not allowed to attached the .txt files.

Both the laptop and desktop rebuilds originally appeared to freeze on the same song: "Melancholisch Schön_Am Rumba Rounds.mp3", which is the last entry in the laptop rebuild logfile.

On my desktop, I removed that song from the music folder and tried the rebuild again. It kept going until it apparently choked on another file: "20 CH-Alikewhat.mp3."

I'm not sure what is so different in these file names or attributes that causes the rebuild to hang. I guess I could keep removing problematic music files until I get a successful database rebuild. But perhaps there's a bug in the program that could be fixed in a future update?

Many thanks for your help &

Cheers,
Doug

---- LAPTOP REBUILD LOGFILE ------

09:47:52 begin getFileList /Users/Doug/Music/iTunes/iTunes Media/Music
09:47:52 begin getFileList /Users/Doug/Music/iTunes/iTunes Media/Music/2raumwohnung
09:47:52 begin getFileList /Users/Doug/Music/iTunes/iTunes Media/Music/2raumwohnung/Putumayo Presents Bossa Nova Around The World
09:47:52 end getFileList /Users/Doug/Music/iTunes/iTunes Media/Music/2raumwohnung/Putumayo Presents Bossa Nova Around The World
09:47:52 end getFileList /Users/Doug/Music/iTunes/iTunes Media/Music/2raumwohnung
09:47:52 begin getFileList /Users/Doug/Music/iTunes/iTunes Media/Music/20
09:47:52 begin getFileList /Users/Doug/Music/iTunes/iTunes Media/Music/20/Unknown Album
09:47:52 end getFileList /Users/Doug/Music/iTunes/iTunes Media/Music/20/Unknown Album
09:47:52 end getFileList /Users/Doug/Music/iTunes/iTunes Media/Music/20
09:47:52 begin getFileList /Users/Doug/Music/iTunes/iTunes Media/Music/98°
09:47:52 begin getFileList /Users/Doug/Music/iTunes/iTunes Media/Music/98°/98º and Rising
09:47:52 end getFileList /Users/Doug/Music/iTunes/iTunes Media/Music/98°/98º and Rising
09:47:52 end getFileList /Users/Doug/Music/iTunes/iTunes Media/Music/98°
09:47:52 begin getFileList /Users/Doug/Music/iTunes/iTunes Media/Music/102 Strings
09:47:52 begin getFileList /Users/Doug/Music/iTunes/iTunes Media/Music/102 Strings/Ballroom Passion
09:47:52 end getFileList /Users/Doug/Music/iTunes/iTunes Media/Music/102 Strings/Ballroom Passion
09:47:52 end getFileList /Users/Doug/Music/iTunes/iTunes Media/Music/102 Strings
09:47:52 begin getFileList /Users/Doug/Music/iTunes/iTunes Media/Music/[Jive] Bill Haley
09:47:52 begin getFileList /Users/Doug/Music/iTunes/iTunes Media/Music/[Jive] Bill Haley/Master Series
09:47:52 end getFileList /Users/Doug/Music/iTunes/iTunes Media/Music/[Jive] Bill Haley/Master Series
09:47:52 end getFileList /Users/Doug/Music/iTunes/iTunes Media/Music/[Jive] Bill Haley
09:47:52 begin getFileList /Users/Doug/Music/iTunes/iTunes Media/Music/_VA mixed by Sergey Sedov
09:47:52 begin getFileList /Users/Doug/Music/iTunes/iTunes Media/Music/_VA mixed by Sergey Sedov/Unknown Album
09:47:52 end getFileList /Users/Doug/Music/iTunes/iTunes Media/Music/_VA mixed by Sergey Sedov/Unknown Album

-- big snip --

09:48:03 end getFileList /Users/Doug/Music/iTunes/iTunes Media/Music/¡Cubanismo!
09:48:03 begin getFileList /Users/Doug/Music/iTunes/iTunes Media/Music/제국의아이들 (ZE_A)
09:48:03 begin getFileList /Users/Doug/Music/iTunes/iTunes Media/Music/제국의아이들 (ZE_A)/Exciting - EP
09:48:03 end getFileList /Users/Doug/Music/iTunes/iTunes Media/Music/제국의아이들 (ZE_A)/Exciting - EP
09:48:03 end getFileList /Users/Doug/Music/iTunes/iTunes Media/Music/제국의아이들 (ZE_A)
09:48:03 end getFileList /Users/Doug/Music/iTunes/iTunes Media/Music
09:48:03 begin getFileList /Applications/BallroomDJ.app/Contents/MacOS/data
09:48:03 end getFileList /Applications/BallroomDJ.app/Contents/MacOS/data
09:48:03 2raumwohnung/Putumayo Presents Bossa Nova Around The World/Melancholisch Schön_Am Rumba Rounds.mp3
09:48:03 masterfile::loadfromfile
09:48:03 masterfile:fn:2raumwohnung/Putumayo Presents Bossa Nova Around The World/Melancholisch Schön_Am Rumba Rounds.mp3
09:48:03 masterfile:fn:hex:327261756d776f686e756e672f507574756d61796f2050726573656e747320426f737361204e6f76612041726f756e642054686520576f726c642f4d656c616e63686f6c6973636820536368f66e5f416d2052756d626120526f756e64732e6d7033
09:48:03 2raumwohnung/Putumayo Presents Bossa Nova Around The World/Melancholisch Schön_Am Rumba Rounds
09:48:03 PDANCE DANCE 2raumwohnung (C)
09:48:03 PTITLE TITLE Melancholisch Schön_Am Rumba Rounds (C)
09:48:03 mp3:/Users/Doug/Music/iTunes/iTunes Media/Music/2raumwohnung/Putumayo Presents Bossa Nova Around The World/Melancholisch Schön_Am Rumba Rounds.mp3

Re: Database Rebuild hangs on Mac OSX install

Posted: Thu Nov 19, 2015 9:53 am
by dmcclellan
Here's an edited version of my desktop logfile:

10:19:58 begin getFileList /Volumes/Music_1TB/Music/iTunes/iTunes Media/Music
10:19:58 begin getFileList /Volumes/Music_1TB/Music/iTunes/iTunes Media/Music/20
10:19:58 begin getFileList /Volumes/Music_1TB/Music/iTunes/iTunes Media/Music/20/Unknown Album
10:19:58 end getFileList /Volumes/Music_1TB/Music/iTunes/iTunes Media/Music/20/Unknown Album
10:19:58 end getFileList /Volumes/Music_1TB/Music/iTunes/iTunes Media/Music/20
10:19:58 begin getFileList /Volumes/Music_1TB/Music/iTunes/iTunes Media/Music/98°
10:19:58 begin getFileList /Volumes/Music_1TB/Music/iTunes/iTunes Media/Music/98°/98º and Rising
10:19:58 end getFileList /Volumes/Music_1TB/Music/iTunes/iTunes Media/Music/98°/98º and Rising
10:19:58 end getFileList /Volumes/Music_1TB/Music/iTunes/iTunes Media/Music/98°

-- big snip --

10:20:24 begin getFileList /Volumes/Music_1TB/Music/iTunes/iTunes Media/Music/제국의아이들 (ZE_A)
10:20:24 begin getFileList /Volumes/Music_1TB/Music/iTunes/iTunes Media/Music/제국의아이들 (ZE_A)/Exciting - EP
10:20:24 end getFileList /Volumes/Music_1TB/Music/iTunes/iTunes Media/Music/제국의아이들 (ZE_A)/Exciting - EP
10:20:24 end getFileList /Volumes/Music_1TB/Music/iTunes/iTunes Media/Music/제국의아이들 (ZE_A)
10:20:24 begin getFileList /Volumes/Music_1TB/Music/iTunes/iTunes Media/Music/城之内ミサ
10:20:24 begin getFileList /Volumes/Music_1TB/Music/iTunes/iTunes Media/Music/城之内ミサ/Kataribe
10:20:24 end getFileList /Volumes/Music_1TB/Music/iTunes/iTunes Media/Music/城之内ミサ/Kataribe
10:20:24 end getFileList /Volumes/Music_1TB/Music/iTunes/iTunes Media/Music/城之内ミサ
10:20:24 end getFileList /Volumes/Music_1TB/Music/iTunes/iTunes Media/Music
10:20:24 begin getFileList /Applications/BallroomDJ.app/Contents/MacOS/data
10:20:24 end getFileList /Applications/BallroomDJ.app/Contents/MacOS/data
10:20:24 20/Unknown Album/20 CH-Alikewhat.mp3
10:20:24 masterfile::loadfromfile
10:20:24 masterfile:fn:20/Unknown Album/20 CH-Alikewhat.mp3
10:20:24 masterfile:fn:hex:32302f556e6b6e6f776e20416c62756d2f32302043482d416c696b65776861742e6d7033
10:20:24 20/Unknown Album/20 CH-Alikewhat
10:20:24 PDANCE DANCE 20 (C)
10:20:24 PTITLE TITLE 20 CH-Alikewhat (C)
10:20:24 mp3:/Volumes/Music_1TB/Music/iTunes/iTunes Media/Music/20/Unknown Album/20 CH-Alikewhat.mp3

Re: Database Rebuild hangs on Mac OSX install

Posted: Thu Nov 19, 2015 10:48 am
by bll
dmcclellan wrote:Both the laptop and desktop rebuilds originally appeared to freeze on the same song: "Melancholisch Schön_Am Rumba Rounds.mp3", which is the last entry in the laptop rebuild logfile.

On my desktop, I removed that song from the music folder and tried the rebuild again. It kept going until it apparently choked on another file: "20 CH-Alikewhat.mp3."
Sometimes the MP3 files have strange data in the tags that cause the program to fail.
There are also MP3 files that have their tag data frames mangled by poor tagging programs.
Unfortunately in the log, I'm not seeing the raw dump of the tags.

Can you open a terminal window and try a:
mutagen-inspect <filename>
on one of the suspect MP3 files and let me know what the output is?

If I find a bug or a workaround to skip bad MP3 files, I will certainly fix it.

Re: Database Rebuild hangs on Mac OSX install

Posted: Thu Nov 19, 2015 11:23 am
by dmcclellan
Here's the results of mutagen-inspect on the two song files that hung up the database rebuild:

Douglass-Mac-Pro:~ Doug$ /Library/Python/2.7/site-packages/mutagen-1.31/tools/mutagen-inspect /Volumes/Music_1TB/Music/iTunes/iTunes\ Media/Music/20/Unknown\ Album/20\ CH-Alikewhat.mp3
-- /Volumes/Music_1TB/Music/iTunes/iTunes Media/Music/20/Unknown Album/20 CH-Alikewhat.mp3
- MPEG 1 layer 3, 160000 bps (CBR?), 44100 Hz, 2 chn, 157.71 seconds (audio/mp3)
PRIV=AverageLevel='\x1e\x1f\x00\x00'
PRIV=PeakValue='\xff\x7f\x00\x00'
PRIV=WM/MediaClassPrimaryID='\xbc}`\xd1#\xe3\xe2K\x86\xa1H\xa4*(D\x1e'
PRIV=WM/MediaClassSecondaryID='\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
TBPM=124
TIT2=CH-Alikewhat
TPE1=20
TRCK=20

---

Douglass-Mac-Pro:~ Doug$ /Library/Python/2.7/site-packages/mutagen-1.31/tools/mutagen-inspect /Volumes/Music_1TB/Music/iTunes/iTunes\ Media/Music/2raumwohnung/Putumayo\ Presents\ Bossa\ Nova\ Around\ The\ World/Melancholisch\ Schön_Am\ Rumba\ Rounds.mp3
-- /Volumes/Music_1TB/Music/iTunes/iTunes Media/Music/2raumwohnung/Putumayo Presents Bossa Nova Around The World/Melancholisch Schön_Am Rumba Rounds.mp3
- MPEG 1 layer 3, 217580 bps (VBR, LAME 3.98.1+), 44100 Hz, 2 chn, 100.11 seconds (audio/mp3)
TALB=Putumayo Presents Bossa Nova Around The World
TBPM=125
TCON=Am Rumba
TPE1=2raumwohnung
TXXX=BPM=126
TXXX=Full Name=Melancholisch Schön15c500

Re: Database Rebuild hangs on Mac OSX install

Posted: Thu Nov 19, 2015 1:22 pm
by bll
Well, I'm not seeing anything strange there.
Did your database rebuild complete without those two files? Or is it still hanging?

You can turn on debugging in Configuration -> Options : Global, run a rebuild with logging again and e-mail me the
data/<computer-name>/logfile.txt and data/<computer-name>/dbg-bdjmkmlist.txt files and I can take a look.
I may need the actual .mp3 file that's causing the problem in order to recreate the problem.

Re: Database Rebuild hangs on Mac OSX install

Posted: Fri Nov 20, 2015 12:11 pm
by dmcclellan
Still no joy, I'm afraid.

I keep removing problem music files, but it's becoming every third or fourth file — far too many to go through my collection.

Nor can I use debugging in global options. Whenever I turn it on, it crashes the program so hard I have to delete it and reinstall it.

Re: Database Rebuild hangs on Mac OSX install

Posted: Fri Nov 20, 2015 1:20 pm
by bll
Sounds bad.
I don't know why turning debugging on would require a reinstall. I will try and recreate that problem.

You can try running the rebuild in a terminal window to see if we can get some debug information.

tclsh bdjmkmlist.tcl -debug -v -v -logging '/Users/Doug/Music/iTunes/iTunes Media/Music' > watch.txt 2>&1

Then e-mail me the data/<computer-name>/logfile.txt, data/<computer-name>/dbg-bdjmkmlist.txt and watch.txt files.

Re: Database Rebuild hangs on Mac OSX install

Posted: Fri Nov 20, 2015 1:26 pm
by bll
Better make that:

tclsh bdjmkmlist.tcl -nolock -debug -v -v -logging '/Users/Doug/Music/iTunes/iTunes Media/Music' > watch.txt 2>&1

There's probably still a lock file from the last crash.