I have problems running on 50D with a tamron 17-50mm wich doesn't report focus distance in focus tab.
Can't run because it lock the camera in both unified and lua_fix (tested unified feb 04-18 and appears to run up to AF test then camera powered down for uknow reasons).
This is what I got in the log of lua_fix:
===============================================================================
ML/SCRIPTS/API_TEST.LUA - 2019-4-18 20:12:47
===============================================================================
Strict mode tests...
Strict mode tests passed.
Generic tests...
camera = table:
shutter = table:
raw = 107
apex = 6.375
ms = 12
value = 0.012048
aperture = table:
raw = 35
apex = 3.375
value = 3.2
min = table:
raw = 32
apex = 3.
value = 2.799999
max = table:
raw = 88
apex = 10
value = 32
iso = table:
raw = 80
apex = 6.
value = 200
ec = table:
raw = 0
value = 0
flash_ec = table:
raw = 0
value = 0
kelvin = 5500
mode = 3
metering_mode = 3
drive_mode = 0
model = "Canon EOS 50D"
model_short = "50D"
firmware = "1.0.9"
temperature = 149
state = 0
reboot = function: p
bulb = function: p
shoot = function: p
event = table:
pre_shoot = nil
post_shoot = nil
shoot_task = nil
seconds_clock = nil
keypress = nil
custom_picture_taking = nil
intervalometer = nil
config_save = nil
console = table:
hide = function: p
clear = function: p
show = function: p
write = function: p
lv = table:
enabled = false
paused = false
running = false
zoom = 1
start = function: p
pause = function: p
resume = function: p
wait = function: p
stop = function: p
info = function: p
lens = table:
name = "17-50mm"
focal_length = 0
focus_distance = 14080
hyperfocal = 0
dof_near = 0
dof_far = 0
af = true
af_mode = 0
focus = function: p
display = table:
idle = true
height = 480
width = 720
pixel = function: p
screenshot = function: p
rect = function: p
circle = function: p
clear = function: p
on = function: p
print = function: p
line = function: p
notify_box = function: p
off = function: p
draw = function: p
load = function: p
key = table:
last = 0
wait = function: p
press = function: p
menu = table:
visible = false
new = function: p
get = function: p
block = function: p
close = function: p
open = function: p
set = function: p
testmenu = userdata:
value = 0
name = "Script API tests"
help = "Various tests for the Lua scripting API."
help2 = "When adding new Lua APIs, tests for them should go here."
advanced = 0
depends_on = 0
edit_mode = 0
hidden = false
icon_type = 5
jhidden = false
max = 0
min = 0
selected = true
shidden = false
starred = false
submenu_height = 0
submenu_width = 0
unit = 0
works_best_in = 0
run_in_separate_task = 0
select = function: p
update = nil
info = nil
rinfo = nil
warning = nil
movie = table:
recording = false
stop = function: p
start = function: p
dryos = table:
clock = 39
ms_clock = 39732
prefix = "IMG_"
dcim_dir = table:
exists = true
create = function: p
children = function: p
files = function: p
parent = table:
exists = true
create = function: p
children = function: p
files = function: p
parent = table:
exists = true
create = function: p
children = function: p
files = function: p
parent = nil
path = "A:/"
path = "A:/DCIM/"
path = "A:/DCIM/109CANON/"
config_dir = table:
exists = true
create = function: p
children = function: p
files = function: p
parent = table:
exists = true
create = function: p
children = function: p
files = function: p
parent = table:
exists = true
create = function: p
children = function: p
files = function: p
parent = nil
path = "A:/"
path = "ML/"
path = "ML/SETTINGS/"
ml_card = table:
cluster_size = 4096
drive_letter = "A"
file_number = 2409
folder_number = 109
free_space = 1198336
type = "CF"
path = "A:/"
_card_ptr = userdata
shooting_card = table:
cluster_size = 4096
drive_letter = "A"
file_number = 2409
folder_number = 109
free_space = 1198336
type = "CF"
path = "A:/"
_card_ptr = userdata
date = table:
hour = 20
min = 12
day = 18
sec = 49
month = 4
year = 2019
yday = 1
wday = 2
isdst = false
call = function: p
directory = function: p
remove = function: p
interval = table:
time = 10
count = 0
running = 0
stop = function: p
battery = table:
function not available on this camera
stack traceback:
[C]: in ?
[C]: in for iterator 'for iterator'
ML/SCRIPTS/LIB/logger.lua:125: in function 'logger.serialize'
ML/SCRIPTS/API_TEST.LUA:30: in function <ML/SCRIPTS/API_TEST.LUA:29>
[C]: in function 'xpcall'
ML/SCRIPTS/API_TEST.LUA:29: in function 'print_table'
ML/SCRIPTS/API_TEST.LUA:75: in function 'generic_tests'
ML/SCRIPTS/API_TEST.LUA:634: in function 'api_tests'task = table:
yield = function: p
create = function: p
property = table:
Generic tests completed.
Module tests...
Copy test: autoexec.bin -> tmp.bin
Copy test OK
Append test: tmp.txt
Append test OK
Testing exposure settings, module 'camera'...
Camera : Canon EOS 50D (50D) 1.0.9
Lens : 17-50mm
Shoot mode: 3
Shutter : ‚80 (raw 107, 0.012048s, 12ms, apex 6.375)
Aperture : 3.2 (raw 35, f/3.2, apex 3.375)
Av range : 2.8..32 (raw 32..88, f/2.799999..f/32, apex 3...10)
ISO : 200 (raw 80, 200, apex 6.)
EC : 0.0 (raw 0, 0 EV)
Flash EC : 0.0 (raw 0, 0 EV)
Setting shutter to random values...
===============================================================================
ML/SCRIPTS/API_TEST.LUA - 2019-4-18 20:14:43
===============================================================================
Strict mode tests...
Strict mode tests passed.
Generic tests...
camera = table:
shutter = table:
raw = 115
apex = 7.375
ms = 6
value = 0.006024
aperture = table:
raw = 35
apex = 3.375
value = 3.2
min = table:
raw = 32
apex = 3.
value = 2.799999
max = table:
raw = 88
apex = 10
value = 32
iso = table:
raw = 80
apex = 6.
value = 200
ec = table:
raw = 0
value = 0
flash_ec = table:
raw = 0
value = 0
kelvin = 5500
mode = 3
metering_mode = 3
drive_mode = 0
model = "Canon EOS 50D"
model_short = "50D"
firmware = "1.0.9"
temperature = 153
state = 0
bulb = function: p
reboot = function: p
shoot = function: p
event = table:
pre_shoot = nil
post_shoot = nil
shoot_task = nil
seconds_clock = nil
keypress = nil
custom_picture_taking = nil
intervalometer = nil
config_save = nil
console = table:
hide = function: p
show = function: p
write = function: p
clear = function: p
lv = table:
enabled = false
paused = false
running = false
zoom = 1
stop = function: p
info = function: p
pause = function: p
start = function: p
wait = function: p
resume = function: p
lens = table:
name = "17-50mm"
focal_length = 0
focus_distance = 14080
hyperfocal = 0
dof_near = 0
dof_far = 0
af = true
af_mode = 0
focus = function: p
display = table:
idle = true
height = 480
width = 720
pixel = function: p
draw = function: p
print = function: p
screenshot = function: p
off = function: p
circle = function: p
on = function: p
load = function: p
notify_box = function: p
clear = function: p
line = function: p
rect = function: p
key = table:
last = 0
press = function: p
wait = function: p
menu = table:
visible = false
set = function: p
new = function: p
get = function: p
close = function: p
block = function: p
open = function: p
testmenu = userdata:
value = 0
name = "Script API tests"
help = "Various tests for the Lua scripting API."
help2 = "When adding new Lua APIs, tests for them should go here."
advanced = 0
depends_on = 0
edit_mode = 0
hidden = false
icon_type = 5
jhidden = false
max = 0
min = 0
selected = true
shidden = false
starred = false
submenu_height = 0
submenu_width = 0
unit = 0
works_best_in = 0
run_in_separate_task = 0
select = function: p
update = nil
info = nil
rinfo = nil
warning = nil
movie = table:
recording = false
start = function: p
stop = function: p
dryos = table:
clock = 21
ms_clock = 22024
prefix = "IMG_"
dcim_dir = table:
exists = true
create = function: p
children = function: p
files = function: p
parent = table:
exists = true
create = function: p
children = function: p
files = function: p
parent = table:
exists = true
create = function: p
children = function: p
files = function: p
parent = nil
path = "A:/"
path = "A:/DCIM/"
path = "A:/DCIM/109CANON/"
config_dir = table:
exists = true
create = function: p
children = function: p
files = function: p
parent = table:
exists = true
create = function: p
children = function: p
files = function: p
parent = table:
exists = true
create = function: p
children = function: p
files = function: p
parent = nil
path = "A:/"
path = "ML/"
path = "ML/SETTINGS/"
ml_card = table:
cluster_size = 4096
drive_letter = "A"
file_number = 2409
folder_number = 109
free_space = 1198336
type = "CF"
_card_ptr = userdata
path = "A:/"
shooting_card = table:
cluster_size = 4096
drive_letter = "A"
file_number = 2409
folder_number = 109
free_space = 1198336
type = "CF"
_card_ptr = userdata
path = "A:/"
date = table:
min = 14
isdst = false
hour = 20
year = 2019
wday = 2
month = 4
sec = 45
yday = 1
day = 18
remove = function: p
directory = function: p
call = function: p
interval = table:
time = 10
count = 0
running = 0
stop = function: p
battery = table:
function not available on this camera
stack traceback:
[C]: in ?
[C]: in for iterator 'for iterator'
ML/SCRIPTS/LIB/logger.lua:125: in function 'logger.serialize'
ML/SCRIPTS/API_TEST.LUA:30: in function <ML/SCRIPTS/API_TEST.LUA:29>
[C]: in function 'xpcall'
ML/SCRIPTS/API_TEST.LUA:29: in function 'print_table'
ML/SCRIPTS/API_TEST.LUA:75: in function 'generic_tests'
ML/SCRIPTS/API_TEST.LUA:634: in function 'api_tests'task = table:
yield = function: p
create = function: p
property = table:
Generic tests completed.
Module tests...
Copy test: autoexec.bin -> tmp.bin
Copy test OK
Append test: tmp.txt
Append test OK
Testing exposure settings, module 'camera'...
Camera : Canon EOS 50D (50D) 1.0.9
Lens : 17-50mm
Shoot mode: 3
Shutter : ‚160 (raw 115, 0.006024s, 6ms, apex 7.375)
Aperture : 3.2 (raw 35, f/3.2, apex 3.375)
Av range : 2.8..32 (raw 32..88, f/2.799999..f/32, apex 3...10)
ISO : 200 (raw 80, 200, apex 6.)
EC : 0.0 (raw 0, 0 EV)
Flash EC : 0.0 (raw 0, 0 EV)
Setting shutter to random values...
Error: shutter set to raw=97, got 0.03125s, expected 0.028656s
Error: shutter set to raw=97, got 31ms, expected 29ms
Error: shutter set to raw=97, got Tv5, expected Tv5.125
Error: shutter set to raw=97, got 96, expected 97 (raw)
This unified Jul 03-18:
===============================================================================
ML/SCRIPTS/API_TEST.LUA - 2019-4-18 22:40:29
===============================================================================
Strict mode tests...
Strict mode tests passed.
Generic tests...
camera = table:
shutter = table:
raw = 83
apex = 3.375
ms = 96
value = 0.096388
aperture = table:
raw = 32
apex = 3.
value = 2.799999
min = table:
raw = 32
apex = 3.
value = 2.799999
max = table:
raw = 88
apex = 10
value = 32
iso = table:
raw = 80
apex = 6.
value = 200
ec = table:
raw = 0
value = 0
flash_ec = table:
raw = 0
value = 0
kelvin = 5500
mode = 3
metering_mode = 3
drive_mode = 0
model = "Canon EOS 50D"
model_short = "50D"
firmware = "1.0.9"
temperature = 152
state = 0
reboot = function: p
shoot = function: p
bulb = function: p
event = table:
pre_shoot = nil
post_shoot = nil
shoot_task = nil
seconds_clock = nil
keypress = nil
custom_picture_taking = nil
intervalometer = nil
config_save = nil
console = table:
clear = function: p
write = function: p
show = function: p
hide = function: p
lv = table:
enabled = false
paused = false
running = false
zoom = 1
start = function: p
stop = function: p
resume = function: p
pause = function: p
wait = function: p
info = function: p
lens = table:
name = "17-50mm"
focal_length = 0
focus_distance = 14080
hyperfocal = 0
dof_near = 0
dof_far = 0
af = true
af_mode = 0
focus = function: p
display = table:
idle = true
height = 480
width = 720
print = function: p
clear = function: p
on = function: p
pixel = function: p
rect = function: p
line = function: p
draw = function: p
load = function: p
circle = function: p
notify_box = function: p
screenshot = function: p
off = function: p
key = table:
last = 0
press = function: p
wait = function: p
menu = table:
visible = false
set = function: p
block = function: p
close = function: p
open = function: p
get = function: p
new = function: p
testmenu = userdata:
value = 0
name = "Script API tests"
help = "Various tests for the Lua scripting API."
help2 = "When adding new Lua APIs, tests for them should go here."
advanced = 0
depends_on = 0
edit_mode = 0
hidden = false
icon_type = 5
jhidden = false
max = 0
min = 0
selected = true
shidden = false
starred = false
submenu_height = 0
submenu_width = 0
unit = 0
works_best_in = 0
run_in_separate_task = 0
select = function: p
update = nil
info = nil
rinfo = nil
warning = nil
movie = table:
recording = false
start = function: p
stop = function: p
dryos = table:
clock = 25
ms_clock = 25387
prefix = "IMG_"
dcim_dir = table:
exists = true
create = function: p
children = function: p
files = function: p
parent = table:
exists = true
create = function: p
children = function: p
files = function: p
parent = table:
exists = true
create = function: p
children = function: p
files = function: p
parent = nil
path = "A:/"
path = "A:/DCIM/"
path = "A:/DCIM/109CANON/"
config_dir = table:
exists = true
create = function: p
children = function: p
files = function: p
parent = table:
exists = true
create = function: p
children = function: p
files = function: p
parent = table:
exists = true
create = function: p
children = function: p
files = function: p
parent = nil
path = "A:/"
path = "ML/"
path = "ML/SETTINGS/"
ml_card = table:
cluster_size = 4096
drive_letter = "A"
file_number = 2411
folder_number = 109
free_space = 1196608
type = "CF"
path = "A:/"
_card_ptr = userdata
shooting_card = table:
cluster_size = 4096
drive_letter = "A"
file_number = 2411
folder_number = 109
free_space = 1196608
type = "CF"
path = "A:/"
_card_ptr = userdata
date = table:
yday = 1
wday = 2
year = 2019
month = 4
isdst = false
day = 18
hour = 22
sec = 31
min = 40
directory = function: p
remove = function: p
call = function: p
interval = table:
time = 10
count = 0
running = 0
stop = function: p
battery = table:
function not available on this camera
stack traceback:
[C]: in ?
[C]: in for iterator 'for iterator'
ML/SCRIPTS/LIB/logger.lua:125: in function 'logger.serialize'
ML/SCRIPTS/API_TEST.LUA:30: in function <ML/SCRIPTS/API_TEST.LUA:29>
[C]: in function 'globals.xpcall'
ML/SCRIPTS/API_TEST.LUA:29: in function 'globals.print_table'
ML/SCRIPTS/API_TEST.LUA:75: in function 'globals.generic_tests'
ML/SCRIPTS/API_TEST.LUA:634: in function 'globals.api_tests'task = table:
yield = function: p
create = function: p
property = table:
Generic tests completed.
Module tests...
Copy test: autoexec.bin -> tmp.bin
Copy test OK
Append test: tmp.txt
===============================================================================
ML/SCRIPTS/API_TEST.LUA - 2019-4-18 22:50:09
===============================================================================
Strict mode tests...
Strict mode tests passed.
Generic tests...
camera = table:
shutter = table:
raw = 147
apex = 11.375
ms = 0
value = 0.000376
aperture = table:
raw = 0
apex = 0
value = 0
min = table:
raw = 0
apex = 0
value = 0
max = table:
raw = 0
apex = 0
value = 0
iso = table:
raw = 80
apex = 6.
value = 200
ec = table:
raw = 0
value = 0
flash_ec = table:
raw = 0
value = 0
kelvin = 5500
mode = 3
metering_mode = 3
drive_mode = 0
model = "Canon EOS 50D"
model_short = "50D"
firmware = "1.0.9"
temperature = 152
state = 0
shoot = function: p
reboot = function: p
bulb = function: p
event = table:
pre_shoot = nil
post_shoot = nil
shoot_task = nil
seconds_clock = nil
keypress = nil
custom_picture_taking = nil
intervalometer = nil
config_save = nil
console = table:
clear = function: p
show = function: p
write = function: p
hide = function: p
lv = table:
enabled = false
paused = false
running = false
zoom = 1
stop = function: p
info = function: p
pause = function: p
wait = function: p
resume = function: p
start = function: p
lens = table:
name = ""
focal_length = 0
focus_distance = 14080
hyperfocal = 0
dof_near = 0
dof_far = 0
af = false
af_mode = 3
focus = function: p
display = table:
idle = true
height = 480
width = 720
load = function: p
clear = function: p
on = function: p
pixel = function: p
screenshot = function: p
rect = function: p
line = function: p
draw = function: p
notify_box = function: p
print = function: p
circle = function: p
off = function: p
key = table:
last = 0
wait = function: p
press = function: p
menu = table:
visible = false
open = function: p
close = function: p
set = function: p
new = function: p
block = function: p
get = function: p
testmenu = userdata:
value = 0
name = "Script API tests"
help = "Various tests for the Lua scripting API."
help2 = "When adding new Lua APIs, tests for them should go here."
advanced = 0
depends_on = 0
edit_mode = 0
hidden = false
icon_type = 5
jhidden = false
max = 0
min = 0
selected = true
shidden = false
starred = false
submenu_height = 0
submenu_width = 0
unit = 0
works_best_in = 0
run_in_separate_task = 0
select = function: p
update = nil
info = nil
rinfo = nil
warning = nil
movie = table:
recording = false
stop = function: p
start = function: p
dryos = table:
clock = 70
ms_clock = 71064
prefix = "IMG_"
dcim_dir = table:
exists = true
create = function: p
children = function: p
files = function: p
parent = table:
exists = true
create = function: p
children = function: p
files = function: p
parent = table:
exists = true
create = function: p
children = function: p
files = function: p
parent = nil
path = "A:/"
path = "A:/DCIM/"
path = "A:/DCIM/109CANON/"
config_dir = table:
exists = true
create = function: p
children = function: p
files = function: p
parent = table:
exists = true
create = function: p
children = function: p
files = function: p
parent = table:
exists = true
create = function: p
children = function: p
files = function: p
parent = nil
path = "A:/"
path = "ML/"
path = "ML/SETTINGS/"
ml_card = table:
cluster_size = 4096
drive_letter = "A"
file_number = 2411
folder_number = 109
free_space = 1196608
type = "CF"
path = "A:/"
_card_ptr = userdata
shooting_card = table:
cluster_size = 4096
drive_letter = "A"
file_number = 2411
folder_number = 109
free_space = 1196608
type = "CF"
path = "A:/"
_card_ptr = userdata
date = table:
year = 2019
wday = 2
yday = 1
min = 50
month = 4
hour = 22
sec = 11
day = 18
isdst = false
directory = function: p
remove = function: p
call = function: p
interval = table:
time = 10
count = 0
running = 0
stop = function: p
battery = table:
function not available on this camera
stack traceback:
[C]: in ?
[C]: in for iterator 'for iterator'
ML/SCRIPTS/LIB/logger.lua:125: in function 'logger.serialize'
ML/SCRIPTS/API_TEST.LUA:30: in function <ML/SCRIPTS/API_TEST.LUA:29>
[C]: in function 'globals.xpcall'
ML/SCRIPTS/API_TEST.LUA:29: in function 'globals.print_table'
ML/SCRIPTS/API_TEST.LUA:75: in function 'globals.generic_tests'
ML/SCRIPTS/API_TEST.LUA:634: in function 'globals.api_tests'task = table:
yield = function: p
create = function: p
property = table:
Generic tests completed.
Module tests...
Copy test: autoexec.bin -> tmp.bin
Copy test OK
Append test: tmp.txt
Append test OK
Testing exposure settings, module 'camera'...
Camera : Canon EOS 50D (50D) 1.0.9
Lens :
Shoot mode: 3
Shutter : ‚2500 (raw 147, 0.000376s, 0ms, apex 11.375)
Aperture : 0.0 (raw 0, f/0, apex 0)
Av range : 0.0..0.0 (raw 0..0, f/0..f/0, apex 0..0)
ISO : 200 (raw 80, 200, apex 6.)
EC : 0.0 (raw 0, 0 EV)
Flash EC : 0.0 (raw 0, 0 EV)
Setting shutter to random values...