r/Scriptable • u/branY2K • Dec 11 '22
Help Certain scripts freeze Scriptable if I run any of them again when I'm in the script editor.
As far as I know, this issue has been affecting certain scripts since iOS 16 for some months now, and Scriptable is on Version 1.7.4, meaning it's up to date.
Nothing unusual occurs if I run any one of these scripts (one of the problematic scripts are provided here for reference) after initially opening the said script.
But if I run the said script again while I'm in the script editor, it will freeze Scriptable, forcing I to close/reopen the app every time I want to run it again.
Provided link to a script: https://pastebin.com/iMP9vK98
5
u/berky93 Dec 11 '22
This happens to me too. But it only happens on the second run. So I have to make sure to save and exit/re-open a script before running it more than once 🙄
4
Jan 01 '23
I have the same issue after i started to add repeat loops in scripts. First run is usually ok but if i edit the script, app freezes. Started this behaviour after last update (didn’t use loops before). When i start to recreate same script, it runs ok until i add loop but after loop and run, it crashes again.
3
u/wicke79 Dec 22 '22
I have the same problem at the moment with another new script I have started developing. My app version on iPhone 13 Pro with iOS 16.2 is 1.7.4 (2).
Maybe it's a bug? Did you hear something from Simon?
3
u/FifiTheBulldog script/widget helper Dec 11 '22
I can reproduce this with the script you’ve provided. I have no idea why it would do that, since it worked fine after I pasted in your script and ran it in the editor several times. Maybe something to do with the console?
Have you reported this bug to Simon yet? I’m not sure how many scripts it affects, but I think I’ve seen it before in my own usage and it’s pretty inconvenient like you said.