Task error with new version 4.6u2

102 views
Skip to first unread message

Sell Stuff

unread,
Jan 6, 2015, 7:16:58 PM1/6/15
to tas...@googlegroups.com
I get an error when running the follwing task with Play or Step.
The error occurs on A11 (when toggling off auto bright), and it says:
"Tracking Failure: index 10, actioncode 810 != expected 779"

Task: Toggle Auto Bright (24)
    A1: Run Shell [ Command:settings get system screen_brightness_mode Timeout (Seconds):0 Use Root:On Store Output In:%auto_bright_on Store Errors In: Store Result In: ]
    A2: If [ %auto_bright_on eq 1 ]
    A3: Variable Set [ Name:%AutoBrightState To:on Do Maths:Off Append:Off ]
    A4: Else
    A5: Variable Set [ Name:%AutoBrightState To:off Do Maths:Off Append:Off ]
    A6: End If
    A7: If [ %AutoBrightState eq on ]
    A8: Vibrate [ Time:200 ] If [ %par1 neq novibe ]
    A9: Auto Brightness [ Set:Off ]
    A10: Display Brightness [ Level:%CfgBrightness Disable Safeguard:Off Ignore Current Level:On Immediate Effect:On ]
    A11: Notify Cancel [ Title:Auto Brightness Warn Not Exist:Off ]
    A12: Variable Set [ Name:%AutoBrightState To:off Do Maths:Off Append:Off ]
    A13: Else
    A14: Vibrate [ Time:200 ] If [ %par1 neq novibe ]
    A15: Perform Task [ Name:Toggle Shader Priority:%priority Parameter 1 (%par1):novibe Parameter 2 (%par2): Return Value Variable: Stop:Off ] If [ %ShaderState eq on ]
    A16: Variable Set [ Name:%AutoBrightState To:on Do Maths:Off Append:Off ]
    A17: Notify Cancel [ Title:Auto Brightness Warn Not Exist:Off ]
    A18: Notify [ Title:Auto Brightness Text: Icon:hd_device_access_brightness_auto Number:0 Permanent:On Priority:3 ]
    A19: Auto Brightness [ Set:On ]
    A20: End If

Pent

unread,
Jan 7, 2015, 2:36:59 AM1/7/15
to tas...@googlegroups.com
Could you post the XML so I can test it ?

Thanks,

Pent

Sell Stuff

