tattwamasi / TeslaTunes

Copy your iTunes library, automatically converting Apple Lossless to flac, to a destination for use with your Tesla Model S
https://teslatunes.loci.net
43 stars 5 forks source link

crash when scanning library #6

Closed tattwamasi closed 7 years ago

tattwamasi commented 9 years ago

(reported from TMC)

I'm getting a crash when I scan my library (I can scan one playlist successfully). The relevant-looking section looks like this:

Application Specific Information: * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[NSCountedSet addObject:]: attempt to insert nil' abort() called terminating with uncaught exception of type NSException

Application Specific Backtrace 1: 0 CoreFoundation 0x00007fff8447503c exceptionPreprocess + 172 1 libobjc.A.dylib 0x00007fff8585a76e objc_exception_throw + 43 2 CoreFoundation 0x00007fff84474eed +[NSException raise:format:] + 205 3 Foundation 0x00007fff8cb6ad7f -[NSCountedSet addObject:] + 81 4 TeslaTunes 0x000000010f9efaac -[CopyConvertDirs processFileURL:toDestinationerformScanOnly:withPlaylist:] + 773 5 TeslaTunes 0x000000010f9f1531 -[CopyConvertDirs processOpsWithPlaylistSelections:andSourceDirectoryURL:toDestinationDirectoryURLerformScanOnly:] + 1354 6 TeslaTunes 0x000000010f9edf8d 85-[CopyConvertDirs startOperationOnDir:withPlaylistSelections:andSourceDir:toDestDir:]_block_invoke + 74 ....

The crash occurs when I select "copy whole library/folder" (and choose my music folder; about 4200 songs), with every other checkbox OFF.

Is there a way to turn on logging to see which file is at fault?

tattwamasi commented 7 years ago

I never added a logging option that's end-user controllable. Probably should. However, I think I have caught the type error shown here in subsequent code. If this is ever recreatable, will reopen and update.