I tested another script and my camera crashes occasionally.I'm not sure that this bug related to the A1400 only.Can you lease look at the ROMLOG?
ASSERT!! ReadFDir.c Line 443Occured Time 2014:02:15 01:56:16Task ID: 13238302Task name: PhySw
Yes it was memory issue. I just cleaned with collectgarbage("collect") and it gone.
I use default motion detector script with continuous shot during 5 seconds. There is another romlog file that I got after about 8 hours of work. What can it be? I couldn't find it in this forum.
Does the compiled program a1400-100b-1.3.0-3359-full-aram-test-1.zip have a different solution to prevent memory crash?
You post the actual script you are using?
...repeat zones = md_detect_motion( a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p) if( zones > 0 ) then ----continuous shooting during 5 seconds---------- press("shoot_half") repeat sleep(100) until (get_shooting() == true) press("shoot_full") sleep(5000) release("shoot_full") release("shoot_half") --------- delete older files until 1Gb is free----------- local lst = os.listdir("A/DCIM", false) table.sort(lst,function(a,b) return os.stat("A/DCIM/"..a).mtime < os.stat("A/DCIM/"..b).mtime end) for _,subdir in ipairs(lst) do for i = 1,9999 do if(get_free_disk_space() > 1000*1024) then break end os.remove("A/DCIM/"..subdir.."/IMG_"..string.format("%04d", i)..".JPG") end end enduntil (false)
It looks like the "too many files open at once" one, which is line 451 on many cameras. This might happen if your script uses log files while shooting.
What do you mean "too many files open at once"? Is it about files opened by script like "os.remove" and "os.listdir"
What functions use log files during the script performance? is there any way to avoid log files?
string.format("A/DCIM/%s/IMG_%04d.JPG"",subdir,i)
Started by alvm Firmware Dumping
Started by Shchedrin General Discussion and Assistance
Started by seekont CHDK Releases
Started by oly General Discussion and Assistance
Started by kmac58 General Help and Assistance on using CHDK stable releases