unread,
Jan 15, 2015, 2:19:51 PM1/15/15
to tas...@googlegroups.com
        <Action sr="act30" ve="7">
            <code>130</code>
            <Str sr="arg0" ve="3">Toggle Auto Bright</Str>
            <Int sr="arg1">
                <var>%priority</var>
            </Int>
            <Str sr="arg2" ve="3">novibe</Str>
            <Str sr="arg3" ve="3"/>
            <Str sr="arg4" ve="3"/>
            <Int sr="arg5" val="0"/>
            <ConditionList sr="if">
                <Condition sr="c0" ve="3">
                    <lhs>%AutoBrightState</lhs>
                    <op>0</op>
                    <rhs>on</rhs>
                </Condition>
            </ConditionList>
        </Action>
        <Action sr="act31" ve="7">
            <code>808</code>
            <Int sr="arg0" val="0"/>
        </Action>
        <Action sr="act32" ve="7">
            <code>810</code>
            <Int sr="arg0">
                <var>%CfgBrightness</var>
            </Int>
            <Int sr="arg1" val="0"/>
            <Int sr="arg2" val="1"/>
            <Int sr="arg3" val="1"/>
        </Action>
        <Action sr="act33" ve="7">
            <code>779</code>
            <Str sr="arg0" ve="3">Auto Brightness</Str>
            <Int sr="arg1" val="0"/>
        </Action>
        <Action sr="act34" ve="7">
            <code>130</code>
            <Str sr="arg0" ve="3">Toggle Auto Bright</Str>
            <Int sr="arg1">
                <var>%priority</var>
            </Int>
            <Str sr="arg2" ve="3">novibe</Str>
            <Str sr="arg3" ve="3"/>
            <Str sr="arg4" ve="3"/>
            <Int sr="arg5" val="0"/>
            <ConditionList sr="if">
                <bool0>Or</bool0>
                <bool1>And</bool1>
                <bool2>Or2</bool2>
                <bool3>Or</bool3>
                <bool4>And</bool4>
                <Condition sr="c0" ve="3">
                    <lhs>%CfgAutoBrightOnNotHome</lhs>
                    <op>0</op>
                    <rhs>on</rhs>
                </Condition>
                <Condition sr="c1" ve="3">
                    <lhs>%CfgAutoBrightOnNotHome</lhs>
                    <op>0</op>
                    <rhs>timed</rhs>
                </Condition>
                <Condition sr="c2" ve="3">
                    <lhs>%TIME</lhs>
                    <op>7</op>
                    <rhs>%CfgDarknessStartTime</rhs>
                </Condition>
                <Condition sr="c3" ve="3">
                    <lhs>%TIME</lhs>
                    <op>6</op>
                    <rhs>%CfgDarknessStopTime</rhs>
                </Condition>
                <Condition sr="c4" ve="3">
                    <lhs>%CfgAutoBrightOnNotHome</lhs>
                    <op>0</op>
                    <rhs>auto</rhs>
                </Condition>
                <Condition sr="c5" ve="3">
                    <lhs>%ArrivedHomeAutoBrightStateRestore</lhs>
                    <op>0</op>
                    <rhs>on</rhs>
                </Condition>
            </ConditionList>
        </Action>
        <Action sr="act35" ve="7">
            <code>38</code>
        </Action>
        <Action sr="act36" ve="7">
            <code>37</code>
            <ConditionList sr="if">
                <bool0>Or</bool0>
                <bool1>And</bool1>
                <bool2>Or2</bool2>
                <bool3>Or</bool3>
                <bool4>And</bool4>
                <Condition sr="c0" ve="3">
                    <lhs>%CfgVibrateOnNotHome</lhs>
                    <op>0</op>
                    <rhs>on</rhs>
                </Condition>
                <Condition sr="c1" ve="3">
                    <lhs>%CfgVibrateOnNotHome</lhs>
                    <op>0</op>
                    <rhs>timed</rhs>
                </Condition>
                <Condition sr="c2" ve="3">
                    <lhs>%TIME</lhs>
                    <op>7</op>
                    <rhs>%CfgQuietStartTime</rhs>
                </Condition>
                <Condition sr="c3" ve="3">
                    <lhs>%TIME</lhs>
                    <op>6</op>
                    <rhs>%CfgQuietStopTime</rhs>
                </Condition>
                <Condition sr="c4" ve="3">
                    <lhs>%CfgVibrateOnNotHome</lhs>
                    <op>0</op>
                    <rhs>auto</rhs>
                </Condition>
                <Condition sr="c5" ve="3">
                    <lhs>%ArrivedHomeVibrateStateRestore</lhs>
                    <op>0</op>
                    <rhs>on</rhs>
                </Condition>
            </ConditionList>
        </Action>
        <Action sr="act37" ve="7">
            <code>310</code>
            <Int sr="arg0" val="1"/>
        </Action>
        <Action sr="act38" ve="7">
            <code>43</code>
            <ConditionList sr="if">
                <bool0>Or</bool0>
                <bool1>And</bool1>
                <bool2>And</bool2>
                <bool3>Or</bool3>
                <bool4>And</bool4>
                <Condition sr="c0" ve="3">
                    <lhs>%CfgVibrateOnNotHome</lhs>
                    <op>0</op>
                    <rhs>off</rhs>
                </Condition>
                <Condition sr="c1" ve="3">
                    <lhs>%CfgVibrateOnNotHome</lhs>
                    <op>0</op>
                    <rhs>timed</rhs>
                </Condition>
                <Condition sr="c2" ve="3">
                    <lhs>%TIME</lhs>
                    <op>6</op>
                    <rhs>%CfgQuietStartTime</rhs>
                </Condition>
                <Condition sr="c3" ve="3">
                    <lhs>%TIME</lhs>
                    <op>7</op>
                    <rhs>%CfgQuietStopTime</rhs>
                </Condition>
                <Condition sr="c4" ve="3">
                    <lhs>%CfgVibrateOnNotHome</lhs>
                    <op>0</op>
                    <rhs>auto</rhs>
                </Condition>
                <Condition sr="c5" ve="3">
                    <lhs>%ArrivedHomeVibrateStateRestore</lhs>
                    <op>0</op>
                    <rhs>off</rhs>
                </Condition>
            </ConditionList>
        </Action>
        <Action sr="act39" ve="7">
            <code>310</code>
            <Int sr="arg0" val="0"/>
        </Action>
        <Action sr="act4" ve="7">
            <code>61</code>
            <Int sr="arg0" val="100"/>
        </Action>
        <Action sr="act40" ve="7">
            <code>38</code>
        </Action>
        <Action sr="act41" ve="7">
            <code>37</code>
            <ConditionList sr="if">
                <bool0>And</bool0>
                <bool1>And</bool1>
                <Condition sr="c0" ve="3">
                    <lhs>%SILENT</lhs>
                    <op>0</op>
                    <rhs>off</rhs>
                </Condition>
                <Condition sr="c1" ve="3">
                    <lhs>%TIME</lhs>
                    <op>6</op>
                    <rhs>%CfgQuietStartTime</rhs>
                </Condition>
                <Condition sr="c2" ve="3">
                    <lhs>%TIME</lhs>
                    <op>7</op>
                    <rhs>%CfgQuietStopTime</rhs>
                </Condition>
            </ConditionList>
        </Action>
        <Action sr="act42" ve="7">
            <code>130</code>
            <Str sr="arg0" ve="3">say</Str>
            <Int sr="arg1">
                <var>%priority</var>
            </Int>
            <Str sr="arg2" ve="3">Bon voyage.</Str>
            <Str sr="arg3" ve="3">Ringer,fr</Str>
            <Str sr="arg4" ve="3"/>
            <Int sr="arg5" val="0"/>
        </Action>
        <Action sr="act43" ve="7">
            <code>38</code>
        </Action>
        <Action sr="act44" ve="7">
            <code>38</code>
        </Action>
        <Action sr="act45" ve="7">
            <code>779</code>
            <Str sr="arg0" ve="3">Home</Str>
            <Int sr="arg1" val="0"/>
        </Action>
        <Action sr="act5" ve="7">
            <code>38</code>
        </Action>
        <Action sr="act6" ve="7">
            <code>547</code>
            <Str sr="arg0" ve="3">%HomeWifiNearWatch</Str>
            <Str sr="arg1" ve="3">off</Str>
            <Int sr="arg2" val="0"/>
            <Int sr="arg3" val="0"/>
            <ConditionList sr="if">
                <bool0>And</bool0>
                <Condition sr="c0" ve="3">
                    <lhs>%CfgHomeCellWatchOn</lhs>
                    <op>0</op>
                    <rhs>on</rhs>
                </Condition>
                <Condition sr="c1" ve="3">
                    <lhs>%HomeCellNear</lhs>
                    <op>0</op>
                    <rhs>off</rhs>
                </Condition>
            </ConditionList>
        </Action>
        <Action sr="act7" ve="7">
            <code>37</code>
            <ConditionList sr="if">
                <bool0>Or</bool0>
                <bool1>And</bool1>
                <Condition sr="c0" ve="3">
                    <lhs>%CfgWifiOnNotHome</lhs>
                    <op>0</op>
                    <rhs>on</rhs>
                </Condition>
                <Condition sr="c1" ve="3">
                    <lhs>%CfgWifiOnNotHome</lhs>
                    <op>0</op>
                    <rhs>auto</rhs>
                </Condition>
                <Condition sr="c2" ve="3">
                    <lhs>%ArrivedHomeWifiStateRestore</lhs>
                    <op>0</op>
                    <rhs>on</rhs>
                </Condition>
            </ConditionList>
        </Action>
        <Action sr="act8" ve="7">
            <code>425</code>
            <Int sr="arg0" val="1"/>
        </Action>
        <Action sr="act9" ve="7">
            <code>43</code>
            <ConditionList sr="if">
                <bool0>Or</bool0>
                <bool1>And</bool1>
                <Condition sr="c0" ve="3">
                    <lhs>%CfgWifiOnNotHome</lhs>
                    <op>0</op>
                    <rhs>off</rhs>
                </Condition>
                <Condition sr="c1" ve="3">
                    <lhs>%CfgWifiOnNotHome</lhs>
                    <op>0</op>
                    <rhs>auto</rhs>
                </Condition>
                <Condition sr="c2" ve="3">
                    <lhs>%ArrivedHomeWifiStateRestore</lhs>
                    <op>0</op>
                    <rhs>off</rhs>
                </Condition>
            </ConditionList>
        </Action>
    </Task>


