Report a bug when running a macro recursively

Status
Not open for further replies.

aidskids

New member
It is hard to describe, so i will demonstrate two examples straightforwardly.

In the first example below, when created the action "macro run: this macro" in THIS macro, all the actions below the "macro run" action are cancelled. Or rather, the "macro run" action seems to block forever even if it is ended. In the example, the device will not vibrate eventually.
Screenshot_20220817-141727_MacroDroid.png
In the second example below, when created the action "macro run: recur bug" in ANOTHER macro and copied it into this macro, the recursion will function properly. In the example, the device will vibrate.
Screenshot_20220817-141735_MacroDroid.png

In addition, both of the "macro run" actions must check "block next actions until complete".

This bug can be quite bothersome, since you cannot create a macro run action with the current macro name, because there is only "this macro" to choose, which will eventually lead to a recursive bug. Therefore, i am really looking forward to the fixing of this bug.
 

Endercraft

Moderator (& bug finder :D)
It is hard to describe, so i will demonstrate two examples straightforwardly.

In the first example below, when created the action "macro run: this macro" in THIS macro, all the actions below the "macro run" action are cancelled. Or rather, the "macro run" action seems to block forever even if it is ended. In the example, the device will not vibrate eventually.
View attachment 3228
In the second example below, when created the action "macro run: recur bug" in ANOTHER macro and copied it into this macro, the recursion will function properly. In the example, the device will vibrate.
View attachment 3229

In addition, both of the "macro run" actions must check "block next actions until complete".

This bug can be quite bothersome, since you cannot create a macro run action with the current macro name, because there is only "this macro" to choose, which will eventually lead to a recursive bug. Therefore, i am really looking forward to the fixing of this bug.
If you check block action until complete it won't work because it will launch itself in a loop ! Meaning it will never end because it will wait for itself until you stop it.
 

aidskids

New member
If run is false then the If will not execute after the macro is ran, recursively or not.
I think you don't have any programming experience. In programming terms, they are called different stacks. You can copy the actions in my image and try it out for yourself.

The first time when I set the variable run to true, It will indeed trigger the macro, then enter into the if clause. But after it entered the clause, It has set the variable run to false, and the current thread is not stopped, but the new thread that the current thread called will not run. I'm not sure whether I made it clear, since I'm not a native English speaker
 

Snurre

Well-known member
In addition, both of the "macro run" actions must check "block next actions until complete".
Nope, it works in the first without checking "block next actions until complete"

I think you don't have any programming experience
I don't think it has anything to do with this, it's just common sence, how would you check if a macro completed when it never runs, like in your first example

And further more, why the if, it only runs if the var is true, so why start with checking if it is true?
Programming skills? 🤔😉
 

aidskids

New member
Nope, it works in the first without checking "block next actions until complete"


I don't think it has anything to do with this, it's just common sence, how would you check if a macro completed when it never runs, like in your first example

And further more, why the if, it only runs if the var is true, so why start with checking if it is true?
Programming skills? 🤔😉
1, How to check. If you look carefully in my example, you'll find a vibration action, That's how I check whether the macro has run or not.

2, why the if. Because any recursion in programming needs an ending condition, otherwise the recursive process will never end. This is a very simple and basic concept in programming, but it is hard to explain if you are not familiar with programming.
 

aidskids

New member
Nope, it works in the first without checking "block next actions until complete"


I don't think it has anything to do with this, it's just common sence, how would you check if a macro completed when it never runs, like in your first example

And further more, why the if, it only runs if the var is true, so why start with checking if it is true?
Programming skills? 🤔😉
Besides, I'm here to report the bug and I'm really not interested in explaining things to laymen. If you have no idea what the macros in my examples do, would you please try it out for yourself before you comment on anything?
 

aidskids

New member
Like I said you must check the block until complete, for that in many cases the recursion must be executed in a synchronized manner.

I really wish you had read what i said. In the first example, the block until complete will block forever(which is a bug), while in the second example it will block until complete(which is proper).
 

Snurre

Well-known member
I'm not here to start an argument or discussion, life's too short for that

Just my opinion, I might be wrong (unlike you) but there's a couple of things I just feel like mentioning

1. In my opinion that's not a bug, the macro does what it should, as mentioned, I could be wrong

2. You mentioned that you would just report a bug, why then post this in the help section, when there's a bug report? With your skills it should be possible to post it correct

