help: how to debug script interrupting? - page 9 - General Discussion and Assistance - CHDK Forum

help: how to debug script interrupting?

  • 224 Replies
  • 64721 Views
Re: help: how to debug script interrupting?
« Reply #80 on: 15 / July / 2012, 07:32:20 »
Advertisements
here we are

error msg:
ERROR:NULL error message
PRESS SHUTTER TO CLOSE

meminfo:
free: 1618800
chdk: 249536
loaded: 0x3B089E0

dmp file: http://www.experience-3.com/LUARES1_1507.DMP

thx

Re: help: how to debug script interrupting?
« Reply #81 on: 15 / July / 2012, 08:57:19 »
Also included is source patch with my debug code for anyone who is interested.
Patch installed on G10 and SD940 last night.  Seven hours so far and still going strong on both cameras using low cost power supplies from China.

Here's the quickie test script I'm running - I wonder if there is something better to use ?

Code: [Select]
--[[
@title R2test
]]
i=0
j=0
print "test started ..."
repeat
  sleep(1000)
   i=i+1
   if i>60 then
       i=0
       print ("loop", j)
       j=j+1
    end
until ( false )   
print "...loop exited"
Ported :   A1200    SD940   G10    Powershot N    G16

Re: help: how to debug script interrupting?
« Reply #82 on: 15 / July / 2012, 13:59:11 »
when I tried very simple script like yours, it took very much time to have 4 or 5 camera (on 60) reporting the "press shutter to close" error... so even if the error persist, it can be very difficult to replicate it with just 1 camera...

but my big script fails much faster also on 1 cam, so if you wanna try my big script
and see if it fails on your cam also you cand find it here:

http://www.experience-3.com/NEOR.zip
inside you'll find the script
and a file called "rid.txt" that has to be put on the root of the SD,
you can play with the script if you want (using remote button or "right" key: short press=next item/next menu, long press=select item/select menu),
or just start it and let it be, it should fail pretty soon...

let me know
bye

*

Offline reyalp

  • ******
  • 14126
Re: help: how to debug script interrupting?
« Reply #83 on: 15 / July / 2012, 14:57:30 »
here we are

dmp file: http://www.experience-3.com/LUARES1_1507.DMP

thx
Thanks. There is no need to post the meminfo, it's included in the dump, and low memory is pretty much ruled out anyway...

Are you certain this is the only .dmp file created ? If so (assuming you are using the 1988 build posted above) this is very very strange, because because LUARES1 is created when luaD_rawrunprotected returns a bad value, and A/LUALJ2.DMP should be created inside luaD_rawrunprotected if the return value would be bad...
Don't forget what the H stands for.

Re: help: how to debug script interrupting?
« Reply #84 on: 15 / July / 2012, 16:40:45 »
water wingz:

try this one, it just failed on one of my cam (i got 3 at home) givinge the same "press shutter..." error,

Code: [Select]
--[[
@title NEORtest2
]]


while true do
    sleep(100)
end

that simple...
(by the way I also runned your script very long without problems... misterious...)


reyalp:
having that fail I double checked and I confirm you that there is only the LAURES1.DMP file in the root of my SD... (let me know if you need it, the script was the supersimple one above)
« Last Edit: 15 / July / 2012, 16:44:37 by Alarik »

*

Offline reyalp

  • ******
  • 14126
Re: help: how to debug script interrupting?
« Reply #85 on: 15 / July / 2012, 17:05:52 »
reyalp:
having that fail I double checked and I confirm you that there is only the LAURES1.DMP file in the root of my SD... (let me know if you need it, the script was the supersimple one above)
Thanks, I probably don't need another one of those.

And you are sure you are using the 1988 build ?

Sorry for pestering about this, but that basically means the return value is changing between the return statement and getting back to the calling function.

edit: or it means I messed up the test build somehow, but from the main.dump I saved off it likes like what I uploaded has the right code.
« Last Edit: 15 / July / 2012, 17:08:18 by reyalp »
Don't forget what the H stands for.

Re: help: how to debug script interrupting?
« Reply #86 on: 15 / July / 2012, 18:42:58 »
try this one, it just failed on one of my cam (i got 3 at home) givinge the same "press shutter..." error,
Running for over 2 hours now on my G10.  Seem like there is some camera dependency here ...
Ported :   A1200    SD940   G10    Powershot N    G16

Re: help: how to debug script interrupting?
« Reply #87 on: 16 / July / 2012, 05:18:17 »
Quote
And you are sure you are using the 1988 build

yes, build 1988

Re: help: how to debug script interrupting?
« Reply #88 on: 16 / July / 2012, 06:25:41 »
Quote
Running for over 2 hours now on my G10.

I have 3 cams, one failed, not the others... so it can be difficult to replicate.
Let it run for 30 min then if it does not fail stop the script and let it restart... try 3/4 times in this way...

or try my big script (neor), that should fail soon

*

Offline reyalp

  • ******
  • 14126
Re: help: how to debug script interrupting?
« Reply #89 on: 15 / September / 2012, 01:05:03 »
FWIW, I ran the script in http://chdk.setepontos.com/index.php?topic=8273.msg87562#msg87562 on my a540 for ~48 hours encountering the error. Camera was in play mode.
Don't forget what the H stands for.

 

Related Topics


SimplePortal © 2008-2014, SimplePortal