--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/E3ALqCmoons/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.

Pent

unread,
Jan 16, 2015, 2:48:38 AM1/16/15
to tas...@googlegroups.com
Looks like the top half of the task XML is missing.

Maybe it got cut off, perhaps you could email or zip it first.

Thanks,

Pent
Message has been deleted

Sell Stuff

unread,
Jan 16, 2015, 9:37:24 PM1/16/15
to tas...@googlegroups.com
Ahh. Oops. Here ya go. Thanks!

    <Task sr="task24">
        <cdate>1407162666597</cdate>
        <edate>1420174804449</edate>
        <id>24</id>
        <nme>Toggle Auto Bright</nme>
        <pri>10</pri>
        <Action sr="act0" ve="7">

            <code>37</code>
            <ConditionList sr="if">
                <Condition sr="c0" ve="3">
                    <lhs>%AutoBrightState</lhs>
                    <op>0</op>
                    <rhs>on</rhs>
                </Condition>
            </ConditionList>
        </Action>
        <Action sr="act1" ve="7">
            <code>61</code>
            <Int sr="arg0" val="200"/>

            <ConditionList sr="if">
                <Condition sr="c0" ve="3">
                    <lhs>%par1</lhs>
                    <op>1</op>
                    <rhs>novibe</rhs>
                </Condition>
            </ConditionList>
        </Action>
        <Action sr="act10" ve="7">
            <code>523</code>

            <Str sr="arg0" ve="3">Auto Brightness</Str>
            <Str sr="arg1" ve="3"/>
            <Img sr="arg2" ve="2">
                <nme>hd_device_access_brightness_auto</nme>
            </Img>

            <Int sr="arg3" val="0"/>
            <Int sr="arg4" val="1"/>
            <Int sr="arg5" val="3"/>
        </Action>
        <Action sr="act11" ve="7">
            <code>808</code>
            <Int sr="arg0" val="1"/>
        </Action>
        <Action sr="act12" ve="7">
            <code>38</code>
        </Action>
        <Action sr="act2" ve="7">

            <code>808</code>
            <Int sr="arg0" val="0"/>
        </Action>
        <Action sr="act3" ve="7">

            <code>810</code>
            <Int sr="arg0">
                <var>%CfgBrightness</var>
            </Int>
            <Int sr="arg1" val="0"/>
            <Int sr="arg2" val="1"/>
            <Int sr="arg3" val="1"/>
        </Action>
        <Action sr="act4" ve="7">

            <code>779</code>
            <Str sr="arg0" ve="3">Auto Brightness</Str>
            <Int sr="arg1" val="0"/>
        </Action>
        <Action sr="act5" ve="7">
            <code>547</code>
            <Str sr="arg0" ve="3">%AutoBrightState</Str>

            <Str sr="arg1" ve="3">off</Str>
            <Int sr="arg2" val="0"/>
            <Int sr="arg3" val="0"/>
        </Action>
        <Action sr="act6" ve="7">
            <code>43</code>

        </Action>
        <Action sr="act7" ve="7">
            <code>61</code>
            <Int sr="arg0" val="200"/>

            <ConditionList sr="if">
                <Condition sr="c0" ve="3">
                    <lhs>%par1</lhs>
                    <op>1</op>
                    <rhs>novibe</rhs>

                </Condition>
            </ConditionList>
        </Action>
        <Action sr="act8" ve="7">
            <code>130</code>
            <Str sr="arg0" ve="3">Toggle Shader</Str>

            <Int sr="arg1">
                <var>%priority</var>
            </Int>
            <Str sr="arg2" ve="3">novibe</Str>
            <Str sr="arg3" ve="3"/>
            <Str sr="arg4" ve="3"/>
            <Int sr="arg5" val="0"/>
            <ConditionList sr="if">
                <Condition sr="c0" ve="3">
                    <lhs>%ShaderState</lhs>

                    <op>0</op>
                    <rhs>on</rhs>
                </Condition>
            </ConditionList>
        </Action>
        <Action sr="act9" ve="7">
            <code>547</code>
            <Str sr="arg0" ve="3">%AutoBrightState</Str>
            <Str sr="arg1" ve="3">on</Str>

            <Int sr="arg2" val="0"/>
            <Int sr="arg3" val="0"/>
        </Action>
    </Task>

