Camera crash on startup - investigation. - page 5 - General Discussion and Assistance - CHDK Forum

Camera crash on startup - investigation.

  • 112 Replies
  • 48417 Views
*

Offline reyalp

  • ******
  • 14082
Re: Camera crash on startup - investigation.
« Reply #40 on: 24 / March / 2011, 22:38:42 »
Advertisements
That's consistent with what I've seen and others have reported.
When you start in playback mode the camera appears to scan all the images on the card to build an in memory index.
I wonder if it would be possible to delay the scanning task until after CHDK has started fully ?
Don't forget what the H stands for.

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Camera crash on startup - investigation.
« Reply #41 on: 24 / March / 2011, 22:47:21 »
I wonder if it would be possible to delay the scanning task until after CHDK has started fully ?

That might mean hooking another task - might be easier to delay CHDK startup until camera is finished processing files.
Either way it will need investigation into the playback startup logic in the firmware - unless someone has already done this previously?.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

Re: Camera crash on startup - investigation.
« Reply #42 on: 27 / March / 2011, 13:58:30 »
Quote
That might mean hooking another task - might be easier to delay CHDK startup until camera is finished processing files.

processing files can take very long, on full 8 GB cards(many files in 1 dir) it can need 7-8 sec until the blinking LED switch off.
maybe you can find the task, that do this anyway.

But i dont understand wy the fix fail on SX 20.On Ixus 1000 the FIX work on the very often happen series shoot problem counts
« Last Edit: 27 / March / 2011, 14:00:55 by Bernd R »
Ixus 1000 HS

*

Offline reyalp

  • ******
  • 14082
Re: Camera crash on startup - investigation.
« Reply #43 on: 27 / March / 2011, 14:19:49 »
Quote
That might mean hooking another task - might be easier to delay CHDK startup until camera is finished processing files.

processing files can take very long, on full 8 GB cards(many files in 1 dir) it can need 7-8 sec until the blinking LED switch off.
maybe you can find the task, that do this anyway.
Indeed, that was why I suggested delaying the canon task rather than CHDK. Delaying CHDK would probably be easier.
Don't forget what the H stands for.


*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: Camera crash on startup - investigation.
« Reply #44 on: 29 / March / 2011, 07:26:30 »
Indeed, that was why I suggested delaying the canon task rather than CHDK. Delaying CHDK would probably be easier.

On reflection I'm thinking the current fix in wrapper.c may be the simplest overall.
It only requires a #define in camera.h to enable and requires no changes to any assembly code or finding yet another variable / function in the firmware. The performance hit is negligible as it only affects files opened as read-only (config, font, etc).
Delaying the camera task would probably require changes to boot.c for each camera (as well as trying to find out how to do this without causing other problems).
Delaying CHDK would involve finding some variable or function in the firmware that can be queried to find out when the loading has finished as well as the obvious delay before CHDK is functional.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

Re: Camera crash on startup - investigation.
« Reply #45 on: 30 / March / 2011, 07:18:06 »
Quote
That might mean hooking another task - might be easier to delay CHDK startup until camera is finished processing files.

processing files can take very long, on full 8 GB cards(many files in 1 dir) it can need 7-8 sec until the blinking LED switch off.
maybe you can find the task, that do this anyway.
Indeed, that was why I suggested delaying the canon task rather than CHDK. Delaying CHDK would probably be easier.


I get the idea, if it is possible to read the state of the LED that blink on startup from the register of LED.On my Camera it blink 2-3 times /sec.Is this on other Camera same ?

so chdk can start, when LED is not switch on for .5 sec safe.

yesterday i have start my camera and it show 1,2 so the code from philmoz have handle one of the selden crashes i get.
I dont know wy it not work on other Camera stable
« Last Edit: 30 / March / 2011, 07:23:02 by Bernd R »
Ixus 1000 HS

Re: Camera crash on startup - investigation.
« Reply #46 on: 30 / March / 2011, 07:21:08 »
double post remove
Ixus 1000 HS

Re: Camera crash on startup - investigation.
« Reply #47 on: 04 / April / 2011, 12:22:51 »
Quote
Before a RAW file is written there are 2 jpg files written.

also the last RAW of a series shot is not written.so at end there are in a 6 image series 6 jpg and 5 RAW.

I don't use CHDK RAW on the G12 since it has native RAW built in. On the SX30 I shot over 1300 images with DNG enabled and did not have any missing DNG files, although this camera does have a slower continuous rate.

I think the most likely reason for this is that the call to capt_seq_hook_raw_here is in the wrong place.

Phil.


I get that good working now, when i switch to series Mode with AF enable.series rate is then without chdk 0.9 fps but with RAW enable speed is not slower as without AF enable.And there are always the correct jpg and DNG files write and no file is miss.maybe in the high speed mode is something diffrent with the tasks
Ixus 1000 HS


Re: Camera crash on startup - investigation.
« Reply #48 on: 10 / April / 2011, 12:27:56 »
Reading this thread,  its not clear that there was a final conclusion about what to do about this problem ?
Did I miss something ?   Or are we all just "living with it"?
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 14082
Re: Camera crash on startup - investigation.
« Reply #49 on: 10 / April / 2011, 14:25:54 »
Reading this thread,  its not clear that there was a final conclusion about what to do about this problem ?
Did I miss something ?   Or are we all just "living with it"?

Philmoz open workaround should be used for any cameras where it improves things.
Don't forget what the H stands for.

 

Related Topics