Closed Can't copy 1MB file in File Browser

  • 11 Replies
  • 4067 Views
*

Offline m2tk

  • **
  • 50
  • Sheet happens ...
Closed Can't copy 1MB file in File Browser
« on: 16 / April / 2008, 13:31:46 »
Advertisements
when i try to copy|cut paste 1MB files camera turns on blue led, hungs and after some time (~15s) shuts off..

fw:101b

edit: worksforme also...
bug verified/fixed/closed
« Last Edit: 18 / April / 2008, 04:51:12 by m2tk »
S5IS 1.01bc

Re: Can't copy 1MB file in File Browser - cam hungs & shuts off
« Reply #1 on: 16 / April / 2008, 17:51:10 »
Deleted
« Last Edit: 22 / April / 2008, 18:04:20 by Barney Fife »
[acseven/admin commented out: please refrain from more direct offensive language to any user. FW complaints to me] I felt it imperative to withdraw my TOTAL participation. Nobody has my permission, nor the right, to reinstate MY posts. Make-do with my quoted text in others' replies only. Bye

*

Offline GrAnd

  • ****
  • 916
  • [A610, S3IS]
    • CHDK
Re: Can't copy 1MB file in File Browser - cam hungs & shuts off
« Reply #2 on: 17 / April / 2008, 02:33:04 »
Watchdog? (Too long copy process)
CHDK Developer.

*

Offline DataGhost

  • ****
  • 314
  • EOS 40D, S5IS
    • DataGhost.com
Re: Can't copy 1MB file in File Browser - cam hungs & shuts off
« Reply #3 on: 17 / April / 2008, 04:47:46 »
Sorry, worksforme... at least, I just copied a 10MB file (RAW) and it didn't take anything near 15 seconds. Can you give me the exact steps needed to reproduce this problem?


Re: Can't copy 1MB file in File Browser - cam hungs & shuts off
« Reply #4 on: 17 / April / 2008, 15:35:51 »
Deleted
« Last Edit: 22 / April / 2008, 18:04:45 by Barney Fife »
[acseven/admin commented out: please refrain from more direct offensive language to any user. FW complaints to me] I felt it imperative to withdraw my TOTAL participation. Nobody has my permission, nor the right, to reinstate MY posts. Make-do with my quoted text in others' replies only. Bye

*

Offline m2tk

  • **
  • 50
  • Sheet happens ...
Re: Can't copy 1MB file in File Browser - cam hungs & shuts off
« Reply #5 on: 17 / April / 2008, 17:41:04 »
Can you give me the exact steps needed to reproduce this problem?

1. start filebrowser
2. cd CHDK
3. cd BOOKS
4. copy : file:mega.txt, size:1MB (exactly)
5. cd..
6. paste
7. blue led
8. hung & dead ...

the same with 16kB (exactly) file

when tried some other it was working with 1kB and even with 6,8MB files

// MARKED_BUF_SIZE         0x10000
so i think that the problem if some file size (even to *1024 and bigger than MARKED_BUF_SIZE ???)
S5IS 1.01bc

*

Offline DataGhost

  • ****
  • 314
  • EOS 40D, S5IS
    • DataGhost.com
Re: Can't copy 1MB file in File Browser - cam hungs & shuts off
« Reply #6 on: 17 / April / 2008, 19:12:52 »
Confirmed, I'll look into it. I guess this applies to every camera, I don't really know any S5-specific hook that would cause this.

Edit: fixed the problem in my dev-trunk, return value of the read call is -1 at EOF, not 0 as assumed. Changed it to ss>0 which should be compatible with old behaviour, if any cameras return 0 instead of -1. I'll commit it to SVN in a minute.
« Last Edit: 17 / April / 2008, 19:27:09 by DataGhost »

*

Offline hotvedt

  • ***
  • 106
  • A540/SX110IS/350D
Re: Can't copy 1MB file in File Browser - cam hungs & shuts off
« Reply #7 on: 17 / April / 2008, 19:22:07 »
Confirming this bug on powershot a540.

edit:
attached file "mega.txt" (zipped) for tests and/or for those who have problems creating the exactly 1mb file.
« Last Edit: 17 / April / 2008, 19:26:21 by hotvedt »


*

Offline DataGhost

  • ****
  • 314
  • EOS 40D, S5IS
    • DataGhost.com
Re: Can't copy 1MB file in File Browser - cam hungs & shuts off
« Reply #8 on: 17 / April / 2008, 19:28:20 »
A540 is DIGIC II/VxWorks, S5IS is DIGIC III/DryOS. I'd say this covers every platform (statistically). Thanks for the feedback.

Edit: fixed in changeset 385, expect an updated autobuild within 48 hours (not sure on GrAnd's script's timing) in just over 13 hours or checkout from svn of course :)

// MARKED_BUF_SIZE         0x10000
so i think that the problem if some file size (even to *1024 and bigger than MARKED_BUF_SIZE ???)
It did have something to do with that, the old code affects all files from 0-64kB (MARKED_BUF_SIZE) and multiples of 64kB (1MB = 16 * 64kB)
« Last Edit: 17 / April / 2008, 19:45:33 by DataGhost »

*

Offline GrAnd

  • ****
  • 916
  • [A610, S3IS]
    • CHDK
Re: Can't copy 1MB file in File Browser - cam hungs & shuts off
« Reply #9 on: 18 / April / 2008, 03:10:49 »
Edit: fixed in changeset 385, expect an updated autobuild within 48 hours (not sure on GrAnd's script's timing) in just over 13 hours or checkout from svn of course :)

Not hours. Autobuild checks for new sources every 15 minutes. The build takes 5 minutes. So in the worst case the new build is available in 20 minutes (in 5 minutes if the check-in is just before the check).
Autobuilding of trunk
CHDK Developer.

 

Related Topics