Sell Stuff

unread,
Jan 16, 2015, 9:38:55 PM1/16/15
to tas...@googlegroups.com
Oops. Here you go. Thanks!


    <Task sr="task24">
        <cdate>1407162666597</cdate>
        <edate>1420174804449</edate>
        <id>24</id>
        <nme>Toggle Auto Bright</nme>
        <pri>10</pri>
        <Action sr="act0" ve="7">

            <code>37</code>
            <ConditionList sr="if">
                <Condition sr="c0" ve="3">
                    <lhs>%AutoBrightState</lhs>
                    <op>0</op>
                    <rhs>on</rhs>
                </Condition>
            </ConditionList>
        </Action>
        <Action sr="act1" ve="7">
            <code>61</code>
            <Int sr="arg0" val="200"/>

            <ConditionList sr="if">
                <Condition sr="c0" ve="3">
                    <lhs>%par1</lhs>
                    <op>1</op>
                    <rhs>novibe</rhs>
                </Condition>
            </ConditionList>
        </Action>

        <Action sr="act10" ve="7">
            <code>523</code>

            <Str sr="arg0" ve="3">Auto Brightness</Str>
            <Str sr="arg1" ve="3"/>
            <Img sr="arg2" ve="2">
                <nme>hd_device_access_brightness_auto</nme>
            </Img>
            <Int sr="arg3" val="0"/>
            <Int sr="arg4" val="1"/>
            <Int sr="arg5" val="3"/>
        </Action>
        <Action sr="act11" ve="7">
            <code>808</code>
            <Int sr="arg0" val="1"/>
        </Action>
        <Action sr="act12" ve="7">
            <code>38</code>
        </Action>
        <Action sr="act2" ve="7">

            <code>808</code>
            <Int sr="arg0" val="0"/>
        </Action>
        <Action sr="act3" ve="7">

            <code>810</code>
            <Int sr="arg0">
                <var>%CfgBrightness</var>
            </Int>
            <Int sr="arg1" val="0"/>
            <Int sr="arg2" val="1"/>
            <Int sr="arg3" val="1"/>
        </Action>
        <Action sr="act4" ve="7">

            <code>779</code>
            <Str sr="arg0" ve="3">Auto Brightness</Str>
            <Int sr="arg1" val="0"/>
        </Action>
        <Action sr="act5" ve="7">
            <code>547</code>
            <Str sr="arg0" ve="3">%AutoBrightState</Str>

            <Str sr="arg1" ve="3">off</Str>
            <Int sr="arg2" val="0"/>
            <Int sr="arg3" val="0"/>
        </Action>
        <Action sr="act6" ve="7">
            <code>43</code>

        </Action>
        <Action sr="act7" ve="7">
            <code>61</code>
            <Int sr="arg0" val="200"/>

            <ConditionList sr="if">
                <Condition sr="c0" ve="3">
                    <lhs>%par1</lhs>
                    <op>1</op>
                    <rhs>novibe</rhs>

                </Condition>
            </ConditionList>
        </Action>
        <Action sr="act8" ve="7">
            <code>130</code>
            <Str sr="arg0" ve="3">Toggle Shader</Str>

            <Int sr="arg1">
                <var>%priority</var>
            </Int>
            <Str sr="arg2" ve="3">novibe</Str>
            <Str sr="arg3" ve="3"/>
            <Str sr="arg4" ve="3"/>
            <Int sr="arg5" val="0"/>
            <ConditionList sr="if">
                <Condition sr="c0" ve="3">
                    <lhs>%ShaderState</lhs>

                    <op>0</op>
                    <rhs>on</rhs>
                </Condition>
            </ConditionList>
        </Action>
        <Action sr="act9" ve="7">
            <code>547</code>
            <Str sr="arg0" ve="3">%AutoBrightState</Str>
            <Str sr="arg1" ve="3">on</Str>

            <Int sr="arg2" val="0"/>
            <Int sr="arg3" val="0"/>
        </Action>
    </Task>

