ish icon indicating copy to clipboard operation
ish copied to clipboard

iSH crashes persistently on my device [testflight dump]

Open xloem opened this issue 1 year ago • 7 comments

I’ve never gotten iSH to run reliably, even when not allocating ram. It usually runs for a bit, and then starts crashing repeatedly and relatively quickly when relaunched, often associated right now with launching vim or saving a file from vim. Often if I wait a while, I can then run iSH for a bit again.

iSHFileProvider-2023-12-08-191601.ips.txt

xloem avatar Dec 09 '23 01:12 xloem

I’ve found I can deter this crash if I frequently interrupt applications with ^Z and then type ‘sync’ to flush the filesystem and then resume them with ‘fg’.

On resume they run much faster briefly, and then I often need to do it again to deter a crash.

Sometimes it crashes on the ‘sync’ and then I do ‘sleep 5; sync’ to make it work.

xloem avatar Dec 28 '23 04:12 xloem

Per comment on Discord, here's a dump from the main process. This happened when I ran pip. Yesterday, I ran pip successfully using the workaround above. iSH-2023-12-28-070109.ips.txt

xloem avatar Dec 28 '23 12:12 xloem

Thread[13] EXC_BREAKPOINT (SIGTRAP) (0x0000000000000001, 0x00000001026f23b4)
[  0] 0x00000001026f23b4 iSH`__ish_exception_exfiltrate_THREAD__ + 12
[  1] 0x000000021efa30eb libsystem_pthread.dylib`_pthread_start + 115
[  2] 0x00000001026f2054 iSH`__ish_exception_exfiltrate_NAME__
[  3] 0x00000001026f1f90 iSH` N
[  4] 0x00000001026f1fa4 iSH` S
[  5] 0x00000001026f1f74 iSH` G
[  6] 0x00000001026f1fec iSH` e
[  7] 0x00000001026f2010 iSH` n
[  8] 0x00000001026f1fec iSH` e
[  9] 0x00000001026f2020 iSH` r
[ 10] 0x00000001026f1ffc iSH` i
[ 11] 0x00000001026f1fe4 iSH` c
[ 12] 0x00000001026f1f6c iSH` E
[ 13] 0x00000001026f2038 iSH` x
[ 14] 0x00000001026f1fe4 iSH` c
[ 15] 0x00000001026f1fec iSH` e
[ 16] 0x00000001026f2018 iSH` p
[ 17] 0x00000001026f2028 iSH` t
[ 18] 0x00000001026f1ffc iSH` i
[ 19] 0x00000001026f2014 iSH` o
[ 20] 0x00000001026f2010 iSH` n
[ 21] 0x00000001026f205c iSH`__ish_exception_exfiltrate_REASON__
[ 22] 0x00000001026f1ffc iSH` i
[ 23] 0x00000001026f2014 iSH` o
[ 24] 0x00000001026f2024 iSH` s
[ 25] 0x00000001026f1fd4 iSH` _
[ 26] 0x00000001026f1ff8 iSH` h
[ 27] 0x00000001026f1fdc iSH` a
[ 28] 0x00000001026f2010 iSH` n
[ 29] 0x00000001026f1fe8 iSH` d
[ 30] 0x00000001026f2008 iSH` l
[ 31] 0x00000001026f1fec iSH` e
[ 32] 0x00000001026f1fd4 iSH` _
[ 33] 0x00000001026f1fe8 iSH` d
[ 34] 0x00000001026f1ffc iSH` i
[ 35] 0x00000001026f1fec iSH` e
[ 36] 0x00000001026f1f40 iSH` :
[ 37] 0x00000001026f1ed8 iSH`
[ 38] 0x00000001026f2024 iSH` s
[ 39] 0x00000001026f201c iSH` q
[ 40] 0x00000001026f2008 iSH` l
[ 41] 0x00000001026f1ffc iSH` i
[ 42] 0x00000001026f2028 iSH` t
[ 43] 0x00000001026f1fec iSH` e
[ 44] 0x00000001026f1ed8 iSH`
[ 45] 0x00000001026f1fec iSH` e
[ 46] 0x00000001026f2020 iSH` r
[ 47] 0x00000001026f2020 iSH` r
[ 48] 0x00000001026f2014 iSH` o
[ 49] 0x00000001026f2020 iSH` r
[ 50] 0x00000001026f1f40 iSH` :
[ 51] 0x00000001026f1ed8 iSH`
[ 52] 0x00000001026f1f2c iSH` 5
[ 53] 0x00000001026f1ed8 iSH`
[ 54] 0x00000001026f1f18 iSH` 0
[ 55] 0x00000001026f2038 iSH` x
[ 56] 0x00000001026f1f2c iSH` 5
[ 57] 0x00000001026f1ed8 iSH`
[ 58] 0x00000001026f1fe8 iSH` d
[ 59] 0x00000001026f1fdc iSH` a
[ 60] 0x00000001026f2028 iSH` t
[ 61] 0x00000001026f1fdc iSH` a
[ 62] 0x00000001026f1fe0 iSH` b
[ 63] 0x00000001026f1fdc iSH` a
[ 64] 0x00000001026f2024 iSH` s
[ 65] 0x00000001026f1fec iSH` e
[ 66] 0x00000001026f1ed8 iSH`
[ 67] 0x00000001026f1ffc iSH` i
[ 68] 0x00000001026f2024 iSH` s
[ 69] 0x00000001026f1ed8 iSH`
[ 70] 0x00000001026f2008 iSH` l
[ 71] 0x00000001026f2014 iSH` o
[ 72] 0x00000001026f1fe4 iSH` c
[ 73] 0x00000001026f2004 iSH` k
[ 74] 0x00000001026f1fec iSH` e
[ 75] 0x00000001026f1fe8 iSH` d
[ 76] 0x00000001026f2064 iSH`__ish_exception_exfiltrate_BACKTRACE__

saagarjha avatar Dec 31 '23 20:12 saagarjha

Per request on Discord, here are dumps from a crash when attempting to run the new system package upgrade, which doesn’t provide for my ^Z workaround. iSH-2024-01-27-090818.ips.txt iSHFileProvider-2024-01-27-091102.ips.txt

xloem avatar Jan 27 '24 14:01 xloem

#2	(null) in __ish_exception_exfiltrate_NAME__ ()
#3	(null) in  N ()
#4	(null) in  S ()
#5	(null) in  G ()
#6	(null) in  e ()
#7	(null) in  n ()
#8	(null) in  e ()
#9	(null) in  r ()
#10	(null) in  i ()
#11	(null) in  c ()
#12	(null) in  E ()
#13	(null) in  x ()
#14	(null) in  c ()
#15	(null) in  e ()
#16	(null) in  p ()
#17	(null) in  t ()
#18	(null) in  i ()
#19	(null) in  o ()
#20	(null) in  n ()
#21	(null) in __ish_exception_exfiltrate_REASON__ ()
#22	(null) in  i ()
#23	(null) in  o ()
#24	(null) in  s ()
#25	(null) in  _ ()
#26	(null) in  h ()
#27	(null) in  a ()
#28	(null) in  n ()
#29	(null) in  d ()
#30	(null) in  l ()
#31	(null) in  e ()
#32	(null) in  _ ()
#33	(null) in  d ()
#34	(null) in  i ()
#35	(null) in  e ()
#36	(null) in  : ()
#37	(null) in (null) ()
#38	(null) in  s ()
#39	(null) in  q ()
#40	(null) in  l ()
#41	(null) in  i ()
#42	(null) in  t ()
#43	(null) in  e ()
#44	(null) in (null) ()
#45	(null) in  e ()
#46	(null) in  r ()
#47	(null) in  r ()
#48	(null) in  o ()
#49	(null) in  r ()
#50	(null) in  : ()
#51	(null) in (null) ()
#52	(null) in  5 ()
#53	(null) in (null) ()
#54	(null) in  0 ()
#55	(null) in  x ()
#56	(null) in  5 ()
#57	(null) in (null) ()
#58	(null) in  d ()
#59	(null) in  a ()
#60	(null) in  t ()
#61	(null) in  a ()
#62	(null) in  b ()
#63	(null) in  a ()
#64	(null) in  s ()
#65	(null) in  e ()
#66	(null) in (null) ()
#67	(null) in  i ()
#68	(null) in  s ()
#69	(null) in (null) ()
#70	(null) in  l ()
#71	(null) in  o ()
#72	(null) in  c ()
#73	(null) in  k ()
#74	(null) in  e ()
#75	(null) in  d ()
#76	(null) in __ish_exception_exfiltrate_BACKTRACE__ ()

saagarjha avatar Jan 28 '24 08:01 saagarjha

I’ve found I can pursue completing an upgrade by separating packages out with a command like apk upgrade --simulate | grep 'Upgrading' | cut -f 3 -d ' ' and addressing them individually. It works fine in a for loop brute-forcing through the crashing because it will resume where it left off,

xloem avatar Feb 01 '24 01:02 xloem

Engaging suggestion on Discord, I am no longer seeing this specific crash after removing iSh from my Files sidebar 🎉. I suspect the crashes started after I began downloading files directly to /tmp from Safari.

xloem avatar Feb 05 '24 01:02 xloem