Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Pythonista 3.4 crashing when trying to run stash
-
Pythonista 3.4 on iOS 17.0.3 has started to crash when I run Stash. I have tried:
- Deleting Stash from Pythonista (the
launch_stash.py
script, thestash_extensions
folder under "This iPhone", and thestash
folder undersite-packages (user)
), restarting Pythonista, and re-installing Stash. - Deleting Pythonista itself, and re-installing it from the app store.
- Doing a hard reset of the iPhone.
Any suggestions on how to debug this further?
- Deleting Stash from Pythonista (the
-
@felciano try to update stash via command
url = 'https://raw.githubusercontent.com/ywangd/stash/dev/getstash.py'; import requests as r; exec(r.get(url).text.replace('master', 'dev'))
On my iPad, no crash on Pythonista V3.4 under IOS 17.0.3
-
@cvp @felciano I'm running iPadOS 17.0.3 on an iPad Pro 3rd Gen. Here are the steps I took:
- Install Pythonista, so now running v3.4.
- Reboot
- Run Pythonista
- Install Stash as per official github page:
import requests as r exec(r.get('https://bit.ly/get-stash').content)
- Reboot
- Run Pythonista
- Load launch_stash.py and run
Insta-crash
Any other ideas?
-
@robot1125 could you check in _objc_exception.txt file in Pythonista root which is the eventual crash reason
-
@cvp Ah, now I know where the log files are. Here is the error:
"Modifications to the layout engine must not be performed from a background thread after it has been accessed from the main thread."
A few google searches didn't turn up anything that looked like a match to me. To be clear, I'm just opening launch_stash.py in Pythonista and then hitting the run button, which I assume is correct.
Lastly, thank you so much for replying. From personal experience I know helping people on forums can end up in a blackhole of crazy, so I appreciate it.
-Robot
PS: I just found this post which looks relevant. A possible bug in the Pythonista UI?
-
@robot1125 New bug, I guess
On my iPad, I get sometimes the same bug and if I restart Pythonista and rerun the script, it works. Don't ask me why. 😢
-
@robot1125 said
Ah, now I know where the log files are
This file is generated by standard Pythonista for ObjectiveC errors, not Python ones.
There is a modulefaulthandler, written by @dgelessus for Python errors. That could also help you for some bugs/crashes