Pent

unread,
Jan 17, 2015, 2:58:53 AM1/17/15
to tas...@googlegroups.com
You're on the latest Tasker version, right (4.6u3).

Do you still get the problem if you delete action 9 ? (the perform task)

Pent

Message has been deleted

Sell Stuff

unread,
Jan 23, 2015, 6:28:37 PM1/23/15
to tas...@googlegroups.com
Yes, I am now on 4.6u3. I deleted action 9. I still get an error:

1) If you start with auto bright off, then you run the task above once and it turns on the auto brightness without problem (the else condition).
2) Run it a second time, and you get an error (in the if condition):
     "Tracking Failure: index 4, actionCode 810 != expected 779"
3) Run it a third time, and it completes successfully (the if condition).

Here is the updated task:


    <Task sr="task24">
        <cdate>1407162666597</cdate>
        <edate>1422055541559</edate>
            <code>808</code>
            <Int sr="arg0" val="1"/>
        </Action>
        <Action sr="act11" ve="7">

            <code>38</code>
        </Action>
        <Action sr="act2" ve="7">
            <code>808</code>
            <Int sr="arg0" val="0"/>
        </Action>
        <Action sr="act3" ve="7">
            <code>810</code>
            <Int sr="arg0">
                <var>255</var>
            <code>547</code>
            <Str sr="arg0" ve="3">%AutoBrightState</Str>
            <Str sr="arg1" ve="3">on</Str>
            <Int sr="arg2" val="0"/>
            <Int sr="arg3" val="0"/>
        </Action>
        <Action sr="act9" ve="7">
            <code>523</code>
            <Str sr="arg0" ve="3">Auto Brightness</Str>
            <Str sr="arg1" ve="3"/>
            <Img sr="arg2" ve="2">
                <nme>hd_device_access_brightness_auto</nme>
            </Img>
            <Int sr="arg3" val="0"/>
            <Int sr="arg4" val="1"/>
            <Int sr="arg5" val="3"/>
        </Action>
    </Task>

Ellie Priestley

unread,
May 22, 2015, 5:47:45 AM5/22/15
to tas...@googlegroups.com
Hi. I suddenly started getting this today out of the blue. Was it ever resolved? I am running 4.6u3 as well.

All I can think is that it doesn't like dealing with auto brightness, as if I disable that section, it runs with no errors.

Thanks!

Bob van der Linden

unread,
Jan 8, 2017, 3:27:39 AM1/8/17
to Tasker
I got this same error today. All tasks are unable to execute and give me this error. I recently added tasks/profiles for toggling Do Not Disturb and Airplane mode (using root). Earlier Do Not Disturb was stuck in Android because Tasker was forcing it into All-mode. I couldn't disable this through Tasker, so I exited Tasker and ran it again. After thst, this failure started popping up for all tasks.

Pent

unread,
Jan 8, 2017, 5:00:01 AM1/8/17
to Tasker

I got this same error today. All tasks are unable to execute and give me this error. I recently added tasks/profiles for toggling Do Not Disturb and Airplane mode (using root). Earlier Do Not Disturb was stuck in Android because Tasker was forcing it into All-mode. I couldn't disable this through Tasker, so I exited Tasker and ran it again. After thst, this failure started popping up for all tasks.

Try disabling Tasker (long-press icon top left in main screen), restart device, enable.

Pent
Reply all
Reply to author
Forward
0 new messages