FS#11073 - Nano 2G, File opperation crash

Attached to Project: Rockbox
Opened by Alex (Darkknight512) - Tuesday, 02 March 2010, 22:24 GMT
Last edited by Michael Sparmann (TheSeven) - Friday, 12 March 2010, 20:03 GMT
Task Type Bugs
Category Operating System/Drivers
Status Closed
Assigned To Michael Sparmann (TheSeven)
Operating System iPod Nano 2G
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


Build r24993

Rockbox crashes when renaming files, deleting files, copying files and moving files.

Might be related might be not, Rockbox crashes when running crypt_firmware.

Error: Panic *stokov* (or something like that)
This task depends upon

Closed by  Michael Sparmann (TheSeven)
Friday, 12 March 2010, 20:03 GMT
Reason for closing:  Fixed
Additional comments about closing:  Stack size has been increased for now. There are different problems during file access right now, see  FS#11091  for details. Those will be fixed soon. crypt_firmware might still be broken.
Comment by Armando Gutierrez (ArmandiuxGS) - Thursday, 04 March 2010, 04:33 GMT
I do not like to restart my iPod every time I encounter this problem, please correct that issue.
Comment by Kamil Kubica (limarus) - Tuesday, 09 March 2010, 00:57 GMT
Me too, thats really annoying, especially when i must restore Ipod firmware after crash and copy all my songs again to Ipod.
Comment by Michael Sparmann (TheSeven) - Thursday, 11 March 2010, 02:21 GMT
We're currently investigating where all those stkov's (stack overflows) are coming from. The root cause is that the iPod Nano 2G has 2048-byte sectors, while every other Rockbox-compatible device has 512-byte sectors on it's storage device. This results in higher memory usage for some things that access the storage, and if this gets too much, as stkov will be the result.
Which directory nesting level did that happen with?

BTW, to avoid having to restore the firmware all the time (and help me test it), you could install iLoader, which can recover from most of those crashes.
Comment by Alex (Darkknight512) - Thursday, 11 March 2010, 02:35 GMT
Ok, thanks for the temp. fix
Comment by Michael Sparmann (TheSeven) - Thursday, 11 March 2010, 03:00 GMT
I increased the stack size for now. Does it work with the latest revisions again?
Comment by Alex (Darkknight512) - Thursday, 11 March 2010, 03:12 GMT
Umm I am having some trouble compiling right now.

Make: *** No rule to make target '/home/user/roxkbox/apps/codecs/libmusepack/musepack.h', needed by 'home/user/rockbox/build_nano2g/apps/codecs/mpc.o. Stop.
Comment by Armando Gutierrez (ArmandiuxGS) - Thursday, 11 March 2010, 06:21 GMT
Thank you Michael!