Bug for slow cards

  • 11 Replies
  • 1114 Views
*

Offline timgor

  • ***
  • 150
Bug for slow cards
« on: 03 / December / 2013, 11:37:22 »
Advertisements
I got some bugs.
everything is ok when I write
Code: [Select]
shoot()but the script starts to crush occasionally when I write
Code: [Select]
shoot()
shoot()

After the first shoot() camera is performing file saving into SD card (the led lamp is flashing) and it looks like function shoot() doesn't wait until the file is saved. The crush happens when it overlaps with the second shoot().

It happens when I started to use slower SD card and didn't happen when I used fast SD card.
The crush disappear when I use
Code: [Select]
shoot()
sleep(1000)
shoot()

The same thing for video record and I have to use sleep(10000) (ten seconds) after the video function.

Another problem is when the crush happens the camera doesn't work anymore (it writes that camera has some error and shut down when trying to make another shoot) and I have to format disk to fat32 to make it work again.

Questions:
1  is there any way to make function shoot() or video wait until file is saved and ready to go?
2  is there any way to fix the last broken file (if crush happened) and continue? May be there is any way to delete broken files of format it locally...






 

*

Offline srsa_4c

  • ******
  • 3538
Re: Bug for slow cards
« Reply #1 on: 03 / December / 2013, 12:34:23 »
Another problem is when the crush happens the camera doesn't work anymore (it writes that camera has some error and shut down when trying to make another shoot)
Can you run the two line Lua script you find here? Please also make a romlog: "miscellaneous stuff" -> "debug parameters" -> "save rom crash log", and post the two created files. Are you still using the a3400?

*

Offline timgor

  • ***
  • 150
Re: Bug for slow cards
« Reply #2 on: 03 / December / 2013, 12:42:49 »
Let me know details what should I do:
1. I need to make crush with my script shoot() shoot() shoot()...
2. Then I should run your script with just two lines or I should run two lines + shoot()?
Or I should run your script with two lines + shoot() shoot() shoot()...from the very beginning?

*

Offline srsa_4c

  • ******
  • 3538
Re: Bug for slow cards
« Reply #3 on: 03 / December / 2013, 13:00:29 »
@timgor

The camera stores the romlog indefinitely, so the only thing that matters is that the latest crash should be due to your above detailed activity. You don't need provoke another crash, just retrieve the romlog and that firminfo.txt.


*

Offline timgor

  • ***
  • 150
Re: Bug for slow cards
« Reply #4 on: 03 / December / 2013, 22:24:11 »
After the crush happened I generated ROMLOG.LOG file.
When should I run the script:
Code: [Select]
call_event_proc("UI.Create")
call_event_proc("UIFS_WriteFirmInfoToFile",0)
?
just after the crush?
I use A3400 camera

*

Offline reyalp

  • ******
  • 11084
Re: Bug for slow cards
« Reply #5 on: 03 / December / 2013, 23:28:06 »
After the crush happened I generated ROMLOG.LOG file.
When should I run the script:
Code: [Select]
call_event_proc("UI.Create")
call_event_proc("UIFS_WriteFirmInfoToFile",0)
?
just after the crush?
It doesn't matter.

Your romlog is all 0xFF chars, which probably means a crash log has never been saved on this camera.
Don't forget what the H stands for.

Re: Bug for slow cards
« Reply #6 on: 04 / December / 2013, 00:28:22 »
Your romlog is all 0xFF chars, which probably means a crash log has never been saved on this camera.
Looking back at the original post, he's stacking shoot commands one on top of the other.  Seems like the CHDK action  stack might just be getting jammed up without actually causing an actual Canon OS crash ?
« Last Edit: 04 / December / 2013, 00:30:19 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline timgor

  • ***
  • 150
Re: Bug for slow cards
« Reply #7 on: 04 / December / 2013, 08:50:30 »
ok, I just figured out that camera crushes even after 15 s sleep between commands. The problem is definitely with my sd card. Sometimes it works slow, sometimes fast...
Questions:
1   Is there any way to improve SD card performance? using special partitions, formattings...
2   Is there any CHDK function that waits while the card is busy?


*

Offline srsa_4c

  • ******
  • 3538
Re: Bug for slow cards
« Reply #8 on: 04 / December / 2013, 12:14:34 »
1   Is there any way to improve SD card performance? using special partitions, formattings...
Try "low level format" in camera, then re-install CHDK (don't re-format it with the computer). The card may also be a counterfeit one... What size and brand is it?
And here's a link (stolen from reyalp's collection) with detailed information.
Quote
2   Is there any CHDK function that waits while the card is busy?
Not currently.

That firminfo.txt would still be interesting. Your failed romlog is also suspicious, AFAIK you have already created some a few months ago with this camera.

*

Offline reyalp

  • ******
  • 11084
Re: Bug for slow cards
« Reply #9 on: 04 / December / 2013, 13:44:55 »
Your failed romlog is also suspicious, AFAIK you have already created some a few months ago with this camera.
Thinking about this more... while 0xFF would generally indicate the log sector of onboard flash has been erased or never written, I believe the romlog functions are supposed to fail and not write anything if there is no romlog stored.
Don't forget what the H stands for.

 

Related Topics