-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stash crashes on starting #136
Comments
@ifuchs It looks like the crash is caused by the Nevertheless, here are a few more steps to help further investigation on this issues:
Thanks a lot for the help! |
Unfortunately both the commenting out of line 1760 and the new fix result in the same crash. Here is the log: [2015-09-11 09:36:07,627] [INFO] [MainThread] [StaSh] [init] [1657] - Before main screen
|
Did you paste the full log? It is weird because this time it crashes earlier and not even reached |
Yes sir. I deleted stash log along with the rest of stash before downloading the latest version and that is the full stash.log
|
I made a few more changes. Could you please try update again? import urllib2; exec urllib2.urlopen('http://bit.ly/gsb16').read() in {'_br': 'beta16-log'} I commented out all the print statements in the launch process. So you'll be looking at a black screen if it does start successfully. Thanks! |
That worked!
|
Could you try a few commands, e.g. ls, pwd , to see whether they would On Saturday, 12 September 2015, ifuchs notifications@github.com wrote:
|
The moment I typed the “l” of “ls” it crashed Pythonista.
|
So after all, the crash is related to objc part. This could be difficult to Have you tried any of the sample codes that omz posted to showcase the new On Saturday, 12 September 2015, ifuchs notifications@github.com wrote:
|
Here is the log: [2015-09-11 12:52:08,418] [INFO] [MainThread] [StaSh] [init] [1658] - DEBUG 03 I haven’t tried any of OMZ’s scripts that utilize the objc functionality. Where would I find the one you referred to?
|
did you completely uninstall 1.5 before loading the beta? Perhaps there is something conflicting in the install? might be worth uninstalling pythonista, then reinstalling from test flight? |
@ifuchs It may worth checking out the sample objc_utils codes provided by omz
It may also worthwhile to try objc_hacks by @jsbain (especially attribtxt.py, attribtext2.py and attrib_textview_typing.py) If any of above scripts crashes, it means the problem is not just StaSh alone and you may want to check the Pythonista beta installation as @jsbain suggested. Thanks! |
I tried both of OMZ’s scripts and they seem to work fine. I will try the objc_hacks as well.
|
Also works fine.
|
@ifuchs Could you please again update to the latest changes? This is the version with initial black screen. Please then type any letter to let it crash. I added more loggings and hopefully it can show something. In the meanwhile, I am working on a barebone version of stash that focus only on the main text input/rendering loop. This will help reduce the memory usage and hopefully narrow the scope of debugging. |
Here it is: [2015-09-13 15:10:27,600] [INFO] [MainThread] [StaSh] [init] [1658] - DEBUG 04
|
@ifuchs Nevertheless I pushed a few more updates. You can give it a try to see if it works. However if it still crashes, I'd stop debugging it any further as it is beyond my skills to support jailbroken devices. Thanks! |
OK. It does run the examples that utilize objc but I guess there is something in Stash that doesn’t like the JB. I think I will wait to see if the objc modules make it into the app store before I un-JB my iPad. Thank you very much for trying to get this to work.
|
FYI, I had another iPad 2 that was JB and it had the same problem (crash on starting Stash). I un-jailbroke it by upgrading to ios 8.4.1 and it runs Stash. It does appear that the JB is the problem which is too bad but I understand that you can’t expend cycles working on it. Thanks for all of your excellent work. Ira
|
Thanks for taking long route to perform the test. Much appreciated. Native objc stuff is alien to me and JB is even more so. I have done JB before. But all I know is how to use the tool and have zero knowledge about its internals. In my opinion, a real fix to this issue is most likely NOT from the Python side. As omz stated, the objc module is highly advanced and it is very easy to crash with it (in contrast, crashing is hardly possible with v1.5). To be honest, the whole objc stuff feels like a hack to me. Now with JB to further complicate the situation, it does not look very promising for me to solve the mystery. Another thing is that we are still on beta (for like almost a year now?). I have my concerns whether the objc stuff would pass the App Store review for official release. Before that, I am refraining myself from putting too much effort on it. Also, based on my experience, things did not work with previous beta may work with future release. |
Out of curiosity, what in the logs made you think the device was Jb'd? Are the paths different in some way? I wonder if this problem is jailbreak, or with IOS version? What version were the old JB'd devices running? |
Incidentally, you might try this ... the web has various "how to fix apps crashing jailbroken" pages. |
@jsbain |
@yawangd will have to answer about the logs but the version was 8.1.3. Once it was unJB to 8.4.1, Stash runs fine. The problem does appear to be the JB.
|
It could also be the 8.1.3. I want to say I recently had issues with pythonista that were fixed by a more recent iOS version. |
That is certainly a possibility that occurred to me as well. However, now that I have gone to 8.4.1 there is no going back and 8.4.1 has no JB.
|
@jsbain Thank you. I checked out that link and the suggested fixes. Nothing applicable to my situation (it's for ios 7 and I am running ios 8.1.3) and I don't have any of those apps installed. If the objc mods make it to the app store, I'll probably unJB (or buy a new faster iPad). |
Stash crashes Pythonista (after ~7 sec) after starting. Here is the stash.log
[2015-09-11 08:09:26,509] [INFO] [MainThread] [StaSh] [init] [1657] - Before main screen
[2015-09-11 08:09:26,511] [INFO] [MainThread] [StaSh] [init] [1663] - Before mini buffer
[2015-09-11 08:09:26,513] [INFO] [MainThread] [StaSh] [init] [1668] - Before stream
[2015-09-11 08:09:26,514] [INFO] [MainThread] [StaSh] [init] [1673] - Before IO
[2015-09-11 08:09:26,514] [INFO] [MainThread] [StaSh] [init] [1677] - Before UI
[2015-09-11 08:09:26,709] [INFO] [MainThread] [StaSh.UI] [init] [245] - About to create terminal
[2015-09-11 08:09:26,711] [INFO] [MainThread] [StaSh.Terminal] [init] [92] - About to configure keyCommands
[2015-09-11 08:09:26,711] [INFO] [MainThread] [StaSh.Terminal] [init] [157] - About to subclass SUITextView
[2015-09-11 08:09:26,717] [INFO] [MainThread] [StaSh.Terminal] [init] [165] - SUITextView subclassed!
[2015-09-11 08:09:26,735] [INFO] [MainThread] [StaSh.Terminal] [init] [172] - About to create instantiate _ShTerminal
[2015-09-11 08:09:26,743] [INFO] [MainThread] [StaSh.Terminal] [init] [174] - Configuring tvo
[2015-09-11 08:09:26,744] [INFO] [MainThread] [StaSh.Terminal] [init] [177] - content_inset
[2015-09-11 08:09:26,752] [INFO] [MainThread] [StaSh.Terminal] [init] [179] - auto_content_inset
[2015-09-11 08:09:26,759] [INFO] [MainThread] [StaSh.Terminal] [init] [182] - bgcolor
[2015-09-11 08:09:26,769] [INFO] [MainThread] [StaSh.Terminal] [init] [185] - default_font
[2015-09-11 08:09:26,773] [INFO] [MainThread] [StaSh.Terminal] [init] [187] - bold_font
[2015-09-11 08:09:26,791] [INFO] [MainThread] [StaSh.Terminal] [init] [189] - italic_font
[2015-09-11 08:09:26,807] [INFO] [MainThread] [StaSh.Terminal] [init] [191] - bold_italic_font
[2015-09-11 08:09:26,818] [INFO] [MainThread] [StaSh.Terminal] [init] [193] - text_color
[2015-09-11 08:09:26,828] [INFO] [MainThread] [StaSh.Terminal] [init] [195] - tint_color
[2015-09-11 08:09:26,837] [INFO] [MainThread] [StaSh.Terminal] [init] [198] - indicator_style
[2015-09-11 08:09:26,855] [INFO] [MainThread] [StaSh.Terminal] [init] [200] - autocapitalization_type
[2015-09-11 08:09:26,864] [INFO] [MainThread] [StaSh.Terminal] [init] [202] - auto_content_inset
[2015-09-11 08:09:26,873] [INFO] [MainThread] [StaSh.Terminal] [init] [204] - spellchecking_type
[2015-09-11 08:09:26,881] [INFO] [MainThread] [StaSh.Terminal] [init] [207] - non_contiguous_layout
[2015-09-11 08:09:26,889] [INFO] [MainThread] [StaSh.Terminal] [init] [214] - adding subview
[2015-09-11 08:09:26,893] [INFO] [MainThread] [StaSh.Terminal] [init] [216] - Configuring tvo delegate
[2015-09-11 08:09:26,903] [INFO] [MainThread] [StaSh.Terminal] [init] [219] - get TextStorage
[2015-09-11 08:09:26,904] [INFO] [MainThread] [StaSh.Terminal] [init] [222] - Terminal created!
[2015-09-11 08:09:26,905] [INFO] [MainThread] [StaSh.UI] [init] [250] - Terminal created
[2015-09-11 08:09:26,906] [INFO] [MainThread] [StaSh] [init] [1680] - Before renderer
[2015-09-11 08:09:26,906] [INFO] [MainThread] [StaSh] [init] [1684] - Before parser
[2015-09-11 08:09:27,008] [INFO] [MainThread] [StaSh] [init] [1686] - Before expander
[2015-09-11 08:09:27,009] [INFO] [MainThread] [StaSh] [init] [1688] - Before runtime
[2015-09-11 08:09:27,011] [INFO] [MainThread] [StaSh] [init] [1690] - Before completer
[2015-09-11 08:09:27,012] [INFO] [MainThread] [StaSh] [init] [1696] - Before load_rcfile
[2015-09-11 08:09:27,012] [INFO] [MainThread] [StaSh.Runtime] [load_rcfile] [1180] - About to load _DEFAULT_RC
[2015-09-11 08:09:27,013] [INFO] [MainThread] [StaSh] [call] [1715] - (['BIN_PATH=
/Documents/bin:$BIN_PATH', 'SELFUPDATE_BRANCH=master', 'PYTHONPATH=$STASH_ROOT/lib', "alias env='printenv'", 'alias logout='echo "Use the close button in the upper right corner to exit StaSh."'', "alias help='man'", "alias la='ls -a'", "alias ll='ls -la'", "alias copy='pbcopy'", "alias paste='pbpaste'"],)/Documents]$ \x9b39m'[2015-09-11 08:09:27,013] [INFO] [MainThread] [StaSh] [call] [1716] - {'add_new_inp_line': False, 'add_to_history': False}
[2015-09-11 08:09:27,854] [INFO] [MainThread] [StaSh] [init] [1698] - Before preamble
[2015-09-11 08:09:27,854] [INFO] [MainThread] [StaSh.IO] [write] [150] - writing u'\x9b1m\x9b34mStaSh v0.5.0\n\x9b39m\x9b22m'
[2015-09-11 08:09:27,855] [INFO] [MainThread] [StaSh.Stream] [feed] [328] - feeding u'\x9b1m\x9b34mStaSh v0.5.0\n\x9b39m\x9b22m', True, False
[2015-09-11 08:09:27,856] [INFO] [MainThread] [StaSh.Screen] [acquire_lock] [184] - Lock Acquired
[2015-09-11 08:09:27,858] [INFO] [MainThread] [StaSh.Screen] [acquire_lock] [188] - Lock Released
[2015-09-11 08:09:27,858] [INFO] [MainThread] [StaSh.Stream] [feed] [338] - calling render False
[2015-09-11 08:09:27,859] [INFO] [MainThread] [StaSh.SequentialRenderer] [render] [462] - At beginning of render
[2015-09-11 08:09:27,859] [INFO] [MainThread] [StaSh.SequentialRenderer] [render] [464] - render it now
[2015-09-11 08:09:27,860] [INFO] [MainThread] [StaSh.SequentialRenderer] [render] [467] - rendering ...
[2015-09-11 08:09:27,865] [INFO] [Dummy-1] [StaSh.Screen] [acquire_lock] [184] - Lock Acquired
[2015-09-11 08:09:27,867] [INFO] [Dummy-1] [StaSh.Screen] [acquire_lock] [188] - Lock Released
[2015-09-11 08:09:27,914] [INFO] [MainThread] [StaSh.SequentialRenderer] [render] [469] - Done rendering
[2015-09-11 08:09:27,915] [INFO] [MainThread] [StaSh.Stream] [feed] [340] - done feeding
[2015-09-11 08:09:27,915] [INFO] [MainThread] [StaSh] [init] [1701] - Before script_will_end
[2015-09-11 08:09:27,916] [INFO] [MainThread] [StaSh.Runtime] [script_will_end] [1349] - At beginning of script_will_end
[2015-09-11 08:09:27,918] [INFO] [MainThread] [StaSh.IO] [write] [150] - writing u'\x9b52m[
[2015-09-11 08:09:27,918] [INFO] [MainThread] [StaSh.Stream] [feed] [328] - feeding u'\x9b52m[~/Documents]$ \x9b39m', True, True
[2015-09-11 08:09:27,919] [INFO] [MainThread] [StaSh.Screen] [acquire_lock] [184] - Lock Acquired
[2015-09-11 08:09:27,921] [INFO] [MainThread] [StaSh.Screen] [acquire_lock] [188] - Lock Released
[2015-09-11 08:09:27,921] [INFO] [MainThread] [StaSh.Stream] [feed] [338] - calling render True
[2015-09-11 08:09:27,922] [INFO] [MainThread] [StaSh.SequentialRenderer] [render] [462] - At beginning of render
[2015-09-11 08:09:27,922] [INFO] [MainThread] [StaSh.SequentialRenderer] [render] [464] - render it now
[2015-09-11 08:09:27,923] [INFO] [MainThread] [StaSh.SequentialRenderer] [render] [467] - rendering ...
[2015-09-11 08:09:27,928] [INFO] [Dummy-1] [StaSh.Screen] [acquire_lock] [184] - Lock Acquired
[2015-09-11 08:09:27,928] [INFO] [Dummy-1] [StaSh.Screen] [acquire_lock] [188] - Lock Released
[2015-09-11 08:09:27,960] [INFO] [MainThread] [StaSh.SequentialRenderer] [render] [469] - Done rendering
[2015-09-11 08:09:27,960] [INFO] [MainThread] [StaSh.Stream] [feed] [340] - done feeding
[2015-09-11 08:09:27,961] [INFO] [MainThread] [StaSh.Runtime] [script_will_end] [1351] - Done writing prompt
[2015-09-11 08:09:27,962] [INFO] [MainThread] [StaSh.Runtime] [script_will_end] [1356] - Done script_will_end
[2015-09-11 08:09:27,962] [INFO] [MainThread] [StaSh] [init] [1704] - Before _load_lib
The text was updated successfully, but these errors were encountered: