Selection Dialog Problem/Bug

ReiWei

New member
I searched, but didn't find this anywhere. I'm fairly certain it's a bug, as I don't think I'm doing anything that could be inadvertently causing it, anywho...

The "Save selected value in string variable" variable of the Selection Dialog often resets itself to "None".

I will run my macro and it works fine, run it again and it's broken. I go and look, and lo, the variable drop down has reset to none.

This happens fairly frequently and with, I'm pretty sure, no user error.

If I am doing something, it'd be nice to know what. 😅
And if not, let's squash dem bugs. 👍😁
 

MacroDroidDev

Administrator
Staff member
I've had a quick play around and I can't seem to recreate this. If you can come up with a reliable way to reproduce please use "Report a bug" in the troubleshooting section and include your macro and the steps to reproduce and I will take a look.
 

ReiWei

New member
It actually hasn't happened since then. Maybe it was because I was quite extensively (I worked for a crazily long time getting termux and ffmpeg to automatically sort an entire directory upon your choosing [that's where the selection dialog came in] and pull out subtitles from all the videos and then speak those subtitles at the appropriate time after it automatically starts the correct video, complete with a custom floating button keypad to input a new time if I fast forward or rewind the video. I'm quite proud of myself for all that... Mostly cuz I had absolutely no idea how to do any of it before I started. 😅)

Anywho, maybe it was because I was working in the same macro for hours at a time, maybe it somehow got over loaded in some aspect. I'll let you know if it happens again.

Thanks for your help.
 

ReiWei

New member
So, I have no idea what makes this happen. But it definitely happens. I have three selection dialogs in that above macro. It was working when I left work, and was broken when I got back the next day; all three of them reset the "Save value string variable" to none. (I'm not sure about the number variable above it, I've tried that a few times before, and don't think this ever happened, but can't be sure). I am 100% positive that I didn't do anything that could possibly have directly caused it.

I use a few macros besides the subtitle reading one: to turn the screen off, to set the volume and sleep time automatically, to start AnyDesk casting when it gets my request, to send info to my other phone over the Join plugin. I use 1.1.1.1 and Blokada alternately. I connect it to video glasses using dex and Bluetooth earbuds.

That's about the sum total of what I do with that phone. I have no idea if one of those things could be somehow affecting it. It is just this one thing of the variable to set the Selection Dialog to. It doesn't affect the array it's getting the selections from or any other variable or setting anywhere else. The only thing weird is the variable being set by the dialog.

This problem isn't unique to that phone, either. It happens on this (my main) phone. (if it matters, this is a Z Fold 3 and the other phone is an S10E)

I just now went and searched old macros that haven't been touched (they are turned off and in categories that are turned off, so completely dormant), they were all working when I last saw them, all the string variable saves are set to none. All the numerical variable saves are still set correctly.

I don't expect anything to come from this, just letting the powers that be know. There's some sort of gremlin in the works. And he's a weird little critter. 😅
 
Last edited:

MacroDroidDev

Administrator
Staff member
Thanks for the update. I have just trawled through the relevant code for this and think I may have found something that could potentially cause this. I'm going to put a fix in the next update so hopefully that might stop this happening any more!
 

Dm114

Well-known member
Thanks for the update. I have just trawled through the relevant code for this and think I may have found something that could potentially cause this. I'm going to put a fix in the next update so hopefully that might stop this happening any more!
Let's hope you could find something because I sometimes have a kind of similar behavior but hard to reproduce for sure.

So I was waiting to have some extra time to investigate a bit deeper before sending you an SOS... 😉
 

ReiWei

New member
Oh, good. I didn't expect it could be found so easily. I'm glad I made a tiny contribution.

Btw, if you could see how MANY macros I have on my main phone, most of which I use daily... I am a bit obsessed, and I love this program. 😅😁
 
Top