New issusVideo E16 errorVideo recording always stops after about 1-20 seconds (without video overrides enabled), lens retracts followed by E16 error message from canon:
A camera error was detected
Will shut down automatically
Restart camera
E16
EDIT:
This issus occur since #1234.
Changes in file core/gui_space.c at gui_space_draw_spacebar_horizontal() and gui_space_draw_spacebar_vertical() are the root of this cause! If i revert this functions to #1233, the error E16 doesn't occur.
With #1234 code, no E16 error occur if this is disabled in gui_space_draw_spacebar_horizontal():
draw_vline(xx+1-1, yy+1-1, 1+height+2, COLOR_BLACK); // left
draw_hline(xx+1-1, yy+1-1, 1+size+3, COLOR_BLACK); // top
draw_hline(xx+1-1, yy+1+height+2, 1+size+3, COLOR_BLACK); // bottom
draw_vline(xx+1+size+3, yy+1-1, 1+height+2, COLOR_BLACK); // right
or:
// space bar fill
x = xx + size - ((perc*size)/100);
if (x<=xx+1) x=xx+1;
if (x>xx+size) x=xx+size;
draw_filled_rect(xx+1+1, yy+1+1, x-1, yy+1+height, MAKE_COLOR(COLOR_TRANSPARENT, COLOR_BLACK));
draw_filled_rect(x, yy+1+1, xx+1+size+2, yy+1+height, MAKE_COLOR(cl, cl));
Values:
conf.space_hor_pos.x=0
conf.space_hor_pos.y=233
xx=0
yy=233
Used CHDK default settings.
Besides new code from #1234 use other draw functions its almost the same as #1233. Other differents is some variables are suppost to store in register (but thats does not cause the problem).
If "Show Space Bar" is disabled or set to vertical, the error also doesn't occur.
After tinkering around with gui_space_draw_spacebar_horizontal(), the problem could be related to how long OSD redraw takes... Maybe the E16 Error happens if firmware (movie record tasks) running out of cpu time?!? I've optimized some if/else in gui_space.c in #1286, but that shouldn't make to much of a differens. But it looks like the E16 error happens much less often now...
maybe this behave simular to CAM_STARTUP_CRASH_FILE_OPEN_FIX ... comes and goes under certain conditions...
Currently, i don't whats wrong and why only SD4000 is affected.
Crash on StartupCameras intermittently crashing on startup with "ASSERT!! FsIoNotify.c Line 457 Task name: SpyTask" in ROMLOG. Testing
CAM_STARTUP_CRASH_FILE_OPEN_FIX.