00108630: DBG:lua_script_start ptp_saved_alt_state=0 script=serialize_r = fu - initial script for remote_shoot start00108630: DBG:enter_alt00108620: DBG:gui_set_mode gui_mode_alt=100108660: DBG:lua_script_finish ptp_saved_alt_state=0 - initial script end00108660: DBG:exit_alt00108660: DBG:gui_set_mode gui_mode_alt=000108690: DBG:lua_script_start ptp_saved_alt_state=0 script=focus={ mode_na - rs_shoot script start00108690: DBG:enter_alt00108680: DBG:gui_set_mode gui_mode_alt=1… camera events00109830: DBG:lua_script_finish ptp_saved_alt_state=0 - rs_shoot script end00109830: DBG:exit_alt00109830: DBG:gui_set_mode gui_mode_alt=0… more camera events00110590: DBG:lua_script_start ptp_saved_alt_state=0 script=function rs_clea - final script start00110590: DBG:enter_alt00110580: DBG:gui_set_mode gui_mode_alt=100110610: DBG:lua_script_finish ptp_saved_alt_state=0 - final script end00110610: DBG:exit_alt00110610: DBG:gui_set_mode gui_mode_alt=0
00085570: DBG:lua_script_start ptp_saved_alt_state=0 script=serialize_r = fu00085570: DBG:enter_alt00085560: DBG:gui_set_mode gui_mode_alt=100085600: DBG:lua_script_finish ptp_saved_alt_state=000085600: DBG:exit_alt00085620: DBG:lua_script_start ptp_saved_alt_state=1 script=focus={ mode_na - rs_shoot - called before GUI has reset gu_mode_alt from previous exit_alt !!!00085600: DBG:gui_set_mode gui_mode_alt=0 - !!!! out of order !!!00090670: DBG:lua_script_finish ptp_saved_alt_state=100106140: DBG:lua_script_start ptp_saved_alt_state=0 script=function rs_clea00106140: DBG:enter_alt00106120: DBG:gui_set_mode gui_mode_alt=100106160: DBG:lua_script_finish ptp_saved_alt_state=000106160: DBG:exit_alt00106160: DBG:gui_set_mode gui_mode_alt=0
kbd_blocked:1camera_info.state.gui_mode:3 (GUI_MODE_SCRIPT)camera_info.state.gui_mode_none:0camera_info.state.gui_mode_alt:0
kbd_blocked:1camera_info.state.gui_mode:1 (GUI_MODE_ALT)camera_info.state.gui_mode_none:0camera_info.state.gui_mode_alt:1
=for i=1,1000 do sleep(10) end
I'm a little bit wary of adding yet another variable to track "alt" state, but it may be the most straightforward way to deal with it.
Anyway, I spent some time trying to understand the current state of affairs, and ran into another bit of (probably unrelated to your issue) weirdness in this area:In other words, when the camera is already in "alt", running a PTP script doesn't go to GUI_MODE_SCRIPT, instead, it stays in GUI_MODE_ALT, which is not actually the same. This can be verified by running a long running script like Code: [Select] =for i=1,1000 do sleep(10) endand interrupting it with the shutter. If the camera was not in alt, you get *interrupted*. If it was, you get the default script, and likely memory corruption, because it doesn't kill / clean up the running script.
In other words, when the camera is already in "alt", running a PTP script doesn't go to GUI_MODE_SCRIPT, instead, it stays in GUI_MODE_ALT, which is not actually the same. This can be verified by running a long running script like Code: [Select] =for i=1,1000 do sleep(10) endand interrupting it with the shutter. If the camera was not in alt, you get *interrupted*. If it was, you get the default script, and likely memory corruption, because it doesn't kill / clean up the running script.
Started by wrobbie « 1 2 » General Discussion and Assistance
Started by bkottke General Discussion and Assistance
Started by jules « 1 2 ... 6 7 » Completed and Working Scripts
Started by philmoz DryOS Development
Started by scinos « 1 2 » General Discussion and Assistance