Trouble with fast motion detect and/or CHDK on ELPH 310HS - page 2 - Completed and Working Scripts - CHDK Forum

Trouble with fast motion detect and/or CHDK on ELPH 310HS

  • 16 Replies
  • 3710 Views
Re: Trouble with fast motion detect and/or CHDK on ELPH 310HS
« Reply #10 on: 17 / September / 2014, 22:20:20 »
Advertisements
Just for grins, right after the error happens,  take a look at the Show Memory Info values in the Miscellaneous menu and report them here ?

It's not a very big script but it might be pushing you over a memory limit.  We could try using rudi's script loader script if so.
« Last Edit: 17 / September / 2014, 22:21:56 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

*

Geezer

Re: Trouble with fast motion detect and/or CHDK on ELPH 310HS
« Reply #11 on: 18 / September / 2014, 14:17:53 »
Looks like you are on to something...


about 348k memory with empty image folder


about 188k memory with image (one or more) in folder


down to 82k after script crash


mem with script running normally (no image in folder at startup) and has stored at least one image in folder

So, if I understand, if there is an image in the folder at startup then there is not enough mem to run the script.  However, if the script gets to start with an empty folder, it stores images without running out of memory.  Until next time you use the camera!  Pretty clever!  Gotta luv computers!  Ha, ha.

Whaddya think?
Terry

Re: Trouble with fast motion detect and/or CHDK on ELPH 310HS
« Reply #12 on: 18 / September / 2014, 14:59:29 »
I think you are running out of memory. And the startup order of doing things probably produces different memory fragmentation and thus different results.

Somebody needs to look at the code and see if there is a better memory model that can be used with your camera.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline srsa_4c

  • ******
  • 3943
Re: Trouble with fast motion detect and/or CHDK on ELPH 310HS
« Reply #13 on: 18 / September / 2014, 16:29:49 »
a better memory model that can be used with your camera.
The CHDK 1.3 release for this camera has ARAM enabled (+136kB).


*

Geezer

Re: Trouble with fast motion detect and/or CHDK on ELPH 310HS
« Reply #14 on: 18 / September / 2014, 17:15:06 »
I will "test" that release.

Terry

*

Geezer

Re: Trouble with fast motion detect and/or CHDK on ELPH 310HS
« Reply #15 on: 18 / September / 2014, 18:28:22 »
Ver 1.3 fixed the problem.  It did not increase the amount of mem, but it sure eliminated the "prop" error.

As part of my testing I reverted to ver 1.2 and the error immediately returned.  Re-installed ver 1.3 and error corrected again.  I'm convinced it is fixed.

I don't know enough about computers to explain why it is fixed. :-[





Sorry, can't post mem pic after script crash. :D

Many thanks,
Terry

Re: Trouble with fast motion detect and/or CHDK on ELPH 310HS
« Reply #16 on: 18 / September / 2014, 19:59:15 »
I don't know enough about computers to explain why it is fixed. :-[
Once you start to run our of memory, on pretty much any computer, strange things can happen.   It's good to know there was a common solution to these two problems.
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics