This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#9209 - md5 sum generation can't be interrupted.
Attached to Project:
Rockbox
Opened by PaulJam (PaulJam) - Monday, 21 July 2008, 21:41 GMT+2
Last edited by Antoine Cellerier (dionoea) - Thursday, 09 October 2008, 17:09 GMT+2
Opened by PaulJam (PaulJam) - Monday, 21 July 2008, 21:41 GMT+2
Last edited by Antoine Cellerier (dionoea) - Thursday, 09 October 2008, 17:09 GMT+2
|
DetailsIt is currently not possible to interrupt the md5 sum generation of the md5sum plugin with a button. If you open a large folder or launch the plugin from the apps menu it can render the device unusable for several hours (depending on the number of the files).
The only way to stop it is to shut down or reset the player. |
This task depends upon
Closed by Antoine Cellerier (dionoea)
Thursday, 09 October 2008, 17:09 GMT+2
Reason for closing: Accepted
Additional comments about closing: applied. thanks.
Thursday, 09 October 2008, 17:09 GMT+2
Reason for closing: Accepted
Additional comments about closing: applied. thanks.
Also, I added an rb->yield() to hash_file() so the plugin yields after each file. Feel free to remove this if you think it's unnecessary.
I went ahead and made the plugin check for user quit while it hashes a file so it can respond to the user's request much quicker. This way the user won't be tempted to hard reset their player with really big files. I also fixed a bug in the open() call for opening the output file (it didn't truncate the file before writing to it).
Instead of defining a quit key for every keypad configuration, can't we just use a default cancel key? Something like:
if(ACTION_STD_CANCEL == get_action(CONTEXT_STD,TIMEOUT_NOBLOCK))
As a side, I noticed that occasionally when I quit some plugins, the Plugin > Applications menu doesn't respond to any button until I press a "cancel" button again (either left or power). Perhaps the button presses or "actions" are not being delivered to the correct queue, though this is only a guess as I don't really understand how events and such work in Rockbox.
You're right about the key response after a exiting a plugin, it's a more or less known problem but it's not clear what causes it yet, see also
FS#9209(http://www.rockbox.org/tracker/task/8816)It looks like FS#8816 will give me something else to try to fix now. :)
looks good otherwise