Bug 212615 - UMSHandler blocks the UI when scanning a UMS device
Summary: UMSHandler blocks the UI when scanning a UMS device
Status: RESOLVED DUPLICATE of bug 180520
Alias: None
Product: amarok
Classification: Applications
Component: Collections/USB mass storage and MSC (show other bugs)
Version: 2.3-GIT
Platform: Ubuntu Unspecified
: NOR grave
Target Milestone: 2.2.2
Assignee: Amarok Developers
URL:
Keywords:
: 210761 214939 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-11-01 13:55 UTC by Casey Link
Modified: 2011-12-20 11:39 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Casey Link 2009-11-01 13:55:34 UTC
Version:           2.2-GIT (using KDE 4.3.2)
Installed from:    Ubuntu Packages

Meta::UmsHandler parses tracks in a synchronous fashion, so once you right click on a device in the collection browser and select the "Read Device" action the ui blocks completely, presumably until the scanning is complete.

However, seeing as my devices are all many hundreds of gigabytes, I'm not prepared to sit here at let it finish scanning them to see what happens ;-)

Here is the debug output:
amarok: BEGIN: void Meta::MediaDeviceHandler::parseTracks() 
amarok:   BEGIN: void Meta::MediaDeviceHandler::setupReadCapability() 
amarok:      RCB does not exist 
amarok:      Has read capability interface 
amarok:      making custom read capability 
amarok:      Created rc 
amarok:   END__: void Meta::MediaDeviceHandler::setupReadCapability() - Took 0.00036s 
amarok:   BEGIN: virtual void Meta::UmsHandler::prepareToParseTracks() 
amarok:     BEGIN: int Meta::UmsHandler::addPath(const QString&) 
amarok:       [UmsHandler] Got type:  "inode/directory" For file:  "/media/SEA_DISK/." , with accuracy:  100 
amarok:     END__: int Meta::UmsHandler::addPath(const QString&) - Took 0.00068s 
amarok:     BEGIN: int Meta::UmsHandler::addPath(const QString&) 
amarok:       [UmsHandler] Got type:  "inode/directory" For file:  "/media/SEA_DISK/.." , with accuracy:  100 
amarok:     END__: int Meta::UmsHandler::addPath(const QString&) - Took 0.00031s 
amarok:     BEGIN: int Meta::UmsHandler::addPath(const QString&) 
amarok:       [UmsHandler] Got type:  "inode/directory" For file:  "/media/SEA_DISK/$RECYCLE.BIN" , with accuracy:  100 
amarok:     END__: int Meta::UmsHandler::addPath(const QString&) - Took 0.00071s 
amarok:     BEGIN: int Meta::UmsHandler::addPath(const QString&) 
amarok:       [UmsHandler] Got type:  "inode/directory" For file:  "/media/SEA_DISK/$RECYCLE.BIN/." , with accuracy:  100 
amarok:     END__: int Meta::UmsHandler::addPath(const QString&) - Took 0.00073s 
amarok:     BEGIN: int Meta::UmsHandler::addPath(const QString&) 
amarok:       [UmsHandler] Got type:  "inode/directory" For file:  "/media/SEA_DISK/$RECYCLE.BIN/.." , with accuracy:  100 
amarok:     END__: int Meta::UmsHandler::addPath(const QString&) - Took 0.00053s 
amarok:     BEGIN: int Meta::UmsHandler::addPath(const QString&) 
amarok:       [UmsHandler] Got type:  "inode/directory" For file:  "/media/SEA_DISK/$RECYCLE.BIN/S-1-5-21-686081006-1937160615-1079934591-1000" , with accuracy:  100 
amarok:     END__: int Meta::UmsHandler::addPath(const QString&) - Took 0.00091s 
amarok:     BEGIN: int Meta::UmsHandler::addPath(const QString&) 
.... and so on
Comment 1 Mikko C. 2009-11-28 09:23:56 UTC
*** Bug 210761 has been marked as a duplicate of this bug. ***
Comment 2 Mikko C. 2009-11-28 09:31:33 UTC
*** Bug 214939 has been marked as a duplicate of this bug. ***
Comment 3 Myriam Schweingruber 2009-11-28 20:01:11 UTC
Cahnging target, setting as release_blocker
Comment 4 Mikko C. 2009-12-04 12:01:28 UTC

*** This bug has been marked as a duplicate of bug 180520 ***