Finally, I don't really understand how someone with your self-proclaimed skills can label others as laymen just because people don't agree with your assumptions, but that's ok with me
In Denmark we have a saying like this "mod dumhed kæmper selv guderne forgæves" (you can translate or not) I think it matches this ok, but just my opinion

Have a nice day
 

Endercraft

Moderator (& bug finder :D)
I'm not here to start an argument or discussion, life's too short for that

Just my opinion, I might be wrong (unlike you) but there's a couple of things I just feel like mentioning

1. In my opinion that's not a bug, the macro does what it should, as mentioned, I could be wrong

2. You mentioned that you would just report a bug, why then post this in the help section, when there's a bug report? With your skills it should be possible to post it correct

Finally, I don't really understand how someone with your self-proclaimed skills can label others as laymen just because people don't agree with your assumptions, but that's ok with me
In Denmark we have a saying like this "mod dumhed kæmper selv guderne forgæves" (you can translate or not) I think it matches this ok, but just my opinion

Have a nice day
I just knew you would say something like that eventually 😂
 

aidskids

New member
I'm not here to start an argument or discussion, life's too short for that

Just my opinion, I might be wrong (unlike you) but there's a couple of things I just feel like mentioning

1. In my opinion that's not a bug, the macro does what it should, as mentioned, I could be wrong

2. You mentioned that you would just report a bug, why then post this in the help section, when there's a bug report? With your skills it should be possible to post it correct

Finally, I don't really understand how someone with your self-proclaimed skills can label others as laymen just because people don't agree with your assumptions, but that's ok with me
In Denmark we have a saying like this "mod dumhed kæmper selv guderne forgæves" (you can translate or not) I think it matches this ok, but just my opinion

Have a nice day
1 As you can see, I'm new to this forum and I have hardly ever visited any english forum so far. So when I see trouble shooting, I thought it would be proper to post my bug here.
2 I believe that respect should be mutual. Your intruding comments in the first place obviously suggested that you haven't read my words and having no idea what I'm talking about. That's why I don't feel necessary to respect you in return. Therefore, I don't think there is any problem to point out that you are a layman in programming field, because this is an obvious fact and I have no reason to respect you. If I were you, I would learn to be humble and shut my mouth when I'm talking about something that I'm not familiar with, instead of pretending to be some omniscient and omnipotent guy.
 

Endercraft

Moderator (& bug finder :D)
1 As you can see, I'm new to this forum and I have hardly ever visited any english forum so far. So when I see trouble shooting, I thought it would be proper to post my bug here.
2 I believe that respect should be mutual. Your intruding comments in the first place obviously suggested that you haven't read my words and having no idea what I'm talking about. That's why I don't feel necessary to respect you in return. Therefore, I don't think there is any problem to point out that you are a layman in programming field, because this is an obvious fact and I have no reason to respect you. If I were you, I would learn to be humble and shut my mouth when I'm talking about something that I'm not familiar with, instead of pretending to be some omniscient and omnipotent guy.
Well if you looked more into the app (not the forum !) you would have noticed that there is a bug report button in the troubleshooting section...
 

Endercraft

Moderator (& bug finder :D)
I think you don't have any programming experience.
:
why the if, it only runs if the var is true, so why start with checking if it is true?
Programming skills? 🤔😉

aids kids said:
I'm here to report the bug
:
Well if you looked more into the app (not the forum !) you would have noticed that there is a bug report button in the troubleshooting section...

I'm really not interested in explaining things to laymen
:
I don't really understand how someone with your self-proclaimed skills can label others as laymen just because people don't agree with your assumptions

If I were you, I would learn to be humble and shut my mouth when I'm talking about something that I'm not familiar with, instead of pretending to be some omniscient and omnipotent guy.
Have you even looked at the time I and Snurre spent here ? Even though there are people like @Jacob L that have 13 times more messages than me, We're helping people and you call us laymen ? It's not like you could help other people with your "self-proclaimed skills" like Snurre said.

I don't want to be aggressive, I don't have the need to have an argument with you but I just wanted to post that.
 
Last edited:

MacroDroidDev

Administrator
Staff member
I'm going to close this thread as I don't think it's very constructive to leave it alive.

All I will say is that both @Endercraft and @Snurre are well respected users here by both me and the community as a whole. Issues like this can be complex and lead to misunderstanding and ambiguous descriptions. Please use report a bug in troubleshooting if you are convinced there is a bug. Include the relevant macro and a good description and I will investigate when I can.
 
Status
Not open for further replies.
Top